/* =============================================
   AutoPilotAI — Main Stylesheet
   ============================================= */

/* --- Custom Properties --- */
:root {
    --bg:          #03030c;
    --bg2:         #07071a;
    --bg-card:     rgba(255,255,255,0.035);
    --bg-card-hov: rgba(255,255,255,0.065);
    --border:      rgba(255,255,255,0.08);
    --border-hov:  rgba(168,85,247,0.45);

    --purple:      #a855f7;
    --indigo:      #6366f1;
    --green:       #25D366;
    --green-dark:  #128C7E;

    --grad:        linear-gradient(135deg, #a855f7, #6366f1);
    --grad-text:   linear-gradient(135deg, #c084fc, #818cf8, #67e8f9);
    --grad-btn:    linear-gradient(135deg, #9333ea, #4f46e5);
    --grad-glow:   linear-gradient(135deg, rgba(168,85,247,0.4), rgba(99,102,241,0.4));

    --text:        #f1f1ff;
    --text-soft:   #94a3b8;
    --text-dim:    #64748b;

    --radius-sm:   8px;
    --radius:      14px;
    --radius-lg:   20px;
    --radius-xl:   28px;

    --shadow:      0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 60px rgba(168,85,247,0.15);

    --nav-h:       72px;
    --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }
input, button, textarea { font-family: inherit; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.25s;
    border-radius: inherit;
}

.btn:hover::before { background: rgba(255,255,255,0.07); }
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 4px 24px rgba(147,51,234,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(147,51,234,0.6); transform: translateY(-1px); }

.btn-ghost {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--border-hov); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }

.btn-lg   { padding: 14px 28px; font-size: 1rem; }
.btn-xl   { padding: 16px 36px; font-size: 1.05rem; width: 100%; justify-content: center; }
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(3, 3, 12, 0.92);
    border-bottom-color: var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    flex-shrink: 0;
}

.logo-mark {
    width: 34px; height: 34px;
    background: var(--grad-btn);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(147,51,234,0.4);
}

.logo-ai { color: var(--purple); }

.nav-links {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-soft);
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 8s ease-in-out infinite alternate;
}
.hero-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(168,85,247,0.18), transparent 70%);
    top: -200px; left: -200px;
    animation-duration: 9s;
}
.hero-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
    bottom: -100px; right: -100px;
    animation-duration: 11s;
    animation-delay: -3s;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(37,211,102,0.08), transparent 70%);
    top: 40%; left: 50%;
    animation-duration: 13s;
    animation-delay: -6s;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.05); }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 80px;
}

.hero-content { max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #c4b5fd;
    margin-bottom: 28px;
    animation: fadeSlideUp 0.8s ease both;
}

.badge-pulse {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    50%       { box-shadow: 0 0 0 6px rgba(37,211,102,0); }
}

.hero-title {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    margin-bottom: 24px;
    animation: fadeSlideUp 0.8s 0.1s ease both;
    line-height: 1.1;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 36px;
    line-height: 1.7;
    animation: fadeSlideUp 0.8s 0.2s ease both;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeSlideUp 0.8s 0.3s ease both;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 28px;
    animation: fadeSlideUp 0.8s 0.4s ease both;
}

.trust-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.trust-stat > span:first-child,
.trust-stat > .counter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.trust-stat > span:nth-child(2) {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.trust-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    -webkit-text-fill-color: var(--text-dim);
    background: none;
}

.trust-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Phone mockup in hero */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeSlideUp 0.8s 0.2s ease both;
}

.phone-wrapper {
    position: relative;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%       { transform: translateY(-16px) rotate(1deg); }
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(160deg, #1a1a2e, #16213e);
    border-radius: 44px;
    border: 2px solid rgba(255,255,255,0.12);
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.7),
        0 0 0 1px rgba(255,255,255,0.04),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    flex-shrink: 0;
}

.phone-notch {
    width: 90px; height: 24px;
    background: #0a0a1a;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.phone-screen {
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    background: #0f1229;
}

.wa-header {
    background: linear-gradient(135deg, #128C7E, #075E54);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.wa-back svg { flex-shrink: 0; }

.wa-avatar-wrap { position: relative; }

.wa-avatar {
    width: 36px; height: 36px;
    background: var(--grad-btn);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.wa-online-dot {
    width: 9px; height: 9px;
    background: #25D366;
    border-radius: 50%;
    border: 2px solid #0c6b5c;
    position: absolute;
    bottom: 1px; right: 1px;
    animation: pulse 2s infinite;
}

.wa-contact-info { flex: 1; }
.wa-contact-name { font-size: 0.85rem; font-weight: 600; color: white; }
.wa-contact-status { font-size: 0.7rem; color: rgba(255,255,255,0.7); }

.wa-chat {
    flex: 1;
    padding: 12px 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wa-input-bar {
    padding: 10px 12px;
    background: #1a1f3c;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.wa-input-field {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.wa-send-btn {
    width: 34px; height: 34px;
    background: var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Chat message bubbles */
.chat-msg {
    max-width: 85%;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.4s;
    word-break: break-word;
}
.chat-msg.visible { opacity: 1; transform: translateY(0); }

.chat-msg.incoming {
    background: #1f2d52;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}
.chat-msg.outgoing {
    background: #1a5e3a;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.chat-msg .msg-time {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.45);
    margin-top: 3px;
    text-align: right;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: #1f2d52;
    border-radius: 10px;
    border-bottom-left-radius: 3px;
    align-self: flex-start;
    opacity: 0;
    transition: opacity 0.3s;
}
.typing-indicator.visible { opacity: 1; }
.typing-dot {
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%            { transform: translateY(-5px); }
}

/* Floating cards */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    white-space: nowrap;
    animation: floatCard 4s ease-in-out infinite alternate;
}
.float-card-1 {
    top: 15%;
    right: -30px;
    animation-delay: 0s;
}
.float-card-2 {
    bottom: 30%;
    left: -40px;
    animation-delay: -2s;
}
.float-card-3 {
    top: 60%;
    right: -35px;
    animation-delay: -1s;
}

@keyframes floatCard {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.phone-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(168,85,247,0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: fadeIn 1s 1.5s both;
}
.scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 11px;
    display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
    width: 4px; height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    80%       { transform: translateY(8px); opacity: 0; }
}
.scroll-cue span {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

/* =============================================
   SOCIAL PROOF
   ============================================= */
.social-proof {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.proof-label {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.proof-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 40px;
}

.proof-logo {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    transition: color 0.3s;
}
.proof-logo:hover { color: var(--text-soft); }

/* =============================================
   SECTION HEADER (shared)
   ============================================= */
.section-head {
    text-align: center;
    margin-bottom: 64px;
}

.section-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
}

.section-head p {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =============================================
   FEATURES
   ============================================= */
.features { padding: 120px 0; }

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

@media (max-width: 1100px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation-delay: var(--delay, 0ms);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-glow);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: inherit;
}

.feature-card:hover {
    border-color: var(--border-hov);
    transform: translateY(-4px);
    background: var(--bg-card-hov);
}
.feature-card:hover::before { opacity: 0.07; }

.feature-icon-wrap {
    width: 52px; height: 52px;
    background: rgba(var(--glow), 0.12);
    border: 1px solid rgba(var(--glow), 0.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: rgb(var(--glow));
    transition: box-shadow 0.3s;
}
.feature-card:hover .feature-icon-wrap {
    box-shadow: 0 0 24px rgba(var(--glow), 0.25);
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.65;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
    padding: 120px 0;
    background: var(--bg2);
    position: relative;
    overflow: hidden;
}

.steps-wrapper { position: relative; }

.steps-line {
    position: absolute;
    top: 52px;
    left: calc(50% - 280px);
    right: calc(50% - 280px);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--indigo), transparent);
    opacity: 0.3;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.step-icon-ring {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(99,102,241,0.12));
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--purple);
    position: relative;
    transition: var(--transition);
}

.step-icon-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(168,85,247,0.2);
    animation: ringRotate 12s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.step:hover .step-icon-ring {
    background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(99,102,241,0.25));
    box-shadow: 0 0 40px rgba(168,85,247,0.2);
}

.step-text h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.step-text p {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 240px;
    margin: 0 auto;
}

/* =============================================
   DEMO SECTION
   ============================================= */
.demo-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.demo-bg-orb {
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(168,85,247,0.07), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

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

.demo-phone {
    width: 100%;
    background: linear-gradient(160deg, #101020, #0c0c24);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.demo-wa-header {
    background: linear-gradient(135deg, #128C7E, #075E54);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-avatar {
    font-size: 1.4rem;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.demo-contact-info { flex: 1; }
.demo-contact-name { font-size: 0.9rem; font-weight: 600; color: white; }
.demo-online { font-size: 0.72rem; color: rgba(255,255,255,0.7); }

.demo-icons { display: flex; gap: 16px; }

.demo-chat-area {
    min-height: 420px;
    max-height: 420px;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.012'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    scrollbar-width: none;
}
.demo-chat-area::-webkit-scrollbar { display: none; }

.chat-date-divider {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 4px 12px;
    align-self: center;
    margin-bottom: 4px;
}

.demo-input-bar {
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* Demo steps panel */
.demo-steps-panel { padding-top: 8px; }
.demo-steps-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 28px;
    color: var(--text);
}

.demo-timeline { display: flex; flex-direction: column; gap: 0; }

.tl-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-left: 2px solid var(--border);
    padding-left: 24px;
    position: relative;
    transition: var(--transition);
}

.tl-item:last-child { border-left-color: transparent; }

.tl-dot {
    position: absolute;
    left: -7px;
    top: 20px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg);
    transition: var(--transition);
}

.tl-item.active .tl-dot {
    background: var(--purple);
    box-shadow: 0 0 12px rgba(168,85,247,0.6);
}
.tl-item.active {
    border-left-color: var(--purple);
}

.tl-content h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-soft);
    transition: color 0.3s;
}
.tl-item.active .tl-content h4 { color: var(--text); }

.tl-content p {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.replay-btn {
    margin-top: 28px;
    padding: 12px 22px;
}

/* =============================================
   PRICING
   ============================================= */
.pricing {
    padding: 120px 0;
    background: var(--bg2);
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    position: relative;
    transition: var(--transition);
}
.pricing-card:hover {
    border-color: rgba(168,85,247,0.3);
    transform: translateY(-4px);
}

.pricing-featured {
    background: linear-gradient(160deg, rgba(168,85,247,0.08), rgba(99,102,241,0.06));
    border-color: rgba(168,85,247,0.35);
    box-shadow: 0 0 60px rgba(168,85,247,0.1), 0 32px 64px rgba(0,0,0,0.3);
    transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-btn);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.pricing-intro {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 36px;
    margin-bottom: 56px;
}

.pricing-intro-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-soft);
}
.pricing-intro-item svg { color: var(--green); flex-shrink: 0; }

.pricing-amount {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
    line-height: 1;
}
.price-currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 8px;
}
.price-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}
.price-custom {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    margin-bottom: 4px;
}
.price-per {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 16px;
}

.pricing-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 40px;
    padding: 18px 24px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-note svg { color: var(--indigo); flex-shrink: 0; margin-top: 1px; }
.pricing-note span { font-size: 0.88rem; color: var(--text-soft); line-height: 1.65; }

.pricing-desc {
    font-size: 0.88rem;
    color: var(--text-soft);
    margin-bottom: 28px;
    line-height: 1.6;
    min-height: 44px;
}

.pricing-list {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-list li {
    font-size: 0.9rem;
    color: var(--text-soft);
    padding-left: 22px;
    position: relative;
}

.pricing-list li.check::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}
.pricing-list li.cross {
    color: var(--text-dim);
    text-decoration: line-through;
}
.pricing-list li.cross::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

/* =============================================
   FAQ
   ============================================= */
.faq { padding: 120px 0; }

.faq-container { max-width: 760px; }

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

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: rgba(168,85,247,0.3); }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-size: 0.97rem;
    font-weight: 600;
    gap: 16px;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-dim);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
}
.faq-q[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    color: var(--purple);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-a p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.7;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 120px 0;
    background: var(--bg2);
    position: relative;
    overflow: hidden;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.cta-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168,85,247,0.15), transparent 70%);
    top: -200px; right: -100px;
}
.cta-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
    bottom: -150px; left: -100px;
}

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

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.2);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 24px;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 500px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-soft);
}

.form-field input {
    padding: 13px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color 0.25s, background 0.25s;
    outline: none;
}
.form-field input:focus {
    border-color: rgba(168,85,247,0.5);
    background: rgba(168,85,247,0.05);
}
.form-field input::placeholder { color: var(--text-dim); }

.form-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 4px;
}

.form-or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}
.form-or-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.form-or-text {
    font-size: 0.78rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.email-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: var(--transition);
    word-break: break-all;
}
.email-cta:hover {
    border-color: rgba(168,85,247,0.4);
    color: var(--purple);
    background: rgba(168,85,247,0.05);
}

.footer-email-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.87rem;
    color: var(--text-soft);
    transition: color 0.2s;
    word-break: break-all;
}
.footer-email-link:hover { color: var(--purple); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    padding: 64px 0 32px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.87rem;
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 260px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-soft);
    transition: var(--transition);
}
.social-link:hover { color: var(--purple); border-color: rgba(168,85,247,0.4); }

.footer-links-group h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-links-group ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links-group a {
    font-size: 0.87rem;
    color: var(--text-soft);
    transition: color 0.2s;
}
.footer-links-group a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0ms);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-content { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { display: none; }
    .steps { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .steps-line { display: none; }
    .demo-layout { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .pricing-featured { transform: scale(1); }
    .pricing-featured:hover { transform: translateY(-4px); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(3,3,12,0.97);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .nav-cta { display: none; }

    .features-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .btn-lg { width: 100%; justify-content: center; }
}

/* =============================================
   TYPED TEXT CURSOR
   ============================================= */
.typed-text::after {
    content: '|';
    animation: blink 0.9s step-end infinite;
    color: var(--purple);
    font-weight: 300;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168,85,247,0.5); }
