/* ==========================================================================
   Station 66 — Dedicated Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #07090e;
    --bg-surface: #0f131c;
    --bg-surface-elevated: #161c28;
    --bg-header: rgba(7, 9, 14, 0.88);
    --accent: #38bdf8;          /* Aero Cyan */
    --accent-glow: rgba(56, 189, 248, 0.2);
    --accent-hover: #0ea5e9;
    --route-red: #dc2626;        /* Station 66 Emblem Accent */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1e2638;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-w: 1200px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
}

body {
    line-height: 1.6;
    padding-top: 116px; /* Offset for ribbon + fixed header */
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.accent { color: var(--accent); }

/* --- Top Ribbon --- */
.top-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background-color: #040508;
    border-bottom: 1px solid var(--border-color);
    z-index: 1001;
    display: flex;
    align-items: center;
}

.top-ribbon-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-ribbon span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}

/* --- Navigation Header --- */
.site-header {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--bg-header);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

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

.main-nav .nav-ext {
    color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #040508;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-nav {
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-nav:hover {
    background-color: var(--accent);
    color: #040508;
}

/* --- Hero Visual Section --- */
.hero-visual {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-image: url('../images/hero-depot.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(7, 9, 14, 0.94) 0%, 
        rgba(7, 9, 14, 0.88) 45%, 
        rgba(7, 9, 14, 0.35) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
    max-width: var(--max-w);
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    background-color: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}

.hero-visual h1 {
    font-size: 4.25rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-subhead {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-founder-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    display: inline-block;
}

/* --- Sections Common --- */
.section {
    padding: 6.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* --- Mission Grid --- */
.grid-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 6px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.4);
}

.feature-index {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* --- Technology Section --- */
.tech-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.tech-narrative h2 {
    font-size: 2.35rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.tech-narrative > p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.tech-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-specs li {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 1.25rem;
    position: relative;
}

.tech-specs li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.tech-card-box {
    background-color: #030508;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background-color: var(--bg-surface);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #334155;
    margin-right: 6px;
    display: inline-block;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.75rem;
}

.terminal-code {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.7;
    overflow-x: auto;
}

/* --- Cohort Section --- */
.cohort-wrapper {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
}

.cohort-badge-col {
    flex-shrink: 0;
    width: 260px;
    text-align: center;
}

.cohort-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cohort-content-col h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cohort-highlight {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cohort-content-col p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cohort-links {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.cohort-links a {
    color: var(--accent);
    text-decoration: none;
}

.cohort-links a:hover {
    text-decoration: underline;
}

.cohort-links .divider {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

/* --- Footer --- */
.site-footer {
    padding: 5rem 0 3rem 0;
    background-color: #030508;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand .tagline {
    font-family: var(--font-mono);
    color: var(--accent);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-brand .company {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-contact h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.contact-email {
    display: block;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.contact-email:hover {
    color: var(--accent);
}

.contact-sub {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.footer-contact .loc {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .hero-visual h1 { font-size: 3rem; }
    .tech-layout { grid-template-columns: 1fr; }
    .cohort-wrapper { flex-direction: column; align-items: flex-start; padding: 2rem; }
    .cohort-badge-col { width: 100%; max-width: 220px; }
}

@media (max-width: 768px) {
    body { padding-top: 106px; }
    .top-ribbon { height: 32px; font-size: 0.7rem; }
    .site-header { top: 32px; height: 70px; }
    .main-nav { display: none; }
    .hero-overlay { background: rgba(7, 9, 14, 0.92); }
    .hero-visual h1 { font-size: 2.35rem; }
    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; }
}
