/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #09090f;
    --bg-secondary: #0f0f1a;
    --bg-card: rgba(255,255,255,0.03);
    --border-subtle: rgba(255,255,255,0.06);
    --border-hover: rgba(99,102,241,0.3);
    --text-primary: #f8fafc;
    --text-secondary: rgba(248,250,252,0.6);
    --text-muted: rgba(248,250,252,0.4);
    --accent-start: #6366f1;
    --accent-end: #8b5cf6;
    --accent-glow: rgba(99,102,241,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    width: 100%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ FOCUS STATES ============ */
:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
    border-radius: 4px;
}
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
}

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: transparent;
    transition: all 0.3s ease;
    max-width: 100vw;
}
.header.scrolled {
    background: rgba(9, 9, 15, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    height: 35px;
    width: auto;
    display: block;
}
.footer-logo-img {
    height: 32px;
}
.nav {
    display: flex;
    gap: 32px;
}
.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav a:hover { color: var(--text-primary); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10000;
}
.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn-header {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(99,102,241,0.3);
}
.btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(99,102,241,0.5);
}

/* ============ HERO ============ */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}
.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    max-width: 100%;
    height: 600px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.08) 40%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    pointer-events: none;
    animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}
/* Lava lamp blobs */
.lava-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.lava-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    will-change: transform;
}
/* Hero blobs */
.lava-1 {
    width: 350px;
    height: 350px;
    background: rgba(99, 102, 241, 0.2);
    top: 10%;
    left: 15%;
    animation: lavaFloat1 14s ease-in-out infinite;
}
.lava-2 {
    width: 280px;
    height: 280px;
    background: rgba(139, 92, 246, 0.18);
    top: 30%;
    right: 10%;
    animation: lavaFloat2 18s ease-in-out infinite;
}
.lava-3 {
    width: 200px;
    height: 200px;
    background: rgba(192, 132, 252, 0.12);
    bottom: 15%;
    left: 40%;
    animation: lavaFloat3 12s ease-in-out infinite;
}
/* CTA blobs */
.lava-cta-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.15);
    top: -10%;
    left: 20%;
    animation: lavaFloat2 16s ease-in-out infinite;
}
.lava-cta-2 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.12);
    bottom: -5%;
    right: 15%;
    animation: lavaFloat1 13s ease-in-out infinite;
}
@keyframes lavaFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }
    25% {
        transform: translate(40px, -30px) scale(1.1);
        border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    75% {
        transform: translate(20px, 40px) scale(1.05);
        border-radius: 50% 40% 50% 60% / 35% 55% 45% 65%;
    }
}
@keyframes lavaFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 50% 40% 60% 50% / 40% 60% 40% 60%;
    }
    33% {
        transform: translate(-35px, 25px) scale(1.08);
        border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    }
    66% {
        transform: translate(25px, -35px) scale(0.92);
        border-radius: 60% 30% 50% 40% / 50% 50% 40% 60%;
    }
}
@keyframes lavaFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%;
    }
    50% {
        transform: translate(30px, -20px) scale(1.15);
        border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    }
}

.hero-inner { position: relative; z-index: 1; }

/* CSS-only hero entrance animations */
.hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--delay) * 0.12s + 0.1s);
}
@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #a5b4fc;
    margin-bottom: 28px;
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: dotBlink 2s infinite;
}
@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(99,102,241,0.35);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(99,102,241,0.5);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary.large {
    padding: 18px 44px;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}
.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.trust-avatars { display: flex; }
.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--bg-primary);
    margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }

/* Hero preview — "AI building" animation */
.hero-preview {
    max-width: 850px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 100px rgba(99,102,241,0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.hero-preview:hover {
    transform: translateY(-4px);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        0 0 120px rgba(99,102,241,0.12);
}
.browser-frame {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #1a1a2e;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.browser-dots { display: flex; gap: 6px; }
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.browser-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
    padding: 6px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.preview-content {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    min-height: 320px;
}
.preview-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pn-logo { font-weight: 700; font-size: 15px; color: #fff; }
.pn-links { display: flex; gap: 20px; font-size: 13px; color: rgba(255,255,255,0.5); }
.preview-body { padding: 40px 28px; }
.preview-hero-area { margin-bottom: 28px; }

/* Build-in animation for preview elements */
.build-el {
    opacity: 0;
    transform: translateY(8px);
    animation: buildIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--bi) * 0.2s + 1.2s);
}
@keyframes buildIn {
    to { opacity: 1; transform: translateY(0); }
}

.ph-tag {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    background: rgba(99,102,241,0.3);
    margin-bottom: 14px;
}
.ph-title {
    width: 70%;
    height: 16px;
    border-radius: 4px;
    background: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    animation: buildIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, shimmer 2.5s ease-in-out infinite 3s;
    opacity: 0;
}
.ph-title.short { width: 45%; }
.ph-text {
    width: 85%;
    height: 7px;
    border-radius: 3px;
    background: rgba(255,255,255,0.15);
    margin-bottom: 6px;
    margin-top: 14px;
}
.ph-text.med { width: 65%; }
.preview-btns { display: flex; gap: 10px; margin-top: 20px; }
.pb {
    display: inline-block;
    width: 90px;
    height: 32px;
    border-radius: var(--radius-full);
}
.pb.primary { background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); }
.pb.outline { background: transparent; border: 1px solid rgba(255,255,255,0.15); }
.preview-cards { display: flex; gap: 12px; }
.pc {
    flex: 1;
    height: 70px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============ VALUE PROPS STRIP ============ */
.value-strip {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}
.value-strip-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.value-prop {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 340px;
}
.value-prop-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
}
.value-prop-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.value-prop-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}
.value-prop-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

/* ============ SECTION HEADERS ============ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a5b4fc;
    margin-bottom: 12px;
}
h2 {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* ============ HOW IT WORKS ============ */
.how {
    padding: 120px 0;
    background: var(--bg-primary);
}
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.step-connector {
    padding: 0 8px;
    opacity: 0.5;
    margin-top: -60px;
}
.step-card {
    flex: 1;
    max-width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-card:hover {
    border-color: var(--border-hover);
    background: rgba(99,102,241,0.04);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(99,102,241,0.1);
}
.step-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-start);
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.step-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #a5b4fc;
    transition: all 0.3s;
}
.step-card:hover .step-icon-wrap {
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
    transform: scale(1.05);
}
.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ FEATURES ============ */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 100%;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #a5b4fc;
    transition: all 0.3s;
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
}
.feature-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ INDUSTRIES ============ */
.industries {
    padding: 120px 0;
    background: var(--bg-primary);
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.industry-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.industry-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    transition: all 0.3s;
}
.industry-card:hover .industry-icon {
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
    transform: scale(1.05);
}
.industry-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.industry-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============ SOCIAL PROOF / STATS ============ */
.social-proof {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.stat-card {
    text-align: center;
    padding: 20px 50px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}
.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-pulse.animate {
    animation: statPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes statPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    flex-basis: 100%;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}
.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-subtle);
}

/* ============ TESTIMONIALS ============ */
.testimonials {
    padding: 120px 0;
    background: var(--bg-primary);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}
.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.ta-name { font-size: 14px; font-weight: 600; }
.ta-role { font-size: 12px; color: var(--text-muted); }

/* ============ FAQ ============ */
.faq {
    padding: 120px 0;
    background: var(--bg-secondary);
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    transition: border-color 0.3s;
    cursor: pointer;
}
.faq-item:hover { border-color: rgba(99,102,241,0.15); }
.faq-item:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: -2px;
    border-radius: var(--radius-sm);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
}
.faq-item:hover .faq-question { color: #a5b4fc; }
.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}
.faq-icon span {
    position: absolute;
    background: #a5b4fc;
    border-radius: 1px;
    transition: all 0.3s ease;
}
.faq-icon span:first-child {
    top: 50%;
    left: 4px;
    right: 4px;
    height: 2px;
    transform: translateY(-50%);
}
.faq-icon span:last-child {
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 2px;
    transform: translateX(-50%);
}
.faq-item.open .faq-icon span:last-child {
    transform: translateX(-50%) scaleY(0);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}
.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 22px;
}
.faq-answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============ CTA ============ */
.cta {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.04) 50%, var(--bg-secondary) 100%);
    position: relative;
    border-top: 1px solid rgba(99,102,241,0.1);
}
.cta > .cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 100%;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: ctaGlowFloat 6s ease-in-out infinite;
}
@keyframes ctaGlowFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px); }
}
.cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-inner h2 {
    font-size: 40px;
    margin-bottom: 12px;
}
.cta-inner p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 36px;
}
.cta-note {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============ FOOTER ============ */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.6;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}
.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card { padding: 20px 30px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    /* Mobile nav */
    .mobile-toggle { display: flex; }
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #09090f;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 9999;
    }
    .nav.open { display: flex; }
    .nav a {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-primary);
    }
    .nav a::after { display: none; }
    .btn-header { display: none; }
    .header { padding: 12px 0; }
    .header-inner { padding: 0 16px; }

    .hero h1 { font-size: 40px; }
    .hero-desc { font-size: 16px; }
    .hero { padding: 130px 0 70px; }
    .steps-grid { flex-direction: column; gap: 16px; }
    .step-connector { display: none; }
    .step-card { max-width: 100%; }
    .features-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; gap: 16px; }
    .stat-divider { width: 50px; height: 1px; }
    h2 { font-size: 32px; }
    .how, .features, .industries, .testimonials, .faq, .cta { padding: 80px 0; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-col { align-items: center; }
    .footer-logo { justify-content: center; }
    .footer-tagline { max-width: 100%; }
    .value-strip-grid { flex-direction: column; gap: 24px; align-items: stretch; }
    .value-prop { max-width: 100%; justify-content: flex-start; }
    .value-prop-divider { width: 50px; height: 1px; align-self: center; }
    .pn-links { display: none; }
    .hero-glow { width: 100%; max-width: 100%; }
    .cta > .cta-glow { width: 100%; max-width: 100%; }
    .lava-blob { display: none; }
    .hero::after { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .btn-primary { padding: 14px 28px; font-size: 15px; }
    .btn-primary.large { padding: 16px 32px; font-size: 15px; }
    h2 { font-size: 26px; }
    .hero-trust { flex-direction: column; text-align: center; }
    .stat-number { font-size: 36px; }
}

/* ============ PREMIUM CONTINUOUS ANIMATIONS ============ */

/* --- Animated gradient border on cards (hover) --- */
.feature-card,
.industry-card,
.testimonial-card,
.step-card {
    position: relative;
    background-clip: padding-box;
}
.feature-card::after,
.industry-card::after,
.step-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 40%, var(--accent-start) 50%, var(--accent-end) 60%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    animation: rotateBorder 4s linear infinite;
}
.feature-card:hover::after,
.industry-card:hover::after,
.step-card:hover::after {
    opacity: 1;
}
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes rotateBorder {
    to { --border-angle: 360deg; }
}

/* --- Pulsating icon glow --- */
.feature-icon,
.industry-icon,
.step-icon-wrap {
    position: relative;
}
.feature-icon::after,
.industry-icon::after,
.step-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
    opacity: 0;
    animation: iconPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}
.feature-card:hover .feature-icon::after,
.industry-card:hover .industry-icon::after,
.step-card:hover .step-icon-wrap::after {
    opacity: 1;
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.4); opacity: 0; }
}

/* --- Button shine sweep (continuous) --- */
@keyframes btnShine {
    0% { left: -100%; }
    100% { left: 200%; }
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: btnShine 4s ease-in-out infinite;
    pointer-events: none;
}
.btn-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: btnShine 4s ease-in-out infinite;
    pointer-events: none;
}
.btn-header {
    position: relative;
    overflow: hidden;
}

/* --- Hero badge shimmer --- */
.hero-badge {
    position: relative;
    overflow: hidden;
}
.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(165,180,252,0.08), transparent);
    animation: badgeShimmer 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes badgeShimmer {
    0%, 80% { left: -100%; }
    100% { left: 200%; }
}

/* --- Testimonial card — continuous subtle border shimmer --- */
.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(var(--shimmer-pos, -100deg), transparent 40%, rgba(99,102,241,0.25) 50%, rgba(139,92,246,0.25) 55%, transparent 65%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    animation: shimmerBorder 6s linear infinite;
}
.testimonial-card:hover::after {
    opacity: 1;
}
@property --shimmer-pos {
    syntax: '<angle>';
    initial-value: -100deg;
    inherits: false;
}
@keyframes shimmerBorder {
    to { --shimmer-pos: 260deg; }
}

/* --- Step connector animated dashes --- */
.step-connector svg line {
    animation: dashFlow 1.5s linear infinite;
}
@keyframes dashFlow {
    to { stroke-dashoffset: -8; }
}

/* --- CTA pulsing top border --- */
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-start), var(--accent-end), transparent);
    animation: ctaBorderPulse 3s ease-in-out infinite;
}
@keyframes ctaBorderPulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.6); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* --- Floating orbs in hero (ambient) --- */
.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.08), transparent 70%);
    animation: orbFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, -40px); }
}

/* --- Stats number continuous gradient shift --- */
.stat-number {
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}
.stat-suffix {
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Browser preview cards subtle pulse --- */
.pc {
    animation: cardBreath 4s ease-in-out infinite;
    animation-delay: calc(var(--bi, 0) * 0.3s + 3s);
}
.preview-cards .pc:nth-child(1) { animation-delay: 3s; }
.preview-cards .pc:nth-child(2) { animation-delay: 3.4s; }
.preview-cards .pc:nth-child(3) { animation-delay: 3.8s; }
@keyframes cardBreath {
    0%, 100% { border-color: rgba(255,255,255,0.06); }
    50% { border-color: rgba(99,102,241,0.2); }
}

/* --- Feature card top bar glow on hover --- */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end), #c084fc);
    opacity: 0;
    transition: opacity 0.3s;
    background-size: 200% 100%;
    animation: barGlow 2s ease-in-out infinite;
}
.feature-card:hover::before { opacity: 1; }
@keyframes barGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Mouse-follow spotlight on cards --- */
.feature-card,
.industry-card,
.step-card,
.testimonial-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
}
.feature-card:hover,
.industry-card:hover,
.step-card:hover,
.testimonial-card:hover {
    background: radial-gradient(circle 180px at var(--mouse-x) var(--mouse-y), rgba(99,102,241,0.06), var(--bg-card));
}

/* --- Section tag subtle glow animation --- */
.section-tag {
    text-shadow: 0 0 20px rgba(99,102,241,0);
    animation: tagGlow 4s ease-in-out infinite;
}
@keyframes tagGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(99,102,241,0); }
    50% { text-shadow: 0 0 20px rgba(99,102,241,0.3); }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-anim {
        opacity: 1;
        transform: none;
    }
    .build-el {
        opacity: 1;
        transform: none;
    }
    .marquee-track {
        animation: none;
    }
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
    .feature-card::after,
    .industry-card::after,
    .step-card::after,
    .testimonial-card::after,
    .btn-primary::after,
    .btn-header::after,
    .hero-badge::after,
    .hero::after,
    .cta::before {
        animation: none !important;
        opacity: 0 !important;
    }
    .lava-blob {
        animation: none !important;
        opacity: 0.2 !important;
    }
}
