/* ============================================
   EAOS DESIGN SYSTEM v5
   Design Philosophy: Abyssal Utilitarian
   Midnight Zone palette meets clinical precision
   ============================================ */

/* CSS Variables - Design System */
:root {
    /* --- MIDNIGHT ZONE PALETTE --- */
    --abyss-black: #05070A;
    --sonar-white: #E5E7EB;
    --trench-grey: #374151;
    --depth-grey: #1F2937;
    --biolume-cyan: #06B6D4;
    --alert-amber: #F59E0B;
    --critical-red: #DC2626;

    /* --- LIGHT MODE VARIABLES --- */
    --paper: #F5F3EE;
    --ink: #1F1F1F;

    /* --- LEGACY GRAYSCALE MAPPINGS --- */
    --void: var(--abyss-black);
    --obsidian: #0A0D12;
    --graphite: #111318;
    --slate: #1A1D24;
    --steel: #252830;

    --charcoal: var(--abyss-black);
    --gray-900: #0D0F14;
    --gray-800: #14171D;
    --gray-700: #1E2128;
    --gray-600: #374151;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;

    --zinc: #52525B;
    --ash: #71717A;
    --smoke: #A1A1AA;
    --fog: #D4D4D8;
    --mist: #E4E4E7;
    --cloud: #FAFAFA;

    /* Legacy aliases */
    --black: var(--abyss-black);
    --white: var(--sonar-white);
    --background: var(--paper);
    --surface: #FFFFFF;

    /* --- SEMANTIC STATUS --- */
    --blue: var(--biolume-cyan);
    --blue-dim: #0891B2;
    --blue-glow: rgba(6, 182, 212, 0.15);

    --red: var(--critical-red);
    --red-dim: #B91C1C;
    --red-glow: rgba(220, 38, 38, 0.12);

    --amber: var(--alert-amber);

    /* --- EDDY PRESENCE (Now Cyan) --- */
    --green: var(--biolume-cyan);
    --green-dim: #0891B2;
    --green-glow: rgba(6, 182, 212, 0.15);
    --green-glow-strong: rgba(6, 182, 212, 0.3);

    /* Cyan specific aliases */
    --cyan: var(--biolume-cyan);
    --cyan-dim: #0891B2;
    --cyan-glow: rgba(6, 182, 212, 0.15);
    --cyan-glow-strong: rgba(6, 182, 212, 0.3);

    /* --- GLASS EFFECT --- */
    --glass-bg: rgba(5, 7, 10, 0.85);
    --glass-bg-light: rgba(5, 7, 10, 0.7);
    --glass-border: rgba(6, 182, 212, 0.2);
    --glass-blur: blur(12px);

    /* --- FONT FAMILIES --- */
    --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    /* --- TYPE SCALE (Extreme Contrast) --- */
    --text-micro: 10px;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;
    --text-display: 48px;
    --text-hero: clamp(72px, 10vw, 120px);

    /* --- SPACING (8px Base) --- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Line Height */
    --leading-tight: 1.1;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;

    /* Letter Spacing */
    --tracking-tighter: -0.025em;
    --tracking-tight: -0.01em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.08em;

    /* --- SHADOWS --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
    --shadow-focus-cyan: 0 0 0 3px var(--cyan-glow);

    /* --- ANIMATION TIMING --- */
    --transition-fast: 0.1s ease;
    --transition-base: 0.15s ease;
    --transition-slow: 0.25s ease;

    --duration-instant: 150ms;
    --duration-fast: 200ms;
    --duration-normal: 250ms;
    --duration-max: 300ms;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--ink);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* No rounded corners - Clinical Precision */
* {
    border-radius: 0 !important;
}

/* ============================================
   HEADER - Abyss Black with Contour Mark
   ============================================ */

.header {
    background: var(--abyss-black);
    border-bottom: 1px solid var(--steel);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-8);
    gap: var(--space-6);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-mark {
    height: 48px;
    width: auto;
}

.logo-contour {
    height: 56px;
    width: auto;
}

.logo-horizontal {
    height: 40px;
    width: auto;
}

.logo-wordmark {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--sonar-white);
    text-transform: uppercase;
    line-height: 1;
}

.logo-tagline {
    font-family: var(--font-mono);
    font-size: var(--text-micro);
    font-weight: 400;
    letter-spacing: var(--tracking-wider);
    color: var(--gray-500);
    text-transform: uppercase;
}

.header-system-info {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-family: var(--font-mono);
    font-size: var(--text-micro);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.header-system-info .separator {
    color: var(--steel);
}

/* ============================================
   EDDY PRESENCE - Cyan Status Indicator
   ============================================ */

.eddy-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.eddy-dot {
    width: 8px;
    height: 8px;
    background: var(--biolume-cyan);
    border-radius: 50% !important;
    animation: pulse-cyan 2.5s ease-in-out infinite;
    box-shadow: 0 0 12px var(--cyan-glow), 0 0 4px var(--biolume-cyan);
}

.eddy-label {
    font-family: var(--font-mono);
    font-size: var(--text-micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--biolume-cyan);
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    background: var(--gray-900);
    border-bottom: 1px solid var(--steel);
    position: sticky;
    top: 80px;
    z-index: 99;
}

.nav-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    gap: var(--space-8);
    padding: var(--space-3) var(--space-6);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--gray-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--sonar-white);
}

.nav-link.active {
    color: var(--sonar-white);
    border-bottom-color: var(--biolume-cyan);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

.section {
    padding: var(--space-24) 0;
    background: var(--background);
}

.section-dark {
    background: var(--abyss-black);
    color: var(--sonar-white);
    position: relative;
    overflow: hidden;
}

/* Bathymetric texture on dark sections */
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/eaos-texture-hero.png');
    background-size: cover;
    background-position: center;
    opacity: 0.04;
    pointer-events: none;
}

.section-dark > .container {
    position: relative;
    z-index: 1;
}

.section-cta {
    background: var(--abyss-black);
    color: var(--sonar-white);
    text-align: center;
}

/* ============================================
   TYPOGRAPHY - Extreme Scale
   ============================================ */

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-12);
    text-align: center;
}

.section-dark .section-title {
    color: var(--sonar-white);
}

.section-intro {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-dark .section-intro {
    color: var(--gray-400);
}

.body-text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

.body-text-emphasis {
    font-weight: 600;
    color: var(--ink);
}

/* ============================================
   HERO SECTION - Bathymetric Background
   ============================================ */

.hero {
    background: var(--abyss-black);
    color: var(--sonar-white);
    padding: var(--space-24) 0;
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Bathymetric texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/eaos-texture-hero.png');
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    pointer-events: none;
}

/* Large contour logo as hero background element */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    max-width: 800px;
    aspect-ratio: 1;
    background-image: url('assets/eaos-contour-hero.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
}

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

.hero-content {
    text-align: center;
    margin-bottom: var(--space-16);
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--biolume-cyan);
    margin-bottom: var(--space-4);
    text-shadow: 0 0 30px var(--cyan-glow);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--gray-400);
    margin-bottom: var(--space-12);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

/* ============================================
   HERO VISUALS - Glass Effect Terminal
   ============================================ */

.hero-visuals {
    position: relative;
    padding: var(--space-8);
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: var(--space-6);
}

.hero-visual-left,
.hero-visual-right {
    position: relative;
    z-index: 1;
}

.hero-visuals .terminal {
    width: 400px;
    font-size: var(--text-xs);
}

.hero-visuals .hero-screenshot {
    max-width: 500px;
    width: auto;
    height: auto;
    align-self: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
}

/* ============================================
   TERMINAL - Glass Effect Aesthetic
   ============================================ */

.terminal {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    margin: 0 auto;
    max-width: 900px;
    font-family: var(--font-mono);
    box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
    position: relative;
}

/* Corner anchors */
.terminal::before,
.terminal::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--biolume-cyan);
    opacity: 0.5;
}

.terminal::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.terminal::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.terminal-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05) 0%, transparent 100%);
}

.terminal-title {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--sonar-white);
}

.terminal-status {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--biolume-cyan);
    animation: pulse-cyan 2.5s ease-in-out infinite;
    text-shadow: 0 0 8px var(--cyan-glow);
}

.terminal-content {
    padding: var(--space-6);
    line-height: 1.75;
}

.terminal-line {
    margin-bottom: var(--space-3);
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-sm);
}

.terminal-spacer {
    margin-top: var(--space-4);
}

.terminal-prompt {
    color: var(--biolume-cyan);
    font-weight: 600;
}

.terminal-text {
    color: var(--smoke);
}

.terminal-label {
    color: var(--ash);
}

.terminal-value {
    color: var(--sonar-white);
    font-variant-numeric: tabular-nums;
}

.terminal-warning {
    color: var(--alert-amber);
    animation: pulse-cyan 1.5s ease-in-out infinite;
}

.terminal-success {
    color: var(--biolume-cyan);
}

/* ============================================
   BUTTONS - Cyan Accent, Sharp Corners
   ============================================ */

.button-primary {
    min-height: 48px;
    padding: 12px 32px;
    background: var(--biolume-cyan);
    color: var(--abyss-black);
    border: 2px solid var(--biolume-cyan);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    cursor: pointer;
    transition: all var(--transition-base);
}

.button-primary:hover {
    background: #22D3EE;
    border-color: #22D3EE;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}

.button-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.button-secondary {
    min-height: 48px;
    padding: 12px 32px;
    background: transparent;
    color: var(--sonar-white);
    border: 2px solid var(--gray-600);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    cursor: pointer;
    transition: all var(--transition-base);
}

.button-secondary:hover {
    border-color: var(--biolume-cyan);
    color: var(--sonar-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.button-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

.button-large {
    min-height: 56px;
    padding: 16px 40px;
    font-size: var(--text-xl);
}

/* ============================================
   CARDS & GRIDS
   ============================================ */

.grid-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.grid-four {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.card {
    background: var(--surface);
    border: 1px solid var(--gray-300);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--gray-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-dark {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--steel);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
}

.card-dark:hover {
    border-color: var(--glass-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-title {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--ink);
    margin-bottom: var(--space-6);
}

.card-dark .card-title {
    color: var(--sonar-white);
}

.card-title-large {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-6);
}

.card-metrics {
    margin-bottom: var(--space-6);
}

.metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

.metric-label {
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.metric-value {
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.card-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
}

.card-text-sm {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--gray-400);
    margin-bottom: var(--space-4);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-table {
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--steel);
}

.comparison-header {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--gray-500);
    border-bottom: 2px solid var(--trench-grey);
}

.comparison-cell {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.comparison-row:not(.comparison-header) .comparison-cell:first-child {
    color: var(--gray-500);
}

.comparison-highlight {
    color: var(--sonar-white);
    font-weight: 600;
}

/* ============================================
   LOOP VISUALIZATION - Progress Circles
   ============================================ */

.loop-horizontal {
    max-width: 1200px;
    margin: 0 auto;
}

.loop-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.loop-step-horizontal {
    flex: 0 0 auto;
    width: 200px;
    text-align: center;
}

.loop-number {
    font-family: var(--font-mono);
    font-size: var(--text-5xl);
    font-weight: 400;
    color: var(--biolume-cyan);
    line-height: 1;
    margin-bottom: var(--space-4);
    letter-spacing: 0.05em;
}

.loop-title {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--ink);
    margin-bottom: var(--space-3);
}

.loop-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
}

.loop-arrow-horizontal {
    font-size: var(--text-3xl);
    color: var(--gray-400);
    align-self: center;
    margin-top: 40px;
}

.loop-caption {
    width: 100%;
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-300);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
    text-align: center;
}

/* ============================================
   TECH LISTS
   ============================================ */

.tech-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 2;
    color: var(--gray-400);
    margin-bottom: var(--space-4);
}

.industry-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 2;
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}

.badge-normal {
    background: var(--biolume-cyan);
    color: var(--abyss-black);
}

.badge-neutral {
    background: var(--gray-300);
    color: var(--ink);
}

/* ============================================
   CUSTOMERS
   ============================================ */

.customer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-12);
    max-width: 1200px;
    margin: 0 auto;
}

.customer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.customer-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 150ms var(--ease-out);
}

.customer-logo:hover {
    opacity: 1;
}

.customer:first-child .customer-logo {
    max-width: 140px;
}

.customer-location {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ============================================
   CTA ACTIONS
   ============================================ */

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--abyss-black);
    color: var(--sonar-white);
    padding: var(--space-16) 0 var(--space-8) 0;
    border-top: 1px solid var(--steel);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--gray-500);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--gray-400);
    text-decoration: none;
    transition: color 150ms var(--ease-out);
}

.footer-links a:hover {
    color: var(--sonar-white);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--steel);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.footer-legal {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 150ms var(--ease-out);
}

.footer-legal a:hover {
    color: var(--gray-400);
}

.footer-separator {
    margin: 0 var(--space-2);
}

/* Footer tagline */
.footer-tagline {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-style: italic;
}

/* ============================================
   QUOTE BOXES - Glass Effect
   ============================================ */

.quote-box {
    padding: var(--space-8);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 4px solid var(--biolume-cyan);
}

.quote-box p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--gray-300);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.quote-attribution {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

/* ============================================
   INFO BOXES
   ============================================ */

.info-box {
    padding: var(--space-6);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 4px solid var(--biolume-cyan);
}

.info-box-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--sonar-white);
}

.info-box-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--gray-400);
}

/* Light variant */
.info-box-light {
    padding: var(--space-8);
    background: var(--surface);
    border-left: 4px solid var(--biolume-cyan);
}

.info-box-light .info-box-title {
    color: var(--ink);
}

.info-box-light .info-box-text {
    color: var(--gray-600);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .hero-visuals {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }

    .hero-visuals .terminal {
        width: 100%;
        max-width: 400px;
    }

    .hero-visuals .hero-screenshot {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    /* Header adjustments */
    .header-inner {
        padding: var(--space-3) var(--space-4);
    }

    .logo {
        gap: 2px;
    }

    .logo-mark {
        height: 32px;
    }

    .logo-contour {
        height: 40px;
    }

    .logo-horizontal {
        height: 28px;
    }

    .logo-wordmark {
        font-size: 24px;
        letter-spacing: 0.1em;
    }

    .logo-tagline {
        font-size: 8px;
    }

    .header-system-info {
        font-size: 9px;
        gap: var(--space-3);
    }

    .nav-link {
        font-size: var(--text-sm);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .section-intro {
        font-size: var(--text-base);
    }

    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-cell {
        border-bottom: 1px solid var(--steel);
    }

    .comparison-row .comparison-cell:first-child {
        border-bottom: none;
        padding-bottom: var(--space-2);
    }

    .comparison-row .comparison-cell:last-child {
        padding-top: var(--space-2);
    }

    /* Navigation - horizontal scroll on mobile */
    .nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        top: 60px;
    }

    .nav-inner {
        gap: var(--space-6);
        font-size: 10px;
        padding: 0 var(--space-4);
        justify-content: flex-start;
        white-space: nowrap;
    }

    .nav-link {
        flex-shrink: 0;
    }

    .terminal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Loop horizontal - stack vertically on mobile */
    .loop-row {
        flex-direction: column;
        gap: var(--space-4);
    }

    .loop-arrow-horizontal {
        transform: rotate(90deg);
        margin: 0;
    }

    .loop-step-horizontal {
        width: 100%;
    }

    /* Grid layouts - single column on mobile */
    .grid-three,
    .grid-four {
        grid-template-columns: 1fr;
    }

    /* Hero section - reorder on mobile */
    .hero .container {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 1;
    }

    .terminal {
        order: 2;
        margin-top: var(--space-6);
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-4);
        order: 3;
        margin-top: var(--space-6);
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    /* Terminal - simplified for mobile */
    .terminal {
        max-width: 100%;
        font-size: var(--text-xs);
    }

    .terminal-header {
        padding: var(--space-3) var(--space-4);
    }

    .terminal-title {
        font-size: var(--text-xs);
    }

    .terminal-status {
        font-size: 10px;
    }

    .terminal-content {
        padding: var(--space-4);
    }

    .terminal-line {
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-bottom: var(--space-2);
        font-size: var(--text-xs);
    }

    /* Footer grid */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    /* Customer logos */
    .customer-logo {
        max-width: 150px;
    }

    .customer:first-child .customer-logo {
        max-width: 100px;
    }

    /* Blog grid */
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--gray-300);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.blog-card:hover {
    border-color: var(--biolume-cyan);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-card-placeholder {
    opacity: 0.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.blog-category {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--biolume-cyan);
}

.blog-date {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.blog-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.blog-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--transition-base);
}

.blog-title a:hover {
    color: var(--biolume-cyan);
}

.blog-excerpt {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

.blog-topics {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.blog-topic {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    background: var(--gray-200);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* ============================================
   LINKS
   ============================================ */

.link-arrow {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--biolume-cyan);
    text-decoration: none;
    transition: all var(--transition-base);
}

.link-arrow:hover {
    color: #22D3EE;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-cyan { color: var(--biolume-cyan); }
.text-amber { color: var(--alert-amber); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
