/* ========================================
   RESET & CUSTOM PROPERTIES
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-base: #000000;
    --bg-surface: #0a0f1c;
    --bg-surface-elevated: rgba(255,255,255,0.03);
    --bg-surface-hover: rgba(255,255,255,0.06);
    --accent: #22d3ee;
    --accent-dim: #0891b2;
    --accent-muted: rgba(34, 211, 238, 0.08);
    --accent-glow: rgba(34, 211, 238, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(34, 211, 238, 0.4);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

.noise-overlay {
    position: fixed; inset: 0; z-index: 9998;
    pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.ambient-light {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
}

/* ========================================
   GLOBAL LAYOUT
   ======================================== */
.container { max-width: 1280px; margin: 0 auto; padding-left: 5%; padding-right: 5%; }

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   FLOATING GLASS NAV
   ======================================== */
nav {
    position: fixed; top: 1.25rem; left: 50%; transform: translateX(-50%);
    width: auto; max-width: 860px; padding: 0.7rem 1.4rem;
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
    z-index: 100;
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo {
    font-weight: 700; font-size: 1rem; letter-spacing: -0.3px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-primary); text-decoration: none; white-space: nowrap;
}
.logo-mark {
    width: 28px; height: 28px;
    background: var(--accent-muted); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { color: var(--accent); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    transition: color 0.3s var(--ease-out-expo); white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); }

.btn-nav {
    background: var(--text-primary); color: var(--bg-base);
    padding: 0.5rem 1.1rem; border-radius: 100px;
    font-weight: 600; font-size: 0.85rem; text-decoration: none;
    transition: all 0.3s var(--ease-out-expo); white-space: nowrap;
}
.btn-nav:hover { background: var(--accent); box-shadow: 0 4px 20px var(--shadow-accent); }
.btn-nav:active { transform: scale(0.97); }

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 4px; }

/* ========================================
   HERO — ASYMMETRIC SPLIT
   ======================================== */
.hero { position: relative; z-index: 1; padding: 10rem 0 5rem; }
.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-content { max-width: 580px; }

.hero-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0.35rem 0.9rem;
    background: var(--accent-muted); border: 1px solid var(--border-accent);
    color: var(--accent); border-radius: 100px;
    font-size: 0.72rem; font-weight: 600; margin-bottom: 1.75rem;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-pill-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-size: clamp(2.6rem, 4.8vw, 4rem); font-weight: 800;
    line-height: 1.05; letter-spacing: -2px; margin-bottom: 1.5rem; text-wrap: balance;
}
.hero h1 .accent-word { color: var(--accent); }

.hero p {
    font-size: 1.12rem; color: var(--text-secondary);
    max-width: 500px; line-height: 1.7; margin-bottom: 2.5rem; font-weight: 400;
}

.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: var(--bg-base);
    padding: 0.9rem 2rem; border-radius: 100px;
    font-weight: 700; font-size: 1rem; text-decoration: none;
    transition: all 0.5s var(--ease-spring);
    box-shadow: 0 6px 24px var(--shadow-accent), inset 0 1px 0 rgba(255,255,255,0.4); border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 40px rgba(52, 211, 153, 0.25), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-primary:active { transform: scale(0.96) translateY(0); transition: all 0.2s; }
.btn-primary .btn-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; background: rgba(0, 0, 0, 0.15);
    border-radius: 50%; transition: transform 0.3s var(--ease-out-expo);
}
.btn-primary:hover .btn-arrow { transform: translateX(2px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-surface); color: var(--text-primary);
    border: 1px solid var(--border); padding: 0.9rem 2rem;
    border-radius: 100px; font-weight: 600; font-size: 1rem; text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
}
.btn-secondary:hover { background: var(--bg-surface-elevated); border-color: var(--border-hover); }
.btn-secondary:active { transform: scale(0.97); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-visual-card {
    width: 100%; border-radius: var(--radius-xl); overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
    transition: transform 0.8s var(--ease-spring);
}
.hero-visual-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-8px);
}
.hero-visual-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-stat {
    position: absolute; padding: 0.75rem 1.1rem;
    background: rgba(20, 20, 20, 0.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    z-index: 2; animation: float-gentle 4s ease-in-out infinite;
}
.hero-stat:nth-child(2) { animation-delay: -1.5s; }
.hero-stat:nth-child(3) { animation-delay: -3s; }
@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.stat-top { top: 6%; right: -8%; }
.stat-mid { bottom: 35%; right: -12%; }
.stat-bottom { bottom: 8%; left: -6%; }
.hero-stat-label {
    font-size: 0.68rem; color: var(--text-tertiary); text-transform: uppercase;
    letter-spacing: 0.06em; font-weight: 500; margin-bottom: 1px;
}
.hero-stat-value { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.5px; }
.hero-stat-value .stat-accent { color: var(--accent); }

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    position: relative; z-index: 1; padding: 4rem 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 3rem; flex-wrap: wrap;
}
.trust-stat { text-align: center; }
.trust-stat-value {
    font-size: 2rem; font-weight: 800; letter-spacing: -1px; color: var(--accent);
}
.trust-stat-label {
    font-size: 0.78rem; color: var(--text-tertiary); text-transform: uppercase;
    letter-spacing: 0.06em; font-weight: 500; margin-top: 2px;
}
.trust-divider {
    width: 1px; height: 40px; background: var(--border); flex-shrink: 0;
}

/* ========================================
   SECTION HEADINGS
   ======================================== */
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0.3rem 0.8rem;
    background: var(--accent-muted); border: 1px solid var(--border-accent);
    border-radius: 100px; font-size: 0.7rem; font-weight: 600;
    color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.section-heading {
    font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800;
    letter-spacing: -2px; line-height: 1.05; margin-bottom: 1.2rem; text-wrap: balance;
}
.section-subheading {
    font-size: 1.08rem; color: var(--text-secondary);
    max-width: 560px; line-height: 1.7; font-weight: 400;
}

/* ========================================
   AGENT TYPES — BENTO GRID
   ======================================== */
.agents { padding: 7rem 0; position: relative; z-index: 1; }
.agents-header { margin-bottom: 4rem; }

.bento-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem;
}
.bento-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg); padding: 3px;
    transition: all 0.5s var(--ease-spring);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.bento-card:hover { 
    border-color: var(--border-accent); 
    box-shadow: 0 16px 40px var(--shadow-accent); 
    transform: translateY(-4px) scale(1.01); 
}
.bento-card-inner {
    background: linear-gradient(145deg, var(--bg-surface-elevated), var(--bg-surface)); 
    border-radius: calc(var(--radius-lg) - 2px);
    padding: 2.5rem; height: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 20px rgba(255,255,255,0.01);
}

.bento-card.wide { grid-column: span 2; }
.bento-card.full { grid-column: span 3; }

.bento-icon {
    width: 42px; height: 42px;
    background: var(--accent-muted); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-bottom: 1.2rem; flex-shrink: 0;
}
.bento-card h3 {
    font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 700; letter-spacing: -0.3px;
}
.bento-card p { color: var(--text-secondary); line-height: 1.65; font-size: 0.9rem; }
.bento-card .agent-tag {
    display: inline-block; margin-top: 1rem;
    padding: 0.2rem 0.6rem; font-size: 0.68rem; font-weight: 600;
    color: var(--accent); background: var(--accent-muted);
    border-radius: 100px; letter-spacing: 0.02em;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
    padding: 7rem 0; position: relative; z-index: 1;
    border-top: 1px solid var(--border); background: var(--bg-surface);
}
.how-header { margin-bottom: 4rem; }

.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
    counter-reset: step-counter;
}
.step-card { counter-increment: step-counter; }
.step-number {
    font-size: 3rem; font-weight: 800; letter-spacing: -2px;
    color: rgba(52, 211, 153, 0.12); margin-bottom: 1rem; line-height: 1;
}
.step-number::before { content: counter(step-counter, decimal-leading-zero); }
.step-card h3 {
    font-size: 1.05rem; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 0.5rem;
}
.step-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; }
.step-card .step-tag {
    display: inline-block; margin-top: 0.8rem;
    padding: 0.2rem 0.55rem; font-size: 0.65rem; font-weight: 600;
    border: 1px solid var(--border); border-radius: 100px;
    color: var(--text-tertiary); letter-spacing: 0.03em; text-transform: uppercase;
}

/* ========================================
   PRICING
   ======================================== */
.pricing { padding: 7rem 0; position: relative; z-index: 1; }
.pricing-header { margin-bottom: 4rem; text-align: center; }
.pricing-header .section-subheading { margin-left: auto; margin-right: auto; }

.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; align-items: stretch;
}
.pricing-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg); padding: 3px;
    transition: all 0.5s var(--ease-spring);
    display: flex; flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.pricing-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--border-accent); box-shadow: 0 16px 48px var(--shadow-accent); transform: scale(1.02); z-index: 2; }
.pricing-card.featured:hover { border-color: rgba(52, 211, 153, 0.4); transform: scale(1.04) translateY(-4px); }

.pricing-card-inner {
    background: linear-gradient(180deg, var(--bg-surface-elevated), var(--bg-surface)); 
    border-radius: calc(var(--radius-lg) - 2px);
    padding: 3rem 2.5rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex; flex-direction: column; flex: 1;
}
.pricing-card.featured .pricing-card-inner {
    background: linear-gradient(160deg, rgba(52,211,153,0.05), var(--bg-surface));
}

.pricing-tier-badge {
    display: inline-block; padding: 0.25rem 0.7rem;
    background: var(--accent); color: var(--bg-base);
    border-radius: 100px; font-size: 0.63rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 1rem; width: fit-content;
}
.pricing-card h3 {
    font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text-secondary);
}
.pricing-amount {
    font-size: 2.8rem; font-weight: 800; letter-spacing: -2px; margin: 0.6rem 0 0.2rem;
}
.pricing-amount .period {
    font-size: 0.88rem; color: var(--text-tertiary); font-weight: 400; letter-spacing: 0;
}
.pricing-setup-note { font-size: 0.76rem; color: var(--text-tertiary); margin-bottom: 1.5rem; }

.pricing-features { list-style: none; margin-bottom: 2rem; flex: 1; }
.pricing-features li {
    padding: 0.5rem 0; font-size: 0.88rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.pricing-features li:last-child { border-bottom: none; }
.check-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }

.pricing-btn {
    display: block; width: 100%; padding: 0.85rem;
    border-radius: 100px; font-weight: 700; font-size: 0.9rem;
    font-family: inherit; text-decoration: none; text-align: center;
    transition: all 0.3s var(--ease-out-expo); border: none; cursor: pointer; margin-top: auto;
}
.pricing-btn.primary {
    background: var(--accent); color: var(--bg-base); box-shadow: 0 4px 20px var(--shadow-accent);
}
.pricing-btn.primary:hover { box-shadow: 0 8px 32px rgba(52, 211, 153, 0.18); transform: translateY(-1px); }
.pricing-btn.secondary {
    background: var(--bg-base); color: var(--text-primary); border: 1px solid var(--border);
}
.pricing-btn.secondary:hover { border-color: var(--border-hover); background: var(--bg-surface-elevated); }
.pricing-btn:active { transform: scale(0.97); }

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 7rem 0; position: relative; z-index: 1;
    border-top: 1px solid var(--border); background: var(--bg-surface);
}
.cta-inner {
    text-align: center; max-width: 620px; margin: 0 auto;
}
.cta-inner .section-subheading { margin: 0 auto 2.5rem; }
.cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Lead form in CTA */
.cta-form {
    max-width: 440px; margin: 0 auto;
    display: grid; gap: 0.6rem;
}
.cta-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cta-form input {
    padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-base);
    color: var(--text-primary); font-family: inherit; font-size: 0.9rem;
    transition: border-color 0.3s var(--ease-out-expo); outline: none;
}
.cta-form input::placeholder { color: var(--text-tertiary); }
.cta-form input:focus { border-color: var(--border-accent); }
.cta-form .form-submit {
    padding: 0.85rem; border-radius: var(--radius-sm); border: none;
    background: var(--accent); color: var(--bg-base); font-weight: 700;
    font-size: 0.95rem; font-family: inherit; cursor: pointer;
    transition: all 0.3s var(--ease-out-expo); box-shadow: 0 4px 16px var(--shadow-accent);
}
.cta-form .form-submit:hover { box-shadow: 0 8px 28px rgba(52, 211, 153, 0.15); transform: translateY(-1px); }
.cta-form .form-submit:active { transform: scale(0.97); }
.form-success {
    display: none; color: var(--accent); margin-top: 1rem;
    font-weight: 600; text-align: center; font-size: 0.92rem;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    padding: 3rem 0; position: relative; z-index: 1;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.82rem; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    font-size: 0.82rem; color: var(--text-tertiary); text-decoration: none;
    transition: color 0.3s var(--ease-out-expo);
}
.footer-links a:hover { color: var(--text-primary); }

/* ========================================
   INTERACTIVE DEMOS
   ======================================== */
.demos {
    padding: 7rem 0; position: relative; z-index: 1;
    border-top: 1px solid var(--border); background: var(--bg-surface);
}
.demos-header { margin-bottom: 3rem; }

/* Tab switcher */
.demo-tabs {
    display: flex; gap: 0.5rem; margin-bottom: 2rem;
}
.demo-tab {
    padding: 0.6rem 1.4rem; border-radius: 100px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-secondary); font-family: inherit;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.demo-tab:hover { border-color: var(--border-hover); color: var(--text-primary); }
.demo-tab.active {
    background: var(--accent); color: var(--bg-base);
    border-color: var(--accent);
}
.demo-tab:active { transform: scale(0.97); }

/* Demo panels */
.demo-panel { display: none; }
.demo-panel.active { display: block; }

/* Demo container (shared) */
.demo-container {
    background: rgba(255, 255, 255, 0.015); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 3px;
}
.demo-container-inner {
    background: var(--bg-base); border-radius: calc(var(--radius-xl) - 2px);
    overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Demo toolbar (faux window chrome) */
.demo-toolbar {
    padding: 0.7rem 1rem; display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid var(--border); background: var(--bg-surface);
}
.demo-toolbar-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--bg-surface-elevated); border: 1px solid var(--border);
}
.demo-toolbar-title {
    margin-left: 0.75rem; font-size: 0.72rem; font-weight: 500;
    color: var(--text-tertiary); letter-spacing: 0.03em;
}

/* ─── Lead Gen Demo ─────────────────── */
.leadgen-body { padding: 2rem; }
.leadgen-controls {
    display: flex; gap: 0.6rem; align-items: end; margin-bottom: 2rem; flex-wrap: wrap;
}
.leadgen-field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 160px; }
.leadgen-field label {
    font-size: 0.68rem; font-weight: 600; color: var(--text-tertiary);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.leadgen-field select, .leadgen-field input {
    padding: 0.65rem 0.9rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-surface);
    color: var(--text-primary); font-family: inherit; font-size: 0.88rem;
    outline: none; transition: border-color 0.3s var(--ease-out-expo);
    appearance: none; -webkit-appearance: none;
}
.leadgen-field select { cursor: pointer; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.leadgen-field select:focus, .leadgen-field input:focus { border-color: var(--border-accent); }
.leadgen-btn {
    padding: 0.65rem 1.5rem; border-radius: var(--radius-sm); border: none;
    background: var(--accent); color: var(--bg-base); font-weight: 700;
    font-size: 0.88rem; font-family: inherit; cursor: pointer;
    transition: all 0.3s var(--ease-out-expo); white-space: nowrap;
    box-shadow: 0 4px 16px var(--shadow-accent);
}
.leadgen-btn:hover { box-shadow: 0 6px 24px rgba(52,211,153,0.15); transform: translateY(-1px); }
.leadgen-btn:active { transform: scale(0.97); }
.leadgen-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Pipeline steps */
.leadgen-pipeline { margin-bottom: 2rem; }
.pipeline-step {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0;
    opacity: 0.3; transition: opacity 0.5s var(--ease-out-expo);
}
.pipeline-step.active { opacity: 1; }
.pipeline-step.done { opacity: 0.6; }
.pipeline-dot {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    border: 2px solid var(--border); display: flex;
    align-items: center; justify-content: center;
    transition: all 0.4s var(--ease-out-expo);
}
.pipeline-step.active .pipeline-dot {
    border-color: var(--accent); background: var(--accent-muted);
    animation: pulse-ring 1.5s ease-in-out infinite;
}
.pipeline-step.done .pipeline-dot {
    border-color: var(--accent); background: var(--accent);
}
@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.3); }
    50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}
.pipeline-dot svg { width: 14px; height: 14px; color: var(--accent); }
.pipeline-step.done .pipeline-dot svg { color: var(--bg-base); }
.pipeline-label { font-size: 0.88rem; font-weight: 500; }
.pipeline-label .pipeline-count { color: var(--accent); font-weight: 700; margin-left: 0.5rem; }

/* Results table */
.leadgen-results { display: none; }
.leadgen-results.show { display: block; }
.leadgen-results-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.leadgen-results-header h4 { font-size: 0.95rem; font-weight: 700; }
.leadgen-results-count { font-size: 0.78rem; color: var(--accent); font-weight: 600; }

.results-table {
    width: 100%; border-collapse: collapse; font-size: 0.82rem;
}
.results-table th {
    text-align: left; padding: 0.6rem 0.75rem;
    font-size: 0.68rem; font-weight: 600; color: var(--text-tertiary);
    text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border); background: var(--bg-surface);
}
.results-table td {
    padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-secondary);
}
.results-table tr { transition: background 0.2s; }
.results-table tbody tr:hover { background: var(--bg-surface); }
.score-badge {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 100px;
    font-size: 0.7rem; font-weight: 700;
    background: var(--accent-muted); color: var(--accent);
}
.results-table tr {
    opacity: 0; transform: translateY(8px);
    animation: row-in 0.4s var(--ease-out-expo) forwards;
}
.results-table tr:nth-child(1) { animation-delay: 0s; }
.results-table tr:nth-child(2) { animation-delay: 0.08s; }
.results-table tr:nth-child(3) { animation-delay: 0.16s; }
.results-table tr:nth-child(4) { animation-delay: 0.24s; }
.results-table tr:nth-child(5) { animation-delay: 0.32s; }
.results-table thead tr { opacity: 1; transform: none; animation: none; }
@keyframes row-in { to { opacity: 1; transform: translateY(0); } }

/* ─── Booking Chat Demo ────────────── */
.chat-body {
    display: flex; flex-direction: column; height: 520px;
}
.chat-messages {
    flex: 1; overflow-y: auto; padding: 1.5rem;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg {
    max-width: 85%; padding: 0.75rem 1rem;
    border-radius: var(--radius-md); font-size: 0.88rem; line-height: 1.6;
    white-space: pre-wrap; word-wrap: break-word;
    opacity: 0; transform: translateY(8px);
    animation: msg-in 0.4s var(--ease-out-expo) forwards;
}
@keyframes msg-in { to { opacity: 1; transform: translateY(0); } }

.chat-msg.agent {
    align-self: flex-start; background: var(--bg-surface-elevated);
    border: 1px solid var(--border); color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}
.chat-msg.user {
    align-self: flex-end; background: var(--accent); color: var(--bg-base);
    font-weight: 500; border-bottom-right-radius: 4px;
}
.chat-msg-label {
    font-size: 0.63rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 0.3rem; display: block;
}
.chat-msg.agent .chat-msg-label { color: var(--accent); }
.chat-msg.user .chat-msg-label { color: rgba(0,0,0,0.4); }

/* Typing indicator */
.typing-indicator {
    display: none; align-self: flex-start; padding: 0.75rem 1.2rem;
    background: var(--bg-surface-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-md); border-bottom-left-radius: 4px;
}
.typing-indicator.show { display: flex; gap: 4px; align-items: center; }
.typing-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-tertiary);
    animation: typing-bounce 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 typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Chat input bar */
.chat-input-bar {
    padding: 0.75rem; border-top: 1px solid var(--border);
    display: flex; gap: 0.5rem; background: var(--bg-surface);
}
.chat-input {
    flex: 1; padding: 0.65rem 1rem; border-radius: 100px;
    border: 1px solid var(--border); background: var(--bg-base);
    color: var(--text-primary); font-family: inherit; font-size: 0.88rem;
    outline: none; transition: border-color 0.3s var(--ease-out-expo);
}
.chat-input::placeholder { color: var(--text-tertiary); }
.chat-input:focus { border-color: var(--border-accent); }
.chat-send {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s var(--ease-out-expo); flex-shrink: 0;
}
.chat-send:hover { transform: scale(1.05); box-shadow: 0 4px 16px var(--shadow-accent); }
.chat-send:active { transform: scale(0.95); }
.chat-send svg { width: 16px; height: 16px; color: var(--bg-base); }

/* Quick reply buttons */
.chat-quick-replies {
    display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 0.5rem 1.5rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}
.quick-reply {
    padding: 0.35rem 0.8rem; border-radius: 100px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-secondary); font-family: inherit;
    font-size: 0.75rem; font-weight: 500; cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.quick-reply:hover { border-color: var(--border-accent); color: var(--accent); }
.quick-reply:active { transform: scale(0.95); }

/* ========================================
   TEMPLATE GALLERY
   ======================================== */
.template-filter {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    justify-content: center; margin-bottom: 3rem;
}
.filter-tab {
    padding: 0.5rem 1.2rem; border-radius: 100px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-secondary); font-family: inherit;
    font-size: 0.82rem; font-weight: 500; cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.filter-tab:hover { border-color: var(--border-accent); color: var(--accent); }
.filter-tab.active {
    background: var(--accent); color: var(--bg-base);
    border-color: var(--accent); font-weight: 600;
}

.template-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem; margin-bottom: 2rem;
}
.template-card {
    padding: 1.5rem; border-radius: var(--radius-md);
    border: 1px solid var(--border); background: var(--bg-surface);
    cursor: pointer; transition: all 0.35s var(--ease-out-expo);
    position: relative; overflow: hidden;
}
.template-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--shadow-accent);
}
.template-card-icon {
    font-size: 2rem; margin-bottom: 0.75rem; display: block;
}
.template-card h4 {
    font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.template-card p {
    font-size: 0.78rem; color: var(--text-secondary);
    line-height: 1.5;
}
.template-card-accent {
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px; opacity: 0;
    transition: opacity 0.3s var(--ease-out-expo);
}
.template-card:hover .template-card-accent { opacity: 1; }
.template-card-tryit {
    display: inline-block; margin-top: 0.75rem;
    font-size: 0.72rem; font-weight: 600; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.06em;
    opacity: 0; transform: translateY(4px);
    transition: all 0.3s var(--ease-out-expo);
}
.template-card:hover .template-card-tryit {
    opacity: 1; transform: translateY(0);
}

/* ========================================
   DEMO TEMPLATE SELECTOR
   ======================================== */
.demo-template-selector {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    justify-content: center; margin-bottom: 2rem;
}
.demo-template-pill {
    padding: 0.4rem 0.85rem; border-radius: 100px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-secondary); font-family: inherit;
    font-size: 0.72rem; font-weight: 500; cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
}
.demo-template-pill:hover { border-color: var(--border-accent); color: var(--accent); }
.demo-template-pill.active {
    background: var(--accent); color: var(--bg-base);
    border-color: var(--accent); font-weight: 600;
}

/* Gemini badge */
.demo-gemini-badge {
    margin-left: auto; font-size: 0.6rem;
    color: var(--accent); font-weight: 600;
    letter-spacing: 0.04em; opacity: 0.8;
}

/* ========================================
   API KEY GUIDES
   ======================================== */
.api-guides { padding: 8rem 0; }
.api-guides-header { text-align: center; margin-bottom: 4rem; }
.api-guides-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-bottom: 2rem;
}
.api-guide-card {
    padding: 2rem; border-radius: var(--radius-md);
    border: 1px solid var(--border); background: var(--bg-surface);
    transition: all 0.35s var(--ease-out-expo);
}
.api-guide-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}
.api-guide-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700; color: white;
    margin-bottom: 1.2rem;
}
.api-guide-card h3 {
    font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem;
}
.api-guide-rec {
    font-size: 0.78rem; color: var(--accent); font-weight: 500;
    margin-bottom: 1rem;
}
.api-guide-steps {
    list-style: decimal; padding-left: 1.2rem;
    margin-bottom: 1.2rem;
}
.api-guide-steps li {
    font-size: 0.82rem; color: var(--text-secondary);
    margin-bottom: 0.4rem; line-height: 1.5;
}
.api-guide-steps li strong { color: var(--text-primary); }
.api-guide-cost {
    padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    background: var(--accent-muted); display: flex;
    justify-content: space-between; align-items: center;
}
.api-guide-cost-label {
    font-size: 0.75rem; color: var(--text-secondary);
}
.api-guide-cost-value {
    font-size: 0.88rem; font-weight: 700; color: var(--accent);
}
.api-guides-note {
    text-align: center; max-width: 640px; margin: 2rem auto 0;
}
.api-guides-note p {
    font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7;
}

/* ========================================
   PRICING NOTE (no surprise bills)
   ======================================== */
.pricing-note {
    margin-top: 3rem;
}
.pricing-note-inner {
    padding: 2rem 2.5rem; border-radius: var(--radius-md);
    border: 1px solid var(--border-accent);
    background: var(--accent-muted); text-align: center;
}
.pricing-note-inner h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--accent);
    margin-bottom: 0.5rem;
}
.pricing-note-inner p {
    font-size: 0.88rem; color: var(--text-secondary);
    line-height: 1.7; max-width: 600px; margin: 0 auto;
}
.pricing-note-inner p strong {
    color: var(--text-primary);
}

/* CTA form select */
.cta-form select {
    width: 100%; padding: 0.85rem 1.2rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-surface);
    color: var(--text-primary); font-family: inherit; font-size: 0.88rem;
    outline: none; transition: border-color 0.3s var(--ease-out-expo);
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.cta-form select:focus { border-color: var(--border-accent); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-card.full { grid-column: span 2; }
    .steps-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .template-grid { grid-template-columns: repeat(2, 1fr); }
    .api-guides-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    nav { max-width: calc(100% - 2rem); padding: 0.6rem 1rem; gap: 0; z-index: 1000; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    nav.open .nav-links {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        margin-top: 0.5rem; padding: 1rem;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(20px); border: 1px solid var(--border);
        border-radius: var(--radius-md); gap: 0.75rem;
    }

    .hero { padding: 10rem 0 4rem; } /* Added more padding for header */
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
    .hero-stat { display: none; }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.wide, .bento-card.full { grid-column: span 1; }

    .template-grid { grid-template-columns: 1fr !important; } /* Fixed cramped industry grid */
    .template-filter { gap: 0.35rem; }
    .filter-tab { font-size: 0.72rem; padding: 0.4rem 0.8rem; }

    .api-guides-grid { grid-template-columns: 1fr !important; max-width: 420px; margin: 0 auto; }

    .steps-grid { grid-template-columns: 1fr; gap: 2rem; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

    .trust-bar-inner { gap: 2rem; }
    .trust-divider { display: none; }

    .cta-form .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; gap: 1.5rem; }

    .demo-template-selector { gap: 0.3rem; }
    .demo-template-pill { font-size: 0.65rem; padding: 0.3rem 0.6rem; }
    .demo-gemini-badge { display: none; }
}
