/* ============================================================
   КОНТЕНТ-МАШИНА — Desktop Styles WHITE THEME (min-width: 769px)
   ============================================================ */

:root {
    --bg:           #f0f4f8;
    --bg-alt:       #e8eef5;
    --bg-card:      #ffffff;
    --bg-section:   #f7fafc;
    --border:       rgba(37, 99, 235, 0.12);
    --border-hov:   rgba(37, 99, 235, 0.35);
    --blue:         #2563eb;
    --blue-light:   #60a5fa;
    --blue-pale:    #dbeafe;
    --blue-glow:    rgba(37, 99, 235, 0.18);
    --text:         #1e293b;
    --text-muted:   #64748b;
    --text-dim:     #94a3b8;
    --white:        #ffffff;
    --radius-sm:    8px;
    --radius-md:    14px;
    --radius-lg:    22px;
    --radius-xl:    32px;
    --shadow-sm:    0 2px 8px rgba(37,99,235,0.07);
    --shadow-md:    0 8px 32px rgba(37,99,235,0.10);
    --shadow-lg:    0 20px 60px rgba(37,99,235,0.13);
    --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
    --font:         'Inter', system-ui, sans-serif;
    --header-h:     72px;
    --max-w:        1500px;   /* wide: fits 2k/3k monitors well */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, p, .section-label,
.hero-badge, .hero-subtitle, .contact-subtitle,
.footer-copy, .modal-text, .modal-sub { text-wrap: balance; }

/* ── CONTAINER ─────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 80px);  /* responsive padding for ultrawide */
}

/* ─── ULTRAWIDE (≥ 2000px) — fill the space beautifully ─── */
@media (min-width: 2000px) {
    :root { --max-w: 1800px; }
    .section-title { font-size: 52px; }
    .hero-title    { font-size: 76px; }
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .pricing-grid  { gap: 32px; }
    .preview-grid  { gap: 48px; }
    .steps-track   { max-width: 1800px; }
    .feature-body h3 { font-size: 22px; }
    .feature-body p  { font-size: 17px; }
    .price-amount  { font-size: 40px; }
    .step-img-box { max-width: 600px; }
    .step-text-col h3 { font-size: 38px; }
    .step-text-col p { font-size: 22px; }
}

/* ─── SUPER ULTRAWIDE (3440px+) ─────────────────────────── */
@media (min-width: 2800px) {
    :root { --max-w: 2400px; }
    .hero-title  { font-size: 96px; }
    .section-title { font-size: 64px; }
    .container { padding: 0 clamp(32px, 3vw, 120px); }
    .features-grid { gap: 40px; }
}

/* ── SECTION FULL (1 section = 1 screen) ──────────────── */
.section-full {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 40px) 0 60px;
}

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 16px var(--blue-glow);
}
.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.28);
}

.btn-ghost {
    background: rgba(37,99,235,0.06);
    color: var(--blue);
    border: 1.5px solid var(--border-hov);
}
.btn-ghost:hover {
    background: var(--blue-pale);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
}
.btn-outline:hover {
    background: var(--blue-pale);
    transform: translateY(-2px);
}

.btn-large { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-md); }
.btn-full  { width: 100%; justify-content: center; }

/* ── HEADER ────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(240, 244, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(240,244,248,0.97);
    box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--text);
}
.logo img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
}
.logo-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}
.logo-tag {
    font-size: 9px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav-link {
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--blue);
    background: var(--blue-pale);
}

.btn-header { padding: 10px 22px; font-size: 14px; }
.burger { display: none; }
.mobile-menu { display: none; }

/* ── SECTION HEADER ────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}
.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blue-pale);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 900;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.7;
}

.wire-start-anchor {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
    height: 16px;
}

.wire-start-dot {
    width: 16px;
    height: 16px;
    background: var(--blue-light);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--blue-light), 0 0 30px var(--blue);
}

/* ══ HERO ══════════════════════════════════════════════════ */
.hero {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding-top: var(--header-h);
}

/* Subtle dot pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(37,99,235,0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    min-height: calc(100vh - var(--header-h));
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--blue-pale);
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 22px;
}
.badge-dot {
    width: 8px; height: 8px;
    background: var(--blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(37,99,235,0); }
}

.hero-title {
    font-size: clamp(40px, 4.5vw, 64px);
    font-weight: 900;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 20px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 22px; font-weight: 900; color: var(--blue); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero visual: image blends with bg */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* The image bg must match page bg = #f0f4f8 */
}

.hero-robot {
    width: 100%;
    max-width: 640px;
    /* image background IS the page color, so it blends perfectly */
    /* Subtle parallax via JS transform */
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ══ FEATURES ═══════════════════════════════════════════════ */
.features {
    background: var(--white);
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the image wrapper */
    text-align: center; /* Center the text */
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hov);
}

.feature-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feature-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* НЕ обрезаем, contain */
    transition: transform 0.4s ease;
}
.feature-card:hover .feature-img-wrap img { transform: scale(1.05); }

.feature-body {
    padding: 22px 24px 26px;
    flex: 1;
    background: var(--white);
    border-top: 1px solid var(--border);
    width: 100%; /* Ensure text block occupies full width to properly center text */
}

.feature-body h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-body p {
    font-size: 15px;          /* крупнее чем было */
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 400;
}

/* ══ HOW IT WORKS ════════════════════════════════════════════ */
.how-it-works {
    background: var(--bg);
    padding: 80px 0;
    position: relative;
}

.how-it-works .section-header { 
    margin-bottom: 20px; 
    position: relative;
}

.how-it-works .section-subtitle {
    font-size: 24px;
    font-weight: 500;
}

.steps-track {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 48px;
}

/* SVG wire overlay */
.wire-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

/* Starfield Background */
.starfield {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.starfield::before, .starfield::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 15% 25%, rgba(255,255,255,1) 1px, transparent 0),
        radial-gradient(2.5px 2.5px at 35% 75%, rgba(255,255,255,1) 1px, transparent 0),
        radial-gradient(3px 3px at 75% 20%, rgba(100,180,255,1) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 85% 85%, rgba(255,255,255,1) 1px, transparent 0);
    background-size: 600px 900px;
}
.starfield::before {
    animation: stars-twinkle-fast 3s infinite ease-in-out alternate;
}
.starfield::after {
    background-image: 
        radial-gradient(3px 3px at 25% 15%, rgba(255,255,255,1) 1px, transparent 0),
        radial-gradient(2px 2px at 65% 85%, rgba(100,180,255,1) 1px, transparent 0),
        radial-gradient(1px 1px at 80% 40%, rgba(255,255,255,1) 1px, transparent 0),
        radial-gradient(2.5px 2.5px at 45% 35%, rgba(255,255,255,1) 1px, transparent 0);
    background-size: 500px 700px;
    animation: stars-twinkle-slow 5s infinite ease-in-out alternate-reverse;
}
@keyframes stars-twinkle-fast { 
    0% { opacity: 0.1; background-position: 0 0; } 
    100% { opacity: 0.8; background-position: 0 -50px; } 
}
@keyframes stars-twinkle-slow { 
    0% { opacity: 0.2; background-position: 0 0; } 
    100% { opacity: 0.9; background-position: 0 -100px; } 
}

/* Step row — snake steps */
.step-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Right: img left, text right */
.step-row--right .step-img-col  { order: 1; }
.step-row--right .step-text-col { order: 2; }

/* Left: text left, img right */
.step-row--left .step-text-col { order: 1; }
.step-row--left .step-img-col  { order: 2; }

/* ── Scroll wire animation status classes ─────────────────── */
.wire-segment { /* Managed dynamically by JS inline styles */ }

.step-img-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0 auto;
    max-width: 600px;
}

.step-text-col {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
}

.step-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-row:hover .step-img-box img {
    transform: scale(1.03) translateY(-10px);
}

.step-text-col h3 {
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 800;
    color: var(--white); /* It's dark theme */
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.step-text-col p {
    font-size: 19px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* Premium Frame */
.premium-frame {
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(0,0,0,0));
    border: 1px solid rgba(37,99,235,0.4) !important;
    box-shadow: 0 0 50px rgba(37,99,235,0.15) !important;
    position: relative;
    overflow: hidden;
}
.premium-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
}
.premium-intro {
    font-size: 20px !important;
    color: var(--white) !important;
    margin-bottom: 24px;
}
.premium-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}
.premium-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}
.premium-list .icon { font-size: 24px; flex-shrink: 0; }
.highlight-text {
    font-size: 17px !important;
    color: var(--blue-light) !important;
    font-weight: 600;
    line-height: 1.6;
    background: rgba(37,99,235,0.15);
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 4px solid var(--blue);
}

/* ══ PRICING ════════════════════════════════════════════════ */
.pricing {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.price-card {
    border-radius: var(--radius-lg);
    background: var(--bg-section);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hov);
}

.price-card.featured {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 8px 40px rgba(37,99,235,0.3);
    transform: scale(1.03);
}
.price-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 20px 60px rgba(37,99,235,0.35);
}

.price-card-inner {
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.popular-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    width: fit-content;
}

.plan-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.price-icon {
    font-size: 38px;
    margin-bottom: -4px;
    border-radius: 50%;
    background: rgba(37,99,235,0.08);
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.price-card.featured .price-icon {
    background: rgba(255,255,255,0.15);
}
.price-card.featured .plan-name { color: var(--white); }

.price-block { display: flex; flex-direction: column; gap: 4px; }
.price-amount { font-size: 32px; font-weight: 900; color: var(--text); line-height: 1; }
.price-card.featured .price-amount { color: var(--white); }
.price-period { font-size: 13px; color: var(--text-muted); }
.price-card.featured .price-period { color: rgba(255,255,255,0.7); }
.price-alt { font-size: 13px; color: var(--text-dim); margin-top: -8px; }
.price-card.featured .price-alt { color: rgba(255,255,255,0.6); }

.price-features { display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}
.price-card.featured .price-features li { color: rgba(255,255,255,0.85); }

.check-icon { color: var(--blue); font-weight: 700; flex-shrink: 0; }
.price-card.featured .check-icon { color: var(--white); }

/* Featured outline btn override */
.price-card.featured .btn-outline {
    border-color: var(--white);
    color: var(--white);
}
.price-card.featured .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Featured primary btn override */
.price-card.featured .btn-primary {
    background: var(--white);
    color: var(--blue);
}
.price-card.featured .btn-primary:hover {
    background: var(--blue-pale);
    color: var(--blue);
}

/* ══ CONTACT ════════════════════════════════════════════════ */
.contact {
    background: var(--bg);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-left .section-label { margin-bottom: 14px; }
.contact-left .section-title { text-align: left; font-size: clamp(28px, 3vw, 42px); }

.contact-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin: 18px 0 32px;
    line-height: 1.75;
}

.contact-benefits { display: flex; flex-direction: column; gap: 14px; }
.contact-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}
.cb-icon { font-size: 18px; }

/* ── FORM ──────────────────────────────────────────────── */
.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.required-mark { color: var(--blue); }

.form-group input {
    background: var(--bg);
    border: 1.5px solid rgba(37,99,235,0.15);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
    transition: var(--transition);
    outline: none;
    width: 100%;
}
.form-group input::placeholder { color: var(--text-dim); }
.form-group input:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--blue-pale);
}
.form-group input.error { border-color: #ef4444; }

/* ── CHECKBOX ──────────────────────────────────────────── */
.checkbox-group { margin-top: -4px; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox-custom {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border: 2px solid rgba(37,99,235,0.3);
    border-radius: 6px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 1px;
}
.checkbox-custom::after {
    content: '✓';
    font-size: 13px;
    font-weight: 800;
    color: var(--white);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}
.checkbox-label:hover .checkbox-custom { border-color: var(--blue); }
.checkbox-label input:checked ~ .checkbox-custom {
    background: var(--blue);
    border-color: var(--blue);
}
.checkbox-label input:checked ~ .checkbox-custom::after { opacity: 1; transform: scale(1); }

.checkbox-text { font-size: 12px; color: var(--text-muted); line-height: 1.65; }
.checkbox-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px;}
.checkbox-text a:hover { color: #1d4ed8; }

/* ── SUBMIT ────────────────────────────────────────────── */
.btn-submit { padding: 16px; font-size: 16px; border-radius: var(--radius-md); }
.btn-loader {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 28px 0;
}
.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-left { display: flex; align-items: center; gap: 24px; }
.footer .logo { color: var(--text); }
.footer .logo img { width: 26px; height: 26px; }
.footer .logo-name { font-size: 14px; }
.footer .logo-tag { display: none; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }

/* ══ PREVIEW SECTION ════════════════════════════════════════ */
.preview-section {
    background: var(--white);
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.preview-window {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center; /* helps centering the button */
}

.preview-win-header {
    text-align: center;
    width: 100%;
}

.preview-win-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.preview-win-disclaimer {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    background: transparent;
    border: none;
    padding: 0;
    margin: 8px auto 40px;
    width: 100%;
}

.preview-frame-wrap {
    width: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

/* Fake browser chrome bar */
.preview-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.browser-dot:nth-child(1) { background: #ef4444; }
.browser-dot:nth-child(2) { background: #f59e0b; }
.browser-dot:nth-child(3) { background: #22c55e; }

.browser-url {
    flex: 1;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-iframe {
    display: block;
    width: 100%;
    height: 900px;
    border: none;
    background: var(--white);
}

/* Transparent overlay — lets user interact only via open button */
.preview-iframe-overlay {
    position: absolute;
    inset: 40px 0 0 0; /* covers iframe, leaves browser bar */
    /* pointer-events: none by default — iframes are interactive */
    pointer-events: none;
    /* Subtle bottom fade mask */
    background: linear-gradient(to top,
        rgba(255,255,255,0.6) 0%,
        rgba(255,255,255,0) 25%
    );
}

.preview-open-btn {
    align-self: center;
    gap: 8px;
    font-size: 14px;
    padding: 11px 22px;
}
.preview-open-btn svg { flex-shrink: 0; }
.preview-open-btn:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ── MODAL ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,41,59,0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 52px 44px;
    max-width: 480px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 40px 80px rgba(37,99,235,0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--blue-pale); color: var(--blue); }

.modal-icon { font-size: 52px; margin-bottom: 20px; }
.modal-title { font-size: 28px; font-weight: 900; color: var(--text); margin-bottom: 12px; }
.modal-text { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.modal-sub {
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 18px;
    background: var(--blue-pale);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

/* ── AOS ───────────────────────────────────────────────── */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos="fade-up"].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos-delay="0"]   { transition-delay: 0ms; }
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ══ DARK THEME OVERRIDES (.section-dark) ══════════════════ */
:root {
    --bg-dark:      #0a0f18;
    --card-dark:    rgba(255,255,255,0.03);
    --border-dark:  rgba(255,255,255,0.08);
    --text-dark:    #ffffff;
    --text-muted-dark: rgba(255,255,255,0.65);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

.section-dark .section-title { color: var(--text-dark); }
.section-dark .section-subtitle { color: var(--text-muted-dark); }
.section-dark .section-label { 
    background: rgba(37,99,235,0.15); 
    border-color: rgba(37,99,235,0.3); 
    color: var(--blue-light);
}

/* Features Dark */
.section-dark.features .feature-card {
    background: var(--bg-dark);
    border-color: var(--bg-dark); 
    box-shadow: none;
}
.section-dark.features .feature-card:hover {
    transform: translateY(-6px);
}
.section-dark.features .feature-img-wrap {
    background: transparent;
    padding: 0;
}
.section-dark.features .feature-img-wrap img {
    object-fit: contain;
}
.section-dark.features .feature-body {
    background: transparent;
    border-top: none;
    padding: 16px 0;
}
.section-dark.features .feature-body h3 { 
    color: var(--text-dark); 
    font-size: 24px; 
}
.section-dark.features .feature-body p { 
    color: var(--text-muted-dark); 
    font-size: 17px; 
}

/* How It Works Dark */
.section-dark.how-it-works .step-img-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.section-dark.how-it-works .step-row:hover .step-img-box {
    transform: scale(1.05); /* slightly scale image instead of card */
    box-shadow: none;
    border-color: transparent;
}
.section-dark.how-it-works .step-text-col h3 { 
    color: var(--text-dark); 
    font-size: clamp(26px, 2.8vw, 36px); 
}
.section-dark.how-it-works .step-text-col p { 
    color: var(--text-muted-dark); 
    font-size: 18px; 
}


::selection { background: var(--blue-pale); color: var(--blue); }
