:root {
    /* =========================================================================
       DESIGN TOKENS - Centralized design system variables
       ========================================================================= */

    /* Color Palette - "Clinical Calm" */
    --bg-dark: #F8FAFC;
    --bg-surface: rgba(15, 23, 42, 0.04);
    --bg-surface-hover: rgba(15, 23, 42, 0.06);

    /* Accents - Restrained */
    --accent-blue: #1F4FD0;
    --accent-indigo: #2F80ED;
    --accent-teal: #0BB5A7;
    --accent-purple: #4F46E5;

    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #64748B;

    /* Gradients */
    --gradient-glow: radial-gradient(circle at center, rgba(31, 79, 208, 0.12), transparent 70%);
    --gradient-text: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    --gradient-premium: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0));

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: "Charter", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
    --font-mono: 'Space Mono', monospace;

    /* Fluid Type Scale */
    --fs-h1: clamp(3.5rem, 5vw + 1rem, 5rem);
    --fs-h2: clamp(2.5rem, 4vw + 1rem, 3.5rem);
    --fs-h3: clamp(1.5rem, 2vw + 1rem, 2rem);
    --fs-body: clamp(1rem, 0.5vw + 0.8rem, 1.125rem);

    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 6rem;

    /* Border Radius Scale */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 99px;
    --radius-circle: 50%;

    /* Animation Durations */
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    --duration-slower: 0.8s;

    /* Animation Easings */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-fixed: 1000;
    --z-modal: 10000;

    /* Premium Effects */
    --glass-blur: blur(20px);
    --border-subtle: 1px solid rgba(15, 23, 42, 0.08);
    --border-highlight: 1px solid rgba(15, 23, 42, 0.12);
    --shadow-premium: 0 18px 30px -16px rgba(15, 23, 42, 0.2);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.12);
    --noise-url: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Base Setup */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    cursor: auto;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 20% 0%, #ffffff 0%, #F4F7FB 45%, #EEF2F7 100%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    font-size: var(--fs-body);
    cursor: auto;
}

/* Cursor behavior */
a,
button,
.btn {
    cursor: pointer;
}

input,
textarea,
select {
    cursor: text;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: var(--noise-url);
    opacity: 0.08;
    mix-blend-mode: normal;
}

body.reduce-motion .noise-overlay {
    display: none;
}

/* Skip link + focus visibility (public-facing a11y basics) */
.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    transform: translateY(-200%);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
    z-index: 10001;
    backdrop-filter: blur(10px);
}

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

:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}


/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
    font-weight: 600;
}

h2 {
    font-size: var(--fs-h2);
    display: inline-block;
    font-weight: 600;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 500;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    padding: 0.5rem 1rem;
    background: rgba(31, 79, 208, 0.08);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(31, 79, 208, 0.2);
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: none;
}

@keyframes eyebrow-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.text-center .eyebrow,
.about-content .eyebrow {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Buttons - Magnetic & Tactile */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    /* Magnetic support */
    transform-style: preserve-3d;
    will-change: transform;
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    border: 1px solid var(--accent-blue);
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.btn-primary::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.08);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    color: #fff;
    border-color: #183FA7;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: none;
    position: relative;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(31, 79, 208, 0.25), rgba(47, 128, 237, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-spring);
}

.btn-secondary:hover {
    border-color: transparent;
    color: var(--accent-blue);
    background: rgba(31, 79, 208, 0.06);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:active {
    transform: translateY(0);
}


/* Cards - Glassmorphism 2.0 with Spotlight */
.card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Gradient border glow on hover */
.card::after {
    content: none;
}

/* Spotlight Glow Element (JS will position this, but fallback to center hover) */
.card::before {
    content: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    border-color: rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card>* {
    position: relative;
    /* Ensure content is above spotlight */
    z-index: 2;
}

/* Header - Floating Pill Style */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: var(--z-sticky);
    padding: 1rem 2rem;
    transition: all var(--duration-normal) ease;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.nav-links a {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-left: 2rem;
    color: var(--text-secondary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    /* Contain glow elements */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Dramatic Gradient Orb - Hero focal point */
.hero::before {
    content: none;
}

@keyframes hero-orb-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes hero-orb-pulse {
    0%, 100% { opacity: 0.3; filter: blur(120px); }
    50% { opacity: 0.5; filter: blur(100px); }
}

/* Technical Grid */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

/* Moving Grid Line (Scanner) */
.hero-grid::after {
    content: none;
}

@keyframes scan-grid {
    0% {
        background-position: 0% 0%;
    }

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

/* Sophisticated ambient glow */
.glow-bg {
    display: none;
}

.glow-bg-2 {
    display: none;
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
}

/* Glowing section separator */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80%);
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

/* Cleo Product */
.cleo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.5rem;
    align-items: start;
}

.cleo-intro {
    max-width: 700px;
}

.cleo-cta {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.cleo-cta-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cleo-cta-copy {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.cleo-actions {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 0;
    flex-direction: column;
}

.cleo-cta .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.98rem;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    box-sizing: border-box;
}

.cleo-cta .btn-primary {
    box-shadow: var(--shadow-sm);
}

.cleo-cta .btn-secondary {
    box-shadow: none;
}

.cleo-cards {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

/* Halo Section */
.halo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: start;
}

.halo-text {
    max-width: 680px;
}

.halo-panel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.halo-panel-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.halo-panel-copy {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.halo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.halo-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.halo-list li::before {
    content: '';
    width: 10px;
    height: 2px;
    margin-top: 0.6em;
    border-radius: 999px;
    background: rgba(31, 79, 208, 0.5);
    flex-shrink: 0;
}

.halo-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-start;
}

.halo-actions .btn {
    width: auto;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
}

/* Visual placeholder styling - "The Prism" */
.visual-box {
    aspect-ratio: 4/3;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    /* More refined border */
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Scanning line effect */
.visual-box::after {
    content: none;
}

@keyframes scan {
    0% {
        background-position: 0% 0%;
    }

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

.visual-box::before {
    content: none;
}

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

    to {
        transform: rotate(360deg);
    }
}

.visual-content {
    background: radial-gradient(circle at 30% 20%, #FFFFFF 0%, #F1F5F9 55%, #E2E8F0 100%);
    width: 98.5%;
    height: 98.5%;
    border-radius: 14px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    position: relative;
    padding: 3.5rem 2rem 2rem;
}

/* AI Core Visualization */
.visual-content::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    height: 28px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
    z-index: 0;
}

.visual-content::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    bottom: -40px;
    right: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 79, 208, 0.12), transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.visual-content > * {
    position: relative;
    z-index: 1;
}

@keyframes core-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Orbiting rings */
.visual-content .ring-1,
.visual-content .ring-2,
.visual-content .ring-3 {
    display: none;
}

.visual-content .ring-1 {
    width: 120px;
    height: 120px;
    animation: none;
    border-color: rgba(31, 79, 208, 0.2);
    box-shadow: none;
}

.visual-content .ring-2 {
    width: 180px;
    height: 180px;
    animation: none;
    border-color: rgba(47, 128, 237, 0.2);
    box-shadow: none;
}

.visual-content .ring-3 {
    width: 240px;
    height: 240px;
    animation: none;
    border-color: rgba(11, 181, 167, 0.2);
    box-shadow: none;
}

@keyframes ring-spin {
    from { transform: rotateX(70deg) rotateZ(0deg); }
    to { transform: rotateX(70deg) rotateZ(360deg); }
}

/* Core center dot */
.visual-content .core-center {
    display: none;
}

@keyframes core-glow {
    0%, 100% {
        box-shadow:
            0 0 16px var(--accent-blue),
            0 0 32px var(--accent-blue),
            0 0 48px rgba(31, 79, 208, 0.35);
    }
    50% {
        box-shadow:
            0 0 20px var(--accent-blue),
            0 0 48px var(--accent-blue),
            0 0 64px rgba(31, 79, 208, 0.45);
    }
}

/* Visual Metrics (inside Cleo visual box) */
.visual-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0;
    z-index: 10;
}

.visual-metric {
    text-align: left;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.visual-metric-value {
    display: block;
    font-size: 1.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.visual-metric-label {
    display: block;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    color: var(--text-tertiary);
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0.25rem;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Steps (How it works) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-num {
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(31, 79, 208, 0.08);
    border: 1px solid rgba(31, 79, 208, 0.2);
    color: var(--accent-blue);
    box-shadow: none;
}

.step-card:nth-child(2) .step-num {
    background: rgba(47, 128, 237, 0.08);
    border-color: rgba(47, 128, 237, 0.2);
    color: var(--accent-indigo);
    box-shadow: none;
}

.step-card:nth-child(3) .step-num {
    background: rgba(11, 181, 167, 0.08);
    border-color: rgba(11, 181, 167, 0.2);
    color: var(--accent-teal);
    box-shadow: none;
}

/* About Section */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 4rem 0;
    position: relative;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    background: transparent;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 90%);
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

footer .logo {
    color: var(--text-primary);
    opacity: 1;
    letter-spacing: 0.15em;
}

footer a {
    color: var(--text-secondary);
    transition: color var(--duration-fast) ease;
}

footer a:hover {
    color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 900px) {
    .cleo-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .halo-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    header {
        width: 95%;
        padding: 1rem;
    }
}

/* Capabilities Grid (Cleo Section) */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.capability-card {
    background: var(--bg-surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.capability-card::before {
    content: none;
}

.capability-card:hover {
    background: rgba(15, 23, 42, 0.04);
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: var(--shadow-md);
}

.capability-card:hover::before {
    opacity: 1;
}

.capability-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Capability card icons */
.capability-card h4::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(31, 79, 208, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.capability-card:nth-child(1) h4::before {
    background: rgba(31, 79, 208, 0.12);
    border-color: rgba(31, 79, 208, 0.18);
}

.capability-card:nth-child(2) h4::before {
    background: rgba(47, 128, 237, 0.12);
    border-color: rgba(47, 128, 237, 0.18);
}

.capability-card:nth-child(3) h4::before {
    background: rgba(11, 181, 167, 0.12);
    border-color: rgba(11, 181, 167, 0.18);
}

.capability-card:nth-child(4) h4::before {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.18);
}

/* Team and Advisors styles removed (section deleted from HTML) */

/* LinkedIn Button */
.linkedin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 1rem;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 50%;
    transition: all var(--duration-fast) ease;
}

.linkedin-btn:hover {
    color: var(--accent-blue);
    border-color: rgba(31, 79, 208, 0.3);
    background: rgba(31, 79, 208, 0.06);
}

.linkedin-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.linkedin-btn-sm {
    width: 32px;
    height: 32px;
    margin-top: 0.75rem;
}

.linkedin-btn-sm svg {
    width: 14px;
    height: 14px;
}

/* Removed team/advisor info styles (no longer used) */

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .feature-grid,
    .steps-grid,
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-grid .card,
    .steps-grid .card,
    .card {
        height: auto !important;
        min-height: 0;
        position: relative;
        overflow: visible;
        margin-bottom: 0;
    }

    .feature-grid,
    .steps-grid {
        gap: 2rem !important;
    }

    .section::before {
        display: none;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        margin-top: 3rem;
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--duration-slower) var(--ease-spring);
    will-change: opacity, transform;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ambient Drift */
@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.6;
    }

    33% {
        transform: translate(30px, -40px) rotate(3deg) scale(1.1);
        opacity: 0.8;
    }

    66% {
        transform: translate(-20px, 30px) rotate(-2deg) scale(0.95);
        opacity: 0.5;
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
}

.glow-bg {
    animation: drift 25s infinite ease-in-out;
}

.glow-bg-2 {
    animation: drift 30s infinite ease-in-out reverse;
}

/* Text Scramble Effect Class (for JS) */
.scramble-char {
    color: var(--accent-blue);
    font-family: var(--font-mono);
    opacity: 0.8;
}


/* Data Stream Effect */
.stream-text {
    position: relative;
    white-space: pre-wrap;
}

.stream-cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.2em;
    background-color: var(--accent-blue);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Pixelate Reveal Effect */
.pixelate-reveal {
    opacity: 0;
    filter: brightness(0) grayscale(100%);
    /* clip-path: inset(0 100% 0 0); Removed to ensure intersection detection */
    transform: scale(0.95);
    /* subtle zoom instead */
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

.pixelate-reveal.visible {
    opacity: 1;
    animation: glitch-reveal 0.6s steps(5, end) forwards;
}

@keyframes glitch-reveal {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        /* Hidden */
        filter: brightness(2) grayscale(100%) contrast(200%);
        transform: translate(-5px, 0);
    }

    10% {
        clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%);
        /* Top slice */
        filter: brightness(1.8) grayscale(100%);
        transform: translate(5px, 0);
    }

    30% {
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
        /* Growing */
        filter: brightness(1.5) sepia(100%) hue-rotate(90deg);
        /* Glitch color */
        transform: translate(-2px, 0);
    }

    50% {
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 60%);
        filter: brightness(1.2) grayscale(0%);
        transform: translate(2px, 0);
    }

    70% {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 85%);
        filter: brightness(1.1);
        transform: translate(-1px, 0);
    }

    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        /* Fully revealed */
        filter: brightness(1) grayscale(0%);
        transform: none;
    }
}

/* Focus Warp Transition - Subtle & Clean */
#view-container {
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    will-change: opacity, transform;
}

#view-container.warp-active {
    opacity: 0.4;
    transform: scale(0.98);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: calc(var(--z-fixed) + 1);
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s var(--ease-out-quint);
        z-index: var(--z-fixed);
        padding-bottom: 2rem;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 2rem;
        /* Larger touch targets */
        margin-left: 0;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    /* Staggered animation for links */
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.4s;
    }
}

@media (max-width: 900px) {
}

@media (max-width: 640px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-xl: 4rem;
        --fs-h1: clamp(2.6rem, 6vw + 1rem, 3.2rem);
        --fs-h2: clamp(2rem, 4vw + 0.5rem, 2.6rem);
    }

    .section {
        padding: 5rem 0;
    }

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


    #contact .container > div {
        margin-top: 2rem !important;
        display: grid;
        gap: 0.75rem;
    }

    #contact .btn {
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        display: block;
        box-sizing: border-box;
    }

    footer .container > div {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    footer .logo {
        font-size: 0.95rem;
    }

    .cleo-cta,
    .halo-panel {
        padding: 1.4rem;
    }

    .cleo-cta .btn,
    .halo-actions .btn {
        width: 100%;
        font-size: 0.95rem;
    }

    .halo-list {
        gap: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    body.reduce-motion .hero-grid::after,
    body.reduce-motion .glow-bg,
    body.reduce-motion .glow-bg-2,
    body.reduce-motion .ring-1,
    body.reduce-motion .ring-2,
    body.reduce-motion .ring-3,
    body.reduce-motion .core-center,
    body.reduce-motion .capability-card:hover,
    body.reduce-motion .card::before,
    body.reduce-motion .card:hover,
    body.reduce-motion .visual-box::after,
    body.reduce-motion .visual-box::before,
    body.reduce-motion .hero-grid::after {
        animation: none !important;
        transition: none !important;
    }

    body.reduce-motion header,
    body.reduce-motion .nav-links,
    body.reduce-motion .testimonial {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

body.reduce-motion .nav-links {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
