/* === interplanetary.biz - Commerce Vessel Operations Deck === */
/* Palette: #0a1628 #111d2e #2a3a4c #7ec8e3 #e8a838 #c8d0d8 #5a6a7c #38c87e #ffffff */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: #0a1628;
    color: #c8d0d8;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* === Viewport Frame === */
.viewport-frame {
    position: fixed;
    top: 16px; left: 16px; right: 16px; bottom: 16px;
    border: 1px solid #2a3a4c;
    pointer-events: none;
    z-index: 1000;
    animation: framePulse 0.6s ease-in-out;
}

@keyframes framePulse {
    0% { border-color: #2a3a4c; }
    50% { border-color: #7ec8e3; }
    100% { border-color: #2a3a4c; }
}

/* === Amber Beacon === */
.amber-beacon {
    position: fixed;
    top: 26px; right: 26px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #e8a838;
    z-index: 1001;
    animation: amberPulse 3s ease-in-out infinite;
}

@keyframes amberPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* === Navigation Spine === */
.nav-spine {
    position: fixed;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 48px;
    background: #0d1520;
    border-right: 1px solid #2a3a4c;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    z-index: 500;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.nav-spine.visible { opacity: 1; }

.nav-item {
    color: #5a6a7c;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    transition: color 0.3s ease-out;
    padding: 4px;
}

.nav-item:hover, .nav-item.active {
    color: #7ec8e3;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -14px;
    width: 4px; height: 20px;
    background: #7ec8e3;
    box-shadow: 0 0 8px rgba(126, 200, 227, 0.4);
    border-radius: 2px;
}

.nav-item::after {
    content: attr(data-label);
    position: absolute;
    left: 36px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #7ec8e3;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.nav-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* === Coordinate Markers === */
.coord-marker {
    position: fixed;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: #5a6a7c;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.coord-marker.visible { opacity: 1; }

/* === Transit Lines SVG === */
.transit-lines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* === Section Base === */
.section {
    position: relative;
    z-index: 10;
    padding-left: 80px;
    padding-right: 32px;
}

/* === Section 1: Docking === */
.docking-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
}

.dot-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #1a2a3c 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.docking-content {
    position: relative;
    z-index: 10;
}

.domain-reg {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: clamp(48px, 8vw, 100px);
    color: #c8d0d8;
    letter-spacing: 0.08em;
    line-height: 1.1;
    min-height: 1.2em;
}

.meta-lines {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-line {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.meta-line.revealed {
    opacity: 1;
    transform: translateX(0);
}

.meta-data {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #5a6a7c;
}

.meta-data.mono {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.status-line.docked {
    color: #38c87e;
}

/* === Section 2: Bridge === */
.bridge-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    max-width: 1100px;
}

.panel-block {
    background: #111d2e;
    border: 1px solid #2a3a4c;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.panel-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.panel-block.wide { grid-column: span 8; }
.panel-block.narrow { grid-column: span 4; }
.panel-block.medium { grid-column: span 6; }
.panel-block.full { grid-column: span 12; }

.panel-chrome {
    height: 24px;
    background: #172636;
    border-bottom: 1px solid #2a3a4c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.panel-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #5a6a7c;
    text-transform: uppercase;
}

.panel-dots {
    display: flex;
    gap: 4px;
}

.panel-dots .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #5a6a7c;
}

.panel-dots .dot.green {
    background: #38c87e;
    box-shadow: 0 0 4px rgba(56, 200, 126, 0.4);
}

.panel-body {
    padding: 20px;
}

.section-title {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 3vw, 28px);
    color: #c8d0d8;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.body-text {
    font-size: 15px;
    color: #c8d0d8;
    line-height: 1.7;
}

/* Status rows */
.status-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 58, 76, 0.5);
}

.status-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #5a6a7c;
    letter-spacing: 0.08em;
}

.status-val {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.status-val.green { color: #38c87e; }
.status-val.amber { color: #e8a838; }

/* === Section 3: Manifest === */
.manifest-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.manifest-table {
    width: 100%;
}

.manifest-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    align-items: center;
    border-bottom: 1px solid rgba(42, 58, 76, 0.3);
}

.manifest-row.header {
    border-bottom: 1px solid #2a3a4c;
}

.manifest-row.header .m-col {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #5a6a7c;
    text-transform: uppercase;
}

.manifest-row.alt {
    background: #0a1628;
}

.m-col {
    font-size: 14px;
    color: #c8d0d8;
}

.m-col.mono {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #5a6a7c;
}

/* === Section 4: Signal Out === */
.signal-section {
    padding-top: 80px;
    padding-bottom: 60px;
    text-align: center;
}

.transit-ticker {
    overflow: hidden;
    border-top: 1px solid #2a3a4c;
    border-bottom: 1px solid #2a3a4c;
    padding: 8px 0;
    margin-bottom: 40px;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

.ticker-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #5a6a7c;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.transmission-text {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: 0.08em;
    color: #7ec8e3;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-link {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #5a6a7c;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.3s ease-out;
}

.footer-link:hover { color: #7ec8e3; }

.footer-divider {
    color: #2a3a4c;
    font-size: 12px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .section { padding-left: 32px; }
    .nav-spine { display: none; }
    .panel-block.wide, .panel-block.narrow, .panel-block.medium {
        grid-column: span 12;
    }
    .manifest-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .coord-marker { display: none; }
}
