:root {
    --bg-void: #0B1628;
    --bg-panel: #132742;
    --border-metallic: rgba(193, 167, 115, 0.15);
    --gold-celestial: #C1A773;
    --text-nebula: #8A9AB5;
    --text-lunar: #A8B5C4;
    --amber-signal: #D4A54A;
    --blob-teal: #0E2A3F;
    --blob-copper: #8B6B3D;
    --pearl: #E8DCC8;
    --font-display: 'Roboto Slab', Georgia, serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

.micro-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background-color: var(--gold-celestial);
    animation: bubbleDrift linear infinite;
}

@keyframes bubbleDrift {
    0% { transform: translateY(0); opacity: var(--bubble-base, 0.07); }
    50% { transform: translateY(-30px); opacity: calc(var(--bubble-base, 0.07) + 0.04); }
    100% { transform: translateY(0); opacity: var(--bubble-base, 0.07); }
}

.panel {
    position: relative;
    z-index: 1;
    padding: 80px 2rem;
}

.observation-deck {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(ellipse at 40% 40%, var(--blob-copper), var(--blob-teal));
    border-radius: 42% 58% 63% 37% / 45% 55% 38% 62%;
    opacity: 0.25;
    animation: blobMorph 24s ease-in-out infinite;
    z-index: 0;
}

@keyframes blobMorph {
    0% { border-radius: 42% 58% 63% 37% / 45% 55% 38% 62%; }
    33% { border-radius: 55% 45% 38% 62% / 60% 40% 55% 45%; }
    66% { border-radius: 38% 62% 50% 50% / 42% 58% 45% 55%; }
    100% { border-radius: 42% 58% 63% 37% / 45% 55% 38% 62%; }
}

.panel-content {
    position: relative;
    z-index: 2;
}

.mono-label {
    display: block;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(193, 167, 115, 0.5);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 7vw + 0.5rem, 7rem);
    color: var(--gold-celestial);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-nebula);
    line-height: 1.85;
}

.telemetry-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.dash-panel {
    background-color: rgba(19, 39, 66, 0.85);
    border: 1px solid var(--border-metallic);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.panel-accent-blob {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: var(--gold-celestial);
    opacity: 0.08;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    top: -30px;
    right: -30px;
    animation: blobMorph 15s ease-in-out infinite;
}

.panel-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    color: var(--text-lunar);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.panel-heading::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-celestial);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel-heading.underline-drawn::after {
    width: 100%;
}

.panel-body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.85;
    color: var(--text-nebula);
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}

.deep-field {
    max-width: 1200px;
    margin: 0 auto;
}

.deep-field-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.wide-panel {
    position: relative;
}

.deep-blob {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(ellipse, var(--blob-copper), var(--blob-teal));
    border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%;
    opacity: 0.15;
    bottom: -40px;
    right: -40px;
    animation: blobMorph 20s ease-in-out infinite;
    filter: blur(30px);
}

.narrow-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vertical-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 2.2;
    color: var(--text-nebula);
    font-style: italic;
}

.drift-corridor {
    padding: 120px 2rem;
}

.drift-row {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.drift-stone {
    width: 200px;
    height: 200px;
    background-color: rgba(19, 39, 66, 0.85);
    border: 1px solid var(--border-metallic);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.drift-blob {
    width: 80px;
    height: 80px;
    border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%;
    background-color: var(--gold-celestial);
    opacity: 0.2;
    margin-bottom: 1rem;
    animation: driftPulse 6s ease-in-out infinite;
}

.drift-blob-2 {
    background-color: var(--blob-copper);
    opacity: 0.3;
    border-radius: 40% 60% 55% 45% / 50% 50% 50% 50%;
    animation-delay: 1.5s;
}

.drift-blob-3 {
    background-color: var(--amber-signal);
    opacity: 0.2;
    border-radius: 55% 45% 45% 55% / 60% 40% 60% 40%;
    animation-delay: 3s;
}

.drift-blob-4 {
    background-color: var(--pearl);
    opacity: 0.15;
    border-radius: 45% 55% 50% 50% / 45% 55% 50% 50%;
    animation-delay: 4.5s;
}

@keyframes driftPulse {
    0%, 100% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
}

.drift-word {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-lunar);
    letter-spacing: 0.05em;
}

.signal-archive {
    max-width: 900px;
    margin: 0 auto;
}

.archive-panel {
    background-color: rgba(19, 39, 66, 0.85);
    border: 1px solid var(--border-metallic);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 40px;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pull-quote {
    margin: 2rem 0 1rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--gold-celestial);
}

.pull-quote p {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 2.2;
    color: var(--pearl);
}

.pull-quote cite {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-style: normal;
    color: rgba(193, 167, 115, 0.5);
    margin-top: 0.75rem;
    letter-spacing: 0.1em;
}

.transmission-end {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.end-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-text {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--text-lunar);
    margin-bottom: 3rem;
    max-width: 500px;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--amber-signal);
    animation: pulseDot 3s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.fade-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
    .fade-reveal { transition: none; opacity: 1; transform: none; }
    .hero-blob, .panel-accent-blob, .deep-blob, .drift-blob, .pulse-dot, .bubble { animation: none; }
    .panel-heading::after { transition: none; }
}

@media (max-width: 1200px) {
    .grid-row { grid-template-columns: 1fr; gap: 24px; }
    .deep-field-row { grid-template-columns: 1fr; }
    .drift-row { flex-wrap: wrap; gap: 24px; }
    .drift-stone { width: 160px; height: 160px; }
}

@media (max-width: 768px) {
    .panel { padding: 60px 1.5rem; }
    .dash-panel { padding: 2rem; }
    .drift-stone { width: 140px; height: 140px; }
    .drift-blob { width: 60px; height: 60px; }
}

@media (max-width: 480px) {
    .panel-body { font-size: 1rem; }
    .drift-row { gap: 16px; }
    .drift-stone { width: 120px; height: 120px; }
}
