/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance Optimizations */
/* Lazy Loading Styles */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Progressive Image Loading */
[data-progressive] {
    position: relative;
    overflow: hidden;
}

[data-progressive] .low-quality {
    filter: blur(5px);
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-progressive] .high-quality {
    position: relative;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

[data-progressive] .high-quality.loaded {
    opacity: 1;
}

/* Video lazy loading */
video[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

video.loaded {
    opacity: 1;
}

/* Font Loading Optimization */
.fonts-loaded {
    /* Apply optimized font rendering after fonts load */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skeleton Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors - Premium Palette */
    --primary: #2563eb;
    /* More vibrant blue */
    --primary-dark: #1d4ed8;
    --secondary: #0ea5e9;
    /* Sky blue */
    --dark: #0f172a;
    /* Slate 900 */
    --light: #ffffff;
    --accent: #10b981;
    /* Emerald */
    --gray: #64748b;
    /* Slate 500 */
    --gray-light: #f1f5f9;
    /* Slate 100 */
    --gray-dark: #334155;
    /* Slate 700 */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15), transparent 70%);

    /* Typography */
    --font-system: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Breakpoints */
    --bp-mobile: 320px;
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
    --bp-wide: 1440px;

    /* Shadows - Soft & Deep */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product Showcase Mobile Layout */
@media (max-width: 768px) {
    .tab-panel {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .tab-panel>div:nth-child(1) {
        order: 2;
        /* Move image below text */
    }

    .tab-panel>div:nth-child(2) {
        order: 1;
        /* Move text above image */
        text-align: center;
    }

    .tab-panel h2 {
        font-size: 1.75rem;
    }

    .tab-panel p {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Hero Section Mobile Layout */
@media (max-width: 768px) {
    .hero {
        height: auto;
        /* Remove fixed height */
        min-height: 100vh;
        /* Ensure minimum height */
        padding: 40px 20px;
        /* Add proper padding */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 40px;
        max-width: 100%;
        /* Prevent overflow */
    }

    .hero-grid>div:nth-child(1) {
        order: 1;
        /* Text content first */
        text-align: center;
        padding: 0 10px;
        /* Add horizontal padding */
    }

    .hero-grid>div:nth-child(2) {
        order: 2;
        /* Phone image and floating cards second */
        padding-bottom: 40px;
        /* Add bottom padding to prevent cutoff */
        padding: 0 20px 40px 20px;
        /* Add horizontal padding to contain floating cards */
    }

}


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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-system);
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    margin-bottom: var(--space-xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-align: center;
}

h3 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray-dark);
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--dark);
    color: var(--light);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    z-index: 1000;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    min-height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--dark);
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.logo-type {
    font-weight: 600;
}

.nav-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(7, 16, 25, 0.1);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--gray-dark);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--space-xl);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--gray-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--dark);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.nav-cta .btn {
    padding: 10px 22px;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(10, 132, 255, 0.25);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    min-height: 44px;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--light);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Hero */
.hero {
    padding: clamp(80px, 10vw, 120px) 0 clamp(64px, 8vw, 100px);
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-subhead {
    font-size: 1.25rem;
    margin: var(--space-lg) 0;
    color: var(--gray-dark);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.hero-badges {
    display: flex;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Problem Section */
.problem {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    position: relative;
}

.problem h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.problem-item {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    border: 1px solid rgba(7, 16, 25, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.problem-item:hover::before {
    transform: scaleX(1);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(76, 198, 255, 0.12));
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(10, 132, 255, 0.1);
}

.problem-item p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* Features */
.features {
    padding: var(--space-3xl) 0;
    padding-bottom: var(--space-2xl);
    background: linear-gradient(180deg, #eef3f8 0%, #f7f9fc 100%);
    position: relative;
}

.features::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(14, 132, 255, 0.06), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.features .container {
    position: relative;
    z-index: 1;
}

.features h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

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

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(76, 198, 255, 0.12));
    border-radius: 14px;
    box-shadow: 0 8px 16px rgba(10, 132, 255, 0.1);
}

.feature-card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.cta-section {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* How it Works */
.how-it-works {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

.how-it-works h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--space-2xl) 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(7, 16, 25, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    box-shadow: 0 8px 16px rgba(10, 132, 255, 0.25);
}

.step h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.step p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.step-arrow {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0 12px;
    font-weight: 300;
}

.architecture {
    margin-top: var(--space-3xl);
    padding: 0;
}

.arch-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 244, 255, 0.92));
    border-radius: 24px;
    padding: var(--space-2xl);
    border: 1px solid rgba(7, 16, 25, 0.06);
    box-shadow: 0 16px 40px rgba(7, 16, 25, 0.08);
    text-align: center;
}

.arch-card .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.arch-card h3 {
    margin-bottom: 28px;
    font-size: 1.5rem;
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
    color: var(--text);
}

.arch-diagram {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.arch-node {
    min-width: 150px;
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(7, 16, 25, 0.08);
    box-shadow: 0 8px 20px rgba(7, 16, 25, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arch-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(7, 16, 25, 0.1);
}

.arch-node-label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.arch-node-note {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.arch-connector {
    width: 50px;
    height: 3px;
    align-self: center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    position: relative;
}

.arch-connector::after {
    content: "→";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
}

.arch-caption {
    margin-top: 24px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Demo */
.demo {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, #f8fafb 0%, #eef3f8 100%);
}

.demo h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.terminal-wrapper {
    background: linear-gradient(135deg, #1a1d29 0%, #0f1117 100%);
    border-radius: 20px;
    padding: 24px;
    min-height: 450px;
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(7, 16, 25, 0.2);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.terminal-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

#replay-demo {
    display: block;
    margin: 0 auto;
}

/* Comparison Table */
.comparison {
    padding: var(--space-3xl) 0;
    background: #ffffff;
}

.comparison h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: var(--space-2xl) 0;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(7, 16, 25, 0.06);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(7, 16, 25, 0.06);
}

.comparison-table thead th {
    background: linear-gradient(180deg, rgba(247, 249, 252, 0.95) 0%, rgba(240, 244, 248, 0.9) 100%);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    border-bottom: 2px solid rgba(10, 132, 255, 0.15);
}

.comparison-table thead th:first-child {
    border-top-left-radius: 20px;
}

.comparison-table thead th:last-child {
    border-top-right-radius: 20px;
}

.comparison-table th[scope="row"] {
    text-align: left;
    font-weight: 600;
    background: rgba(247, 249, 252, 0.5);
}

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(10, 132, 255, 0.02);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:last-child th:first-child {
    border-bottom-left-radius: 20px;
}

.comparison-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}

.comparison-table td {
    font-size: 1.2rem;
}

.comparison-note {
    font-size: 0.8rem;
    color: var(--gray);
    display: block;
    margin-top: 2px;
}

/* Use Cases */
.use-cases {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    position: relative;
}

.use-cases h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.use-case {
    background: rgba(255, 255, 255, 0.92);
    padding: var(--space-2xl);
    border-radius: 20px;
    border: 1px solid rgba(7, 16, 25, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.use-case::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(10, 132, 255, 0.06), transparent 70%);
    pointer-events: none;
}

.use-case:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.use-case h3 {
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.use-case p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Team */
.team {
    padding: var(--space-3xl) 0;
    background: #ffffff;
}

.team h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    max-width: 700px;
    margin: var(--space-2xl) auto 0;
    align-items: start;
}

.team-member {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: var(--space-2xl);
    border-radius: 24px;
    border: 1px solid rgba(7, 16, 25, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    display: block;
    object-fit: cover;
    object-position: center;
    background: var(--gray-light);
    border: 4px solid rgba(10, 132, 255, 0.1);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.team-member h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.team-member p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    min-height: 3em;
}

.team-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.team-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    padding: 10px;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.team-links a:hover {
    background: rgba(10, 132, 255, 0.1);
    transform: scale(1.1);
}

.team-links svg {
    display: block;
}

/* FAQ */
.faq {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, #f8fafb 0%, #eef3f8 100%);
}

.faq h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--space-md);
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid rgba(7, 16, 25, 0.06);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.faq-item[open] {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    border-color: rgba(10, 132, 255, 0.2);
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: var(--space-2xl);
    font-size: 1.1rem;
    color: var(--text);
    transition: color 0.2s ease;
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(10, 132, 255, 0.08);
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
    background: rgba(10, 132, 255, 0.12);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(7, 16, 25, 0.06);
    color: var(--muted);
    line-height: 1.7;
}

/* Waitlist */
.waitlist {
    padding: var(--space-3xl) 0;
    background: #ffffff;
}

.waitlist h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form {
    max-width: 520px;
    margin: var(--space-2xl) auto 0;
    background: rgba(255, 255, 255, 0.9);
    padding: var(--space-2xl);
    border-radius: 24px;
    border: 1px solid rgba(7, 16, 25, 0.06);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(7, 16, 25, 0.12);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-system);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.form-group input:hover,
.form-group select:hover {
    border-color: rgba(7, 16, 25, 0.2);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--gray);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

/* Waitlist Success */
.waitlist-success {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-2xl);
    background: var(--gray-light);
    border-radius: 12px;
}

.referral-section {
    margin-top: var(--space-xl);
}

.share-link {
    display: flex;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.share-link input {
    flex: 1;
    padding: var(--space-sm);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.referral-perks {
    background: var(--light);
    padding: var(--space-md);
    border-radius: 8px;
    margin: var(--space-lg) 0;
}

.referral-perks p {
    margin: var(--space-xs) 0;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.share-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: var(--light);
    border-radius: 8px;
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--light);
    padding: var(--space-2xl);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-video {
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-close:hover {
    color: var(--dark);
}

.investor-content h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.investor-content ul {
    padding-left: var(--space-lg);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #f8fafb 0%, #eef3f8 100%);
    color: var(--text);
    padding: clamp(64px, 8vw, 96px) 0 clamp(32px, 4vw, 48px);
    margin-top: 0;
    border-top: 1px solid rgba(7, 16, 25, 0.08);
}

.footer-shell {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.footer-shell::before {
    display: none;
}

.footer-content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(48px, 6vw, 72px);
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: clamp(32px, 4vw, 48px);
    border-bottom: 1px solid rgba(7, 16, 25, 0.08);
}

.footer-brand {
    flex: 1 1 300px;
    max-width: 400px;
}

.footer-brand p {
    color: var(--muted);
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-columns {
    flex: 2 1 400px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: #ffffff;
    border: 1px solid rgba(7, 16, 25, 0.06);
}

.footer-logo-name {
    font-weight: 700;
    color: var(--text);
}

.footer-logo-tag {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
}

.footer-column h3 {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-column a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.footer-column a:hover::after {
    transform: scaleX(1);
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

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

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.96);
        flex-direction: column;
        gap: var(--space-md);
        padding: 28px;
        border-radius: 24px;
        box-shadow: 0 25px 60px rgba(7, 16, 25, 0.2);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 600;
    }

    .nav-menu.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .arch-diagram {
        flex-wrap: wrap;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .comparison-table {
        font-size: 0.875rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 var(--space-sm);
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .header,
    .hero-actions,
    .btn,
    .modal,
    .nav-toggle {
        display: none;
    }
}

/* Terminal styles for demo */
.terminal {
    background: #1a1a1a;
    color: #00ff00;
    font-family: var(--font-mono);
    padding: var(--space-md);
    border-radius: 8px;
    overflow: auto;
    min-height: 300px;
}

/* ==================== FACELIFT ENHANCEMENTS ==================== */
/* Appended for visual polish - extends existing styles */

:root {
    --bg: #f7f9fd;
    --card: rgba(255, 255, 255, .92);
    --text: #071019;
    --muted: #5b6675;
    --brand: #0a84ff;
    --brand-2: #4cc6ff;
    --ring: rgba(10, 132, 255, .35);
    --radius: 22px;
    --radius-lg: 42px;
    --shadow: 0 30px 80px rgba(15, 23, 42, .15);
    --maxw: 1160px;
}

* {
    box-sizing: border-box
}

html,
body {
    color: var(--text)
}

body {
    background:
        radial-gradient(900px 600px at 15% 20%, rgba(255, 255, 255, .95), transparent 60%),
        radial-gradient(1200px 700px at 80% 0%, rgba(166, 201, 255, .35), transparent 65%),
        var(--bg);
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 .015'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .45;
    z-index: -1;
}

.container {
    max-width: var(--maxw);
    padding: 0 28px;
    margin: 0 auto;
    position: relative;
    z-index: 1
}

/* Optional sticky header if a .header exists */
.header {
    position: sticky;
    top: 0;
    z-index: 500;
    backdrop-filter: saturate(1.4) blur(14px);
    background: rgba(247, 249, 252, .65);
    border-bottom: 1px solid rgba(7, 16, 25, .08);
    box-shadow: 0 12px 40px rgba(6, 12, 20, .05);
}

/* HERO */
.hero {
    padding: clamp(64px, 8vw, 140px) 0 clamp(32px, 6vw, 80px);
    overflow: hidden;
}

.hero-content {
    display: grid;
    gap: 42px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
}

@media (max-width:960px) {
    .hero-content {
        grid-template-columns: 1fr
    }
}

.hero-copy {
    max-width: 560px
}

.hero-copy h1 {
    letter-spacing: -.015em;
    line-height: 1.05;
    font-size: clamp(38px, 5vw, 64px)
}

.hero-subhead {
    color: var(--muted);
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.6;
    max-width: 60ch;
    margin-top: 18px
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px
}

.hero-visual {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.hero-base {
    position: absolute;
    bottom: -10%;
    width: 88%;
    max-width: 620px;
    height: 180px;
    background: radial-gradient(circle at 50% 0%, rgba(9, 18, 30, .9), rgba(3, 6, 12, 1));
    border-radius: 180px 180px 0 0;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, .08), 0 25px 60px rgba(5, 10, 17, .35);
    z-index: 0;
    opacity: .9;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .4;
    z-index: 0;
    animation: orbDrift 18s ease-in-out infinite;
}

.hero-orb-large {
    width: 380px;
    height: 380px;
    background: linear-gradient(145deg, rgba(46, 161, 255, .25), rgba(79, 209, 255, .15));
    top: 15%;
    right: 0;
}

.hero-orb-small {
    width: 200px;
    height: 200px;
    background: linear-gradient(180deg, rgba(10, 132, 255, .15), rgba(76, 198, 255, .1));
    bottom: 10%;
    left: 5%;
    animation-duration: 22s;
}

.hero-orb-tiny {
    width: 120px;
    height: 120px;
    background: linear-gradient(160deg, rgba(56, 189, 248, .2), rgba(14, 132, 255, .15));
    top: 25%;
    left: -5%;
    animation-duration: 16s;
}

.hero-phone {
    position: relative;
    width: min(340px, 72vw);
    padding: 18px 16px 24px;
    border-radius: 52px;
    background: linear-gradient(145deg, #1a1d29 0%, #0f1218 100%);
    border: 3px solid rgba(40, 44, 52, .95);
    box-shadow:
        0 60px 120px rgba(5, 10, 20, .35),
        0 20px 40px rgba(5, 10, 20, .25),
        inset 0 1px 0 rgba(255, 255, 255, .08),
        inset 0 0 0 1px rgba(255, 255, 255, .03);
    z-index: 2;
    animation: phoneFloat 11s ease-in-out infinite;
}

.hero-phone img {
    width: 100%;
    height: auto;
    border-radius: 38px;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, .4),
        inset 0 1px 0 rgba(255, 255, 255, .05);
    display: block;
    background: #000;
}

.hero-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 26px;
    border-radius: 20px;
    background: linear-gradient(180deg, #0a0c10 0%, #000000 100%);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, .6),
        0 1px 0 rgba(255, 255, 255, .08);
    z-index: 10;
}

.hero-notch::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(100, 120, 140, .4);
    box-shadow: 0 0 8px rgba(100, 150, 200, .2);
}

.hero-float {
    position: absolute;
    background: rgba(255, 255, 255, .98);
    border-radius: 20px;
    border: 1px solid rgba(7, 16, 25, .1);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, .12),
        0 4px 8px rgba(15, 23, 42, .08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    padding: 16px 18px;
    max-width: 200px;
    font-size: 0.85rem;
    color: var(--muted);
    z-index: 3;
    line-height: 1.5;
    animation: cardSway 12s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.hero-float p {
    margin: 0
}

.hero-stat {
    top: 8%;
    right: 2%;
    text-align: left;
    animation-delay: .5s;
}

.hero-stat-label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .15em;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--muted);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1;
}

.hero-stat-note {
    margin-top: 6px;
    font-size: 0.8rem;
}

.hero-preview {
    bottom: 6%;
    left: -2%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation-delay: 1.2s;
}

.hero-preview p {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.hero-preview img {
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(7, 16, 25, .2);
    width: 160px;
    height: auto;
    border: 1px solid rgba(7, 16, 25, .1);
}

@media (max-width:960px) {
    .hero-visual {
        min-height: 460px
    }

    .hero-float {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        margin-top: 18px
    }

    .hero-preview img {
        width: 140px
    }

    .hero-phone {
        margin-bottom: 12px
    }
}

.hero-trust {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(7, 16, 25, .08);
}

.hero-trust-avatars {
    display: flex;
    align-items: center;
}

.hero-trust-avatars span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-left: -8px;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.hero-trust-avatars span:first-child {
    margin-left: 0
}

.hero-trust-label {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.hero-trust-note {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.momentum {
    background: linear-gradient(145deg, #03060c 0%, #0b172a 60%, #12233f 100%);
    color: #e7efff;
    padding: clamp(56px, 9vw, 120px) 0;
    margin-bottom: calc(var(--space-3xl) * 0.5);
    border-radius: 42px 42px 0 0;
}

.momentum-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width:900px) {
    .momentum-grid {
        grid-template-columns: 1fr;
        gap: 32px
    }
}

.momentum-copy h2 {
    color: #f6fbff;
    margin-bottom: 18px;
}

.momentum-copy p {
    color: rgba(231, 239, 255, .85);
    max-width: 56ch;
}

.momentum-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.momentum-step {
    background: rgba(255, 255, 255, .05);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
    min-height: 160px;
}

.momentum-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    font-weight: 600;
    margin-bottom: 14px;
}

.momentum-step h3 {
    margin-bottom: 8px;
    color: #f6fbff;
}

.momentum-step p {
    color: rgba(231, 239, 255, .78);
}

/* Features facelift styles removed - moved to main features section above */
/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

@keyframes orbDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, -16px, 0) scale(1.05);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes phoneFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes cardSway {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {

    .hero-orb,
    .hero-phone,
    .hero-float {
        animation: none !important;
    }
}

@media (max-width: 520px) {
    .nav-badge {
        display: none;
    }
}

.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px
}

.badge {
    border: 1px solid rgba(7, 16, 25, .08);
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    background: rgba(255, 255, 255, .85)
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none;
    letter-spacing: .01em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 12px 30px rgba(10, 132, 255, .28);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 16px 36px rgba(10, 132, 255, .35)
}

.btn-primary:focus {
    outline: 3px solid var(--ring);
    outline-offset: 2px
}

.btn-secondary {
    background: rgba(255, 255, 255, .9);
    color: var(--text);
    border-color: rgba(7, 16, 25, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.btn-secondary:hover {
    border-color: rgba(7, 16, 25, .2);
    color: var(--text);
    transform: translateY(-1px)
}

/* DEMO wrapper */
.demo .terminal-wrapper,
.demo video {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(7, 16, 25, .05);
    background: #fff;
    box-shadow: var(--shadow);
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(7, 16, 25, .08);
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
    font-size: 15px;
    color: var(--text)
}

.comparison-table thead th {
    background: rgba(247, 249, 252, .9);
    font-weight: 600
}

.comparison-table tbody tr:nth-child(even) {
    background: rgba(247, 249, 252, .65)
}

/* Version labels for testing */
.version-label {
    background: #ff6b35;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    display: inline-block;
}

/* Product showcase with tabs */
.screen-showcase {
    padding: clamp(40px, 6vw, 64px) 0;
    background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
}

.screen-showcase h2 {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.showcase-tabs {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(7, 16, 25, .06);
    box-shadow: 0 30px 60px rgba(15, 23, 42, .12);
}

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid rgba(7, 16, 25, .08);
    padding-bottom: 0;
}

@media (max-width:768px) {
    .tab-buttons {
        flex-direction: column;
        border-bottom: none;
        gap: 4px
    }
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all .2s ease;
    position: relative;
}

.tab-btn:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.06);
}

.tab-btn.active {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.1);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
}

@media (max-width:768px) {
    .tab-btn {
        padding: 12px 20px;
        text-align: left;
    }
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width:960px) {
    .tab-layout {
        grid-template-columns: 1fr
    }
}

.tab-image {
    text-align: center;
}

.tab-image img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(7, 16, 25, .15);
}

.tab-text h3 {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 16px;
}

.tab-text p {
    color: var(--muted);
    line-height: 1.6;
}

/* Referral disclosure styling */
.referral-disclosure {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    margin-top: 8px;
    opacity: 0.8;
}

/* Refactored Inline Styles */

/* Header Refactor */
.logo-container {
    width: 40px;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.logo-img {
    width: 250%;
    height: 250%;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}

/* Hero Refactor */
.hero-section-refactored {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, #e0f2fe 0%, #ffffff 60%);
    position: relative;
    padding: 20px 60px;
    overflow: hidden;
}

.hero-grid-refactored {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1500px;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 60px;
    align-items: center;
}

.hero-badge-container {
    display: inline-flex;
    gap: 12px;
    background: rgba(37, 99, 235, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-badge-text {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-headline {
    font-size: clamp(2.5rem, 5.5vw, 4.8rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--dark);
}

.hero-subheadline {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.hero-btn-secondary {
    padding: 16px 40px;
    font-size: 1.1rem;
    background: white;
    border-color: #e2e8f0;
}

.hero-right-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-glow-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(0, 102, 204, 0.25) 100%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-phone-container {
    position: relative;
    display: inline-block;
}

.hero-floating-card {
    position: absolute;
    background: white;
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 180px;
    text-align: left;
    z-index: 20;
}

.hero-floating-card.top-left {
    top: 8%;
    left: -45%;
}

.hero-floating-card.mid-right {
    top: 42%;
    right: -25%;
}

.hero-floating-card.bottom-left {
    bottom: 8%;
    left: -38%;
}

.floating-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.floating-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
}

.floating-card-desc {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

.phone-bezel {
    padding: 3px;
    background: #1a1a1a;
    border-radius: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.phone-screen {
    border-radius: 45px;
    overflow: hidden;
    background: #000;
}

.phone-img {
    display: block;
    max-width: min(380px, 85vw);
    max-height: 70vh;
    width: auto;
    height: auto;
}

/* Showcase Refactor */
.showcase-section {
    padding: 80px 0 60px;
    background: #ffffff;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 50px;
}

.tab-btn-refactored {
    padding: 12px 28px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.tab-panel-refactored {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
    align-items: center;
}

.tab-panel-refactored.active {
    display: grid;
}

.tab-panel-hidden {
    display: none;
}

.tab-image-container {
    width: 100%;
    max-width: 300px;
    padding: 3px;
    background: #1a1a1a;
    border-radius: 42px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.tab-image-screen {
    border-radius: 39px;
    overflow: hidden;
    background: #000;
}

.tab-image {
    width: 100%;
    height: auto;
    display: block;
}

.tab-content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.tab-content-desc {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Demo Section Refactor */
.demo-section-refactored {
    background: #f8fafc;
    padding-top: 40px;
    padding-bottom: 80px;
}

.demo-container-refactored {
    max-width: 1000px;
    margin: 0 auto;
}

.demo-video-desktop {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #1a1b26;
}

.demo-video-mobile {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 12px;
    background: #1a1b26;
}

/* Mobile Responsive Adjustments for Refactored Classes */
@media (max-width: 768px) {
    .hero-section-refactored {
        height: auto;
        min-height: 100vh;
        padding: 40px 20px;
    }

    .hero-grid-refactored {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 40px;
        max-width: 100%;
    }

    .hero-floating-card {
        display: none;
        /* Hide floating cards on mobile for cleaner look, or adjust positioning */
    }

    .tab-panel-refactored {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .tab-panel-refactored>div:nth-child(1) {
        order: 2;
    }

    .tab-panel-refactored>div:nth-child(2) {
        order: 1;
        text-align: center;
    }

    .demo-video-desktop {
        display: none;
    }

    .demo-video-mobile {
        display: block;
    }
}

/* ==================== CONVERSION OPTIMIZATION STYLES ==================== */
/* Added for beta launch - trust line, AI logos, waitlist counter, etc. */

/* Trust Line */
.trust-line {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
    margin-bottom: 0;
    text-align: left;
}

@media (max-width: 960px) {
    .trust-line {
        text-align: center;
    }
}

/* AI Models Row */
.ai-models-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .ai-models-row {
        justify-content: center;
    }
}

.ai-models-label {
    font-size: 12px;
    color: #6b7280;
}

.ai-logos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-logo-badge {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.ai-logo-badge:hover {
    color: #374151;
    background: rgba(107, 114, 128, 0.2);
}

/* Email Helper Text */
.email-helper {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 0;
}

/* Waitlist Counter */
.waitlist-counter {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: -16px;
    margin-bottom: 24px;
}

.counter-number {
    font-weight: 600;
    color: var(--primary);
}

/* Screenshot Labels */
.screenshot-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    text-align: center;
    margin-top: 12px;
}

.hero-phone-container .screenshot-label {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Sticky Mobile CTA */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sticky-cta-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sticky-cta-button:hover {
    background: var(--primary-dark);
    color: white;
}

@media (max-width: 768px) {
    .sticky-cta-mobile.visible {
        display: block;
    }
}