/* tanso.tech — Sci-Fi HUD Overlay */

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

/* ===== BASE ===== */
body {
    background: #0A0E17;
    color: #E0E0E0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle, rgba(0,255,136,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ===== SCANLINE OVERLAY ===== */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 2px,
        rgba(0,255,136,0.015) 2px,
        rgba(0,255,136,0.015) 4px
    );
}

/* ===== FADE-IN ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION HEADING ===== */
.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #E0E0E0;
    letter-spacing: 0.03em;
    text-shadow: 0 0 8px rgba(0,255,136,0.5);
    margin-bottom: 1.5rem;
}
.heading-bracket {
    color: #00FF88;
    font-weight: 400;
}

/* ===== HUD FRAME ===== */
.hud-frame {
    position: relative;
    padding: 2.5rem;
}
.hud-corner {
    position: absolute;
    width: 24px;
    height: 24px;
}
.hud-corner.tl { top: 0; left: 0; border-top: 2px solid #00FF88; border-left: 2px solid #00FF88; }
.hud-corner.tr { top: 0; right: 0; border-top: 2px solid #00FF88; border-right: 2px solid #00FF88; }
.hud-corner.bl { bottom: 0; left: 0; border-bottom: 2px solid #00FF88; border-left: 2px solid #00FF88; }
.hud-corner.br { bottom: 0; right: 0; border-bottom: 2px solid #00FF88; border-right: 2px solid #00FF88; }

/* ===== CROSSHAIR ===== */
.crosshair {
    width: 20px;
    height: 20px;
    margin: 2rem auto;
    position: relative;
}
.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: #00FF88;
}
.crosshair::before {
    width: 1px;
    height: 20px;
    left: 50%;
    top: 0;
}
.crosshair::after {
    width: 20px;
    height: 1px;
    left: 0;
    top: 50%;
}

/* ===== HERO ===== */
.hero {
    max-width: 940px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}
.hero-content {
    text-align: center;
}
.molecule-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}
.molecule {
    display: block;
    margin: 0 auto;
    animation: rotateMol 16s linear infinite;
    filter: drop-shadow(0 0 6px rgba(0,255,136,0.3));
}
@keyframes rotateMol {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Targeting lines and data labels */
.targeting-line {
    position: absolute;
    font-family: 'Fira Mono', monospace;
    font-size: 0.65rem;
    color: #00CC6A;
    white-space: nowrap;
}
.targeting-line::before {
    content: '';
    position: absolute;
    background: #00CC6A;
    opacity: 0.4;
}
.tl-line {
    top: 30px;
    right: -140px;
}
.tl-line::before {
    width: 40px;
    height: 1px;
    top: 50%;
    left: -45px;
}
.tr-line {
    top: 90px;
    left: -150px;
}
.tr-line::before {
    width: 40px;
    height: 1px;
    top: 50%;
    right: -45px;
}
.bl-line {
    bottom: 50px;
    right: -170px;
}
.bl-line::before {
    width: 40px;
    height: 1px;
    top: 50%;
    left: -45px;
}
.data-label {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid rgba(0,204,106,0.3);
    background: rgba(10,14,23,0.8);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #00FF88;
    text-shadow: 0 0 16px rgba(0,255,136,0.6), 0 0 40px rgba(0,255,136,0.15);
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}
.hero-sub {
    font-size: 1rem;
    color: #7A8BA0;
    margin-bottom: 1.8rem;
    letter-spacing: 0.02em;
}
.hero-readout {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.readout-item {
    font-family: 'Fira Mono', monospace;
    font-size: 0.8rem;
}
.readout-label {
    color: #7A8BA0;
    margin-right: 0.4rem;
}
.readout-val {
    color: #00FF88;
}
.blink {
    animation: blinkCursor 1s steps(1) infinite;
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== TECH MATRIX ===== */
.tech-matrix {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ===== HUD PANEL ===== */
.hud-panel {
    background: #0D1B2A;
    border: 1px solid rgba(0,255,136,0.15);
    padding: 1.25rem;
    position: relative;
    background-image: repeating-linear-gradient(
        transparent 0px,
        transparent 2px,
        rgba(0,255,136,0.02) 2px,
        rgba(0,255,136,0.02) 4px
    );
}
.hud-panel.wide {
    grid-column: 1 / -1;
}
.angled-panel {
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.panel-status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7A8BA0;
}
.status-dot.active {
    background: #00FF88;
    box-shadow: 0 0 6px #00FF88;
    animation: dotPulse 2s ease-in-out infinite;
}
.status-dot.cyan-dot {
    background: #00B4D8;
    box-shadow: 0 0 6px #00B4D8;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.panel-tag {
    font-family: 'Fira Mono', monospace;
    font-size: 0.65rem;
    color: #00CC6A;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.panel-tag.cyan {
    color: #00B4D8;
}
.panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #E0E0E0;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

/* ===== SPEC TABLE ===== */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table td {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,255,136,0.08);
}
.spec-label {
    color: #7A8BA0;
}
.spec-val {
    font-family: 'Fira Mono', monospace;
    color: #00FF88;
    text-align: right;
    text-shadow: 0 0 4px rgba(0,255,136,0.3);
}
.cyan-val {
    color: #00B4D8;
    text-shadow: 0 0 4px rgba(0,180,216,0.3);
}

/* ===== GAUGE ===== */
.gauge {
    height: 4px;
    background: rgba(0,255,136,0.1);
    margin-top: 0.75rem;
    border-radius: 2px;
    overflow: hidden;
}
.gauge-fill {
    height: 100%;
    width: 0;
    background: #00FF88;
    border-radius: 2px;
    box-shadow: 0 0 8px #00FF88;
    transition: width 1.2s ease-out;
}
.gauge-cyan {
    background: #00B4D8;
    box-shadow: 0 0 8px #00B4D8;
}

/* ===== COMPARISON ===== */
.comparison {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}
.comparison-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Radar chart */
.radar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.radar-chart {
    max-width: 300px;
    width: 100%;
    filter: drop-shadow(0 0 4px rgba(0,255,136,0.2));
}
.radar-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-family: 'Fira Mono', monospace;
    font-size: 0.7rem;
    color: #7A8BA0;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.legend-swatch {
    width: 12px;
    height: 3px;
    display: inline-block;
}
.legend-swatch.green {
    background: #00FF88;
    box-shadow: 0 0 4px #00FF88;
}
.legend-swatch.cyan {
    background: #00B4D8;
    box-shadow: 0 0 4px #00B4D8;
}

/* Comparison table */
.comp-panel {
    overflow-x: auto;
}
.comp-table {
    width: 100%;
    border-collapse: collapse;
}
.comp-table th {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: #7A8BA0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    padding: 8px 10px 8px 0;
    border-bottom: 1px solid #00FF88;
}
.comp-table td {
    padding: 8px 10px 8px 0;
    font-size: 0.85rem;
    color: #E0E0E0;
    border-bottom: 1px solid rgba(0,255,136,0.08);
}
.comp-row {
    transition: background 0.2s ease;
}
.comp-row:hover {
    background: rgba(0,255,136,0.04);
}
.mono {
    font-family: 'Fira Mono', monospace;
    color: #00FF88;
}

/* ===== TECH TREE ===== */
.tech-tree {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}
.tree-panel {
    overflow: hidden;
}
.tree-diagram {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.tree-generation {
    padding: 0.5rem 0;
}
.tree-era {
    font-family: 'Fira Mono', monospace;
    font-size: 0.7rem;
    color: #7A8BA0;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 0.5rem;
}
.tree-era-year {
    color: #00B4D8;
    margin-left: 0.5rem;
}
.tree-nodes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.tree-node {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0,255,136,0.2);
    background: rgba(0,255,136,0.03);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tree-node:hover {
    border-color: rgba(0,255,136,0.5);
    box-shadow: 0 0 12px rgba(0,255,136,0.1);
}
.tree-node-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #E0E0E0;
}
.tree-trl {
    font-family: 'Fira Mono', monospace;
    font-size: 0.7rem;
    color: #00FF88;
}
.cyan-trl {
    color: #00B4D8;
}
.alert-trl {
    color: #FF6B35;
}
.highlight-node {
    border-color: rgba(255,107,53,0.4);
    background: rgba(255,107,53,0.05);
}
.highlight-node .tree-node-label {
    color: #FF6B35;
}
.future-node {
    border-style: dashed;
    border-color: rgba(0,255,136,0.15);
    opacity: 0.75;
}
.tree-connector-row {
    height: 40px;
    overflow: hidden;
}
.tree-connector {
    width: 100%;
    height: 40px;
}

/* ===== TELEMETRY ===== */
.telemetry {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}
.counter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.counter-pod {
    flex: 1;
    min-width: 160px;
    background: #0D1B2A;
    border: 1px solid rgba(0,255,136,0.15);
    padding: 1.5rem;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.counter-val {
    font-family: 'Fira Mono', monospace;
    font-weight: 500;
    font-size: 2rem;
    color: #00FF88;
    text-shadow: 0 0 12px rgba(0,255,136,0.5);
    display: block;
    line-height: 1.2;
}
.counter-label {
    font-size: 0.75rem;
    color: #7A8BA0;
    display: block;
    margin-top: 0.4rem;
    font-family: 'Fira Mono', monospace;
    letter-spacing: 0.04em;
}

/* Efficiency Meters */
.efficiency-meters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.meter-panel {
    clip-path: none;
}
.meter {
    margin-top: 0.5rem;
}
.meter-track {
    height: 20px;
    background: rgba(0,255,136,0.06);
    border: 1px solid rgba(0,255,136,0.12);
    position: relative;
    overflow: hidden;
}
.meter-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00FF88, #00CC6A);
    position: relative;
    transition: width 1.5s ease-out;
    box-shadow: inset 0 0 10px rgba(0,255,136,0.3);
}
.meter-fill-cyan {
    background: linear-gradient(90deg, #00B4D8, #0090B0);
    box-shadow: inset 0 0 10px rgba(0,180,216,0.3);
}
.meter-readout {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Fira Mono', monospace;
    font-size: 0.7rem;
    color: #0A0E17;
    font-weight: 500;
}
.meter-ticks {
    display: flex;
    justify-content: space-between;
    font-family: 'Fira Mono', monospace;
    font-size: 0.55rem;
    color: #7A8BA0;
    padding-top: 4px;
}

/* ===== ROADMAP ===== */
.roadmap-panel {
    clip-path: none;
}
.roadmap {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.roadmap::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(0,255,136,0.15);
}
.roadmap-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0 0.65rem 2rem;
    border-bottom: 1px solid rgba(0,255,136,0.05);
    position: relative;
    transition: background 0.2s ease;
}
.roadmap-item:hover {
    background: rgba(0,255,136,0.02);
}
.roadmap-marker {
    position: absolute;
    left: 4px;
    width: 9px;
    height: 9px;
    border: 1.5px solid #00FF88;
    background: #0A0E17;
    border-radius: 50%;
}
.roadmap-item.completed .roadmap-marker {
    background: #00FF88;
    box-shadow: 0 0 4px #00FF88;
}
.roadmap-item.active .roadmap-marker {
    background: #FF6B35;
    border-color: #FF6B35;
    box-shadow: 0 0 8px rgba(255,107,53,0.6);
}
.roadmap-marker.pulse {
    animation: markerPulse 1.5s ease-in-out infinite;
}
@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(255,107,53,0.4); }
    50% { box-shadow: 0 0 14px rgba(255,107,53,0.8); }
}
.roadmap-year {
    font-family: 'Fira Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    color: #00B4D8;
    min-width: 50px;
}
.roadmap-event {
    font-size: 0.9rem;
    color: #E0E0E0;
}
.roadmap-item.active .roadmap-year {
    color: #FF6B35;
}
.roadmap-item.active .roadmap-event {
    color: #FF6B35;
}
.roadmap-item.completed .roadmap-event {
    color: #7A8BA0;
}

/* ===== FOOTER ===== */
.footer {
    max-width: 940px;
    margin: 0 auto;
    padding: 2rem;
}
.footer-frame {
    text-align: center;
}
.footer-inner {
    padding: 1rem 0;
}
.footer-coords {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.coord-item {
    font-family: 'Fira Mono', monospace;
    font-size: 0.75rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}
.flink {
    font-family: 'Fira Mono', monospace;
    font-size: 0.8rem;
    color: #00CC6A;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.flink:hover {
    color: #00FF88;
    text-shadow: 0 0 8px rgba(0,255,136,0.5);
}
.footer-copy {
    font-family: 'Fira Mono', monospace;
    font-size: 0.7rem;
    color: #7A8BA0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }
    .hero-readout {
        flex-direction: column;
        gap: 0.5rem;
    }
    .efficiency-meters {
        grid-template-columns: 1fr;
    }
    .targeting-line {
        display: none;
    }
    .tree-nodes {
        flex-direction: column;
    }
    .footer-coords {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .radar-chart {
        max-width: 240px;
    }
}
