/* ═══════════════════════════════════════════════════════════════════
   MC TERMINAL — Bloomberg Terminal Inspired Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ─────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000000;
    --bg-card: #0a0a0f;
    --bg-panel: #08080c;
    --border: #1a1a2e;
    --border-active: #FF9900;
    --text: #e0e0e0;
    --text-dim: #707080;
    --accent: #FF9900;
    --accent-glow: rgba(255, 153, 0, 0.25);
    --green: #00E676;
    --red: #FF3D3D;
    --blue: #448AFF;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Scanline Overlay ──────────────────────────────────────────── */
.scanline-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.03) 0px,
            rgba(0, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 3px);
}

/* ── Keyframe Animations ───────────────────────────────────────── */
@keyframes float {

    0%,
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 5px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-glow);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes scroll-line {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(0);
        opacity: 0;
    }
}

@keyframes risk-fade {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll Animations ─────────────────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: var(--accent);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
}

.logo-bracket {
    color: var(--accent);
}

.logo-text {
    color: #fff;
    letter-spacing: 2px;
}

.logo-label {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-left: 4px;
}

.nav-center {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 2px;
    padding: 6px 12px;
    border-radius: 3px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(255, 153, 0, 0.05);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(255, 153, 0, 0.1);
}

.nav-clock {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--green);
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   TICKER TAPE
   ═══════════════════════════════════════════════════════════════════ */
.ticker-tape {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    height: 28px;
    background: #050508;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    z-index: 999;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    font-size: 11px;
}

.ticker-symbol {
    color: #fff;
    font-weight: 600;
}

.ticker-price {
    color: var(--text-dim);
}

.ticker-change {
    font-weight: 600;
}

.ticker-change.up {
    color: var(--green);
}

.ticker-change.down {
    color: var(--red);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 153, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 153, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: float linear infinite;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--accent);
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-sans);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: clamp(36px, 7vw, 80px);
    color: #fff;
}

.title-accent {
    background: linear-gradient(135deg, #FF9900, #FFB347, #FF6D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 153, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: #FFB347;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 10px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(10, 10, 15, 0.6);
}

.hero-stat {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    display: inline;
}

.stat-unit {
    font-size: 18px;
    color: var(--accent);
    font-weight: 700;
    display: inline;
}

.stat-label {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--accent);
    transform-origin: top;
    animation: scroll-line 2s infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════════ */
.features {
    padding: 120px 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(255, 153, 0, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-tag {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--accent);
    padding: 4px 10px;
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 3px;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════════
   SIMULATOR SECTION
   ═══════════════════════════════════════════════════════════════════ */
.simulator {
    padding: 120px 40px;
}

.terminal-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* CONFIG PANEL — STICKY */
.config-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.config-panel::-webkit-scrollbar {
    width: 4px;
}

.config-panel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.config-panel::-webkit-scrollbar-track {
    background: transparent;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 153, 0, 0.03);
}

.panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.panel-dot.green {
    background: #00E676;
}

.panel-dot.amber {
    background: #FF9900;
}

.panel-dot.red {
    background: #FF3D3D;
}

.panel-title {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-left: 8px;
}

.config-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.config-value {
    color: var(--accent);
    font-weight: 600;
}

.config-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.input-prefix {
    padding: 8px 10px;
    font-size: 14px;
    color: var(--accent);
    border-right: 1px solid var(--border);
    background: rgba(255, 153, 0, 0.03);
}

.config-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 8px 12px;
    outline: none;
    text-transform: uppercase;
}

.config-input::placeholder {
    color: var(--text-dim);
    text-transform: none;
}

/* ── Live Price Display ──────────────────────────────────── */
.price-display {
    background: rgba(255, 153, 0, 0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    text-align: center;
}

.price-main {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.price-main.loaded {
    color: var(--green);
}

.price-main.error {
    color: var(--red);
    font-size: 14px;
}

.price-status {
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-top: 2px;
}

.fetch-btn {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 153, 0, 0.08);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 4px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.fetch-btn:hover {
    background: rgba(255, 153, 0, 0.15);
    border-color: var(--accent);
}

.fetch-btn.fetching {
    opacity: 0.7;
    pointer-events: none;
}

.fetch-btn.fetching .fetch-icon {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── Timeframe & Distribution Buttons ──────────────────── */
.timeframe-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.val-tf-grid {
    grid-template-columns: repeat(3, 1fr);
}

.tf-btn {
    padding: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.tf-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tf-btn.active {
    background: rgba(255, 153, 0, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.dist-toggle {
    display: flex;
    gap: 4px;
}

.dist-btn {
    flex: 1;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.dist-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dist-btn.active {
    background: rgba(255, 153, 0, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Sliders ───────────────────────────────────────────── */
.config-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-glow);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ── Run Button ────────────────────────────────────────── */
.run-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF9900, #FF6D00);
    border: none;
    border-radius: 4px;
    color: #000;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.run-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

.run-icon {
    font-size: 12px;
}

.run-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.run-btn.loading .run-text {
    display: none;
}

.run-btn.loading .run-icon {
    display: none;
}

.run-btn.loading .run-loader {
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════════
   RESULTS AREA
   ═══════════════════════════════════════════════════════════════════ */
.results-area {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    min-height: 400px;
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    text-align: center;
    padding: 40px;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    color: var(--border);
    margin-bottom: 24px;
    opacity: 0.5;
}

.results-placeholder h3 {
    font-family: var(--font-sans);
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.results-placeholder p {
    color: var(--text-dim);
    font-size: 13px;
    max-width: 400px;
}

.key {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 3px;
    font-size: 10px;
    color: var(--accent);
    font-weight: 600;
}

.placeholder-keys {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.key-hint {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Results Content ────────────────────────────────────── */
.results-content {
    display: flex;
    flex-direction: column;
}

.metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}

.metric-card {
    padding: 16px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.metric-card:last-child {
    border-right: none;
}

.metric-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.metric-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.metric-change.up {
    color: var(--green);
}

.metric-change.down {
    color: var(--red);
}

.metric-sub {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ── Charts ─────────────────────────────────────────────── */
.chart-container {
    border-bottom: 1px solid var(--border);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.chart-title {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.legend-item {
    font-size: 9px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 12px;
    height: 3px;
    border-radius: 1px;
    display: inline-block;
}

.chart-wrapper {
    width: 100%;
    height: 350px;
    position: relative;
}

.chart-wrapper canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Distribution Row ──────────────────────────────────── */
.dist-row {
    display: grid;
    grid-template-columns: 1fr 340px;
    border-top: 1px solid var(--border);
}

.dist-chart-container {
    border-right: 1px solid var(--border);
}

.dist-wrapper {
    height: 280px;
}

/* ── Risk Panel ────────────────────────────────────────── */
.risk-body {
    padding: 12px;
}

.risk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    border-radius: 3px;
    transition: background 0.3s;
}

.risk-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.risk-label {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.risk-value {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.risk-value.green {
    color: var(--green);
}

.risk-value.red {
    color: var(--red);
}

.risk-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   VALIDATION SECTION
   ═══════════════════════════════════════════════════════════════════ */
.validation {
    padding: 120px 40px;
}

.validation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.val-config {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 32px;
}

.val-config-body {
    padding: 24px;
}

.val-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.val-run-btn {
    max-width: 300px;
}

/* Validation results */
.val-summary {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.val-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s;
}

.val-card:hover {
    border-color: rgba(255, 153, 0, 0.3);
}

.val-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    border-color: rgba(255, 153, 0, 0.3);
    background: rgba(255, 153, 0, 0.03);
}

.val-card-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    flex-shrink: 0;
}

.val-card-content {
    flex: 1;
}

.val-card-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.val-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.val-card-value.pass {
    color: var(--green);
}

.val-card-value.fail {
    color: var(--red);
}

.val-card-sub {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 4px;
}

.val-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 32px;
}

.val-chart-wrapper {
    height: 350px;
}

/* Validation Table */
.val-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 32px;
}

.val-table-wrap {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.val-table {
    font-size: 11px;
}

.val-table th {
    position: sticky;
    top: 0;
    background: #08080c;
    z-index: 2;
}

.result-hit {
    color: var(--green);
    font-weight: 700;
}

.result-miss {
    color: var(--red);
    font-weight: 700;
}

/* Regime analysis */
.val-regime {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.val-regime-body {
    padding: 24px;
}

.regime-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.regime-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.regime-card-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.regime-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.regime-card-sub {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   METHODOLOGY
   ═══════════════════════════════════════════════════════════════════ */
.methodology {
    padding: 120px 40px;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px;
    position: relative;
}

.method-main {
    grid-column: 1 / -1;
}

.method-badge {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--accent);
    padding: 4px 12px;
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 16px;
}

.method-badge.accent {
    color: var(--blue);
    border-color: rgba(68, 138, 255, 0.2);
}

.method-badge.warn {
    color: var(--red);
    border-color: rgba(255, 61, 61, 0.2);
}

.method-card h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.method-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
}

.formula-block {
    background: rgba(255, 153, 0, 0.05);
    border: 1px solid rgba(255, 153, 0, 0.15);
    border-radius: 4px;
    padding: 20px;
    margin: 16px 0;
    text-align: center;
}

.formula-block code {
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.method-params {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.param-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.param-symbol {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 153, 0, 0.1);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.param-desc {
    font-size: 12px;
    color: var(--text-dim);
}

.method-highlight {
    background: rgba(68, 138, 255, 0.08);
    border-left: 2px solid var(--blue);
    padding: 12px 16px;
    margin-top: 16px;
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
}

.method-hl-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--blue);
    display: block;
    margin-bottom: 6px;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ml-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.ml-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}

.ml-desc {
    font-size: 11px;
    color: var(--text-dim);
}

.assumptions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assumption {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim);
}

.assumption-icon {
    color: var(--red);
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   PERFORMANCE
   ═══════════════════════════════════════════════════════════════════ */
.performance {
    padding: 120px 40px;
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.perf-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.perf-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.perf-ring {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto 20px;
}

.perf-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 4;
}

.ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out;
}

.ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.ring-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.ring-unit {
    font-size: 12px;
    color: var(--accent);
}

.perf-card h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.perf-card p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

.perf-table-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.perf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.perf-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.perf-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.perf-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.severity {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 1px;
}

.severity.medium {
    background: rgba(255, 153, 0, 0.15);
    color: var(--accent);
}

.severity.high {
    background: rgba(255, 61, 61, 0.15);
    color: var(--red);
}

.severity.critical {
    background: rgba(255, 61, 61, 0.25);
    color: #FF6B6B;
    border: 1px solid rgba(255, 61, 61, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 40px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 12px;
    line-height: 1.6;
}

.footer-center h5,
.footer-right h5 {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    font-size: 10px;
    padding: 4px 10px;
    background: rgba(255, 153, 0, 0.05);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-dim);
}

.footer-link {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.footer-version {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .terminal-container {
        grid-template-columns: 1fr;
    }

    .config-panel {
        position: static;
        max-height: none;
    }

    .dist-row {
        grid-template-columns: 1fr;
    }

    .val-config-grid {
        grid-template-columns: 1fr 1fr;
    }

    .val-summary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .features,
    .simulator,
    .methodology,
    .performance,
    .validation {
        padding: 80px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .perf-grid {
        grid-template-columns: 1fr;
    }

    .metrics-bar {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .val-config-grid {
        grid-template-columns: 1fr;
    }

    .val-summary {
        grid-template-columns: 1fr;
    }

    .regime-cards {
        grid-template-columns: 1fr;
    }
}