/* ============================================================
   Frontier AI Weekly — Edition 6 — Agentic Voltage
   Apr 26, 2026 | Electric violet · deep space · launch energy
   ============================================================ */

:root {
  --bg-primary: #07060f;
  --bg-secondary: #0c0a18;
  --bg-surface: #121024;
  --bg-elevated: #1a1730;
  --text-primary: #f0eefc;
  --text-secondary: #a8a3c4;
  --text-muted: #6b6588;

  --accent-violet: #8b5cf6;
  --accent-violet-dim: rgba(139, 92, 246, 0.16);
  --accent-blue: #3b82f6;
  --accent-green: #17b26a;
  --accent-amber: #f59e0b;
  --accent-electric: #a78bfa;

  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --ticker-h: 48px;
  --edge: clamp(1rem, 4vw, 3rem);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--ticker-h) + env(safe-area-inset-top, 0px));
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.85;
}

.is-visible { opacity: 1 !important; transform: none !important; }

/* ─── Ticker (CSS only) ─────────────────────────────────── */
.ticker-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ticker-h);
  z-index: 200;
  background: rgba(7, 6, 15, 0.94);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.22);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-marquee 62s linear infinite;
}

@keyframes ticker-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 1.25rem;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.ticker-label {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-electric);
  letter-spacing: 0.02em;
  margin-right: 0.35rem;
}

.ticker-divider { color: var(--text-muted); padding: 0 0.35rem; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.apx-page { position: relative; z-index: 1; }

.source {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  margin-right: 1.15rem;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(167, 139, 250, 0.3);
  transition: color 0.2s var(--ease-out-expo), border-color 0.2s;
}
.source:hover, .source:focus-visible {
  color: var(--accent-electric);
  border-bottom-color: var(--accent-electric);
  outline: none;
}

/* ─── Hero ───────────────────────────────────────────────── */
.apx-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: clamp(4rem, 11vh, 6.5rem) var(--edge) clamp(2.75rem, 7vh, 4.5rem);
  overflow: hidden;
}

.apx-hero__mesh {
  position: absolute;
  inset: -8% -4%;
  background:
    radial-gradient(ellipse 65% 45% at 75% 10%, rgba(139, 92, 246, 0.2), transparent 50%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(59, 130, 246, 0.12), transparent 55%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 38px,
      rgba(255, 255, 255, 0.025) 38px,
      rgba(255, 255, 255, 0.025) 39px
    );
  pointer-events: none;
  opacity: 0.9;
}

.apx-hero__veil {
  position: absolute;
  width: min(100vw, 720px);
  height: min(100vw, 720px);
  left: 50%;
  top: -5%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 58%);
  filter: blur(2px);
  pointer-events: none;
  opacity: 0.55;
}

.apx-hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.apx-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-electric);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.apx-hero__eyebrow {
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 38ch;
  margin-bottom: 0.85rem;
}

.apx-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 7.2vw, 4.4rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
  max-width: 15ch;
}

.apx-hero__title span { display: block; }
.apx-hero__title span:nth-child(2) {
  background: linear-gradient(105deg, #c4b5fd, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apx-hero__deck {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0 0.75rem;
}
@media (min-width: 760px) {
  .apx-hero__deck {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

.apx-hero__lead {
  font-size: clamp(1rem, 1.95vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 58ch;
}

.apx-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.apx-stat {
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(26, 23, 48, 0.55);
  backdrop-filter: blur(16px);
  padding: 0.95rem 1.1rem;
}

.apx-stat__k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.apx-stat__v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 1.95rem);
  margin-top: 0.15rem;
  color: var(--text-primary);
}
.apx-stat__v--violet { color: var(--accent-electric); }
.apx-stat__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.45;
}

/* ─── Sections ──────────────────────────────────────────── */
.apx-section {
  padding: clamp(2.85rem, 7.5vw, 5.25rem) var(--edge);
  position: relative;
}

.apx-section:nth-child(odd) {
  background: linear-gradient(180deg, transparent, rgba(18, 16, 36, 0.45));
}

.apx-section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.apx-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 0.65rem;
}

.apx-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.95rem;
  max-width: 24ch;
}

.apx-lead {
  font-size: clamp(1rem, 1.95vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 66ch;
  margin-bottom: 1.35rem;
}

.apx-aside {
  font-size: 0.86rem;
  color: var(--text-muted);
  border-left: 3px solid rgba(245, 158, 11, 0.4);
  padding-left: 1rem;
  margin: 0.85rem 0 1.1rem;
  max-width: 60ch;
}

code.inline {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1em 0.32em;
  border-radius: 6px;
}

.apx-panel {
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(18px);
  padding: clamp(1.15rem, 2.8vw, 1.65rem);
  margin: 1.1rem 0;
}

.apx-band {
  margin: 1.35rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.apx-band__row {
  display: grid;
  grid-template-columns: minmax(72px, 0.22fr) 1fr;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: baseline;
}
.apx-band__row:last-child { border-bottom: 0; }
.apx-band__mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-electric);
}

.apx-bench {
  display: grid;
  gap: 0.65rem;
  margin: 1.35rem 0;
}
@media (min-width: 640px) {
  .apx-bench { grid-template-columns: repeat(3, 1fr); }
}

.apx-bench__cell {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(18, 16, 36, 0.65);
  padding: 1rem;
  min-height: 44px;
}
.apx-bench__cell h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-amber);
  margin-bottom: 0.35rem;
}
.apx-bench__cell p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.apx-steps {
  margin: 1.35rem 0;
  padding-left: 0.25rem;
}
.apx-steps__node {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: start;
}
.apx-steps__node:last-child { border-bottom: 0; }
.apx-steps__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-violet);
  min-width: 2rem;
}
.apx-steps__body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.apx-trio {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
@media (min-width: 720px) {
  .apx-trio { grid-template-columns: repeat(3, 1fr); }
}

.apx-trio__card {
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.08), rgba(18, 16, 36, 0.8));
  padding: 1rem 1.05rem;
  min-height: 44px;
}
.apx-trio__card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.apx-trio__card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.apx-mosaic {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0;
}
@media (min-width: 680px) {
  .apx-mosaic { grid-template-columns: 1fr 1fr; }
  .apx-mosaic__cell--span { grid-column: span 2; }
}

.apx-mosaic__cell {
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(12, 10, 24, 0.7);
  padding: 1rem;
  min-height: 44px;
}
.apx-mosaic__cell h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.apx-mosaic__cell p { font-size: 0.86rem; color: var(--text-secondary); }

.apx-megawatt {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(23, 178, 106, 0.25);
  background: rgba(23, 178, 106, 0.04);
}

.apx-megawatt__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.apx-megawatt__row:last-child { margin-bottom: 0; }

.apx-megawatt__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-green);
  min-width: 4.5rem;
}

.apx-megawatt__bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.apx-megawatt__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #17b26a, #8b5cf6);
}

.apx-doc {
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.apx-matrix-wrap { overflow-x: auto; margin: 1.15rem 0; -webkit-overflow-scrolling: touch; }
.apx-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 280px;
}
.apx-matrix th,
.apx-matrix td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}
.apx-matrix th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-electric);
  background: rgba(0, 0, 0, 0.25);
}

.apx-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin: 1.25rem 0;
}
.apx-flow__node {
  flex: 1 1 140px;
  border-radius: 12px;
  padding: 0.8rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(7, 6, 15, 0.75);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apx-flow__arrow {
  display: none;
  align-items: center;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-height: 44px;
  padding: 0 0.25rem;
}
@media (min-width: 700px) {
  .apx-flow { flex-wrap: nowrap; }
  .apx-flow__arrow { display: flex; }
}

.apx-secgrid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}
@media (min-width: 720px) {
  .apx-secgrid { grid-template-columns: 1fr 1fr; }
}

.apx-secgrid__col {
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  padding: 1rem 1.1rem;
  background: rgba(245, 158, 11, 0.04);
}
.apx-secgrid__col h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.apx-secgrid__col p { font-size: 0.86rem; color: var(--text-secondary); }

.apx-quote {
  margin: 1.35rem 0;
  padding: 1.2rem 1.3rem;
  border-radius: 16px;
  background: linear-gradient(125deg, rgba(139, 92, 246, 0.14), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.28);
}
.apx-quote blockquote {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  color: var(--text-primary);
  font-style: italic;
}
.apx-quote cite {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
}

.apx-contra {
  margin: 1.35rem 0;
  padding: 1.15rem;
  border-radius: 16px;
  border: 1px dashed rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.035);
}
.apx-contra p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-size: 0.93rem;
}
.apx-contra p:last-child { margin-bottom: 0; }
.apx-contra strong { color: var(--text-primary); }

.apx-lookahead {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.35rem;
}
@media (min-width: 700px) {
  .apx-lookahead { grid-template-columns: repeat(2, 1fr); }
}

.apx-lookahead__card {
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(18, 16, 36, 0.55);
  padding: 1.05rem 1.15rem;
  min-height: 44px;
}
.apx-lookahead__when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-electric);
  margin-bottom: 0.3rem;
}
.apx-lookahead__card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.apx-lookahead__card p { font-size: 0.86rem; color: var(--text-secondary); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: clamp(2.4rem, 5.5vw, 3.75rem) var(--edge);
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  background: linear-gradient(180deg, rgba(7, 6, 15, 0.35), #04030a);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.site-footer__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 0 6px var(--accent-violet-dim);
  flex-shrink: 0;
}

.site-footer__regen,
.site-footer__session,
.site-footer__timestamp {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 50ch;
  margin-bottom: 0.45rem;
}

.site-footer__session {
  font-family: var(--font-mono);
  color: var(--accent-electric);
  letter-spacing: 0.04em;
}

.sn-wrap { min-height: 1px; }

@media (max-width: 360px) {
  .apx-hero__title { font-size: 2rem; }
}
