@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════════
   Auralith OMNI — Landing Page
   Aesthetic: "Clean White SaaS"
   Light-dominant · Auralith Blue (#2d7ce0) · Professional Clarity
   Typography: Inter (body) · JetBrains Mono (display/logo)
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── DESIGN TOKENS (DARK-FIRST) ─── */
:root {
    /* Clean White Surfaces */
    --bg-void: #ffffff;
    --bg-primary: #f8f9fb;
    --bg-elevated: #ffffff;
    --bg-surface: #f1f3f6;
    --bg-panel: rgba(255, 255, 255, 0.88);
    --bg-panel-hover: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.72);

    /* Auralith Blue Spectrum */
    --cosmic: #2d7ce0;
    --cosmic-deep: #1d6cd0;
    --cosmic-light: #4a9eff;
    --cosmic-bright: #6ab0ff;
    --cosmic-glow: rgba(45, 124, 224, 0.2);
    --cosmic-subtle: rgba(45, 124, 224, 0.06);
    --cosmic-border: rgba(45, 124, 224, 0.15);
    --cosmic-wash: rgba(45, 124, 224, 0.04);

    /* Text — high contrast on white */
    --text-primary: #1a1d26;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-faint: #cbd5e0;

    /* Edges & Structure */
    --edge: rgba(0, 0, 0, 0.08);
    --edge-hover: rgba(45, 124, 224, 0.3);
    --edge-bright: rgba(45, 124, 224, 0.5);

    /* Status */
    --emerald: #059669;
    --amber: #d97706;
    --coral: #dc2626;

    /* Depth — light shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 4px 20px rgba(45, 124, 224, 0.08);
    --shadow-glow-lg: 0 8px 40px rgba(45, 124, 224, 0.12);
    --shadow-glow-hero: 0 0 80px rgba(45, 124, 224, 0.08);

    /* Geometry */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-pill: 999px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --duration: 0.4s;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Compatibility aliases */
    --border: var(--edge);
    --bg-secondary: var(--bg-elevated);
    --accent-blue: var(--cosmic);
}

/* Light mode override removed — landing page is always light.
   Dark/light toggle is only available on logged-in app pages. */


/* ═══════════════════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-void);
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════════════
   AMBIENT BACKGROUND — Multi-layer depth system
   ═══════════════════════════════════════════════════════════════════════ */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--bg-void);
}

/* Noise grain overlay */
.ambient-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    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)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    mix-blend-mode: overlay;
}

/* Slow-drifting cosmic radial glows */
.ambient-glow-1,
.ambient-glow-2,
.ambient-glow-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.ambient-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 124, 224, 0.04) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: glowDrift1 25s infinite alternate;
}

.ambient-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 124, 224, 0.03) 0%, transparent 70%);
    bottom: 20%;
    left: -10%;
    animation: glowDrift2 30s infinite alternate;
}

.ambient-glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 124, 224, 0.02) 0%, transparent 70%);
    top: 40%;
    right: 20%;
    animation: glowDrift3 20s infinite alternate;
}

@keyframes glowDrift1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-60px, 40px) scale(1.1);
    }
}

@keyframes glowDrift2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -30px) scale(0.9);
    }
}

@keyframes glowDrift3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, -50px) scale(1.15);
    }
}

/* Canvas particle system container */
.ambient-particles {
    position: absolute;
    inset: 0;
}

.ambient-particles canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Subtle scanline effect for depth */
.ambient-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.008) 2px,
            rgba(255, 255, 255, 0.008) 4px);
    pointer-events: none;
}

/* Light-mode ambient overrides removed — page is always light */


/* ═══════════════════════════════════════════════════════════════════════
   NAVIGATION — Frosted glass command bar
   ═══════════════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.5s var(--ease);
    background: transparent;
}

.nav-scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--edge);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.brand-mark {
    width: 32px;
    height: 32px;
    background: var(--cosmic);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    box-shadow: 0 4px 16px var(--cosmic-glow);
    transition: all var(--duration) var(--spring);
}

.brand-mark-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: all var(--duration) var(--spring);
}

.nav-brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 24px var(--cosmic-glow);
}

.nav-brand:hover .brand-mark-img {
    transform: scale(1.12) rotate(-3deg);
    filter: drop-shadow(0 4px 12px rgba(74, 158, 255, 0.3));
}

.brand-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--cosmic-wash);
}

.nav-btn-ghost {
    color: var(--text-secondary) !important;
    border: 1px solid var(--edge);
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-pill) !important;
}

.nav-btn-ghost:hover {
    border-color: var(--edge-hover) !important;
    color: var(--cosmic-light) !important;
}

.nav-btn-primary {
    background: var(--cosmic) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 4px 16px var(--cosmic-glow);
    transition: all var(--duration) var(--ease) !important;
}

.nav-btn-primary:hover {
    background: var(--cosmic-deep) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-lg) !important;
}

/* Mobile */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--edge);
    border-radius: var(--radius-xs);
    padding: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--edge);
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   HERO — Cinematic asymmetric command bridge
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

/* Hero background: depth layers */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 124, 224, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 124, 224, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(45, 124, 224, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

/* Hero content — asymmetric offset */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cosmic-light);
    background: var(--cosmic-wash);
    border: 1px solid var(--cosmic-border);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cosmic);
    box-shadow: 0 0 8px var(--cosmic);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--cosmic-light), var(--cosmic), var(--cosmic-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* Primary CTA — glowing cosmic button */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--cosmic);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 24px var(--cosmic-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: var(--cosmic-deep);
}

.btn-hero-primary:hover::after {
    transform: translateX(100%);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border: 1px solid var(--edge);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}

.btn-hero-secondary:hover {
    border-color: var(--edge-hover);
    color: var(--cosmic-light);
    transform: translateY(-1px);
}

/* Hero metrics bar */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--edge);
}

.hero-metric {
    text-align: left;
}

.metric-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
    font-weight: 400;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--edge);
}


/* ═══════════════════════════════════════════════════════════════════════
   SCROLL REVEAL SYSTEM
   ═══════════════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* Hero container should always be visible — no scroll reveal on above-the-fold content */
.hero .reveal,
.hero-container.reveal {
    opacity: 1;
    transform: none;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.24s;
}

.reveal-delay-3 {
    transition-delay: 0.36s;
}


/* ═══════════════════════════════════════════════════════════════════════
   SECTIONS — Shared patterns
   ═══════════════════════════════════════════════════════════════════════ */
section {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cosmic);
    margin-bottom: 1rem;
}

.section-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    font-weight: 400;
}


/* ═══════════════════════════════════════════════════════════════════════
   HOW IT WORKS — Steps with terminal-style numbering
   ═══════════════════════════════════════════════════════════════════════ */
.how-it-works {
    border-top: 1px solid var(--edge);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

/* Top edge glow on hover */
.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cosmic), transparent);
    opacity: 0;
    transition: opacity var(--duration);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--edge-hover);
    box-shadow: var(--shadow-glow);
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--cosmic);
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--cosmic-subtle);
    border: 1px solid var(--cosmic-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--cosmic);
}

.step-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   FEATURES — Asymmetric spotlight layout
   ═══════════════════════════════════════════════════════════════════════ */
.features-section {
    border-top: 1px solid var(--edge);
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 3rem;
}

/* Feature highlight — hero capability card */
.feature-highlight {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border: 1px solid var(--cosmic-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    margin-bottom: 2rem;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, var(--cosmic) 50%, transparent 90%);
    opacity: 0.6;
}

.feature-highlight::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 124, 224, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.feature-highlight:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--cosmic);
    transform: translateY(-2px);
}

.feature-highlight h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-highlight p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 600px;
}

/* Regular feature cards — animated list items */
.feature-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--edge);
    border-radius: 0;
    padding: 1.5rem 0;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: capabilitySlideIn 0.6s var(--ease) forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(7) {
    animation-delay: 0.6s;
}

.feature-card:last-child {
    border-bottom: none;
}

@keyframes capabilitySlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--cosmic);
    border-radius: 2px;
    transition: height 0.3s var(--ease);
}

.feature-card:hover {
    transform: none;
    padding-left: 1.25rem;
    background: rgba(45, 124, 224, 0.03);
    border-color: var(--edge-hover);
}

.feature-card:hover::before {
    height: 60%;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--cosmic-subtle);
    border: 1px solid var(--cosmic-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--cosmic);
}

.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: rgba(45, 124, 224, 0.08);
    box-shadow: 0 0 16px rgba(45, 124, 224, 0.15), 0 0 4px rgba(45, 124, 224, 0.08);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0;
    animation: capabilityFadeDesc 0.5s var(--ease) forwards;
    animation-delay: inherit;
}

@keyframes capabilityFadeDesc {
    to {
        opacity: 1;
    }
}

.feature-card:nth-child(2) p {
    animation-delay: 0.3s;
}

.feature-card:nth-child(3) p {
    animation-delay: 0.4s;
}

.feature-card:nth-child(4) p {
    animation-delay: 0.5s;
}

.feature-card:nth-child(5) p {
    animation-delay: 0.6s;
}

.feature-card:nth-child(6) p {
    animation-delay: 0.7s;
}

.feature-card:nth-child(7) p {
    animation-delay: 0.8s;
}

.feature-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cosmic);
    background: var(--cosmic-subtle);
    border: 1px solid var(--cosmic-border);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
}


/* ═══════════════════════════════════════════════════════════════════════
   INTEGRATIONS — Scrolling marquee
   ═══════════════════════════════════════════════════════════════════════ */
.integrations-section {
    border-top: 1px solid var(--edge);
    overflow: hidden;
}

.integrations-track {
    display: flex;
    gap: 1rem;
    animation: marquee 40s linear infinite;
    width: max-content;
    margin-top: 3rem;
}

.integrations-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.integration-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: var(--bg-surface);
    border: 1px solid var(--edge);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--duration) var(--ease);
    flex-shrink: 0;
}

.integration-chip:hover {
    border-color: var(--edge-hover);
    box-shadow: var(--shadow-glow);
    color: var(--cosmic-light);
}

.integration-chip-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   INTEGRATIONS MARQUEE — Logo scroll (index.html)
   ═══════════════════════════════════════════════════════════════════════ */
.integrations-marquee {
    overflow: hidden;
    position: relative;
    margin-top: 2.5rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

/* Hover effect only — no animation pause needed */

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.int-logo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--edge);
    border-radius: var(--radius-sm);
    padding: 0.625rem;
    transition: all var(--duration) var(--ease);
}

.int-logo:hover {
    border-color: var(--edge-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px) scale(1.05);
}

.int-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: none;
    opacity: 0.7;
    transition: all var(--duration) var(--ease);
}

.int-logo:hover img {
    filter: none;
    opacity: 1;
}

.integrations-link {
    text-align: center;
    margin-top: 2rem;
}

.integrations-link a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--cosmic);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.integrations-link a:hover {
    color: var(--cosmic-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Use case icons ── */
.usecase-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}


/* ═══════════════════════════════════════════════════════════════════════
   USE CASES — Alternating asymmetric blocks
   ═══════════════════════════════════════════════════════════════════════ */
.usecases-section {
    border-top: 1px solid var(--edge);
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.usecase-card {
    background: var(--bg-surface);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: all var(--duration) var(--ease);
    position: relative;
}

.usecase-card:hover {
    transform: translateY(-4px);
    border-color: var(--edge-hover);
    box-shadow: var(--shadow-glow);
}

.usecase-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.usecase-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════════
   PRICING — Glass panels with cosmic accent on featured
   ═══════════════════════════════════════════════════════════════════════ */
.pricing-section {
    border-top: 1px solid var(--edge);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: start;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--duration) var(--ease);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--cosmic-border);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cosmic-deep), var(--cosmic), var(--cosmic-light));
    border-radius: var(--radius) var(--radius) 0 0;
}

.pricing-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cosmic);
    background: var(--cosmic-subtle);
    border: 1px solid var(--cosmic-border);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 1rem;
}

.pricing-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.pricing-price {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.pricing-price .price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--edge);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '→';
    color: var(--cosmic);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.pricing-cta {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.pricing-card .pricing-cta {
    background: transparent;
    border: 1px solid var(--edge);
    color: var(--text-secondary);
}

.pricing-card .pricing-cta:hover {
    border-color: var(--cosmic);
    color: var(--cosmic);
}

.pricing-card.featured .pricing-cta {
    background: var(--cosmic);
    color: white;
    border: none;
    box-shadow: 0 4px 16px var(--cosmic-glow);
}

.pricing-card.featured .pricing-cta:hover {
    background: var(--cosmic-deep);
    box-shadow: var(--shadow-glow-lg);
}

/* ── Landing page pricing variants (index.html) ── */
.pricing-featured {
    border-color: var(--cosmic-border) !important;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.pricing-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cosmic-deep), var(--cosmic), var(--cosmic-light));
    border-radius: var(--radius) var(--radius) 0 0;
}

.pricing-popular {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: white;
    background: var(--cosmic);
    padding: 0.25rem 0.875rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    box-shadow: 0 4px 12px var(--cosmic-glow);
}

.pricing-tier {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.price-currency {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: super;
}

.price-amount {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    border-radius: var(--radius-pill);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--edge);
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
}

.btn-pricing:hover {
    border-color: var(--cosmic);
    color: var(--cosmic);
    transform: translateY(-1px);
}

.btn-pricing-primary {
    background: var(--cosmic) !important;
    color: white !important;
    border-color: var(--cosmic) !important;
    box-shadow: 0 4px 16px var(--cosmic-glow);
}

.btn-pricing-primary:hover {
    background: var(--cosmic-deep) !important;
    box-shadow: var(--shadow-glow-lg);
}

/* ── Infrastructure description ── */
.infra-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.infra-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Footer columns wrapper ── */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .metric-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   INFRASTRUCTURE — Trust badges
   ═══════════════════════════════════════════════════════════════════════ */
.infra-section {
    border-top: 1px solid var(--edge);
}

.infra-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

.infra-text h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.infra-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.infra-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.infra-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--edge);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.infra-badge svg {
    color: var(--cosmic);
}

.infra-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.infra-logo-img {
    opacity: 0.8;
    transition: opacity var(--duration);
    filter: none;
}

.infra-logo-img:hover {
    opacity: 1;
    filter: none;
}

.infra-logo-divider {
    width: 1px;
    height: 40px;
    background: var(--edge);
}

/* Partner badge — clean icon + text */
.infra-partner-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.85;
    transition: opacity var(--duration);
}

.infra-partner-badge:hover {
    opacity: 1;
}

.infra-partner-text {
    display: flex;
    flex-direction: column;
}

.infra-partner-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.infra-partner-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .infra-content {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   FINAL CTA — Cinematic dark section
   ═══════════════════════════════════════════════════════════════════════ */
.final-cta {
    position: relative;
    text-align: center;
    padding: 8rem 0;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-void) 0%, var(--bg-primary) 50%, var(--bg-void) 100%);
    z-index: 0;
}

.final-cta .container {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.final-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════════════
   FOOTER — Minimal terminal aesthetic
   ═══════════════════════════════════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--edge);
    padding: 2.5rem 0 1.5rem;
    background: #f4f5f7;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 2rem;
}

.footer-brand .brand-text {
    margin-bottom: 0.75rem;
    display: block;
}

.footer-brand p {
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    transition: color var(--duration);
}

.footer-col a:hover {
    color: var(--cosmic-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid var(--edge);
}

.footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #2d3748;
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   THEME TOGGLE — Fixed FAB
   ═══════════════════════════════════════════════════════════════════════ */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--edge);
    background: var(--bg-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--duration) var(--ease);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-glow);
    border-color: var(--cosmic-border);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    transition: all 0.3s var(--ease);
}

/* Theme toggle removed from landing page — only for logged-in users */