@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg-base: #030304; /* Absolute Onyx */
    --bg-surface: #0a0a0c;
    --text-primary: #f8f9fa;
    --text-secondary: #8b949e;
    
    --accent-cyan: #00d2ff;
    --accent-cyan-glass: rgba(0, 210, 255, 0.1);
    --accent-gold: #d4af37;
    --accent-gold-glass: rgba(212, 175, 55, 0.1);
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(255, 255, 255, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
    --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100dvh;
    background-image: 
        radial-gradient(circle at 15% 0%, rgba(0, 210, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 100%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.grid-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* ---------------- NAV ---------------- */
.nav-glass {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(3, 3, 4, 0.6);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 5vw;
}

.logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ---------------- NAV CTA BUTTON (Double-Bezel Island) ---------------- */
.nav-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-highlight);
    border-radius: 100px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-fluid);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-cta:hover {
    background: var(--text-primary);
    color: var(--bg-base);
    transform: scale(0.98);
}

.cta-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* ---------------- HERO (Editorial Split) ---------------- */
.hero-section {
    position: relative;
    padding: 240px 0 160px;
    display: grid;
    align-items: center;
    min-height: 100dvh;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.hero-heading {
    font-size: clamp(48px, 6vw, 96px);
    margin-bottom: 32px;
}

.hero-heading .serif-italic {
    font-style: italic;
    color: var(--text-secondary);
}

.hero-subtext {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 56px;
    line-height: 1.8;
}

/* Floating Asset in Hero */
.hero-visual {
    position: relative;
    height: 500px;
    width: 100%;
}

.glass-orb {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05), rgba(0,0,0,0));
    box-shadow: 
        inset 0 0 80px rgba(0, 210, 255, 0.1),
        0 0 120px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    animation: float 8s ease-in-out infinite alternate;
}

.telemetry-card {
    position: absolute;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.4s var(--ease-spring);
}

.telemetry-card:hover { z-index: 10; transform: translateY(-5px) scale(1.02); border-color: var(--accent-cyan); }
.telemetry-card.t1 { top: 10%; right: 10%; animation: float 6s ease-in-out infinite alternate-reverse; }
.telemetry-card.t2 { bottom: 20%; left: 0%; animation: float 7s ease-in-out infinite alternate; }

.t-value {
    color: var(--text-primary);
    font-size: 14px;
    margin-top: 4px;
    font-weight: 600;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* ---------------- BENTO GRID (The Double Bezel) ---------------- */
.pantheon-section {
    padding: 160px 0;
    position: relative;
}

.section-header { margin-bottom: 80px; max-width: 600px; }
.section-title { font-size: 48px; margin-bottom: 24px; }
.section-desc { color: var(--text-secondary); font-size: 18px; line-height: 1.8; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
}

/* Sizes */
.bento-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    padding: 8px; /* Outer Shell Padding (Double Bezel) */
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    transition: all 0.5s var(--ease-spring);
    display: flex;
}

.bento-card:hover {
    transform: translateY(-4px) scale(1.01);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-highlight);
    box-shadow: 0 32px 64px rgba(0,0,0,0.6);
}

/* Spacing Classes */
.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.row-span-1 { grid-row: span 1; }
.row-span-2 { grid-row: span 2; }

/* Inner Core */
.inner-core {
    flex: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: calc(var(--radius-lg) - 8px);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

/* Node Elements */
.node-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: auto;
}

.node-meta .num { color: var(--text-secondary); }

.node-name {
    font-size: 28px;
    margin: 24px 0 12px;
    color: var(--text-primary);
}
.bento-card.col-span-2.row-span-2 .node-name { font-size: 48px; }

.node-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.engine-tag {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.engine-tag span {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1200px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
}
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .col-span-2 { grid-column: span 2; }
}
@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .col-span-2 { grid-column: span 1; }
    .row-span-2 { grid-row: span 1; }
    .nav-links { display: none; }
}

/* ---------------- ANIMATIONS ---------------- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-fluid);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
