/* Tech Hub — AI Infrastructure / Data Centers living story
   Design system: Tech Hub house brand (navy/gold, Manrope/Inter). Token-driven, light + dark. */

/* ---------- Tokens ---------- */
:root {
  --paper: #F6F8FB;
  --paper-2: #FFFFFF;
  --paper-3: #EBEFF5;
  --ink: #0A1830;
  --ink-soft: #3B4A64;
  --ink-mute: #7C8AA0;
  --line: #DDE4EE;
  --line-2: #C9D3E1;

  --ember: #00296B;      /* Tech Hub Navy — primary */
  --ember-lt: #003F88;   /* Royal Blue — hover */
  --ember-dim: rgba(0, 41, 107, .08);
  --gold: #FDC500;       /* Tech Gold — accent */
  --gold-lt: #FFD500;
  --slate: #00509D;      /* Blue — innovation accent */

  --bg: var(--paper);
  --surface: var(--paper-2);
  --surface-2: var(--paper-3);

  --serif: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 22px 55px -30px rgba(10, 24, 48, .35);
  --shadow-soft: 0 10px 30px -20px rgba(10, 24, 48, .30);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="dark"] {
  --paper: #060B16;
  --paper-2: #0C1526;
  --paper-3: #101B30;
  --ink: #EDF1F8;
  --ink-soft: #B7C2D6;
  --ink-mute: #7C89A2;
  --line: #1C2A44;
  --line-2: #263757;
  --ember: #4F7BC7;
  --ember-lt: #6E96DB;
  --ember-dim: rgba(79, 123, 199, .16);
  --gold: #FDC500;
  --gold-lt: #FFD500;
  --slate: #6BA9E0;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
  --shadow-soft: 0 10px 30px -18px rgba(0, 0, 0, .6);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-soft); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 800; }
.brand img { height: 26px; width: auto; display: block; }
.brand__name { font-size: 16.5px; letter-spacing: -.01em; }
.brand__tag {
  font-family: var(--sans); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ember);
  border: 1px solid var(--ember); border-radius: 999px; padding: 1px 7px; margin-left: 8px;
  vertical-align: middle;
}
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--ink-soft); }
.nav__links a { position: relative; transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 40px; height: 24px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); position: relative; cursor: pointer; padding: 0;
  transition: background .3s var(--ease);
}
.theme-toggle__dot {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); transition: transform .3s var(--ease);
}
:root[data-theme="dark"] .theme-toggle__dot { transform: translateX(16px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: var(--ember); border: 1px solid var(--gold);
  transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--gold-lt); border-color: var(--gold-lt); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn--sm { padding: 8px 16px; font-size: 13.5px; }
.btn--lg { padding: 14px 30px; font-size: 16px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink-mute); color: var(--ink); }
.section--dark .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 108px) 0; }
.section--band { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark {
  background: var(--ember); color: #fff;
  --ink: #fff; --ink-soft: rgba(255,255,255,.82);
  --ink-mute: rgba(255,255,255,.6); --line: rgba(255,255,255,.16);
}
:root[data-theme="dark"] .section--dark { background: #050B18; }

.eyebrow, .section__label {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em;
  color: var(--slate); margin-bottom: 18px;
}
.section--dark .eyebrow, .section--dark .section__label { color: var(--gold); }
.section__title {
  font-family: var(--serif); font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
  font-size: clamp(30px, 5vw, 50px); margin-bottom: 18px;
}
.section__intro { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 62ch; }
.section__intro.center { margin-inline: auto; }
.body { color: var(--ink-soft); margin-top: 16px; max-width: 60ch; }
.fineprint { font-size: 12.5px; color: var(--ink-mute); margin-top: 22px; font-style: italic; }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(120% 80% at 85% -10%, var(--ember-dim), transparent 60%),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--ember) 4%, transparent));
}
.hero__title {
  font-family: var(--serif); font-weight: 800; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(46px, 9vw, 100px); margin: 8px 0 26px;
}
.hero__title em { font-style: normal; color: var(--slate); }
.hero__lede { font-size: clamp(18px, 2.3vw, 23px); color: var(--ink-soft); max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__cta.center { justify-content: center; }
.hero__trust { margin-top: 30px; font-size: 13.5px; color: var(--ink-mute); letter-spacing: .02em; }

/* ---------- Ranked list ---------- */
.redlist { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.redlist__row {
  display: grid;
  grid-template-columns: 54px 240px 1fr 120px;
  align-items: center; gap: 20px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.redlist__row:hover { background: var(--ember-dim); }
.redlist__rank { font-family: var(--serif); font-size: 26px; color: var(--slate); font-weight: 800; }
.redlist__place { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.redlist__note { color: var(--ink-soft); font-size: 15px; }
.redlist__bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.redlist__bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--slate), var(--ember)); border-radius: 999px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.stat { border-left: 2px solid var(--gold); padding-left: 20px; }
.stat__num { display: block; font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 4.2vw, 46px); line-height: 1; letter-spacing: -.02em; }
.stat__label { display: block; margin-top: 8px; color: var(--ink-mute); font-size: 14px; }
.section--dark .stat { border-left-color: var(--gold); }

/* ---------- Panel ---------- */
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-soft); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--slate); font-weight: 700; }
.panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-soft);
}
.panel__kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--slate); margin-bottom: 14px; }
.panel__lead { color: var(--ink-soft); }
.panel__figs { display: flex; gap: 28px; margin: 26px 0 12px; flex-wrap: wrap; }
.panel__figs .big { display: block; font-family: var(--serif); font-weight: 800; font-size: 34px; color: var(--ink); line-height: 1; }
.panel__figs .cap { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; max-width: 22ch; }

/* ---------- Quote band ---------- */
.quote-band { background: var(--surface); border-block: 1px solid var(--line); text-align: center; }
.pullquote {
  font-family: var(--serif); font-style: normal; font-weight: 700;
  font-size: clamp(24px, 4vw, 38px); line-height: 1.25; letter-spacing: -.015em;
  max-width: 24ch; margin: 20px auto 24px;
}
.pullquote cite { display: block; font-style: normal; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-top: 20px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 28px); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--slate); margin-bottom: 10px; }
.card__title { font-family: var(--serif); font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.link { display: inline-block; margin-top: 18px; color: var(--ember); font-weight: 700; font-size: 15px; }
.section--dark .link { color: var(--gold); }
.link:hover { color: var(--slate); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.pillar { border-top: 2px solid var(--gold); padding-top: 20px; }
.pillar__no { font-family: var(--serif); font-size: 15px; color: var(--gold); font-weight: 800; letter-spacing: .1em; }
.pillar h3 { font-family: var(--serif); font-size: 22px; font-weight: 800; margin: 8px 0 10px; }
.pillar p { color: var(--ink-soft); font-size: 15px; }
.relaunch__by { margin-top: 48px; font-size: 14px; color: var(--ink-mute); letter-spacing: .02em; }
.relaunch__by strong { color: var(--ink); }

/* ---------- Final CTA ---------- */
.finalcta { background: radial-gradient(90% 120% at 50% 0%, var(--ember-dim), transparent 55%); }

/* ---------- Footer ---------- */
.footer { background: var(--ember); color: #fff; padding-top: clamp(48px, 7vw, 80px); }
:root[data-theme="dark"] .footer { background: #050B18; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-bottom: 44px; }
.footer .brand__name { font-family: var(--serif); font-size: 19px; }
.footer__brand p { color: rgba(255,255,255,.68); font-size: 14.5px; margin-top: 14px; max-width: 44ch; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer__cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.footer__cols a { display: block; color: rgba(255,255,255,.82); font-size: 14.5px; padding: 4px 0; transition: color .2s var(--ease); }
.footer__cols a:hover { color: var(--gold); }
.footer__legal { border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px 30px; }
.footer__legal p { font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.6; }
.footer__legal strong { color: rgba(255,255,255,.82); }
.footer__by { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,.6); margin-top: 18px; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .redlist__row { grid-template-columns: 40px 1fr; grid-template-areas: "rank place" "rank note" "bar bar"; gap: 4px 16px; }
  .redlist__rank { grid-area: rank; align-self: start; }
  .redlist__place { grid-area: place; }
  .redlist__note { grid-area: note; }
  .redlist__bar { grid-area: bar; margin-top: 12px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav__actions .btn { display: none; }
}
