/* ========================================
   ScribeMate — Design System & Styles
   ======================================== */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --c-bg: #ffffff;
    --c-bg-alt: #F0F5FF;
    --c-surface: #ffffff;
    --c-primary-900: #0A1628;
    --c-primary-800: #0F2140;
    --c-primary-700: #132D5E;
    --c-primary-600: #1A3F7D;
    --c-primary-500: #2563EB;
    --c-primary-400: #3B82F6;
    --c-primary-300: #60A5FA;
    --c-primary-200: #93C5FD;
    --c-primary-100: #DBEAFE;
    --c-primary-50: #EFF6FF;
    --c-accent: #06B6D4;
    --c-accent-light: #67E8F9;
    --c-text: #1E293B;
    --c-text-muted: #64748B;
    --c-text-light: #94A3B8;
    --c-border: #E2E8F0;
    --c-border-light: #F1F5F9;

    /* Gradients */
    --g-primary: linear-gradient(135deg, #2563EB, #06B6D4);
    --g-primary-soft: linear-gradient(135deg, #3B82F6, #60A5FA);
    --g-dark: linear-gradient(135deg, #0A1628, #1A3F7D);
    --g-hero: linear-gradient(160deg, #0A1628 0%, #132D5E 40%, #1A3F7D 70%, #2563EB 100%);
    --g-card: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));

    /* Typography */
    --ff-display: 'Unbounded', sans-serif;
    --ff-body: 'Manrope', sans-serif;

    /* Spacing */
    --s-section: 80px;

    /* Radius */
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(10,22,40,0.06);
    --shadow-md: 0 4px 20px rgba(10,22,40,0.08);
    --shadow-lg: 0 12px 40px rgba(10,22,40,0.12);
    --shadow-xl: 0 20px 60px rgba(10,22,40,0.16);
    --shadow-glow: 0 0 40px rgba(37,99,235,0.3);
    --shadow-glow-strong: 0 0 80px rgba(37,99,235,0.4);

    /* Transitions */
    --t-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --t-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; }
ul { list-style: none; }

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.features .section-header,
.pricing .section-header,
.calculator .section-header {
    margin-bottom: 28px;
}

.section-tag {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-primary-500);
    background: var(--c-primary-50);
    padding: 6px 16px;
    border-radius: var(--r-full);
    margin-bottom: 14px;
}

.section-tag--light {
    color: var(--c-accent-light);
    background: rgba(6,182,212,0.15);
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-text);
    margin-bottom: 16px;
}

.features .section-title,
.pricing .section-title,
.calculator .section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    margin-bottom: 10px;
}

.section-title--light {
    color: white;
}

.section-subtitle {
    font-size: 18px;
    color: var(--c-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.calculator .section-subtitle {
    max-width: none;
}

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

.gradient-text--light {
    background: linear-gradient(135deg, #60A5FA, #67E8F9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--ff-body);
    font-weight: 600;
    border-radius: var(--r-full);
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--sm { padding: 10px 24px; font-size: 14px; }
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--full { width: 100%; }

.btn--primary {
    background: var(--g-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.btn--primary:hover {
    box-shadow: 0 8px 30px rgba(37,99,235,0.45);
    transform: translateY(-2px);
}

.btn--outline {
    border: 2px solid var(--c-primary-500);
    color: var(--c-primary-500);
}
.btn--outline:hover {
    background: var(--c-primary-500);
    color: white;
    transform: translateY(-2px);
}

.btn--outline-light {
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
}
.btn--outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-2px);
}

.header--scrolled .btn--outline-light {
    border-color: var(--c-primary-500);
    color: var(--c-primary-500);
}
.header--scrolled .btn--outline-light:hover {
    background: var(--c-primary-500);
    color: white;
}

.btn--ghost {
    color: var(--c-text);
    border: 2px solid var(--c-border);
}
.btn--ghost:hover {
    border-color: var(--c-primary-500);
    color: var(--c-primary-500);
    transform: translateY(-2px);
}

.btn--white {
    background: white;
    color: var(--c-primary-900);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn--white:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.btn--ghost-light {
    color: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn--ghost-light:hover {
    border-color: white;
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--t-base);
    padding: 20px 0;
}

.header--scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header--scrolled .header__link { color: var(--c-text); }
.header--scrolled .header__link:hover { color: var(--c-primary-500); }

/* Logo: white on hero, normal on scroll */
.header__logo img {
    height: 36px;
    transition: filter var(--t-base);
    filter: brightness(0) invert(1);
}

.header--scrolled .header__logo img {
    filter: none;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: color var(--t-fast);
    position: relative;
    white-space: nowrap;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--g-primary);
    border-radius: 1px;
    transition: width var(--t-base);
}

.header__link:hover::after { width: 100%; }
.header__link:hover { color: white; }
.header--scrolled .header__link:hover { color: var(--c-primary-500); }

.header__cta { flex-shrink: 0; }
.header__burger { display: none; }

/* --- Mobile Navigation --- */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base);
}

.mobile-nav--open { opacity: 1; visibility: visible; }

.mobile-nav__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav__link {
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: 500;
    color: white;
    transition: color var(--t-fast);
}

.mobile-nav__link:hover { color: var(--c-primary-400); }

.mobile-nav__cta { margin-top: 16px; }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--g-hero);
    overflow: hidden;
    padding: 80px 0 120px;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero__blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.blob--1 {
    width: 600px;
    height: 600px;
    background: var(--c-primary-500);
    top: -200px;
    right: -200px;
    animation: blobFloat1 20s ease-in-out infinite;
}

.blob--2 {
    width: 400px;
    height: 400px;
    background: var(--c-accent);
    bottom: -100px;
    left: -100px;
    animation: blobFloat2 25s ease-in-out infinite;
}

.blob--3 {
    width: 300px;
    height: 300px;
    background: #818CF8;
    top: 40%;
    left: 60%;
    animation: blobFloat3 18s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, 40px) scale(1.1); }
    66% { transform: translate(40px, -30px) scale(0.95); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -50px) scale(1.15); }
    66% { transform: translate(60px, 30px) scale(0.85); }
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: var(--r-full);
    margin-bottom: 28px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34D399;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.mobile-br { display: none; }

.hero__title {
    font-family: var(--ff-display);
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.hero__title .gradient-text {
    background: linear-gradient(135deg, #60A5FA, #67E8F9, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.7);
    max-width: 800px;
    margin: 0 auto 44px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-family: var(--ff-display);
    font-size: 40px;
    font-weight: 700;
    color: white;
}

.hero__stat-suffix {
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--c-primary-300);
}

.hero__stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.hero__stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.15);
}

.hero__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.hero__wave svg {
    width: 100%;
    height: 80px;
}

/* --- Features Section --- */
.features {
    padding: 48px 0;
    background: var(--c-bg);
    scroll-margin-top: 70px;
}

.features__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.feature-card {
    position: relative;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 20px 18px;
    transition: all var(--t-base);
    overflow: hidden;
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--g-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}

.feature-card:hover {
    border-color: var(--c-primary-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    background: var(--c-primary-50);
    color: var(--c-primary-500);
    margin-bottom: 10px;
}

.feature-card__title {
    font-family: var(--ff-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 8px;
}

.feature-card__text {
    font-size: 14px;
    color: var(--c-text-muted);
    line-height: 1.5;
}

/* --- Wave Dividers --- */
.wave-divider {
    line-height: 0;
    overflow: hidden;
}

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

.wave-divider--blue { color: var(--c-primary-900); }
.wave-divider--blue-reverse { color: var(--c-primary-900); }

/* --- How It Works --- */
.how-it-works {
    background: var(--c-primary-900);
    padding: 72px 0;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-lg);
    backdrop-filter: blur(10px);
    width: 100%;
    transition: all var(--t-base);
}

.step:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(96,165,250,0.3);
    transform: translateX(8px);
}

.step__number {
    font-family: var(--ff-display);
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--c-primary-400), var(--c-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step__title {
    font-family: var(--ff-display);
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.step__text {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.step__connector {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.step__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__icon-grid {
    display: flex;
    gap: 8px;
}

.step__icon-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background: rgba(96,165,250,0.15);
    color: var(--c-primary-300);
}

.step__pulse-ring {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #34D399;
    z-index: 1;
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(52,211,153,0.3);
    animation: pulseRing 3s ease-out infinite;
}

.pulse-ring--1 { width: 30px; height: 30px; animation-delay: 0s; }
.pulse-ring--2 { width: 46px; height: 46px; animation-delay: 0.5s; }
.pulse-ring--3 { width: 60px; height: 60px; animation-delay: 1s; }

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* --- Pricing Section --- */
.pricing {
    padding: 48px 0;
    background: var(--c-bg);
    scroll-margin-top: 70px;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.pricing-card {
    position: relative;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    transition: all var(--t-base);
}

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

.pricing-card--featured {
    border-color: var(--c-primary-400);
    background: linear-gradient(180deg, var(--c-primary-50), var(--c-bg));
    box-shadow: var(--shadow-glow);
    z-index: 1;
    transform: scale(1.03);
}

.pricing-card--featured:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: var(--shadow-glow-strong);
}

.pricing-card__header { margin-bottom: 12px; }

.pricing-card__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    background: var(--c-border-light);
    padding: 4px 12px;
    border-radius: var(--r-full);
    margin-bottom: 10px;
}

.pricing-card__badge--featured {
    color: white;
    background: var(--g-primary);
}

.pricing-card__name {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 8px;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-card__amount {
    font-family: var(--ff-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--c-primary-500);
    line-height: 1;
}

.pricing-card__currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text-muted);
}

.pricing-card__period {
    font-size: 14px;
    color: var(--c-text-light);
}

.pricing-card__body { flex: 1; }

.pricing-card__desc {
    font-size: 14px;
    color: var(--c-text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.pricing-card__list {
    margin-bottom: 0;
}

.pricing-card__list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: var(--c-text);
    margin-bottom: 6px;
}

.pricing-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g-primary);
}

.pricing-card__list li strong {
    font-weight: 700;
    color: var(--c-primary-500);
}

.pricing-card__footer {
    margin-top: 12px;
}

.pricing-card__footer .btn {
    padding: 14px 28px;
    font-size: 15px;
}

/* Discounts */
.discounts {
    margin-top: 16px;
}

.discounts__inner {
    background: var(--c-primary-50);
    border: 1px solid var(--c-primary-100);
    border-radius: var(--r-xl);
    padding: 16px 28px;
    text-align: center;
}

.discounts__title {
    font-family: var(--ff-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 10px;
}

.discounts__items {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.discount-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 28px;
    background: white;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.discount-item__period {
    font-size: 14px;
    color: var(--c-text-muted);
    font-weight: 500;
}

.discount-item__value {
    font-family: var(--ff-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--c-primary-500);
}

/* --- Calculator Section --- */
.calculator {
    position: relative;
    padding: 48px 0;
    background: var(--c-bg-alt);
    overflow: hidden;
    scroll-margin-top: 70px;
}

.calculator__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.calculator__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
}

.calculator__blob--1 {
    width: 500px;
    height: 500px;
    background: var(--c-primary-400);
    top: -100px;
    right: -100px;
}

.calculator__blob--2 {
    width: 400px;
    height: 400px;
    background: var(--c-accent);
    bottom: -100px;
    left: -100px;
}

.calc {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.calc__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: white;
    border-radius: var(--r-xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-border-light);
}

.calc__group {}

.calc__group--disabled {
    opacity: 0.5;
    position: relative;
}

.calc__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 8px;
}

.calc__label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calc__value {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--c-primary-500);
}

.calc__coming-soon {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    background: var(--c-text-light);
    padding: 3px 10px;
    border-radius: var(--r-full);
}

/* Range slider */
.calc__range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--c-border);
    outline: none;
    cursor: pointer;
}

.calc__range--disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.calc__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary-500);
    box-shadow: 0 2px 8px rgba(37,99,235,0.4);
    cursor: pointer;
    transition: transform var(--t-fast);
}

.calc__range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc__range--disabled::-webkit-slider-thumb {
    background: var(--c-text-light);
    cursor: not-allowed;
    box-shadow: none;
}

.calc__range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: var(--c-primary-500);
    box-shadow: 0 2px 8px rgba(37,99,235,0.4);
    cursor: pointer;
}

.calc__range--disabled::-moz-range-thumb {
    background: var(--c-text-light);
    cursor: not-allowed;
    box-shadow: none;
}

.calc__range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--c-text-light);
}

/* Period selector */
.calc__period-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.calc__period {
    padding: 10px 14px;
    border-radius: var(--r-md);
    border: 2px solid var(--c-border);
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text);
    transition: all var(--t-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.calc__period:hover { border-color: var(--c-primary-300); }

.calc__period--active {
    border-color: var(--c-primary-500);
    background: var(--c-primary-50);
    color: var(--c-primary-500);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.calc__period-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--r-full);
    background: var(--c-primary-500);
    color: white;
}

/* Promo code */
.calc__promo {
    display: flex;
    gap: 8px;
}

.calc__promo-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--c-border);
    border-radius: var(--r-md);
    font-family: var(--ff-body);
    font-size: 13px;
    color: var(--c-text);
    outline: none;
    transition: border-color var(--t-fast);
}

.calc__promo-input::placeholder {
    color: var(--c-text-light);
}

.calc__promo-input:focus {
    border-color: var(--c-primary-400);
}

.calc__promo-btn {
    padding: 10px 18px;
    border-radius: var(--r-md);
    background: var(--c-primary-50);
    color: var(--c-primary-500);
    font-weight: 600;
    font-size: 13px;
    border: 2px solid var(--c-primary-100);
    transition: all var(--t-fast);
    white-space: nowrap;
}

.calc__promo-btn:hover {
    background: var(--c-primary-500);
    color: white;
    border-color: var(--c-primary-500);
}

.calc__promo-status {
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.calc__promo-status--success {
    color: #34D399;
}

.calc__promo-status--error {
    color: #F87171;
}

/* Calculator Result */
.calc__result {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.calc__result-inner {
    background: var(--c-primary-900);
    border-radius: var(--r-xl);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.calc__result-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.calc__result-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(96,165,250,0.15);
}

.calc__result-ring--1 { width: 200px; height: 200px; top: 0; right: 0; }
.calc__result-ring--2 { width: 300px; height: 300px; top: -50px; right: -50px; }

.calc__result-header {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    position: relative;
}

.calc__result-total {
    margin-bottom: 16px;
    position: relative;
}

.calc__result-amount {
    font-family: var(--ff-display);
    font-size: 36px;
    font-weight: 800;
    display: block;
    transition: all var(--t-base);
}

.calc__result-amount.updating {
    transform: scale(1.05);
    color: var(--c-accent-light);
}

.calc__result-currency {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
}

.calc__result-breakdown {
    position: relative;
    margin-bottom: 14px;
}

.calc__result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.calc__result-line span:last-child {
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

.calc__result-line--discount {
    color: #34D399 !important;
}

.calc__result-line--discount span {
    color: #34D399 !important;
}

.calc__result-line--promo {
    color: #A78BFA !important;
}

.calc__result-line--promo span {
    color: #A78BFA !important;
}

.calc__result-line--period {
    padding-top: 12px;
}

.calc__result-line--period strong {
    font-family: var(--ff-display);
    font-size: 18px;
    color: white;
}

.calc__result-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 0;
}

.calc__result-note {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--r-md);
    margin-bottom: 14px;
    line-height: 1.4;
}

.calc__result-cta {
    position: relative;
    padding: 14px 28px;
    font-size: 15px;
}

/* Custom block below calculator */
.calc__custom {
    text-align: center;
    margin-top: 16px;
    padding: 14px 20px;
    background: white;
    border-radius: var(--r-lg);
    border: 1px dashed var(--c-primary-200);
}

.calc__custom p {
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text-muted);
}

.calc__custom-link {
    font-weight: 700;
    color: var(--c-primary-500);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--t-fast);
}

.calc__custom-link:hover {
    color: var(--c-primary-700);
}

/* --- B2B Services --- */
.services {
    padding: var(--s-section) 0;
    background: var(--c-bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.service-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    transition: all var(--t-base);
}

.service-card:hover {
    border-color: var(--c-primary-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card__price {
    font-family: var(--ff-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--c-primary-500);
    margin-bottom: 12px;
}

.service-card__price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--c-text-muted);
}

.service-card__title {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 12px;
}

.service-card__text {
    font-size: 15px;
    color: var(--c-text-muted);
    line-height: 1.6;
}

.services__total {}

.services__total-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--g-dark);
    border-radius: var(--r-xl);
    padding: 28px 36px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services__total-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.services__total-text span {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.services__total-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
}

.services__total-price {
    text-align: right;
    white-space: nowrap;
}

.services__total-amount {
    font-family: var(--ff-display);
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, #60A5FA, #67E8F9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services__total-currency {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
}

/* --- Live Example Section --- */
.example {
    padding: 48px 0 64px;
    background: var(--c-bg);
}

.example .section-header {
    margin-bottom: 32px;
}

.example__layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.example__sidebar-inner {
    max-width: 440px;
}

.example__sidebar .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.example__sidebar .section-subtitle {
    text-align: left;
    margin-bottom: 32px;
}

.example__channel-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.example__channel-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.example__channel-name {
    font-family: var(--ff-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--c-text);
}

.example__channel-sub {
    font-size: 14px;
    color: var(--c-text-muted);
    margin-top: 2px;
}

.example__desc {
    font-size: 16px;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.example__desc strong {
    color: var(--c-text);
}

.example__list {
    margin-bottom: 28px;
}

.example__list li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: var(--c-text);
    margin-bottom: 8px;
}

.example__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g-primary);
}

/* Phone Frame */
.example__phone {
    background: #17212B;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10,22,40,0.25), 0 0 0 1px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    height: 70vh;
    max-height: 720px;
    min-height: 480px;
    width: 100%;
}

.example__phone-header {
    background: #242F3D;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.example__phone-back {
    color: #6AB2F2;
    display: flex;
    align-items: center;
}

.example__phone-ava {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.example__phone-info {
    flex: 1;
    min-width: 0;
}

.example__phone-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.example__phone-subs {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.example__phone-live {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #34D399;
    background: rgba(52,211,153,0.12);
    padding: 3px 8px;
    border-radius: var(--r-full);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.example__phone-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.example__phone-messages::-webkit-scrollbar {
    width: 4px;
}

.example__phone-messages::-webkit-scrollbar-track {
    background: transparent;
}

.example__phone-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* Scroll hint */
.example__scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: #242F3D;
    color: rgba(106,178,242,0.5);
    font-size: 11px;
    flex-shrink: 0;
    animation: hintGlow 3s ease-in-out infinite;
    transition: opacity 0.5s;
    text-shadow: 0 0 6px rgba(106,178,242,0.15);
}

.example__scroll-hint svg {
    filter: drop-shadow(0 0 3px rgba(106,178,242,0.2));
}

.example__scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes hintGlow {
    0%, 100% {
        opacity: 0.6;
        text-shadow: 0 0 6px rgba(106,178,242,0.1);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(106,178,242,0.35);
    }
}

/* Feed loader */
.example__feed-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 200px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

.example__feed-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #6AB2F2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.example__feed-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 200px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

.example__feed-error a {
    color: #6AB2F2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Telegram Message Bubbles */
.tg-msg {
    background: #182533;
    border-radius: 12px 12px 12px 4px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.85);
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tg-msg__img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    display: block;
}

.tg-msg__video-stub {
    border-radius: 6px;
    padding: 28px 16px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(30,45,65,0.9), rgba(20,30,50,0.95));
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-align: center;
}

.tg-msg__video-stub svg {
    opacity: 0.4;
}

.tg-msg__grouped {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.tg-msg__grouped-item {
    position: absolute;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.15);
}

.tg-msg__grouped-video {
    background: linear-gradient(135deg, rgba(30,45,65,0.9), rgba(20,30,50,0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
}

.tg-msg__text {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tg-msg__text a {
    color: #6AB2F2;
    text-decoration: none;
}

.tg-msg__text a:hover {
    text-decoration: underline;
}

.tg-msg__text b,
.tg-msg__text strong {
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

.tg-msg__text i,
.tg-msg__text em {
    font-style: italic;
}

.tg-msg__text code {
    background: rgba(255,255,255,0.08);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12.5px;
}

.tg-msg__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}

.tg-msg__views,
.tg-msg__date {
    display: flex;
    align-items: center;
    gap: 3px;
}

.tg-msg__views svg {
    opacity: 0.5;
}

/* --- CTA Section --- */
.cta {
    position: relative;
    padding: 120px 0 80px;
    background: var(--g-hero);
    text-align: center;
    overflow: hidden;
}

.cta__wave-top {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    line-height: 0;
}

.cta__wave-top svg {
    width: 100%;
    height: 60px;
}

.cta__wave-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
}

.cta__wave-bottom svg {
    width: 100%;
    height: 50px;
}

.cta__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.3;
}

.cta__bg canvas {
    width: 100%;
    height: 100%;
}

.cta__content {
    position: relative;
    z-index: 2;
}

.cta__title {
    font-family: var(--ff-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
}

.cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* --- Footer --- */
.footer {
    background: var(--c-primary-900);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 32px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}

.footer__brand { max-width: 360px; }

.footer__logo {
    height: 32px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer__desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
}

.footer__links {
    display: flex;
    gap: 64px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__col h4 {
    font-family: var(--ff-display);
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.footer__col a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: color var(--t-fast);
}

.footer__col a:hover { color: white; }

.footer__bottom {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.features__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.features__grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.features__grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.features__grid .reveal:nth-child(6) { transition-delay: 0.5s; }
.features__grid .reveal:nth-child(7) { transition-delay: 0.6s; }

.pricing__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.pricing__grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.services__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* --- Social Proof (mobile only) --- */
.social-proof {
    display: none;
    background: var(--c-bg);
    padding: 20px 0;
}

.social-proof__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-proof__item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.social-proof__value {
    font-family: var(--ff-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--c-primary-500);
}

.social-proof__label {
    font-size: 13px;
    color: var(--c-text-muted);
}

.social-proof__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-border);
    flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root { --s-section: 56px; }

    .section-header { margin-bottom: 32px; }

    .feature-card { flex: 0 0 calc(50% - 10px); }
    .pricing__grid { grid-template-columns: repeat(2, 1fr); }

    .pricing-card--featured {
        transform: none;
        grid-column: 1 / -1;
    }
    .pricing-card--featured:hover { transform: translateY(-8px); }

    .calc {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .calc__result {
        position: static;
        width: 100%;
    }

    .step { grid-template-columns: 80px 1fr; }
    .step__visual { display: none; }

    .how-it-works { padding: 56px 0; }

    .services__total-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px 28px;
    }

    .services__total-price { text-align: center; }

    .example__layout { grid-template-columns: 400px 1fr; gap: 32px; }

    .cta { padding: 100px 0 64px; }
    .footer { padding: 40px 0 28px; }
}

@media (max-width: 768px) {
    :root { --s-section: 40px; }

    .header__nav { display: none; }
    .header__buttons { display: none; }

    .header__burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        z-index: 1001;
    }

    .header__burger span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all var(--t-base);
    }

    .header--scrolled .header__burger span { background: var(--c-text); }

    .header__burger--open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background: white;
    }
    .header__burger--open span:nth-child(2) { opacity: 0; }
    .header__burger--open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background: white;
    }

    .mobile-br { display: inline; }

    /* Hero: Clean Focus mobile layout */
    .hero {
        min-height: 100svh;
        padding: 80px 0 60px;
        align-items: stretch;
    }
    .hero__content {
        text-align: left;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .hero__badge { display: none; }
    .hero__title {
        font-size: clamp(28px, 7vw, 48px);
        margin-bottom: 20px;
    }
    .hero__subtitle {
        margin: 0 0 32px;
        font-size: 15px;
        max-width: none;
    }
    .hero__actions {
        margin-bottom: 0;
        flex-direction: column;
        gap: 16px;
    }
    .hero__actions .btn--primary {
        width: 100%;
        justify-content: center;
    }
    .hero__actions .btn--ghost-light {
        background: none;
        border: none;
        box-shadow: none;
        padding: 8px 0;
        font-size: 14px;
        color: rgba(255,255,255,0.6);
        justify-content: center;
    }
    .hero__actions .btn--ghost-light:hover {
        background: none;
        color: rgba(255,255,255,0.9);
        transform: none;
    }

    /* Stats carousel — one at a time, centered in empty space */
    .hero__stats {
        order: -1;
        margin-top: auto;
        margin-bottom: auto;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100px;
        overflow: hidden;
    }
    .hero__stat {
        position: absolute;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: statCycle 9s ease-in-out infinite;
    }
    .hero__stat:nth-child(1) { animation-delay: 0s; }     /* includes divider offsets */
    .hero__stat:nth-child(3) { animation-delay: 3s; }
    .hero__stat:nth-child(5) { animation-delay: 6s; }
    .hero__stat-number {
        font-family: var(--ff-display);
        font-size: 44px;
        font-weight: 700;
        color: rgba(255,255,255,0.8);
    }
    .hero__stat-suffix {
        font-family: var(--ff-display);
        font-size: 28px;
        font-weight: 600;
        color: rgba(255,255,255,0.5);
    }
    .hero__stat-label {
        font-size: 14px;
        color: rgba(255,255,255,0.4);
        letter-spacing: 0.03em;
        margin-top: 4px;
    }
    .hero__stat-divider { display: none; }

    @keyframes statCycle {
        0%        { opacity: 0; transform: translateY(20px); }
        5%, 28%   { opacity: 1; transform: translateY(0); }
        33%       { opacity: 0; transform: translateY(-20px); }
        100%      { opacity: 0; transform: translateY(20px); }
    }

    .hero__wave svg { height: 50px; }

    /* Social proof bar — not needed, stats are in hero */
    .social-proof { display: none; }

    .section-header { margin-bottom: 24px; }
    .section-title { font-size: clamp(22px, 5vw, 32px); margin-bottom: 10px; }
    .section-subtitle { font-size: 15px; }

    .feature-card { flex: 0 0 100%; padding: 20px 18px; }
    .feature-card__icon { width: 40px; height: 40px; margin-bottom: 10px; }
    .feature-card__title { font-size: 16px; margin-bottom: 6px; }
    .feature-card__text { font-size: 14px; }

    .wave-divider svg { height: 36px; }

    .how-it-works { padding: 40px 0; }
    .step { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
    .step__number { font-size: 30px; }
    .step__title { font-size: 17px; margin-bottom: 4px; }
    .step__text { font-size: 14px; }
    .step__connector svg { height: 32px; }

    .pricing__grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
    .pricing-card { padding: 22px 20px 20px; }
    .pricing-card--featured { transform: none; }
    .pricing-card__header { margin-bottom: 12px; }
    .pricing-card__name { font-size: 20px; margin-bottom: 8px; }
    .pricing-card__amount { font-size: 28px; }
    .pricing-card__desc { font-size: 13px; margin-bottom: 10px; }
    .pricing-card__list li { font-size: 13px; margin-bottom: 4px; }
    .pricing-card__footer .btn { padding: 14px 28px; font-size: 15px; }

    .discounts__inner { padding: 18px 20px; }
    .discounts__title { font-size: 16px; margin-bottom: 12px; }
    .discounts__items { flex-direction: row; gap: 8px; }
    .discount-item { padding: 10px 12px; flex: 1; }
    .discount-item__period { font-size: 12px; }
    .discount-item__value { font-size: 20px; }

    .calc__form { padding: 18px; gap: 20px; }
    .calc__label { font-size: 13px; margin-bottom: 8px; }
    .calc__label-row { margin-bottom: 8px; }
    .calc__value { font-size: 16px; }
    .calc__result-inner { padding: 22px; }
    .calc__result-amount { font-size: 32px; }
    .calc__result-note { font-size: 12px; padding: 8px 10px; }

    .calc__period-selector { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .calc__period { padding: 10px 12px; font-size: 13px; min-height: 44px; display: flex; align-items: center; justify-content: center; }

    .calc__promo { flex-direction: column; gap: 8px; }
    .calc__promo-btn { width: 100%; }

    .calc__custom { padding: 16px; margin-top: 20px; }
    .calc__custom p { font-size: 14px; }

    .example__layout { grid-template-columns: 1fr; gap: 24px; padding: 0 24px; }
    .example__phone { height: 50vh; max-height: 400px; min-height: 300px; border-radius: 16px; }
    .example__sidebar { text-align: center; }
    .example__sidebar-inner { margin: 0 auto; }
    .example__sidebar .section-title,
    .example__sidebar .section-subtitle { text-align: center; }
    .example__desc { font-size: 15px; margin-bottom: 16px; text-align: center; }
    .example__list { margin-bottom: 20px; text-align: left; }
    .example__list li { font-size: 14px; margin-bottom: 6px; }
    .example__sidebar .btn { width: 100%; justify-content: center; }

    .services__grid { grid-template-columns: 1fr; gap: 12px; }
    .service-card { padding: 20px 18px; }
    .service-card__price { font-size: 22px; margin-bottom: 8px; }
    .service-card__title { font-size: 16px; margin-bottom: 8px; }
    .service-card__text { font-size: 14px; }
    .services__total-inner { padding: 20px; }
    .services__total-text span { font-size: 18px; margin-bottom: 4px; }
    .services__total-text p { font-size: 13px; }
    .services__total-amount { font-size: 32px; }

    .cta { padding: 80px 0 60px; }
    .cta__wave-top svg { height: 36px; }
    .cta__wave-bottom svg { height: 30px; }
    .cta__title { margin-bottom: 12px; }
    .cta__subtitle { font-size: 15px; margin-bottom: 20px; }
    .cta__actions { flex-direction: column; gap: 12px; }

    .footer { padding: 32px 0 20px; }
    .footer__top { flex-direction: column; gap: 28px; padding-bottom: 20px; margin-bottom: 16px; }
    .footer__links { gap: 24px; }

    .btn--lg { padding: 14px 28px; font-size: 15px; }
}

@media (max-width: 400px) {
    :root { --s-section: 32px; }

    .hero { padding: 0 0 48px; }
    .hero__title { font-size: 24px; }
    .hero__subtitle { font-size: 14px; margin: 0 0 24px; }
    .hero__stat-number { font-size: 36px; }
    .hero__stat-suffix { font-size: 22px; }
    .hero__stat-label { font-size: 12px; }
    .hero__wave svg { height: 36px; }

    .section-header { margin-bottom: 20px; }
    .section-title { font-size: 20px; }
    .section-subtitle { font-size: 14px; }
    .section-tag { font-size: 11px; padding: 4px 12px; margin-bottom: 12px; }

    .feature-card { padding: 16px 14px; }
    .feature-card__icon { width: 36px; height: 36px; margin-bottom: 8px; }
    .feature-card__title { font-size: 15px; }
    .feature-card__text { font-size: 14px; }

    .how-it-works { padding: 32px 0; }
    .step { padding: 14px; gap: 10px; }
    .step__number { font-size: 26px; }
    .step__title { font-size: 15px; }
    .step__text { font-size: 14px; }

    .pricing-card { padding: 18px 16px 16px; }
    .pricing-card__amount { font-size: 24px; }
    .pricing-card__footer .btn { padding: 12px 24px; font-size: 14px; }

    .calc__form { padding: 14px; gap: 16px; }
    .calc__result-inner { padding: 18px; }
    .calc__result-amount { font-size: 28px; }
    .calc__period { padding: 10px 12px; font-size: 12px; min-height: 44px; }

    .example__phone { height: 45vh; max-height: 360px; min-height: 280px; }
    .tg-msg { padding: 8px 10px; font-size: 14px; }

    .service-card { padding: 16px 14px; }
    .services__total-inner { padding: 16px; }
    .services__total-amount { font-size: 28px; }

    .cta { padding: 64px 0 48px; }
    .footer { padding: 24px 0 16px; }
    .footer__top { gap: 20px; padding-bottom: 16px; margin-bottom: 12px; }
    .footer__links { gap: 16px; }
}
