/* ========================================
   CORTEXA — Coming Soon Landing Page
   Premium theme with light/dark mode support

   THEME SELECTION:
   - For DARK mode: Add class "dark" to <html> element
   - For LIGHT mode: Add class "light" to <html> element
   - Default (no class): Dark mode
   ======================================== */

/* CSS Custom Properties - Dark Theme (Default) */
:root,
html.dark {
    /* Colors - Deep space palette with clinical precision */
    --bg-primary: #0a0b0f;
    --bg-secondary: #0f1015;
    --bg-elevated: #14151c;
    --bg-card: rgba(20, 22, 30, 0.7);
    --bg-glass: rgba(20, 22, 30, 0.5);

    --text-primary: #f0f2f5;
    --text-secondary: #b0b4be;
    --text-muted: #8a8f9a;

    --accent-primary: #63B3ED;    /* Calm blue - trust, healthcare */
    --accent-secondary: #68D391;  /* Success green */
    --accent-tertiary: #B794F4;   /* Soft purple accent */
    --accent-warm: #F6AD55;       /* Warm orange for alerts */

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);

    --glow-primary: rgba(99, 179, 237, 0.15);
    --glow-secondary: rgba(104, 211, 145, 0.15);

    /* Dark mode specific */
    --svg-box-fill: rgba(20, 22, 30, 0.8);
    --svg-box-stroke: rgba(255, 255, 255, 0.1);
    --svg-text-fill: #8b8f9a;
    --svg-ring-stroke: rgba(255, 255, 255, 0.05);
    --svg-ring-stroke-inner: rgba(255, 255, 255, 0.08);
    --chrome-bg: #14151c;
    --modal-bg: rgba(0, 0, 0, 0.8);
}

/* CSS Custom Properties - Light Theme */
html.light {
    /* Colors - Clean, clinical, trustworthy */
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-elevated: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.6);

    --text-primary: #1a1d23;
    --text-secondary: #5a5e6a;
    --text-muted: #8b8f9a;

    --accent-primary: #3182CE;    /* Deeper blue for light mode */
    --accent-secondary: #38A169;  /* Deeper green */
    --accent-tertiary: #805AD5;   /* Deeper purple */
    --accent-warm: #DD6B20;       /* Deeper orange */

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);

    --glow-primary: rgba(49, 130, 206, 0.12);
    --glow-secondary: rgba(56, 161, 105, 0.12);

    /* Light mode specific */
    --svg-box-fill: rgba(255, 255, 255, 0.9);
    --svg-box-stroke: rgba(0, 0, 0, 0.1);
    --svg-text-fill: #5a5e6a;
    --svg-ring-stroke: rgba(0, 0, 0, 0.05);
    --svg-ring-stroke-inner: rgba(0, 0, 0, 0.08);
    --chrome-bg: #f0f1f4;
    --modal-bg: rgba(0, 0, 0, 0.5);
}

/* Shared variables (both themes) */
:root {
    /* Typography Scale */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

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

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ========================================
   AMBIENT BACKGROUND
   ======================================== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-tertiary), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.5;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.logo-img-footer {
    height: 55px;
}

.logo-mark {
    font-size: 1.5rem;
    color: var(--accent-primary);
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(104, 211, 145, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(104, 211, 145, 0); }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    padding: var(--space-4xl) var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    padding-top: var(--space-3xl);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
}

.badge-icon {
    color: var(--accent-primary);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xl);
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

.title-accent {
    color: var(--accent-primary);
    font-style: italic;
}

/* Rotating Words Animation */
.title-rotating {
    display: block;
    height: 1.2em;
    overflow: hidden;
    position: relative;
}

.rotating-words {
    display: block;
    position: relative;
}

.rotating-words .word {
    display: block;
    height: 1.2em;
    color: var(--accent-primary);
    font-style: italic;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    animation: wordFade 8s infinite;
}

.rotating-words .word:nth-child(1) { animation-delay: 0s; }
.rotating-words .word:nth-child(2) { animation-delay: 2s; }
.rotating-words .word:nth-child(3) { animation-delay: 4s; }
.rotating-words .word:nth-child(4) { animation-delay: 6s; }

@keyframes wordFade {
    0% {
        opacity: 0;
        transform: translateY(50%);
    }
    5% {
        opacity: 1;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    25% {
        opacity: 0;
        transform: translateY(-50%);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: var(--space-2xl);
    opacity: 0;
    line-height: 1.7;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Email Form */
.email-form {
    width: 100%;
    max-width: 440px;
}

.input-wrapper {
    display: flex;
    background: var(--bg-glass);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 6px;
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(20px);
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--glow-primary);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
}

.input-wrapper button:hover {
    background: #7cc4f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--glow-primary);
}

.input-wrapper button:active {
    transform: translateY(0);
}

.cta-note {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   DATA FLOW VISUALIZATION
   ======================================== */
.data-flow-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 0.6s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.flow-visualization-svg {
    width: 100%;
    height: 100%;
    max-width: 700px;
}

.tool-node-group rect:first-child {
    transition: all var(--duration-normal) var(--ease-out);
}

.tool-node-group:hover rect:first-child {
    stroke: rgba(255,255,255,0.3);
}

.tool-node-group text {
    transition: fill var(--duration-normal) var(--ease-out);
}

.tool-node-group:hover text {
    fill: #f0f2f5;
}

/* SVG hub styles handled inline */

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

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

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px var(--glow-primary);
}

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

.card-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    opacity: 0;
    filter: blur(60px);
    transition: opacity var(--duration-slow) var(--ease-out);
}

.feature-card:hover .card-glow {
    opacity: 0.15;
}

.card-content {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.feature-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.feature-metrics {
    display: flex;
    gap: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-secondary);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Feature card color accents */
.feature-card[data-feature="finance"]:hover .card-glow {
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
}

.feature-card[data-feature="payroll"]:hover .card-glow {
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}

.feature-card[data-feature="growth"]:hover .card-glow {
    background: radial-gradient(circle, var(--accent-warm), transparent 70%);
}

.feature-card[data-feature="ops"]:hover .card-glow {
    background: radial-gradient(circle, var(--accent-tertiary), transparent 70%);
}

/* ========================================
   DASHBOARD PREVIEW SECTION
   ======================================== */
.preview-section {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

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

.preview-header {
    margin-bottom: var(--space-3xl);
}

.dashboard-preview {
    position: relative;
    perspective: 1500px;
}

.dashboard-frame {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 100px var(--glow-primary);
    transform: rotateX(5deg);
    transition: transform var(--duration-slow) var(--ease-out);
}

.dashboard-frame:hover {
    transform: rotateX(0deg);
}

.dashboard-chrome {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.chrome-dots {
    display: flex;
    gap: var(--space-sm);
}

.chrome-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
}

.chrome-dots span:nth-child(1) { background: #ff5f57; border-color: #e0443e; }
.chrome-dots span:nth-child(2) { background: #febc2e; border-color: #dea123; }
.chrome-dots span:nth-child(3) { background: #28c840; border-color: #1aab29; }

.chrome-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dashboard-content {
    display: flex;
    min-height: 400px;
}

.dash-sidebar {
    width: 200px;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-subtle);
    padding: var(--space-lg);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.sidebar-item:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: var(--bg-glass);
    color: var(--accent-primary);
}

.sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 0.75rem;
}

.dash-main {
    flex: 1;
    padding: var(--space-xl);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.dash-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: left;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.dash-card-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-card-badge {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
}

.dash-card-badge.positive {
    background: rgba(104, 211, 145, 0.15);
    color: var(--accent-secondary);
}

.dash-card-badge.neutral {
    background: rgba(99, 179, 237, 0.15);
    color: var(--accent-primary);
}

.dash-card-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.dash-card-subtext {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.dash-card-chart {
    margin-top: var(--space-md);
    height: 40px;
}

.dash-card-chart svg {
    width: 100%;
    height: 100%;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.alert-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.alert-dot.warning { background: var(--accent-warm); }
.alert-dot.info { background: var(--accent-primary); }
.alert-dot.success { background: var(--accent-secondary); }

.preview-reflection {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: linear-gradient(180deg, rgba(99, 179, 237, 0.1), transparent);
    filter: blur(40px);
    opacity: 0.5;
}

/* ========================================
   INTEGRATION SECTION
   ======================================== */
.integration-section {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

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

.integration-content {
    max-width: 800px;
    margin: 0 auto;
}

.integration-logos {
    margin: var(--space-3xl) 0;
}

.logo-row {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.integration-logo {
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-out);
}

.integration-logo:hover {
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.integration-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) var(--space-xl);
    margin-top: var(--space-4xl);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-4xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
}

.cta-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.email-form-large {
    max-width: 480px;
    margin: 0 auto var(--space-2xl);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.trust-badge svg {
    color: var(--accent-secondary);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.footer-tagline {
    margin-top: var(--space-sm);
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform var(--duration-normal) var(--ease-bounce);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-secondary);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    margin: 0 auto var(--space-xl);
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.modal-close {
    padding: var(--space-md) var(--space-2xl);
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.modal-close:hover {
    background: #7cc4f5;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.feature-card,
.section-header,
.dashboard-preview,
.integration-content,
.cta-container {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.feature-card.visible,
.section-header.visible,
.dashboard-preview.visible,
.integration-content.visible,
.cta-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
        padding-top: 120px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .data-flow-container {
        height: 350px;
    }

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

    .dash-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
    }

    .nav {
        padding: var(--space-md);
    }

    .nav-status {
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-xs);
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .status-text {
        font-size: 0.625rem;
    }

    .logo-img {
        height: 45px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .input-wrapper {
        flex-direction: column;
        padding: var(--space-sm);
    }

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

    .input-wrapper button {
        width: 100%;
        justify-content: center;
    }

    .data-flow-container {
        display: none;
    }

    .feature-metrics {
        flex-direction: column;
        gap: var(--space-md);
    }

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

    .logo-row {
        flex-direction: column;
        gap: var(--space-md);
    }

    .footer-main {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }

    .trust-badges {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.6875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-container {
        padding: var(--space-2xl);
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   LIGHT MODE SPECIFIC OVERRIDES
   ======================================== */
html.light .ambient-bg {
    opacity: 0.6;
}

html.light .gradient-orb.orb-1 {
    background: radial-gradient(circle, rgba(49, 130, 206, 0.4), transparent 70%);
}

html.light .gradient-orb.orb-2 {
    background: radial-gradient(circle, rgba(128, 90, 213, 0.3), transparent 70%);
}

html.light .gradient-orb.orb-3 {
    background: radial-gradient(circle, rgba(56, 161, 105, 0.2), transparent 70%);
}

html.light .grid-overlay {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    opacity: 1;
}

html.light .nav {
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
}

html.light .logo-mark {
    color: var(--accent-primary);
}

html.light .status-dot {
    background: var(--accent-secondary);
    box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.4);
}

html.light .title-accent {
    color: var(--accent-primary);
}

html.light .input-wrapper {
    background: var(--bg-glass);
    border-color: var(--border-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html.light .input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--glow-primary), 0 2px 8px rgba(0, 0, 0, 0.04);
}

html.light .input-wrapper button {
    background: var(--accent-primary);
    color: white;
}

html.light .input-wrapper button:hover {
    background: #2c5282;
    box-shadow: 0 4px 20px var(--glow-primary);
}

/* Light mode SVG visualization */
html.light .flow-visualization-svg .tool-node-group rect:first-child {
    fill: var(--svg-box-fill);
    stroke: var(--svg-box-stroke);
}

html.light .flow-visualization-svg .tool-node-group text {
    fill: var(--svg-text-fill);
}

html.light .flow-visualization-svg .cortexa-hub-group circle:nth-child(1),
html.light .flow-visualization-svg .cortexa-hub-group circle:nth-child(2) {
    stroke: var(--svg-ring-stroke);
}

/* Light mode feature cards */
html.light .feature-card {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html.light .feature-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 60px var(--glow-primary);
}

html.light .feature-icon {
    background: var(--bg-primary);
}

html.light .metric-value {
    color: var(--accent-secondary);
}

/* Light mode dashboard preview */
html.light .dashboard-frame {
    background: var(--bg-secondary);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 0 100px var(--glow-primary);
}

html.light .dashboard-chrome {
    background: var(--chrome-bg);
}

html.light .dash-sidebar {
    background: var(--chrome-bg);
}

html.light .dash-card {
    background: var(--bg-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.light .dash-card-badge.positive {
    background: rgba(56, 161, 105, 0.1);
    color: var(--accent-secondary);
}

html.light .dash-card-badge.neutral {
    background: rgba(49, 130, 206, 0.1);
    color: var(--accent-primary);
}

/* Light mode integration logos */
html.light .integration-logo {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html.light .integration-logo:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Light mode CTA section */
html.light .cta-container {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

html.light .cta-container::before {
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* Light mode modal */
html.light .modal {
    background: var(--modal-bg);
}

html.light .modal-content {
    background: var(--bg-secondary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

html.light .modal-close {
    background: var(--accent-primary);
    color: white;
}

html.light .modal-close:hover {
    background: #2c5282;
}

/* Light mode footer */
html.light .footer {
    background: var(--bg-secondary);
}