:root {
    --bg: #090b10;
    --panel: #10141c;
    --panel-2: #151a24;
    --ink: #f6f7f4;
    --muted: #a9b1bd;
    --line: rgba(255, 255, 255, 0.12);
    --orange: #ff5a16;
    --blue: #3c91d1;
    --violet: #9888cc;
    --green: #74f2c3;
    --yellow: #ffd86a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 8%, rgba(60, 145, 209, 0.22), transparent 34%),
        radial-gradient(circle at 88% 4%, rgba(255, 90, 22, 0.2), transparent 30%),
        linear-gradient(145deg, #080a0f 0%, #10141d 52%, #07080c 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.shell {
    width: min(1440px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 42px 0 28px;
}

.hero,
.panel,
.metrics article,
.insight-grid article,
footer {
    border: 1px solid var(--line);
    background: rgba(16, 20, 28, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.hero {
    min-height: 520px;
    padding: clamp(28px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -120px;
    bottom: -170px;
    border-radius: 50%;
    border: 1px solid rgba(116, 242, 195, 0.16);
    box-shadow: inset 0 0 80px rgba(116, 242, 195, 0.05);
}

.eyebrow,
.kicker,
.metrics small,
.insight-grid span,
.chart-head span,
footer {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
}

.masthead {
    display: grid;
    gap: 8px;
    margin-bottom: clamp(24px, 4vw, 56px);
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 0.82rem;
}

.byline {
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 900;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: clamp(24px, 4vw, 80px);
    align-items: end;
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 920px;
    margin-bottom: 24px;
    font-size: clamp(3.2rem, 8.2vw, 8.2rem);
    line-height: 0.86;
    letter-spacing: -0.075em;
}

.lede {
    max-width: 840px;
    color: #d7dce2;
    font-size: clamp(1.12rem, 1.8vw, 1.55rem);
    line-height: 1.45;
    font-weight: 560;
}

.hero-card {
    min-height: clamp(280px, 28vw, 380px);
    border-radius: 24px;
    padding: clamp(22px, 2.4vw, 34px);
    background: linear-gradient(145deg, rgba(255, 90, 22, 0.2), rgba(60, 145, 209, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: grid;
    align-content: center;
    text-align: center;
}

.hero-card span {
    display: block;
    color: var(--green);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: clamp(0.95rem, 1.2vw, 1.18rem);
    line-height: 1.28;
    font-weight: 900;
}

.hero-card strong {
    display: block;
    font-size: clamp(5.5rem, 10vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.hero-card p {
    max-width: 280px;
    margin: 18px auto 0;
    color: #d7dce2;
    font-weight: 650;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.metrics article {
    min-height: 190px;
    padding: 22px;
    border-radius: 20px;
}

.metrics small {
    display: block;
    min-height: 34px;
    font-size: 0.72rem;
}

.metrics strong {
    display: block;
    margin: 18px 0 16px;
    color: var(--green);
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.metrics p,
.section-copy p,
.insight-grid p {
    color: #c9d0d8;
    line-height: 1.55;
    font-weight: 560;
}

.panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
    gap: clamp(20px, 4vw, 56px);
    margin: 16px 0;
    padding: clamp(20px, 3vw, 36px);
    border-radius: 28px;
}

.section-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 540px;
}

.kicker {
    font-size: 0.76rem;
}

h2 {
    margin: 16px 0 20px;
    font-size: clamp(2.25rem, 4.8vw, 5.4rem);
    line-height: 0.88;
    letter-spacing: -0.075em;
}

.takeaway {
    margin-top: auto;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    color: var(--green) !important;
    font-weight: 800 !important;
}

.chart-card {
    min-height: 540px;
    border-radius: 24px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chart-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.chart-head h3 {
    margin: 6px 0 0;
    font-size: clamp(1.35rem, 2.3vw, 2.2rem);
    letter-spacing: -0.05em;
}

.unit {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.chart {
    min-height: 450px;
}

.axis path,
.axis line {
    stroke: rgba(255,255,255,0.18);
}

.axis text {
    fill: #aeb7c2;
    font-weight: 700;
}

.grid-line {
    stroke: rgba(255,255,255,0.1);
}

.company-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hover-dot {
    stroke: var(--ink);
    stroke-width: 2;
}

.legend-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.legend-item {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #cbd3dc;
    font-weight: 800;
}

.legend-swatch {
    width: 24px;
    height: 4px;
    border-radius: 999px;
}

.dark-card {
    background: #171717;
}

.bar-bg {
    fill: #303030;
}

.bar-fill {
    fill: var(--orange);
}

.bar-label,
.bar-value {
    fill: #f4f4f1;
    font-weight: 800;
}

.bar-label.muted {
    fill: #c0c0c0;
}

.highlight-hynix .bar-bg {
    fill: rgba(60, 145, 209, 0.22);
}

.highlight-hynix .bar-fill {
    fill: var(--blue);
}

.highlight-memory .bar-bg {
    fill: rgba(152, 136, 204, 0.18);
}

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

.insight-grid article {
    min-height: 250px;
    padding: 26px;
    border-radius: 24px;
}

.insight-grid span {
    font-size: 0.72rem;
}

.insight-grid h3 {
    margin: 18px 0;
    font-size: clamp(1.6rem, 2.5vw, 2.6rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

footer {
    margin-top: 16px;
    padding: 18px 22px;
    border-radius: 18px;
    font-size: 0.7rem;
    line-height: 1.6;
    text-transform: none;
    letter-spacing: 0.02em;
}

footer p {
    margin: 0;
}

.tooltip {
    position: fixed;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 16px));
    padding: 10px 12px;
    border-radius: 12px;
    color: #101010;
    background: rgba(246, 247, 244, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    font-weight: 760;
    transition: opacity 160ms ease;
}

.tooltip strong {
    display: block;
    margin-bottom: 2px;
}

.tooltip small {
    color: #555;
    font-weight: 720;
}

@media (max-width: 980px) {
    .hero-grid,
    .panel,
    .metrics,
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .section-copy {
        min-height: auto;
    }

    .chart-card,
    .chart {
        min-height: 420px;
    }
}

@media (max-width: 620px) {
    .shell {
        width: min(100% - 24px, 1440px);
        padding-top: 16px;
    }

    .hero,
    .panel {
        border-radius: 20px;
    }

    .hero {
        min-height: 620px;
    }

    h1 {
        font-size: clamp(3.4rem, 16vw, 5.4rem);
    }

    .metrics article {
        min-height: 160px;
    }

    .chart-card,
    .chart {
        min-height: 360px;
    }

    .chart-head {
        flex-direction: column;
    }
}
