/* ==========================================================================
   ZUVA ENERGY 2027 — COMPONENTS
   ==========================================================================
   The pieces that fill the shell. Named after what they are, not where they
   sit, so a card behaves the same in the main column and in a panel.
   ========================================================================== */

/* ------------------------------------------------------------- hero -- */
.hero {
    background: linear-gradient(135deg, var(--color-surface-900) 0%, var(--color-accent-900) 100%);
    color: var(--color-surface-100);
    border-radius: var(--radius-lg);
    padding: var(--s-8) var(--s-7);
    position: relative;
    overflow: hidden;
}
.hero__sun {
    position: absolute; right: -5rem; top: -5rem;
    width: 22rem; height: 22rem; border-radius: 50%; opacity: .22;
    background: radial-gradient(circle, var(--color-brand-400) 0%, rgba(249,156,52,0) 68%);
    pointer-events: none;
}
.hero h1 { color: var(--color-white); font-size: var(--fs-3xl); position: relative; }
.hero__welcome {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    color: var(--color-brand-400);
    line-height: 1.1;
}
.hero__lede { color: var(--color-surface-300); font-size: var(--fs-lg); max-width: 34rem; margin: var(--s-4) 0 0; position: relative; }

/* --------------------------------------------------------- tab strip -- */
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s-3); }
.tab {
    display: flex; flex-direction: column; gap: var(--s-1);
    padding: var(--s-4); border: var(--border); border-radius: var(--radius);
    background: var(--color-white); color: inherit; text-decoration: none;
}
.tab:hover { border-color: var(--color-brand-300); text-decoration: none; }
.tab.is-active { border-color: var(--color-brand-500); background: var(--color-brand-50); }
.tab__name { font-weight: 600; font-size: var(--fs-md); color: var(--color-surface-900); }
.tab__sub { font-size: var(--fs-xs); color: var(--color-surface-500); }

/* ------------------------------------------------------ project card -- */
.pcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.pcard:hover { text-decoration: none; }
.pcard__media { aspect-ratio: 16/9; background: var(--color-surface-100); position: relative; }
.pcard__media svg { width: 100%; height: 100%; display: block; }
.pcard__state { position: absolute; top: var(--s-3); left: var(--s-3); }
.pcard__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.pcard__name { font-size: var(--fs-lg); font-weight: 600; color: var(--color-surface-900); line-height: var(--lh-tight); }
.pcard:hover .pcard__name { color: var(--color-brand-700); }
.pcard__where { font-size: var(--fs-sm); color: var(--color-surface-500); }
.pcard__foot { display: flex; gap: var(--s-6); margin-top: auto; padding-top: var(--s-3); border-top: var(--border-soft); }

/* -------------------------------------------------------------- pill -- */
.pill {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 0.2rem var(--s-3); border-radius: var(--radius-pill);
    background: var(--color-surface-100); color: var(--color-surface-600);
}
.pill::before { content: ''; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.pill--raising   { background: var(--color-brand-100);   color: var(--color-brand-700); }
.pill--building  { background: var(--color-info-100);    color: var(--color-info-700); }
.pill--operating { background: var(--color-moss-100);    color: var(--color-moss-700); }
.pill--pipeline  { background: var(--color-surface-100); color: var(--color-surface-600); }
.pill--failed    { background: var(--color-danger-100);  color: var(--color-danger-700); }

/* -------------------------------------------------------------- stat -- */
.stat { display: flex; flex-direction: column; gap: 0.1rem; }
.stat__label { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--color-surface-500); }
.stat__value { font-size: var(--fs-xl); font-weight: 600; color: var(--color-surface-900); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat__value--lg { font-size: var(--fs-2xl); }
.stat__note { font-size: var(--fs-2xs); color: var(--color-surface-500); }

/* ------------------------------------------------------------- meter -- */
.meter { position: relative; height: .5rem; border-radius: var(--radius-pill); background: var(--color-surface-200); }
.meter__fill { height: 100%; border-radius: var(--radius-pill); background: var(--color-brand-500); }
.meter__mark { position: absolute; top: -.2rem; bottom: -.2rem; width: .1rem; background: var(--color-surface-700); opacity: .55; }

/* ------------------------------------------------------- insight list -- */
.insights { list-style: none; margin: 0; padding: 0; }
.insights li { display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-5); border-bottom: var(--border-soft); }
.insights li:last-child { border-bottom: 0; }
.insights__rank { font-size: var(--fs-lg); font-weight: 700; color: var(--color-surface-300); line-height: 1; flex: none; width: 1rem; }
.insights__body { flex: 1; min-width: 0; }
.insights__title { font-size: var(--fs-sm); font-weight: 600; color: var(--color-surface-800); line-height: var(--lh-snug); display: block; }
.insights a.insights__title:hover { color: var(--color-brand-700); }
.insights__meta { font-size: var(--fs-2xs); color: var(--color-surface-400); }
.insights__thumb { flex: none; width: 3rem; height: 2.5rem; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface-100); }
.insights__thumb svg { width: 100%; height: 100%; }

/* -------------------------------------------------------- side promo -- */
.promo {
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
    background: linear-gradient(160deg, var(--color-accent-900), var(--color-surface-900));
    color: var(--color-white); padding: var(--s-6) var(--s-5); text-align: center;
}
.promo__kicker { font-size: var(--fs-2xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-brand-400); font-weight: 700; }
.promo__title { font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--color-white); line-height: 1.05; margin: var(--s-2) 0 var(--s-3); }
.promo__text { font-size: var(--fs-sm); color: var(--color-surface-300); margin: 0 0 var(--s-4); }

/* ------------------------------------------------------------ button -- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 600;
    padding: var(--s-3) var(--s-5); border-radius: var(--radius-pill);
    border: 0.0625rem solid transparent; cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--color-brand-500); color: var(--color-white); }
.btn--primary:hover { background: var(--color-brand-600); color: var(--color-white); }
.btn--ghost { border-color: var(--color-surface-300); color: var(--color-surface-800); background: var(--color-white); }
.btn--ghost:hover { border-color: var(--color-brand-400); color: var(--color-brand-700); }
.btn--block { width: 100%; }
.btn--sm { font-size: var(--fs-xs); padding: var(--s-2) var(--s-4); }

/* ------------------------------------------------------------- facts -- */
.facts { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.facts th, .facts td { text-align: left; padding: var(--s-3) 0; border-bottom: var(--border-soft); vertical-align: top; }
.facts th { font-weight: 500; color: var(--color-surface-500); width: 44%; }
.facts td { font-weight: 500; color: var(--color-surface-800); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------- note -- */
.note {
    border-left: .1875rem solid var(--color-brand-500); background: var(--color-brand-50);
    padding: var(--s-3) var(--s-4); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: var(--fs-sm); line-height: var(--lh-snug);
}
.note--moss   { border-left-color: var(--color-moss-600); background: var(--color-moss-100); }
.note--info   { border-left-color: var(--color-info-500); background: var(--color-info-50); }
.note--danger { border-left-color: var(--color-danger-500); background: var(--color-danger-50); }
.note p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- proof -- */
.proof { background: var(--color-surface-900); color: var(--color-surface-200); border-radius: var(--radius-lg); padding: var(--s-6); }
.proof__k { font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-surface-400); }
.proof__hash {
    font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-brand-400);
    word-break: break-all; line-height: 1.55; background: rgba(255,255,255,.04);
    padding: var(--s-3); border-radius: var(--radius-sm); border: .0625rem solid rgba(249,156,52,.22);
    margin-top: var(--s-2);
}

@media (max-width: 48rem) {
    .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .hero { padding: var(--s-6) var(--s-5); }
}
