/* ============================================================
   Frontier AI Weekly — Edition 3 — Agent Surfaces
   March 30, 2026 | Electric violet · deep blue · neural glow
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600;700&family=Syne:wght@500;600;700;800&display=swap');

:root {
  --bg-primary: #06060f;
  --bg-secondary: #0a0a18;
  --bg-surface: #101024;
  --bg-elevated: #16162e;
  --bg-panel: #12122a;

  --text-primary: #eef0ff;
  --text-secondary: #a8add4;
  --text-muted: #6b7199;

  --accent-violet: #8b5cf6;
  --accent-violet-dim: rgba(139, 92, 246, 0.14);
  --accent-violet-glow: rgba(139, 92, 246, 0.35);
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.12);
  --accent-green: #17b26a;
  --accent-amber: #f59e0b;
  --accent-amber-dim: rgba(245, 158, 11, 0.12);
  --accent-cyan: #22d3ee;

  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --rule: rgba(139, 92, 246, 0.12);
  --rule-strong: rgba(139, 92, 246, 0.22);

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

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --ticker-h: 44px;
}

*, *::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;
}

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.85' 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.65;
}

/* ─── Ticker ─────────────────────────────────────────────── */
.ticker-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ticker-h);
  z-index: 200;
  background: rgba(6, 6, 15, 0.94);
  backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid var(--rule-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
}

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


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

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

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

.ticker-divider {
  margin: 0 0.85rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.ticker-item { letter-spacing: 0.01em; }

/* ─── Page shell ─────────────────────────────────────────── */
.edition-page { position: relative; z-index: 1; }

.source {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  margin-right: 1.25rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease-out-expo), border-color 0.2s;
}
.source:hover {
  color: var(--accent-cyan);
  border-bottom-color: rgba(34, 211, 238, 0.35);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem) 4rem;
  overflow: hidden;
}

.hero__field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-violet-dim), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 60%, rgba(59, 130, 246, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  right: -15%;
  top: 15%;
  background: radial-gradient(circle, var(--accent-violet-glow) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.5;
}

.hero__content { position: relative; z-index: 2; max-width: 1080px; }

.hero__badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-violet);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__title span {
  display: block;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 45%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 38rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  max-width: 720px;
}

.hero__stat {
  padding: 1rem 1.1rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.hero__stat-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--accent-green);
  display: block;
}

.hero__stat-val--violet { color: var(--accent-violet); }
.hero__stat-val--amber { color: var(--accent-amber); }

.hero__stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.anim-reveal { opacity: 0; }
.anim-reveal.is-visible { opacity: 1; }

/* ─── Sections base ───────────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(3.5rem, 10vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}

.section__inner { max-width: 1120px; margin: 0 auto; }

.section__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 22ch;
}

.section__lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 52rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.section__aside {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-amber);
  background: var(--accent-amber-dim);
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-radius: 0 8px 8px 0;
}

/* ─── 1. Computer use — asymmetric split ─────────────────── */
.split-asym {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .split-asym {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.split-asym__main {
  padding: 1.75rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.split-asym__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pulse-list {
  list-style: none;
  margin-top: 1rem;
}
.pulse-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.pulse-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 12px var(--accent-violet);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--accent-violet-dim);
  color: var(--accent-violet);
  border: 1px solid var(--rule-strong);
}

/* ─── 2. Auto mode — horizontal flow ─────────────────────── */
.flow-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin: 2rem 0;
}

.flow-step {
  flex: 1 1 140px;
  min-height: 88px;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
}
.flow-step::after {
  content: '→';
  position: absolute;
  right: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 1;
}
.flow-step:last-child::after { display: none; }

.flow-step__num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}
.flow-step__txt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .flow-step::after { display: none; }
}

/* ─── 3. Partner strip ───────────────────────────────────── */
.cap-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.cap-cell {
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-panel));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}
.cap-cell__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--accent-violet);
}
.cap-cell__small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ─── 4. Foundation pillars — staggered cards ─────────────── */
.pillar-wave {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.pillar-card {
  padding: 1.5rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.pillar-card:nth-child(2) { transform: translateY(0); }
@media (min-width: 700px) {
  .pillar-card:nth-child(2) { transform: translateY(12px); }
  .pillar-card:nth-child(4) { transform: translateY(12px); }
}
.pillar-card__h {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}
.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── 5. Teen safety — memo layout ───────────────────────── */
.memo {
  max-width: 720px;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.memo__head {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.memo ul {
  margin: 1rem 0 0 1.1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.memo ul li { margin-bottom: 0.4rem; }

/* ─── 6. Bounty — two column threat ─────────────────────── */
.bounty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .bounty-grid { grid-template-columns: 1fr 1fr; }
}
.bounty-col {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}
.bounty-col--risk {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.2);
}
.bounty-col--scope {
  background: var(--bg-surface);
}
.bounty-col h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.bounty-col p, .bounty-col li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.bounty-col ul { margin-left: 1.1rem; margin-top: 0.5rem; }

/* ─── 7. Gemini audio — benchmark bar strip ──────────────── */
.bench-strip {
  margin: 2rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.bench-row {
  display: flex;
  gap: 1rem;
  min-width: min-content;
}
.bench-card {
  flex: 0 0 220px;
  padding: 1.35rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.bench-card__metric {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--accent-green);
}
.bench-card__lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.bench-card__note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ─── 8. API tooling — schematic ─────────────────────────── */
.schematic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 800px) {
  .schematic {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
  }
}
.schematic__node {
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px dashed var(--accent-blue);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-blue);
}
.schematic__arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0.25rem;
}

/* ─── 9. DeepMind quote ──────────────────────────────────── */
.quote-hero {
  margin: 2rem 0;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.06));
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 16px 16px 0;
}
.quote-hero blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.5;
  color: var(--text-primary);
  font-style: normal;
}
.quote-hero cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: normal;
}

.stat-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.stat-inline__item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.stat-inline__item strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ─── 10. EU timeline ──────────────────────────────────────── */
.eu-rail {
  position: relative;
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent-amber);
}
.eu-point {
  position: relative;
  padding-bottom: 1.75rem;
}
.eu-point::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-amber);
  border: 2px solid var(--bg-primary);
}
.eu-point__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-amber);
}
.eu-point h4 {
  font-size: 1.05rem;
  margin: 0.35rem 0 0.5rem;
}
.eu-point p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 48rem;
}

/* ─── 11. Llama matrix ───────────────────────────────────── */
.llama-wrap { overflow-x: auto; margin-top: 1.5rem; }
.llama-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.llama-table th,
.llama-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}
.llama-table th {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-violet);
  background: var(--bg-surface);
}
.llama-table td { color: var(--text-secondary); }
.llama-table td:first-child {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* ─── 12. Mobile interactive — narrow column ─────────────── */
.narrow-feature {
  max-width: 480px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-radius: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
}
.narrow-feature p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ─── 13. Contrarian — offset panels ───────────────────── */
.contra-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .contra-panels {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}
.contra-panels__skew {
  transform: rotate(-0.5deg);
  padding: 1.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
@media (min-width: 768px) {
  .contra-panels__skew { transform: rotate(-1deg); }
}
.contra-panels__body p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}
.contra-panels__body p:last-child { margin-bottom: 0; }

/* ─── 14. Week ahead — calendar cards ───────────────────── */
.lookahead {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.look-card {
  padding: 1.35rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  min-height: 120px;
}
.look-card__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}
.look-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.look-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: 3rem clamp(1.25rem, 5vw, 4rem) calc(3rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-strong);
  text-align: center;
  background: var(--bg-secondary);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.site-footer__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 16px var(--accent-violet);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.08); }
}

.site-footer__regen {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 28rem;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
}

.site-footer__session {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-violet);
}

.site-footer__timestamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

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