/* POLARIS v5 Premium Architectural Research Documentation & Console System */

:root {
    --bg-sand: #f0ede4;
    --bg-surface: #f9f8f3;
    --bg-card: #ffffff;
    --bg-cyprus: #004741;
    --bg-cyprus-dark: #002b27;
    --bg-cyprus-deep: #021a17;
    
    --text-cyprus: #004741;
    --text-primary: #0a1f1c;
    --text-secondary: #335952;
    --text-muted: #66857e;
    --text-sand: #f0ede4;
    
    --accent-emerald: #00665d;
    --accent-lime: #d4e897;
    --accent-red: #c94a4a;
    
    --border-cyprus: #004741;
    --border-subtle: rgba(0, 71, 65, 0.15);

    --font-display: 'Syne', 'Space Grotesk', sans-serif;
    --font-head: 'Space Grotesk', 'Inter', sans-serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --shadow-architectural: 0 4px 24px rgba(0, 71, 65, 0.06);
    --shadow-card: 0 16px 40px rgba(0, 71, 65, 0.1);
    --shadow-depth: 0 20px 50px rgba(0, 71, 65, 0.14);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-sand);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* TOP DOCUMENTATION STRIP BANNER */
.domain-banner {
    background: var(--bg-cyprus-deep);
    color: var(--text-sand);
    padding: 10px 48px;
    font-family: var(--font-mono);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--accent-emerald);
}

.domain-banner span.domain-name {
    color: var(--accent-lime);
    font-weight: 700;
}

/* FULL BLEED MONOLITH HERO */
.hero-monolith {
    background: var(--bg-cyprus);
    color: var(--text-sand);
    padding: 70px 48px 100px;
    border-bottom: 3px solid var(--bg-cyprus-deep);
    position: relative;
}

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

.hero-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    color: var(--text-sand);
    text-decoration: none;
    letter-spacing: -1px;
}

.hero-brand span {
    color: var(--accent-lime);
}

.hero-nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.hero-nav-link {
    color: #b3d1cb;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-mono);
    transition: color 0.15s ease;
}

.hero-nav-link:hover {
    color: #ffffff;
}

.hero-nav-cta {
    background: var(--accent-lime);
    color: var(--bg-cyprus-deep);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 13px;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--accent-lime);
}

.hero-nav-cta:hover {
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-1px);
}

.hero-content {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(240, 237, 228, 0.3);
    color: var(--accent-lime);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: 68px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-headline span {
    color: var(--accent-lime);
}

.hero-description {
    font-size: 19px;
    color: #cce5e1;
    margin-bottom: 36px;
    line-height: 1.6;
    max-width: 620px;
}

.hero-btn-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-hero-main {
    background: var(--accent-lime);
    color: var(--bg-cyprus-deep);
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 14px;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-main:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.btn-hero-sub {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-hero-sub:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* HIGH-CONTRAST HERO RADAR HUD CONSOLE CARD */
.hero-radar-hud-card {
    background: var(--bg-card);
    border: 2.5px solid var(--border-cyprus);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-depth);
}

.radar-hud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 11px;
}

.radar-title-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-cyprus);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-lime);
    border: 2px solid var(--bg-cyprus);
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-lime);
}

.radar-status-badge {
    background: var(--bg-cyprus);
    color: var(--accent-lime);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.canvas-hud-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--bg-cyprus-dark);
}

#hero-radar-canvas {
    background: var(--bg-cyprus-deep);
    display: block;
    width: 100%;
    height: 320px;
}

/* RADAR TELEMETRY FOOTER READOUTS */
.radar-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1.5px solid var(--border-subtle);
}

.telemetry-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-mono);
}

.telemetry-block-label {
    font-size: 9px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.telemetry-block-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-cyprus);
}

/* OVERLAPPING STATS ROW CARD */
.stats-container {
    max-width: 1380px;
    margin: -40px auto 80px;
    padding: 0 48px;
    position: relative;
    z-index: 10;
}

.stats-card-row {
    background: var(--bg-card);
    border: 2px solid var(--border-cyprus);
    border-radius: var(--radius-xl);
    padding: 32px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    box-shadow: var(--shadow-depth);
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child { border-right: none; }

.stat-val {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    color: var(--text-cyprus);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
}

.stat-title {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* SECTIONS */
.section {
    padding: 90px 48px;
    max-width: 1380px;
    margin: 0 auto;
}

.section-head {
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    color: var(--text-cyprus);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 14px;
    border: 1.5px solid var(--border-cyprus);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
}

.section-title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-cyprus);
    margin-bottom: 14px;
}

.section-lead {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 720px;
}

/* VISUAL MATH */
.visual-math-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.math-card {
    background: var(--bg-card);
    border: 2px solid var(--border-cyprus);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-depth);
}

.math-info h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-cyprus);
    margin-bottom: 12px;
}

.math-info p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.math-formula-box {
    background: var(--bg-cyprus);
    color: var(--accent-lime);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.math-diagram-box {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-cyprus);
    border-radius: var(--radius-lg);
    padding: 16px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* CONNECTED PIPELINE FLOW */
.pipeline-flow-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.pipeline-flow-step {
    background: var(--bg-card);
    border: 2px solid var(--border-cyprus);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 2;
}

.pipeline-flow-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pipeline-num-badge {
    background: var(--bg-cyprus);
    color: var(--accent-lime);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.pipeline-flow-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-cyprus);
}

.pipeline-flow-desc {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 500px;
}

.pipeline-flow-connector {
    display: flex;
    justify-content: center;
    margin: -6px 0;
    position: relative;
    z-index: 1;
}

.pipeline-arrow-svg {
    width: 24px;
    height: 24px;
    fill: var(--text-cyprus);
}

/* BENCHMARK VISUAL BARS */
.bench-visual-container {
    background: var(--bg-card);
    border: 2px solid var(--border-cyprus);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-depth);
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.bench-chart-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bench-chart-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-cyprus);
}

.bench-bar-row {
    display: grid;
    grid-template-columns: 140px 1fr 100px;
    gap: 20px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
}

.bench-bar-label {
    font-weight: 700;
    color: var(--text-primary);
}

.bench-bar-track {
    background: var(--bg-surface);
    border: 1px solid var(--border-cyprus);
    border-radius: var(--radius-pill);
    height: 24px;
    overflow: hidden;
    position: relative;
}

.bench-bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 0.8s ease;
}

.bench-bar-fill.naked { background: var(--accent-red); }
.bench-bar-fill.polaris { background: var(--bg-cyprus); }

.bench-bar-value {
    font-weight: 800;
    color: var(--text-cyprus);
}

/* RESEARCH METHODOLOGY FLOW BOX */
.methodology-flow-box {
    background: var(--bg-card);
    border: 2.5px solid var(--border-cyprus);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    box-shadow: var(--shadow-depth);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.methodology-node {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-cyprus);
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.2s ease;
}

.methodology-node.highlight {
    background: var(--bg-cyprus);
    color: var(--text-sand);
    border-color: var(--bg-cyprus-dark);
}

.methodology-node.highlight .node-badge {
    background: var(--accent-lime);
    color: var(--bg-cyprus-deep);
}

.methodology-node.highlight .node-title {
    color: #ffffff;
}

.methodology-node.highlight .node-sub {
    color: var(--accent-lime);
}

.node-badge {
    background: var(--bg-cyprus);
    color: var(--accent-lime);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.node-content { display: flex; flex-direction: column; gap: 2px; }

.node-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-cyprus);
}

.node-sub {
    font-size: 13.5px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
}

.methodology-connector {
    display: flex;
    justify-content: center;
    margin: -4px 0;
}

.arrow-svg {
    width: 20px;
    height: 20px;
    fill: var(--text-cyprus);
}

.footer {
    background: var(--bg-cyprus-deep);
    color: var(--text-sand);
    padding: 80px 48px 48px;
}

.footer-grid {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-brand span { color: var(--accent-lime); }

.footer-bottom {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
}

.icon-svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* SELECTIVE SCIENTIFIC SCROLL ANIMATIONS */
.reveal-hero-head {
    opacity: 0;
    transform: translateY(20px);
    animation: revealHero 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-hero-desc {
    opacity: 0;
    transform: translateY(20px);
    animation: revealHero 500ms cubic-bezier(0.16, 1, 0.3, 1) 100ms forwards;
}

.reveal-hero-btns {
    opacity: 0;
    transform: translateY(20px);
    animation: revealHero 500ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

@keyframes revealHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1), transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger-container.is-visible .reveal-stagger-item:nth-child(1) {
    opacity: 1; transform: translateY(0); transition-delay: 0ms;
}

.reveal-stagger-container.is-visible .reveal-stagger-item:nth-child(2) {
    opacity: 1; transform: translateY(0); transition-delay: 80ms;
}

.pipeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-flow-container.is-visible .pipeline-item:nth-child(1) {
    opacity: 1; transform: translateY(0); transition-delay: 0ms;
}

.pipeline-flow-container.is-visible .pipeline-item:nth-child(2) {
    opacity: 1; transform: translateY(0); transition-delay: 80ms;
}

.pipeline-flow-container.is-visible .pipeline-item:nth-child(3) {
    opacity: 1; transform: translateY(0); transition-delay: 160ms;
}
