/* =====================================================
   МИРА — ИИ-ПСИХОЛОГ | ЛЕНДИНГ
   Дизайн-система: Гуманистический HealthTech-минимализм
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES (Design Tokens)
   ===================================================== */

:root {
    /* Colors — Primary */
    --color-primary: #488CE1;
    --color-primary-light: #6BA3E8;
    --color-primary-dark: #383B7C;
    --color-primary-bg: #E3EEF9;
    
    /* Colors — Secondary (Accent) */
    --color-secondary: #50B880;
    --color-secondary-light: #73C99A;
    --color-secondary-dark: #3DA068;
    --color-secondary-bg: #D7E7DE;
    
    /* Colors — Neutrals */
    --color-white: #FFFFFF;
    --color-bg: #FAFBFC;
    --color-bg-warm: #F8F9FA;
    --color-text: #383B7C;
    --color-text-secondary: #5A5D8A;
    --color-text-muted: #8E90B0;
    --color-border: #E2E8F0;
    --color-border-light: #EDF2F7;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-primary-soft: linear-gradient(135deg, var(--color-primary-bg) 0%, var(--color-secondary-bg) 100%);
    --gradient-radial: radial-gradient(ellipse at center, var(--color-primary-bg) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes — Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-2xl: clamp(3rem, 2rem + 5vw, 6rem);
    --space-3xl: clamp(4rem, 3rem + 5vw, 8rem);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(72, 140, 225, 0.3);
    --shadow-glow-strong: 0 0 60px rgba(72, 140, 225, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-slower: 600ms ease;
    
    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: clamp(1rem, 4vw, 2rem);
}

/* =====================================================
   2. CSS RESET & BASE
   ===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-semibold);
    line-height: 1.2;
    color: var(--color-text);
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: var(--font-semibold);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================================================
   3. LAYOUT & UTILITIES
   ===================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    position: relative;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.section__title {
    font-size: var(--text-4xl);
    text-align: center;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: inline;
    }
}

/* =====================================================
   4. FLOATING DECORATIVE ELEMENTS
   ===================================================== */

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(80px);
}

.floating-circle--1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary-bg);
    top: -100px;
    right: -100px;
    animation: float-1 25s ease-in-out infinite;
}

.floating-circle--2 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary-bg);
    bottom: 20%;
    left: -100px;
    animation: float-2 20s ease-in-out infinite;
}

.floating-circle--3 {
    width: 250px;
    height: 250px;
    background: var(--color-primary-bg);
    top: 50%;
    right: 10%;
    animation: float-3 30s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 50px) scale(1.1); }
    66% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.15); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-20px, 30px); }
    75% { transform: translate(30px, -20px); }
}

/* =====================================================
   5. BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-lg), 0 4px 20px rgba(72, 140, 225, 0.3);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
}

.btn--primary:hover::before {
    opacity: 1;
}

.btn--primary:active {
    transform: translateY(-1px) scale(1);
}

.btn__subtext {
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
    opacity: 0.9;
    margin-top: 2px;
}

.btn--large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-xl);
}

.btn--mobile {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--text-base);
}

/* =====================================================
   6. HERO SECTION
   ===================================================== */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.hero__blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    max-width: 800px;
    opacity: 0.7;
    z-index: -1;
    will-change: transform;
    transition: transform 0.15s linear;
}

.hero__blob svg {
    width: 100%;
    height: auto;
}

.blob-path {
    transform-origin: center;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
    text-align: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero__content {
        grid-template-columns: 1.2fr 0.8fr;
        text-align: left;
        gap: var(--space-2xl);
    }
}

.hero__text {
    order: 2;
}

@media (min-width: 1024px) {
    .hero__text {
        order: 1;
    }
}

.hero__title {
    font-size: var(--text-4xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: var(--text-5xl);
    }
}

.hero__title-accent {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: var(--space-sm);
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    font-weight: var(--font-light);
}

.hero__cta {
    margin-bottom: var(--space-lg);
}

@media (min-width: 1024px) {
    .hero__cta {
        align-self: flex-start;
    }
}

.hero__social-proof {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__social-proof {
        align-items: flex-start;
    }
}

.social-proof__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.social-proof__icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Hero Visual — Mira Avatar */
.hero__visual {
    order: 1;
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero__visual {
        order: 2;
    }
}

.mira-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mira-avatar__glow {
    position: absolute;
    width: 160%;
    height: 160%;
    background: var(--gradient-radial);
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse-glow 4s ease-in-out infinite;
}

.mira-avatar__circle {
    position: relative;
    width: 140px;
    height: 140px;
    z-index: 1;
}

.mira-avatar__svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(72, 140, 225, 0.4));
}

.mira-avatar__pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #488CE1;
    opacity: 0;
    animation: avatar-pulse 3s ease-out infinite;
}

.mira-avatar--large .mira-avatar__circle {
    width: 180px;
    height: 180px;
}

@media (min-width: 768px) {
    .mira-avatar__circle {
        width: 180px;
        height: 180px;
    }
    
    .mira-avatar--large .mira-avatar__circle {
        width: 220px;
        height: 220px;
    }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes avatar-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator__mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator__wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(6px); }
}

/* =====================================================
   6.5. HERO → PROBLEM TRANSITION WAVES
   ===================================================== */

.hero-problem-transition {
    position: relative;
    margin-top: -2px;
    margin-bottom: -2px;
    line-height: 0;
    background: transparent;
    z-index: 1;
}

.hero-problem-transition svg {
    display: block;
    width: 100%;
    height: 100px;
}

@media (min-width: 768px) {
    .hero-problem-transition svg {
        height: 160px;
    }
}

@media (min-width: 1200px) {
    .hero-problem-transition svg {
        height: 200px;
    }
}

/* =====================================================
   6.6. SOLUTION → HOW IT WORKS TRANSITION WAVES
   ===================================================== */

.solution-hiw-transition {
    position: relative;
    margin-top: -2px;
    margin-bottom: -2px;
    line-height: 0;
    background: transparent;
    z-index: 1;
}

.solution-hiw-transition svg {
    display: block;
    width: 100%;
    height: 100px;
}

@media (min-width: 768px) {
    .solution-hiw-transition svg {
        height: 160px;
    }
}

@media (min-width: 1200px) {
    .solution-hiw-transition svg {
        height: 200px;
    }
}

/* =====================================================
   7. PROBLEM SECTION
   ===================================================== */

.section--problem {
    background: linear-gradient(
        180deg,
        #F2E4DF 0%,       /* Пыльная роза — ощущение тревоги */
        #EDE1EA 30%,       /* Приглушенный лавандово-розовый */
        #E6E2F0 60%,       /* Лавандовый — переходная зона */
        #E3EBF7 100%       /* Спокойный голубой — разрешение */
    );
    position: relative;
    overflow: hidden;
}

/* Анимированное теплое свечение — «дыхание тревоги» */
.section--problem::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    right: -30%;
    bottom: -30%;
    background:
        radial-gradient(ellipse at 25% 20%, rgba(200, 100, 90, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 70%, rgba(180, 110, 130, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(190, 90, 80, 0.04) 0%, transparent 60%);
    animation: problem-breathe 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes problem-breathe {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(-2%, 1.5%) scale(1.04);
        opacity: 0.9;
    }
    66% {
        transform: translate(1.5%, -1%) scale(1.02);
        opacity: 0.7;
    }
    100% {
        transform: translate(1%, 2%) scale(1.06);
        opacity: 1;
    }
}

/* Контент поверх анимированного фона */
.section--problem > .container {
    position: relative;
    z-index: 1;
}

.problem-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto var(--space-xl);
}

@media (min-width: 640px) {
    .problem-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.problem-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    cursor: default;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5E5E1;
    border-radius: var(--radius-lg);
    color: #C07060;
}

.problem-card__icon svg {
    width: 24px;
    height: 24px;
}

.problem-card__text {
    flex: 1;
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.5;
}

/* Problem Verdict */
.problem-verdict {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.verdict__line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-full);
}

/* Heartbeat Line Animation */
.heartbeat-line {
    width: 100%;
    max-width: 500px;
    margin: 0 auto var(--space-lg);
    overflow: hidden;
}

.heartbeat-svg {
    width: 100%;
    height: 60px;
    display: block;
}

.heartbeat-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 0.85;
}

.problem-verdict.visible .heartbeat-path {
    animation: heartbeat-draw 9.2s linear forwards;
}

@keyframes heartbeat-draw {
    0% {
        stroke-dashoffset: 2000;
    }
    /* Red anxious part draws fast */
    33% {
        stroke-dashoffset: 800;
    }
    /* Transition zone slows down */
    49% {
        stroke-dashoffset: 600;
    }
    /* Green-blue calm part draws ~15% faster */
    100% {
        stroke-dashoffset: 0;
    }
}

.verdict__text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-text);
    line-height: 1.4;
}

.verdict__text strong {
    color: #B85C50;
}

/* =====================================================
   8. AGITATION SECTION
   ===================================================== */

.section--agitation {
    background: var(--color-white);
}

.agitation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .agitation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.agitation-card {
    position: relative;
    padding: var(--space-xl);
    background: #FEF2F2;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid #FECACA;
    overflow: hidden;
}

/* Border beam effect */
.agitation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 1.5px;
    background: conic-gradient(
        from var(--beam-angle, 0deg),
        transparent 0%,
        transparent 75%,
        rgba(220, 100, 100, 0.5) 85%,
        rgba(255, 120, 120, 0.8) 90%,
        rgba(220, 100, 100, 0.5) 95%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-beam 4s linear infinite;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.agitation-card:hover::before {
    opacity: 1;
}

@keyframes border-beam {
    0%   { --beam-angle: 0deg; }
    100% { --beam-angle: 360deg; }
}

@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.agitation-card--faded {
    opacity: 0.85;
}

.agitation-card:nth-child(2)::before {
    animation-delay: -1.3s;
}

.agitation-card:nth-child(3)::before {
    animation-delay: -2.6s;
}

.agitation-card:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.agitation-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    background: #FEE2E2;
    border-radius: 50%;
    color: #DC6464;
    box-shadow: var(--shadow-sm);
}

.agitation-card__icon svg {
    width: 28px;
    height: 28px;
}

.agitation-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.agitation-card__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.agitation-card__cross {
    display: none;
}

/* =====================================================
   8.5. HONEST QUESTION SECTION — LIQUID TEXT FILL
   ===================================================== */

.section--honest {
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    overflow: hidden;
}

.honest-text {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.2rem + 2.2vw, 2.8rem);
    font-weight: var(--font-semibold);
    line-height: 1.5;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}

/* Each word is wrapped in a <span> by JS */
.honest-text .hw {
    display: inline;
    color: rgba(56, 59, 124, 0.08);
    transition: color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* When a word is "filled", it gets full color */
.honest-text .hw.filled {
    color: #383B7C;
}

/* =====================================================
   8.7. TRANSITION BRIDGE: QUESTION → SOLUTION
   ===================================================== */

.transition-bridge {
    position: relative;
    z-index: 2;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        180deg,
        var(--color-white) 0%,
        #F7FAF8 40%,
        #F2F8F5 60%,
        var(--color-white) 100%
    );
    padding: var(--space-2xl) 0;
    padding-bottom: 120px;
    contain: layout style;
}

/* --- Cartoon Question Marks --- */
.tb-questions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 42%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.tb-q {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 800;
    color: #DC6464;
    opacity: 0;
    text-shadow: 2px 2px 0 rgba(220, 100, 100, 0.15);
    user-select: none;
    line-height: 1;
    backface-visibility: hidden;
}

/* Wobble runs on CSS compositor — no JS per-frame cost */
.tb-q--wobble {
    animation: tb-q-wobble var(--tb-wobble-dur, 2s) ease-in-out infinite;
}
.tb-q--1 { --tb-wobble-dur: 2.1s; }
.tb-q--2 { --tb-wobble-dur: 1.8s; }
.tb-q--3 { --tb-wobble-dur: 2.4s; }
.tb-q--4 { --tb-wobble-dur: 2.0s; }
.tb-q--5 { --tb-wobble-dur: 2.3s; }

@keyframes tb-q-wobble {
    0%, 100% { transform: rotate(-10deg) scale(1.0); }
    50%      { transform: rotate(10deg) scale(1.08); }
}

.tb-q--1 { font-size: 2.8rem; top: 18%; left: 18%; }
.tb-q--2 { font-size: 2.2rem; top: 8%; right: 22%; color: #B85C50; }
.tb-q--3 { font-size: 3.2rem; top: 34%; left: 33%; color: #C87060; }
.tb-q--4 { font-size: 2rem; top: 22%; right: 16%; color: #C07060; }
.tb-q--5 { font-size: 3.6rem; top: 3%; left: 50%; color: #D05A5A; }

@media (max-width: 639px) {
    .tb-q--1 { font-size: 2rem; top: 14%; left: 8%; }
    .tb-q--2 { font-size: 1.6rem; top: 5%; right: 10%; }
    .tb-q--3 { font-size: 2.4rem; top: 26%; left: 20%; }
    .tb-q--4 { font-size: 1.5rem; top: 18%; right: 8%; }
    .tb-q--5 { font-size: 2.8rem; top: 1%; left: 45%; }
}

/* --- Doodle Arrow SVG --- */
.tb-arrow {
    position: relative;
    z-index: 1;
    width: 120px;
    height: auto;
    max-height: 55vh;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .tb-arrow {
        width: 160px;
    }
}

.tb-arrow__path {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.tb-arrow__head {
    opacity: 0;
    transform-origin: 100px 440px;
}

/* --- Sparkle Decorations --- */
.tb-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tb-spark {
    position: absolute;
    opacity: 0;
    user-select: none;
    backface-visibility: hidden;
}

/* Pulse runs on CSS compositor — no JS per-frame cost */
.tb-spark--active {
    animation: tb-spark-pulse 2s ease-in-out infinite;
}
.tb-spark--1.tb-spark--active { animation-delay: -0.2s; }
.tb-spark--2.tb-spark--active { animation-delay: -0.7s; }
.tb-spark--3.tb-spark--active { animation-delay: -1.1s; }
.tb-spark--4.tb-spark--active { animation-delay: -1.5s; }

@keyframes tb-spark-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.3) rotate(22deg); }
}

.tb-spark--1 { top: 30%; left: 20%; color: #9B7EC8; font-size: 1.5rem; }
.tb-spark--2 { top: 46%; right: 22%; color: #488CE1; font-size: 1.2rem; }
.tb-spark--3 { top: 56%; left: 24%; color: #4EB97F; font-size: 1.7rem; }
.tb-spark--4 { top: 68%; right: 20%; color: #50B880; font-size: 1.4rem; }

@media (max-width: 639px) {
    .tb-spark--1 { left: 8%; font-size: 1.2rem; }
    .tb-spark--2 { right: 8%; font-size: 1rem; }
    .tb-spark--3 { left: 10%; font-size: 1.3rem; }
    .tb-spark--4 { right: 8%; font-size: 1.1rem; }
}

/* --- Eureka Lightbulb --- */
.tb-eureka {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%) scale(0.3);
    opacity: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.tb-eureka__glow {
    position: absolute;
    width: 240px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(78, 185, 127, 0.28) 0%,
        rgba(72, 140, 225, 0.08) 45%,
        transparent 70%
    );
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

/* Glow pulse — scale breathing only; opacity is scroll-driven via JS */
.tb-eureka--active .tb-eureka__glow {
    animation: tb-glow-pulse 2.5s ease-in-out infinite;
}

@keyframes tb-glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.18); }
}

.tb-eureka__ring {
    position: absolute;
    width: 140px;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.tb-eureka__icon {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 16px rgba(78, 185, 127, 0.35));
}

@media (max-width: 639px) {
    .tb-eureka__icon {
        width: 48px;
        height: 57px;
    }
    .tb-eureka__ring {
        width: 110px;
        height: 110px;
    }
    .tb-eureka__glow {
        width: 180px;
        height: 180px;
    }
}

/* =====================================================
   9. SOLUTION SECTION
   ===================================================== */

.section--solution {
    background: var(--color-white);
    overflow: hidden;
}

.solution__blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    max-width: 800px;
    z-index: 0;
}

.solution__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.solution__eyebrow {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    background: var(--color-primary-bg);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.solution__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .solution__content {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
}

.solution__avatar {
    flex-shrink: 0;
}

.solution__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 560px;
}

@media (min-width: 1024px) {
    .solution__features {
        padding-top: var(--space-lg);
        max-width: 600px;
    }
}

.feature-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(78, 185, 127, 0.15);
    overflow: hidden;
}

/* Green border beam effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 1.5px;
    background: conic-gradient(
        from var(--beam-angle-green, 0deg),
        transparent 0%,
        transparent 75%,
        rgba(78, 185, 127, 0.4) 85%,
        rgba(90, 206, 160, 0.7) 90%,
        rgba(78, 185, 127, 0.4) 95%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-beam-green 4s linear infinite;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.feature-card:nth-child(2)::before {
    animation-delay: -1.3s;
}

.feature-card:nth-child(3)::before {
    animation-delay: -2.6s;
}

.feature-card:hover::before {
    opacity: 1;
}

@keyframes border-beam-green {
    0%   { --beam-angle-green: 0deg; }
    100% { --beam-angle-green: 360deg; }
}

@property --beam-angle-green {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        var(--shadow-lg),
        0 0 20px rgba(78, 185, 127, 0.1);
}

.feature-card__stat {
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    padding: var(--space-xs) 0;
    position: relative;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #488CE1 0%, #4EB97F 60%, #6BC5E8 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: stat-gradient 4s ease infinite;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: stat-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin-top: 4px;
    opacity: 0.7;
}

.feature-card__divider {
    width: 1.5px;
    height: 48px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(78, 185, 127, 0.3) 20%,
        rgba(72, 140, 225, 0.2) 80%,
        transparent 100%
    );
    flex-shrink: 0;
}

.feature-card__body {
    flex: 1;
    min-width: 0;
}

@keyframes stat-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes stat-shimmer {
    0%, 100% { left: -10%; opacity: 0; }
    10% { opacity: 1; }
    40% { left: 110%; opacity: 0; }
    41%, 99% { opacity: 0; left: -10%; }
}

.feature-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--color-white);
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.feature-card__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* =====================================================
   10. HOW IT WORKS SECTION — ANIMATED TIMELINE
   ===================================================== */

.section--how-it-works {
    background: var(--gradient-primary-soft);
    overflow: hidden;
}

.hiw-subtitle {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-top: calc(-1 * var(--space-md));
    margin-bottom: var(--space-2xl);
    font-weight: var(--font-light);
}

/* Timeline Container */
.hiw-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 520px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hiw-timeline {
        flex-direction: row;
        gap: var(--space-lg);
        max-width: 1060px;
    }
}

/* ---- Connector Line ---- */
.hiw-line {
    position: absolute;
    z-index: 0;
    /* Mobile: vertical */
    top: 32px;
    left: 31px;
    bottom: 32px;
    width: 2px;
}

.hiw-line__track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(72, 140, 225, 0.12);
    border-radius: 2px;
}

.hiw-line__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #488CE1, #50B880);
    border-radius: 2px;
    transition: height 1.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(72, 140, 225, 0.35);
}

.hiw-timeline.in-view .hiw-line__progress {
    height: 100%;
}

@media (min-width: 768px) {
    .hiw-line {
        top: 36px;
        left: calc(100% / 6);
        right: calc(100% / 6);
        bottom: auto;
        width: auto;
        height: 2px;
    }

    .hiw-line__progress {
        height: 100% !important;
        width: 0%;
        background: linear-gradient(90deg, #488CE1, #50B880);
        transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hiw-timeline.in-view .hiw-line__progress {
        width: 100%;
    }
}

/* ---- Step ---- */
.hiw-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hiw-step.active {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .hiw-step {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transform: translateY(40px);
    }
}

/* ---- Step Marker (number ring) ---- */
.hiw-step__marker {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Solid background hides the connector line behind the marker */
    background: var(--gradient-primary-soft);
    border-radius: 50%;
    z-index: 2;
}

@media (min-width: 768px) {
    .hiw-step__marker {
        width: 72px;
        height: 72px;
    }
}

.hiw-step__ring {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hiw-step__ring-bg {
    fill: none;
    stroke: rgba(72, 140, 225, 0.12);
    stroke-width: 2.5;
}

.hiw-step__ring-fill {
    fill: none;
    stroke: url(#hiwRingGrad);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 226.2;
    stroke-dashoffset: 226.2;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.hiw-step.active .hiw-step__ring-fill {
    stroke-dashoffset: 0;
}

.hiw-step__num {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.58s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hiw-step.active .hiw-step__num {
    transform: scale(1.15);
}

.hiw-step__glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 140, 225, 0.15) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.92s ease, transform 0.92s ease;
    pointer-events: none;
}

.hiw-step.active .hiw-step__glow {
    opacity: 1;
    transform: scale(1.8);
    animation: hiw-glow-pulse 3s ease-in-out infinite 1s;
}

@keyframes hiw-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1.8); }
    50% { opacity: 0.9; transform: scale(2.1); }
}

/* ---- Step Card Body ---- */
.hiw-step__body {
    flex: 1;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer on hover */
.hiw-step__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(72, 140, 225, 0.04),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.hiw-step__body:hover::before {
    left: 100%;
}

.hiw-step__body:hover {
    transform: translateY(-8px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(72, 140, 225, 0.1),
        0 0 30px rgba(72, 140, 225, 0.06);
    border-color: rgba(72, 140, 225, 0.15);
}

@media (min-width: 768px) {
    .hiw-step__body {
        margin-top: var(--space-md);
    }
}

/* ---- Step Icon ---- */
.hiw-step__icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: var(--space-sm);
    box-shadow: 0 4px 12px rgba(72, 140, 225, 0.25);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
}

.hiw-step__icon-wrap svg {
    width: 22px;
    height: 22px;
}

.hiw-step__body:hover .hiw-step__icon-wrap {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(72, 140, 225, 0.35);
}

@media (min-width: 768px) {
    .hiw-step__icon-wrap {
        margin-left: auto;
        margin-right: auto;
        width: 52px;
        height: 52px;
    }

    .hiw-step__icon-wrap svg {
        width: 24px;
        height: 24px;
    }
}

/* ---- Step Title & Text ---- */
.hiw-step__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.hiw-step__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* =====================================================
   11. TESTIMONIALS SECTION
   ===================================================== */

.section--testimonials {
    background: var(--color-white);
}

/* Marquee testimonials */
.section--testimonials {
    overflow: hidden;
}

.section--testimonials .container {
    margin-bottom: var(--space-xl);
}

.marquee-row {
    overflow: hidden;
    position: relative;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-row + .marquee-row {
    margin-top: 16px;
}

.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.marquee-row--left .marquee-track {
    animation: marquee-left 60s linear infinite;
}

.marquee-row--right .marquee-track {
    animation: marquee-right 60s linear infinite;
}

.marquee-row.is-paused .marquee-track {
    animation-play-state: paused;
}

.marquee-row {
    cursor: pointer;
}

@keyframes marquee-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-card {
    flex-shrink: 0;
    width: 320px;
    padding: 24px 28px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.marquee-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.marquee-card__text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 0 16px 0;
}

.marquee-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.marquee-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marquee-card__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

@media (max-width: 767px) {
    .marquee-card {
        width: 280px;
        padding: 20px 22px;
    }
    .marquee-card__text {
        font-size: 14px;
    }
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial__avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    background: var(--gradient-primary);
    border-radius: 50%;
}

.testimonial__info {
    display: flex;
    flex-direction: column;
}

.testimonial__name {
    font-weight: var(--font-medium);
    color: var(--color-text);
}

.testimonial__age {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* =====================================================
   12. CTA SECTION
   ===================================================== */

.section--cta {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.cta__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta__background svg {
    width: 100%;
    height: 100%;
}

.cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .cta__title {
        font-size: var(--text-4xl);
    }
}

.cta__title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.cta__trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
    margin-top: var(--space-xl);
}

@media (min-width: 640px) {
    .cta__trust {
        flex-direction: row;
        gap: var(--space-lg);
    }
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
}

/* =====================================================
   13. FOOTER
   ===================================================== */

.footer {
    padding: var(--space-xl) 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

@media (min-width: 768px) {
    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

@media (min-width: 768px) {
    .footer__brand {
        flex-direction: row;
        gap: var(--space-md);
    }
}

.footer__logo {
    width: 130px;
    height: auto;
    overflow: visible;
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.footer__copy {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* =====================================================
   14. MOBILE STICKY CTA
   ===================================================== */

.mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: var(--color-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: var(--z-sticky);
    transform: translateY(100%);
    opacity: 0;
    transition: all var(--transition-base);
}

.mobile-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .mobile-cta {
        display: none;
    }
}

/* =====================================================
   15. ANIMATIONS (Scroll Reveal)
   ===================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.fade-in--delay-1 { animation-delay: 0.15s; }
.fade-in--delay-2 { animation-delay: 0.3s; }
.fade-in--delay-3 { animation-delay: 0.45s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* =====================================================
   16. MEDIA QUERIES — RESPONSIVE ADJUSTMENTS
   ===================================================== */

/* Small devices */
@media (max-width: 639px) {
    .hero {
        padding-top: var(--space-xl);
        padding-bottom: calc(var(--space-3xl) + 80px); /* Space for mobile CTA */
    }
    
    .hero__scroll-indicator {
        bottom: calc(var(--space-lg) + 80px);
    }
    
    .section {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }
    
    .section--cta {
        padding-bottom: calc(var(--space-3xl) + 80px);
    }
}


/* Large screens */
@media (min-width: 1200px) {
    .floating-circle--1 {
        width: 500px;
        height: 500px;
    }
    
    .floating-circle--2 {
        width: 400px;
        height: 400px;
    }
    
    .floating-circle--3 {
        width: 350px;
        height: 350px;
    }
}

/* Print styles */
@media print {
    .floating-elements,
    .hero__blob,
    .solution__blob,
    .cta__background,
    .mobile-cta,
    .hero__scroll-indicator {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* =====================================================
   17. PREMIUM ENHANCEMENTS
   ===================================================== */

/* Floating Relationship Icons */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0.08;
    animation: float-icon 20s ease-in-out infinite;
}

.floating-icon--1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-icon--2 {
    top: 60%;
    right: 8%;
    animation-delay: -5s;
    animation-duration: 22s;
}

.floating-icon--3 {
    top: 35%;
    right: 15%;
    animation-delay: -10s;
    animation-duration: 28s;
}

.floating-icon--4 {
    bottom: 25%;
    left: 10%;
    animation-delay: -15s;
    animation-duration: 24s;
}

.floating-icon--5 {
    top: 80%;
    left: 40%;
    animation-delay: -8s;
    animation-duration: 26s;
}

@keyframes float-icon {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translate(20px, -30px) rotate(10deg) scale(1.1); 
    }
    50% { 
        transform: translate(-15px, 20px) rotate(-5deg) scale(0.95); 
    }
    75% { 
        transform: translate(25px, 15px) rotate(8deg) scale(1.05); 
    }
}

/* Animated Gradient Text */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        var(--color-secondary) 25%,
        var(--color-primary) 50%,
        var(--color-secondary) 75%,
        var(--color-primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Section Dividers */
.section-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.section-divider__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-divider--top {
    transform: rotate(180deg);
    margin-bottom: -1px;
}

.section-divider--bottom {
    margin-top: -1px;
}

/* Premium Card Effects */
.card-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 60px rgba(72, 140, 225, 0.15);
}

/* Glowing Border Effect */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    bottom: -1.5px;
    background: linear-gradient(135deg, #488CE1, #5CC6A0, #4EB97F, #6BB8E0, #488CE1);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 16px rgba(72, 140, 225, 0.15),
        0 0 32px rgba(78, 185, 127, 0.08);
}

.glow-border:hover::before {
    opacity: 1;
    animation: glow-gradient-shift 3s ease infinite;
}

@keyframes glow-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.animated-underline:hover::after,
.animated-underline.active::after {
    width: 100%;
}

/* Heartbeat Animation */
.heartbeat {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.1); }
    20% { transform: scale(1); }
    30% { transform: scale(1.05); }
    40% { transform: scale(1); }
}

/* Connection Line Animation */
.connection-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line 3s ease forwards;
}

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

/* Sparkle Effect */
.sparkle {
    position: relative;
}

.sparkle::before,
.sparkle::after {
    content: '✦';
    position: absolute;
    font-size: 12px;
    color: var(--color-primary);
    opacity: 0;
    animation: sparkle-appear 2s ease-in-out infinite;
}

.sparkle::before {
    top: -10px;
    right: -15px;
    animation-delay: 0s;
}

.sparkle::after {
    bottom: -10px;
    left: -15px;
    animation-delay: 1s;
}

@keyframes sparkle-appear {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* Number Counter Animation */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* Ripple Effect on Buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* (testimonial-enhanced removed — now using marquee cards) */

/* Floating Hearts Background */
.hearts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.heart-float {
    position: absolute;
    opacity: 0.06;
    animation: heart-rise 15s ease-in-out infinite;
}

@keyframes heart-rise {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.06;
    }
    90% {
        opacity: 0.06;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Staggered Animation Classes */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Slide In Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Up Animation */
.scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

/* Decorative Dots Pattern */
.dots-pattern {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--color-primary) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    opacity: 0.1;
    z-index: 0;
}

/* Enhanced Problem Cards */
.problem-card {
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(72, 140, 225, 0.05),
        transparent
    );
    transition: left 0.5s ease;
}

.problem-card:hover::before {
    left: 100%;
}

/* Enhanced Feature Cards — beam effect is on ::before, no ::after needed */

/* Tooltip Style Badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(72, 140, 225, 0.1) 0%, rgba(80, 184, 128, 0.1) 100%);
    border: 1px solid rgba(72, 140, 225, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    backdrop-filter: blur(10px);
}

.premium-badge__icon {
    width: 14px;
    height: 14px;
}

/* Animated Stats */
.stat-item {
    text-align: center;
    padding: var(--space-lg);
}

.stat-item__number {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-item__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Neon Glow Text */
.neon-glow {
    text-shadow: 
        0 0 10px rgba(72, 140, 225, 0.5),
        0 0 20px rgba(72, 140, 225, 0.3),
        0 0 40px rgba(72, 140, 225, 0.2);
}

/* Morphing Shape */
.morph-shape {
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

/* Lightning Animation for Problem Section Title */
.lightning-title {
    position: relative;
    text-align: center;
}

.lightning-container {
    position: absolute;
    top: -20px;
    left: -30px;
    right: -30px;
    bottom: -20px;
    pointer-events: none;
    overflow: visible;
    z-index: 10;
}

.lightning {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 0 3px rgba(255, 70, 70, 0.9)) drop-shadow(0 0 8px rgba(255, 50, 50, 0.5));
}

.lightning path {
    fill: #FF4444;
    stroke: none;
}

/* Lightning animation - radial outward from ellipse */
@keyframes lightning-outward {
    0% { 
        opacity: 0.85; 
        translate: 0 0;
        scale: 1;
    }
    100% { 
        opacity: 0; 
        translate: var(--move-x) var(--move-y);
        scale: 0.5;
    }
}
