/* =========================================================
   AI PULSE — futuristic AI-news / model-release tracker
   Bold redesign. CSS-first. All JS class/ID contracts kept.
   ========================================================= */

/* ===== Theme tokens (dark = default) ===== */
:root {
  /* base surfaces */
  --bg: #05060d;
  --bg-2: #080a16;
  --bg-soft: #0d1022;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.085);
  --card-border-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --text: #f0f2fb;
  --text-soft: #c5cbe0;
  --muted: #939cba;

  /* brand */
  --brand: #7c5cff;
  --brand-2: #19d3ff;
  --brand-3: #b06bff;
  --accent: #ff5c8a;
  --green: #34e2a4;
  --amber: #ffc24b;

  /* gradients */
  --grad-brand: linear-gradient(105deg, var(--brand), var(--brand-2));
  --grad-vivid: linear-gradient(105deg, var(--brand-3), var(--brand), var(--brand-2));
  /* dedicated stops for gradient-CLIPPED TEXT — every stop must clear WCAG AA
     against the page/card bg. In dark mode these match the vivid gradient;
     in light mode they are darkened (see [data-theme="light"]). */
  --grad-text-1: var(--brand-3);
  --grad-text-2: var(--brand);
  --grad-text-3: var(--brand-2);
  --grad-brand-text: linear-gradient(100deg, var(--grad-text-1), var(--grad-text-2), var(--grad-text-3), var(--grad-text-1));

  /* geometry */
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* depth */
  --shadow: 0 22px 60px -18px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 26px 70px -20px rgba(124, 92, 255, 0.55);
  --shadow-card: 0 4px 16px -4px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);

  /* spacing rhythm */
  --space-section: clamp(56px, 8vw, 100px);
  --space-card: clamp(22px, 3vw, 30px);

  --ring: 0 0 0 3px rgba(25, 211, 255, 0.55);

  /* transition presets */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="light"] {
  --bg: #eef1fb;
  --bg-2: #f6f7fd;
  --bg-soft: #ffffff;
  --surface: rgba(20, 24, 50, 0.025);
  --surface-2: rgba(20, 24, 50, 0.05);
  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(20, 24, 50, 0.10);
  --card-border-strong: rgba(20, 24, 50, 0.2);

  --text: #14182e;
  --text-soft: #2e3556;
  --muted: #5a6280;

  --brand: #6a3cff;
  --brand-2: #0aa6d8;
  --brand-3: #9a4bff;
  --accent: #e83a72;
  --green: #12a572;
  --amber: #b9791a;

  --shadow: 0 22px 55px -20px rgba(35, 40, 90, 0.28);
  --shadow-glow: 0 26px 65px -22px rgba(106, 60, 255, 0.32);
  --shadow-card: 0 4px 16px -4px rgba(35, 40, 90, 0.18), 0 1px 4px rgba(35, 40, 90, 0.1);
  --ring: 0 0 0 3px rgba(106, 60, 255, 0.4);

  /* WCAG-AA gradient-clipped text stops (verified ≥4.5:1 on #eef1fb / card):
     #6a3cff = 5.03:1, #0a6f93 = 5.02:1. Drops the failing #9a4bff stop. */
  --grad-text-1: #6a3cff;
  --grad-text-2: #6a3cff;
  --grad-text-3: #0a6f93;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* account for sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 720px at 82% -8%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(880px 620px at -8% 6%, rgba(25, 211, 255, 0.14), transparent 58%),
    radial-gradient(700px 600px at 50% 120%, rgba(255, 92, 138, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.5s ease, color 0.4s ease;
}

.container { width: min(1180px, 92vw); margin-inline: auto; }

a { color: inherit; text-decoration: none; }

.muted { color: var(--muted); }

img { max-width: 100%; height: auto; }

/* ===== Focus visibility (a11y) ===== */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}
a:focus-visible,
button:focus-visible,
.chip:focus-visible,
.btn:focus-visible,
input:focus-visible {
  box-shadow: var(--ring);
}

/* ===== Selection ===== */
::selection { background: rgba(124, 92, 255, 0.4); color: #fff; }

/* ===== Skip link (a11y) ===== */
.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 100;
  background: var(--grad-brand); color: #fff; font-weight: 600;
  padding: 11px 20px; border-radius: 10px;
  transition: top 0.25s var(--ease-smooth);
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.7);
  font-size: 0.94rem;
}
.skip-link:focus { top: 12px; }

/* ===== Animated background orbs ===== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
  animation: float 22s ease-in-out infinite;
  will-change: transform;
}
.orb-1 { width: 460px; height: 460px; background: var(--brand);   top: -140px; left: -90px; }
.orb-2 { width: 380px; height: 380px; background: var(--brand-2); bottom: -140px; right: -70px; animation-delay: -7s; }
.orb-3 { width: 320px; height: 320px; background: var(--accent);  top: 42%; left: 56%; animation-delay: -13s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(46px, -36px) scale(1.1); }
}

/* subtle grid overlay for the "tech" feel */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.6;
}
[data-theme="light"] body::before {
  background-image:
    linear-gradient(to right, rgba(20, 24, 50, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 24, 50, 0.045) 1px, transparent 1px);
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--card-border);
  transition: box-shadow 0.3s ease;
}
.site-header:has(+ *) { box-shadow: 0 1px 0 var(--card-border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.85; }
.brand-mark {
  color: var(--brand-2);
  filter: drop-shadow(0 0 12px var(--brand-2));
  animation: beat 3s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.22); opacity: 0.82; }
}
.brand-name {
  color: var(--brand); /* accessible fallback before clip */
  background: var(--grad-brand-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav { display: flex; gap: 4px; margin-left: auto; font-weight: 500; font-size: 0.93rem; }
.nav a {
  color: var(--muted); position: relative;
  padding: 8px 13px; border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.005em;
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-smooth);
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a:hover::after { transform: scaleX(1); }
.nav a:focus-visible { box-shadow: var(--ring); border-radius: 10px; }

.theme-toggle {
  border: 1px solid var(--card-border); background: var(--surface); color: var(--text);
  width: 40px; height: 40px; border-radius: 11px; cursor: pointer; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-bounce), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(-15deg) scale(1.12); border-color: var(--card-border-strong); background: var(--surface-2); box-shadow: 0 4px 16px -4px rgba(124, 92, 255, 0.3); }

/* ===== Hero ===== */
.hero { padding: clamp(72px, 12vw, 130px) 0 64px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--card-border);
  font-size: 0.84rem; color: var(--text-soft); margin-bottom: 32px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 10px -2px rgba(0,0,0,0.25);
  letter-spacing: 0.01em;
}
.hero-badge #todayDate { color: var(--brand-2); font-weight: 600; }
[data-theme="light"] .hero-badge #todayDate { color: #0a6f93; }
.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 7.5vw, 5rem); line-height: 1.02; margin: 0 auto 22px;
  letter-spacing: -0.03em; max-width: 16ch; font-weight: 700;
}
.grad {
  color: var(--brand); /* accessible fallback before clip */
  background: var(--grad-brand-text);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.hero-sub {
  max-width: 600px; margin: 0 auto 40px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-soft);
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* hero stats */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; justify-content: center; margin-top: 56px;
  max-width: 740px; margin-inline: auto;
}
.stat {
  padding: 22px 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--card-border); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.28s var(--ease-bounce), border-color 0.25s ease, box-shadow 0.25s ease;
}
.stat:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--card-border));
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.stat-num {
  display: block; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700;
  line-height: 1;
  color: var(--brand); /* accessible fallback before clip */
  background: var(--grad-brand-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-lbl { font-size: 0.73rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; margin-top: 9px; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.97rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  position: relative; overflow: hidden; letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0px) scale(0.98); transition-duration: 0.1s; }
.btn:focus-visible { box-shadow: var(--ring); }
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(124, 92, 255, 0.65);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.32), transparent 75%);
  transform: translateX(-130%); transition: transform 0.65s ease;
}
.btn-primary:hover { box-shadow: 0 18px 44px -8px rgba(124, 92, 255, 0.72); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-ghost {
  background: var(--surface); border-color: var(--card-border); color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--card-border-strong); box-shadow: 0 4px 16px -4px rgba(0,0,0,0.2); }

/* ===== Sections ===== */
.section { padding: var(--space-section) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 38px; }
.section-head h2 {
  font-family: "Space Grotesk", sans-serif; font-size: clamp(1.65rem, 3.4vw, 2.4rem); margin: 0;
  letter-spacing: -0.025em; line-height: 1.08; position: relative; padding-left: 20px;
}
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 0.1em; bottom: 0.1em; width: 4px;
  border-radius: 4px; background: var(--grad-brand);
}
.section-head p { margin: 8px 0 0; max-width: 62ch; }

/* ===== Card base (shared depth + gradient border sheen) ===== */
.countdown-card,
.news-card,
.cta-card,
.featured,
.model-card,
.legend {
  position: relative;
  background:
    linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
/* Light mode: give cards a white tint for legibility */
[data-theme="light"] .countdown-card,
[data-theme="light"] .news-card,
[data-theme="light"] .model-card,
[data-theme="light"] .legend {
  background: linear-gradient(165deg, rgba(255,255,255,0.85), rgba(255,255,255,0.7));
  box-shadow: 0 4px 16px -4px rgba(35, 40, 90, 0.12), 0 1px 4px rgba(35, 40, 90, 0.07);
}

/* ===== Countdown cards ===== */
.countdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.countdown-card {
  padding: var(--space-card); border-radius: var(--radius);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform 0.3s var(--ease-bounce), border-color 0.28s ease, box-shadow 0.28s ease;
}
.countdown-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--card-border));
  box-shadow: var(--shadow-glow);
}
.countdown-card:focus-within {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--card-border));
}
.countdown-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--brand), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.5; pointer-events: none;
  transition: opacity 0.3s ease;
}
.countdown-card:hover::before { opacity: 0.8; }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cd-logo {
  font-size: 1.5rem; line-height: 1; width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}
.cd-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.22rem; margin: 18px 0 3px; letter-spacing: -0.01em; }
.cd-org { color: var(--muted); font-size: 0.84rem; margin-bottom: 18px; }
.cd-timer { display: flex; gap: 8px; margin-bottom: 14px; }
.cd-unit {
  flex: 1; text-align: center; min-width: 0;
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.18), rgba(124, 92, 255, 0.05));
  border: 1px solid var(--card-border); border-radius: 13px; padding: 12px 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.countdown-card:hover .cd-unit { border-color: rgba(124, 92, 255, 0.25); }
.cd-unit .num {
  font-family: "Space Grotesk", sans-serif; font-size: clamp(1.2rem, 4vw, 1.55rem); font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.cd-unit .lbl { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 6px; }
.cd-window { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.cd-live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-weight: 700; font-size: 1.05rem;
}
.cd-tba {
  display: inline-block; color: var(--amber); font-weight: 600; font-size: 0.9rem;
  background: rgba(255, 194, 75, 0.12); border: 1px dashed rgba(255, 194, 75, 0.45);
  padding: 9px 16px; border-radius: 11px;
}

/* ===== Featured countdown (Fable 5) ===== */
.featured {
  position: relative; text-align: center; margin: 18px 0 4px;
  padding: clamp(38px, 5.5vw, 64px) clamp(24px, 5vw, 48px); border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(25, 211, 255, 0.09));
  box-shadow: var(--shadow-glow);
}
.featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--a, 0deg), var(--brand), var(--brand-2), var(--accent), var(--brand));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
  animation: spinborder 9s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinborder { to { --a: 360deg; } }
.featured-glow {
  position: absolute; inset: -45% 25% auto; height: 340px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.5), transparent);
  filter: blur(50px); pointer-events: none;
}
.featured-tag {
  position: relative; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-size: 0.84rem; color: var(--text-soft); margin-bottom: 18px;
  padding: 7px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
}
.featured-logo {
  position: relative; font-size: 2.7rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; margin: 0 auto; border-radius: 24px;
  background: var(--surface-2); border: 1px solid var(--card-border-strong);
  box-shadow: 0 16px 44px -12px rgba(124, 92, 255, 0.65), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.3s var(--ease-bounce);
}
.featured:hover .featured-logo { transform: scale(1.05) translateY(-3px); }
.featured-name { position: relative; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.8rem, 4.8vw, 2.8rem); margin: 20px 0 8px; letter-spacing: -0.025em; font-weight: 700; }
.featured-org { position: relative; color: var(--text-soft); margin: 0 auto 28px; max-width: 60ch; font-size: 0.97rem; line-height: 1.6; }
.featured-timer { position: relative; justify-content: center; max-width: 500px; margin: 0 auto; gap: 10px; }
.featured-timer .cd-unit {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.1);
}
.featured-timer .num { font-size: clamp(1.5rem, 6vw, 2.1rem); }

/* ===== Accuracy badges ===== */
.acc {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; cursor: help;
  display: inline-flex; align-items: center; gap: 5px;
}
.acc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acc-confirmed   { background: rgba(52, 226, 164, 0.16); color: var(--green); }
.acc-likely      { background: rgba(25, 211, 255, 0.16); color: var(--brand-2); }
.acc-rumored     { background: rgba(255, 194, 75, 0.16); color: var(--amber); }
.acc-speculative { background: rgba(255, 92, 138, 0.16); color: var(--accent); }
.acc-reported    { background: rgba(124, 92, 255, 0.2);  color: #b6a4ff; }
.acc-sample      { background: rgba(154, 163, 189, 0.18); color: var(--muted); }
[data-theme="light"] .acc-reported { color: var(--brand); }

/* Light-mode badge contrast (WCAG AA for small tinted text) */
[data-theme="light"] .acc-confirmed,
[data-theme="light"] .tag.release,
[data-theme="light"] .status.available { color: #0a7d56; background: rgba(18, 165, 114, 0.16); }
[data-theme="light"] .acc-likely,
[data-theme="light"] .tag.research { color: #0a6f93; background: rgba(10, 166, 216, 0.16); }
[data-theme="light"] .acc-rumored,
[data-theme="light"] .tag.industry,
[data-theme="light"] .status.upcoming { color: #8a5407; background: rgba(185, 121, 26, 0.16); }
[data-theme="light"] .acc-speculative,
[data-theme="light"] .status.rumored,
[data-theme="light"] .status.paused { color: #c2305c; background: rgba(232, 58, 114, 0.14); }
[data-theme="light"] .acc-sample { color: #4a526e; }
[data-theme="light"] .feed-status.warn { color: #8a5407; }
[data-theme="light"] .news-src,
[data-theme="light"] .tl-co,
[data-theme="light"] .hero-badge #todayDate,
[data-theme="light"] .news-card h3 a:hover { color: #0a6f93; } /* 5.02:1 on light bg — AA */

/* ===== Legend ===== */
.legend { margin-top: 26px; padding: 22px 24px; border-radius: var(--radius); border-style: dashed; display: grid; gap: 10px; }
.legend-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; margin-bottom: 8px; font-size: 1.04rem; }
.legend-item { display: flex; align-items: center; gap: 12px; font-size: 0.87rem; line-height: 1.5; }

/* ===== Feed status ===== */
.feed-status {
  font-size: 0.86rem; margin-bottom: 20px; padding: 9px 16px; border-radius: 999px; display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--card-border);
}
.feed-status.ok { color: var(--green); }
.feed-status.warn { color: var(--amber); }
.feed-status.ok::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); margin-right: 9px; box-shadow: 0 0 0 0 rgba(52, 226, 164, 0.6);
  animation: pulse 1.8s ease-out infinite; vertical-align: middle;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 226, 164, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(52, 226, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 226, 164, 0); }
}

/* ===== Filters / chips ===== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 0.87rem;
  background: var(--surface); border: 1px solid var(--card-border); color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-bounce), box-shadow 0.2s ease;
  letter-spacing: 0.01em;
}
.chip:hover { color: var(--text); border-color: var(--card-border-strong); transform: translateY(-2px); box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25); }
.chip:active { transform: translateY(0); }
.chip.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6); }
.chip:focus-visible { box-shadow: var(--ring); }

/* ===== News cards ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.news-card {
  display: flex; flex-direction: column; padding: var(--space-card); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-bounce), border-color 0.25s ease, box-shadow 0.28s ease;
  animation: rise 0.55s var(--ease-smooth) both;
}
.news-card:hover,
.news-card:focus-within {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 50%, var(--card-border));
  box-shadow: var(--shadow-glow);
}
.news-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.tag {
  font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 11px; border-radius: 999px;
}
.tag.release  { background: rgba(52, 226, 164, 0.15); color: var(--green); }
.tag.research { background: rgba(25, 211, 255, 0.15); color: var(--brand-2); }
.tag.industry { background: rgba(255, 194, 75, 0.15); color: var(--amber); }
.news-date { font-size: 0.79rem; color: var(--muted); white-space: nowrap; }
.news-card h3 { font-family: "Space Grotesk", sans-serif; margin: 0 0 10px; font-size: 1.12rem; line-height: 1.34; letter-spacing: -0.01em; }
.news-card h3 a {
  background-image: linear-gradient(var(--brand-2), var(--brand-2));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: color 0.2s ease, background-size 0.3s ease;
}
.news-card h3 a:hover { color: var(--brand-2); background-size: 100% 1.5px; }
.news-card p { margin: 0 0 18px; color: var(--text-soft); font-size: 0.92rem; flex: 1; line-height: 1.65; }
.news-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--card-border); }
.news-src { font-size: 0.81rem; font-weight: 600; color: var(--brand-2); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
/* gentle stagger so cards cascade in rather than popping all at once */
.news-card:nth-child(2)  { animation-delay: 0.06s; }
.news-card:nth-child(3)  { animation-delay: 0.12s; }
.news-card:nth-child(4)  { animation-delay: 0.18s; }
.news-card:nth-child(5)  { animation-delay: 0.22s; }
.news-card:nth-child(6)  { animation-delay: 0.26s; }
.news-card:nth-child(n+7) { animation-delay: 0.30s; }

/* ===== Timeline ===== */
.timeline { list-style: none; margin: 0; padding: 4px 0 0 32px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2), transparent); border-radius: 2px; }
.timeline li {
  position: relative; padding: 0 0 28px 12px;
  transition: opacity 0.2s ease;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 5px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg-soft); border: 2.5px solid var(--brand-2); box-shadow: 0 0 12px rgba(25, 211, 255, 0.6);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease;
}
.timeline:hover li:not(:hover) { opacity: 0.6; }
.timeline li:hover::before { transform: scale(1.3); box-shadow: 0 0 22px var(--brand-2); }
.tl-date { font-size: 0.79rem; color: var(--muted); font-weight: 600; letter-spacing: 0.03em; }
.tl-co { color: var(--brand-2); font-weight: 700; }
[data-theme="light"] .tl-co { color: #0a6f93; }
.tl-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.08rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 3px; line-height: 1.3; }
.tl-desc { color: var(--text-soft); font-size: 0.91rem; line-height: 1.55; }

/* ===== Model tracker ===== */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 14px; }
.model-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease-bounce), border-color 0.22s ease, box-shadow 0.25s ease;
}
.model-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand-2) 50%, var(--card-border));
  box-shadow: var(--shadow-glow);
}
.model-logo {
  font-size: 1.4rem; line-height: 1; flex-shrink: 0;
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px; background: var(--surface-2); border: 1px solid var(--card-border);
  transition: transform 0.25s var(--ease-bounce), border-color 0.2s ease;
}
.model-card:hover .model-logo { transform: scale(1.08); border-color: var(--card-border-strong); }
.model-info { flex: 1; min-width: 0; }
.model-name { font-weight: 600; font-size: 0.97rem; }
.model-org { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.status { font-size: 0.68rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em; }
.status.available { background: rgba(52, 226, 164, 0.15); color: var(--green); }
.status.upcoming  { background: rgba(255, 194, 75, 0.15); color: var(--amber); }
.status.rumored   { background: rgba(255, 92, 138, 0.15); color: var(--accent); }
.status.paused    { background: rgba(255, 92, 138, 0.2);  color: var(--accent); }

/* ===== CTA / newsletter ===== */
.cta-card {
  text-align: center; padding: clamp(44px, 6.5vw, 72px) clamp(24px, 5vw, 48px); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow); overflow: hidden; position: relative;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(25, 211, 255, 0.08));
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--brand), transparent 60%, var(--brand-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; pointer-events: none;
}
.cta-card h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.7rem, 3.8vw, 2.4rem); margin: 0 0 10px; letter-spacing: -0.025em; }
.subscribe { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.subscribe input {
  padding: 14px 20px; border-radius: var(--radius-sm); border: 1px solid var(--card-border);
  background: var(--bg-soft); color: var(--text); font-size: 0.95rem; min-width: min(280px, 80vw);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.subscribe input::placeholder { color: var(--muted); }
.subscribe input:focus-visible { border-color: var(--brand); box-shadow: var(--ring); outline: none; }
.form-msg { margin-top: 16px; color: var(--green); font-weight: 600; min-height: 1.4em; font-size: 0.95rem; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--card-border); margin-top: 48px; padding: 32px 0;
  background: linear-gradient(to bottom, transparent, rgba(124, 92, 255, 0.03));
}
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.87rem; align-items: center; }
.footer-inner > span:first-child { font-family: "Space Grotesk", sans-serif; font-weight: 500; }
code { background: var(--surface-2); padding: 3px 9px; border-radius: 7px; font-size: 0.85em; border: 1px solid var(--card-border); font-family: "SF Mono", "Fira Code", monospace; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s var(--ease-smooth), transform 0.75s var(--ease-smooth);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .orb { animation: none; opacity: 0.3; }
  .brand-mark { animation: none; }
  .grad { animation: none; }
}

/* ===== Responsive ===== */

/* Large screens: let the layout breathe */
@media (min-width: 1440px) {
  .container { width: min(1260px, 90vw); }
  .hero h1 { max-width: 18ch; }
  .hero-stats { max-width: 800px; }
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tablet: comfortable two-up news, single-column section heads stack cleanly */
@media (max-width: 920px) {
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .countdown-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 480px; }
  .section-head { align-items: flex-start; }
  .featured-name { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .model-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 620px) {
  /* Keep in-page anchors reachable: nav becomes a horizontally scrollable
     strip on its own row instead of being hidden. */
  .header-inner { flex-wrap: wrap; height: auto; gap: 10px 14px; padding-block: 10px; }
  .nav {
    order: 3; margin-left: 0; width: 100%;
    gap: 4px; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; scroll-snap-align: start; flex: 0 0 auto; padding: 8px 11px; font-size: 0.9rem; }
  .brand { margin-right: auto; }
  .hero { padding: 56px 0 44px; }
  .section-head { margin-bottom: 28px; }
  .countdown-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  /* Phones: stack CTAs full-width so labels never crowd or clip */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; width: 100%; }
  .subscribe { flex-direction: column; align-items: stretch; }
  .subscribe input { min-width: 0; width: 100%; }
  .subscribe .btn { width: 100%; justify-content: center; }
  .model-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .cd-timer { gap: 5px; }
  .cd-unit { padding: 10px 2px; }
  .cd-unit .lbl { font-size: 0.57rem; letter-spacing: 0.06em; }
  .featured-timer { gap: 5px; }
  .countdown-card { padding: 20px; }
  .news-card, .model-card { padding: 17px; }
  .btn { padding: 13px 20px; font-size: 0.93rem; }
  .legend { padding: 16px; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 16px 14px; }
}
