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

:root {
    --obsidian: #1a1a2e;
    --steel: #5c6070;
    --graphite: #6b6f7e;
    --slate: #8a8d99;
    --silver: #c4c7d0;
    --mist: #e8e9ed;
    --glacier: #f0f1f5;
    --deep-steel: #4a5a8a;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--glacier);
    color: var(--obsidian);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* HUD Frame */
.hud-frame {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.hud-bracket {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--graphite);
    border-style: solid;
    opacity: 0;
    animation: bracketFadeIn 200ms ease forwards;
}

.hud-bracket-tl {
    top: 24px; left: 24px;
    border-width: 2px 0 0 2px;
}
.hud-bracket-tr {
    top: 24px; right: 24px;
    border-width: 2px 2px 0 0;
}
.hud-bracket-bl {
    bottom: 24px; left: 24px;
    border-width: 0 0 2px 2px;
}
.hud-bracket-br {
    bottom: 24px; right: 24px;
    border-width: 0 2px 2px 0;
}

@keyframes bracketFadeIn {
    to { opacity: 1; }
}

/* Telemetry Strip */
.telemetry-strip {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    z-index: 100;
    opacity: 0;
    animation: bracketFadeIn 400ms 600ms ease forwards;
}

.telemetry-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--slate);
    letter-spacing: 0.08em;
}

/* Viewport & Panels */
.viewport {
    width: 100%;
    height: 100%;
    position: relative;
}

.panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms ease;
}

.panel-active {
    opacity: 1;
    pointer-events: auto;
}

.panel-content {
    max-width: 1100px;
    width: 100%;
}

.panel-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

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

/* Typography */
.display-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.03em;
    color: var(--obsidian);
}

.body-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--graphite);
    max-width: 480px;
}

.mono-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--slate);
}

/* Crystalline Icons */
.crystalline-icon {
    width: 120px;
    height: 120px;
    position: relative;
}

.crystalline-hero {
    width: 160px;
    height: 160px;
    margin-bottom: 16px;
}

.crystalline-icon::before,
.crystalline-icon::after {
    content: '';
    position: absolute;
}

.crystalline-icon::before {
    width: 100%;
    height: 100%;
    background: var(--mist);
    clip-path: polygon(50% 0%, 100% 35%, 80% 100%, 20% 100%, 0% 35%);
}

.crystalline-icon::after {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    background: var(--silver);
    clip-path: polygon(50% 10%, 90% 40%, 70% 90%, 30% 90%, 10% 40%);
}

.crystalline-small {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

/* Data Blocks */
.data-block {
    border-top: 1px solid var(--silver);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-label {
    font-size: 0.7rem;
}

.data-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--obsidian);
    line-height: 1.2;
}

/* Metrics */
.metric-row {
    display: flex;
    gap: 40px;
    margin-top: 24px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--obsidian);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--silver);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Input Group */
.input-group {
    display: flex;
    gap: 0;
    margin-top: 16px;
}

.email-input {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    padding: 14px 20px;
    border: 1px solid var(--silver);
    background: transparent;
    color: var(--obsidian);
    outline: none;
    width: 280px;
}

.subscribe-btn {
    padding: 14px 24px;
    background: var(--obsidian);
    color: var(--glacier);
    border: 1px solid var(--obsidian);
    cursor: pointer;
    transition: background 300ms ease;
}

.subscribe-btn:hover {
    background: var(--deep-steel);
    border-color: var(--deep-steel);
}

.footnote {
    margin-top: 32px;
    font-size: 0.65rem;
    color: var(--slate);
}

/* Panel Left/Right alignment */
.panel-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-right {
    display: flex;
    flex-direction: column;
}

.panel-right .body-text {
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .panel {
        padding: 60px 24px;
    }
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .telemetry-strip {
        display: none;
    }
}
