/* WhyNotInnovate.ai. Tokens follow the approved v3 mockup (2026-11-27). */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-wdth-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --ink: #141414;
  --paper: #fbfaf6;
  --heat: #ff5a1f;
  --heat-soft: #ff8a5c;
  --glow: #ffc29e;
  --muted: #5e5b54;
  --body: #3d3b36;
  --line: #d9d6cc;
  --on-dark: #e9e6de;
  --on-dark-muted: #c9c6be;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --spring: linear(0, 0.36 9%, 0.88 22%, 1.06 33%, 1.03 45%, 0.99 62%, 1);
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.5; font-variant-numeric: tabular-nums; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--heat); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 16px 26px; border-radius: 999px; transition: transform .35s var(--spring); }
.btn:hover { transform: translateY(-3px); }
.btn-heat { background: var(--heat); color: var(--ink); }
.btn-heat:hover { color: var(--ink); }
.btn-glass { color: var(--paper); border: 1px solid rgba(251,250,246,.4); background: rgba(20,20,20,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { color: #fff; }
.btn-paper { background: var(--paper); color: var(--ink); padding: 10px 18px; }
.btn-paper:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 760px; min-height: min(92svh, 860px); overflow: hidden; background: radial-gradient(ellipse at 78% 40%, rgba(255,90,31,.42), rgba(255,90,31,0) 55%), radial-gradient(ellipse at 60% 85%, rgba(255,194,158,.18), rgba(255,194,158,0) 50%), var(--ink); color: var(--paper); display: flex; flex-direction: column; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; }
.hero canvas.on { opacity: 1; }
.site-header { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.brand { color: var(--paper); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand:hover { color: #fff; }
.brand-mark { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--heat); color: var(--ink); align-items: center; justify-content: center; font-size: 16px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav .navlink { color: var(--on-dark); text-decoration: none; }
.site-nav .navlink:hover { color: #fff; }
.hero-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 40px; padding-bottom: 40px; pointer-events: none; }
.hero-body .mono { color: var(--glow); margin-bottom: 18px; }
.hero h1 { font-weight: 800; font-stretch: 100%; font-size: clamp(96px, 17vw, 236px); line-height: 0.84; letter-spacing: -0.055em; color: var(--paper); }
.hero h1 span { color: var(--heat); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-top: 40px; align-items: flex-end; justify-content: space-between; pointer-events: auto; }
.hero-foot p { font-size: 24px; line-height: 1.35; font-weight: 500; max-width: 28ch; color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { position: relative; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(251,250,246,.16); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); }
.hero-meta .hint { display: none; }
.js-shader .hero-meta .hint { display: inline; }

@keyframes in { from { opacity: 0; transform: translateY(24px); font-weight: 200; font-stretch: 125%; } to { opacity: 1; transform: none; font-weight: 800; font-stretch: 100%; } }
@keyframes in-soft { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.in { animation: in 1.4s cubic-bezier(.2,.8,.2,1) both; }
.in-2 { animation: in-soft 1.4s cubic-bezier(.2,.8,.2,1) .12s both; }

/* Statement */
.statement { padding-top: 140px; padding-bottom: 120px; }
.statement p { font-weight: 700; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -0.035em; max-width: 22ch; }

/* Section heads */
.section { padding-bottom: 120px; }
.section h2 { font-weight: 800; font-size: 48px; letter-spacing: -0.04em; line-height: 1.05; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 40px; }
.section-head .mono { color: var(--muted); }

/* Agent network */
.net { background: radial-gradient(ellipse at 45% 50%, #2a1d16 0%, #0d0b0a 72%); color: var(--paper); border-radius: 28px; overflow: hidden; margin-bottom: 56px; display: flex; flex-wrap: wrap; }
.net-stage-wrap { flex: 999 1 640px; min-width: 0; overflow: hidden; }
.net-stage { position: relative; margin: 0 auto; width: 760px; height: 540px; max-width: 100%; }
.net-stage svg { position: absolute; inset: 0; display: block; }
.net-tag { position: absolute; left: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; z-index: 1; }
.net-tag.t1 { top: 20px; color: var(--heat-soft); }
.net-tag.t2 { top: 38px; color: #a8a197; letter-spacing: 0.04em; }
.net-static { position: absolute; inset: 70px 22px 22px; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; }
.net-static li { border: 1px solid rgba(251,250,246,.2); border-radius: 999px; padding: 6px 14px; font-size: 15px; color: var(--on-dark); }
.js-net .net-static { display: none; }
.net-side { flex: 1 1 280px; min-width: 0; border-left: 1px solid rgba(251,250,246,.1); padding: 24px 22px; display: flex; flex-direction: column; gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-k { font-family: var(--mono); font-size: 10px; color: #a8a197; }
.stat-v { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.stat-v.hot { color: var(--heat-soft); }
.log-head { font-family: var(--mono); font-size: 10px; color: #a8a197; border-top: 1px solid rgba(251,250,246,.1); padding-top: 14px; }
.log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 12px; line-height: 1.45; min-height: 250px; color: var(--on-dark-muted); }
.log li:first-child { color: var(--paper); }
.log time { color: #a8a197; }
.net-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--on-dark-muted); margin-top: auto; }
.net-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes ringp { from { transform: translate(-50%,-50%) scale(.8); opacity: .85; } to { transform: translate(-50%,-50%) scale(2.1); opacity: 0; } }
@keyframes rot { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes breathe { 0%,100% { box-shadow: 0 0 10px 2px rgba(255,90,31,.55); } 50% { box-shadow: 0 0 26px 8px rgba(255,90,31,.85); } }
@keyframes logpop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pulse { position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%; offset-anchor: 50% 50%; offset-rotate: 0deg; animation: travel 2.4s linear infinite; pointer-events: none; }
.ring, .orbit, .core, .node, .node-label, .core-label { position: absolute; pointer-events: none; }
.ring { border-radius: 50%; border: 1.5px solid var(--heat-soft); animation: ringp 2.2s ease-out infinite; }
.orbit { border-radius: 50%; border: 1.5px dashed rgba(255,138,92,.6); animation: rot 18s linear infinite; }
.core { transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--glow) 30%, var(--heat) 62%, rgba(255,90,31,0) 100%); box-shadow: 0 0 40px 10px rgba(255,90,31,.45); }
.core-label { transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: #ffd9c4; white-space: nowrap; }
.node { transform: translate(-50%,-50%); border-radius: 50%; transition: background .4s, box-shadow .4s, border-color .4s, width .4s, height .4s; }
.node.on { animation: breathe 1.6s ease-in-out infinite; }
.node-label { transform: translateX(-50%); font-weight: 600; white-space: nowrap; transition: color .4s; }
.link { transition: stroke-opacity .4s, stroke-width .4s, stroke .4s; }
.log li { animation: logpop .45s ease both; }

/* Day cycle */
.progress { position: relative; height: 2px; background: var(--line); margin-bottom: 28px; }
.progress span { position: absolute; inset: 0; background: var(--heat); }
.cycle { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.cycle .mono { color: var(--muted); }
.cycle h3 { margin: 10px 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.cycle p { color: var(--body); font-size: 17px; }

/* Labels */
.label-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; margin-top: 40px; }
/* Hover uses translate, not transform, so the scroll reveal (.rise) cannot override it. */
.card { display: flex; flex-direction: column; gap: 16px; border-radius: 28px; padding: 36px; min-height: 340px; text-decoration: none; transition: translate .5s var(--spring); }
a.card:hover { translate: 0 -6px; }
.card-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; }
.card-name { margin-top: auto; font-weight: 800; font-size: 56px; letter-spacing: -0.045em; line-height: 1; }
.card p { font-size: 18px; max-width: 32ch; }
.card-live { background: var(--ink); color: var(--paper); }
.card-live:hover { color: var(--paper); }
.card-live .card-top { color: var(--on-dark-muted); }
.card-live .live { color: var(--heat); }
.card-live p { color: #d8d6cf; }
.card-live .go { font-weight: 700; }
.card-next { border: 1.5px dashed #8a877e; color: var(--muted); }

/* Rules */
.rules { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.rules li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1.5px solid var(--ink); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.rules .mono { font-size: 15px; color: var(--muted); padding-top: 6px; }

/* Contact + footer */
.contact { background: var(--ink); color: var(--paper); }
.contact-main { padding-top: 120px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.contact h2 { font-weight: 800; font-size: clamp(56px, 8vw, 112px); line-height: 0.9; letter-spacing: -0.055em; }
.contact h2 span { color: var(--heat); }
.site-footer { padding-top: 22px; padding-bottom: 34px; border-top: 1px solid #333; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); }
.site-footer a { color: var(--on-dark-muted); }

/* Scroll-driven enhancement */
@supports (animation-timeline: view()) {
  @keyframes ink { from { background-position: 100% 0; } to { background-position: 0 0; } }
  .ink { color: transparent; background: linear-gradient(90deg, var(--ink) 0 50%, #cfcbc0 50% 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: ink linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .progress span { transform-origin: left; animation: fill linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
  @keyframes rise { from { opacity: .001; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-nav .navlink { display: none; }
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .hero { min-height: 640px; min-height: min(92svh, 720px); }
  .hero-body { padding-top: 24px; padding-bottom: 32px; }
  .hero-foot p { font-size: 21px; }
  .statement { padding-top: 72px; padding-bottom: 64px; }
  .section { padding-bottom: 72px; }
  .section h2 { font-size: 36px; }
  .net-side { border-left: 0; border-top: 1px solid rgba(251,250,246,.1); }
  .rules li { font-size: 19px; grid-template-columns: 44px minmax(0, 1fr); }
  .card { min-height: 280px; padding: 28px; }
  a.card:hover { translate: none; }
  .contact-main { padding-top: 72px; padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ink { color: var(--ink); background: none; }
}
