/* ============================================================
   Twindem — control plane HUD
   Deep navy, electric blue, DM Sans display + JetBrains Mono
   data. Panels with corner brackets, live indicators, glow.
   ============================================================ */

:root {
  color-scheme: dark;

  /* depth */
  --bg: #050c1c;
  --bg-2: #081226;
  --panel: rgba(13, 26, 54, 0.62);
  --panel-solid: #0b1730;

  /* ink */
  --text: #e8eefc;
  --text-soft: #9fadc9;
  --quiet: #5f6e8f;

  /* electric */
  --blue: #2e6bff;
  --blue-hi: #6e9bff;
  --cyan: #4dd6ff;
  --green: #38d98a;
  --line: rgba(110, 155, 255, 0.16);
  --line-hi: rgba(110, 155, 255, 0.38);

  --radius: 6px;
  --glow: 0 0 28px rgba(46, 107, 255, 0.25);
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(90% 64% at 76% -12%, rgba(46, 107, 255, 0.22), transparent 62%),
    radial-gradient(56% 42% at -8% 28%, rgba(77, 214, 255, 0.07), transparent 60%),
    var(--bg);
  font-size: 16.5px;
  line-height: 1.55;
}

/* fine engineering grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(110, 155, 255, 0.045) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(110, 155, 255, 0.035) 0 1px, transparent 1px 100%);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.75));
}

body > * {
  position: relative;
  z-index: 1;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

::selection {
  color: #051026;
  background: var(--cyan);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ LEDs ============ */

.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}

.led-green {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: led-pulse 2.2s ease-in-out infinite;
}

.led-blue {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: led-pulse 2.2s 0.4s ease-in-out infinite;
}

.led-dim {
  background: var(--quiet);
}

@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.blink-soft {
  animation: led-pulse 1.8s ease-in-out infinite;
}

/* ============ HUD panel + corner brackets ============ */

.hud {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.hud::before,
.hud::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.hud::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--line-hi);
  border-left: 2px solid var(--line-hi);
}

.hud::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--line-hi);
  border-bottom: 2px solid var(--line-hi);
}

/* ============ status strip ============ */

.status-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px clamp(20px, 4vw, 58px);
  color: var(--text-soft);
  background: rgba(5, 12, 28, 0.85);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-strip .ss-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.status-strip .ss-right {
  color: var(--cyan);
}

/* ============ header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  min-height: 64px;
  padding: 10px clamp(20px, 4vw, 58px);
  background: rgba(5, 12, 28, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  padding: 5px;
  background: var(--panel-solid);
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(46, 107, 255, 0.3);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 9px 11px;
  border-radius: var(--radius);
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(110, 155, 255, 0.1);
}

.site-nav .nav-cta {
  margin-left: 8px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(46, 107, 255, 0.45);
}

.site-nav .nav-cta:hover {
  color: #ffffff;
  background: var(--blue-hi);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  background: var(--panel-solid);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

/* ============ type ============ */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 6.6vw, 96px);
  font-weight: 1000;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

h1 em,
h2 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--blue-hi) 10%, var(--cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cursor-block {
  display: inline-block;
  width: 0.14em;
  height: 0.78em;
  margin-left: 0.08em;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(77, 214, 255, 0.7);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  flex: 1 1 24px;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-hi), transparent);
}

/* ============ buttons ============ */

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 2px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  transition:
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--blue), #2553d8);
  box-shadow: 0 0 26px rgba(46, 107, 255, 0.5);
}

.button.primary:hover {
  background: linear-gradient(120deg, var(--blue-hi), var(--blue));
  box-shadow: 0 0 36px rgba(46, 107, 255, 0.7);
}

.button.secondary {
  color: var(--text);
  background: rgba(110, 155, 255, 0.08);
  box-shadow: inset 0 0 0 1.5px var(--line-hi);
}

.button.secondary:hover {
  background: rgba(110, 155, 255, 0.16);
  box-shadow: inset 0 0 0 1.5px var(--blue-hi);
}

/* ============ reveal motion ============ */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============ hero ============ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
  gap: clamp(34px, 5.2vw, 74px);
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: clamp(50px, 6.6vw, 90px) clamp(20px, 4vw, 58px) 72px;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.42s; }

.console-wrap {
  min-width: 0;
  animation: rise 0.9s 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
}

/* system checks */
.contents {
  display: grid;
  gap: 9px;
  max-width: 460px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
}

.contents li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  counter-increment: toc;
  color: var(--text);
}

.contents li::before {
  content: "0" counter(toc);
  color: var(--quiet);
  font-size: 11px;
}

.contents li::after {
  content: "";
  flex: 1;
  order: 2;
  border-bottom: 1px dotted rgba(110, 155, 255, 0.28);
  transform: translateY(-3px);
}

.contents li span {
  order: 1;
}

.contents li b {
  order: 3;
  color: var(--green);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(56, 217, 138, 0.6);
}

/* ============ hero console ============ */

.console {
  overflow: hidden;
  background: rgba(8, 17, 38, 0.88);
  box-shadow: var(--glow), 0 24px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.console-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  color: var(--text-soft);
  background: rgba(13, 26, 54, 0.8);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.console-bar strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.console-bar em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-state {
  padding: 3px 8px;
  color: var(--green);
  border: 1px solid rgba(56, 217, 138, 0.45);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: led-pulse 2.2s ease-in-out infinite;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(240px, 1.16fr) minmax(190px, 0.94fr);
  gap: 10px;
  padding: 10px;
}

.lane {
  min-width: 0;
  padding: 14px;
  background: rgba(10, 20, 44, 0.6);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.lane-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lane-head b {
  color: var(--cyan);
}

.board-ticket {
  padding: 11px 12px;
  margin-bottom: 9px;
  background: rgba(110, 155, 255, 0.05);
  border: 1px solid var(--line);
  border-left: 2px solid var(--quiet);
  border-radius: 2px;
}

.board-ticket:last-child {
  margin-bottom: 0;
}

.board-ticket.active {
  background: rgba(46, 107, 255, 0.14);
  border-color: rgba(110, 155, 255, 0.34);
  border-left-color: var(--cyan);
  box-shadow: 0 0 18px rgba(46, 107, 255, 0.18);
}

.board-ticket small {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board-ticket strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
}

.board-ticket p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.4;
}

/* agent lane */
.agent-lane {
  background: rgba(5, 11, 24, 0.85);
}

.agent-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  background: rgba(110, 155, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.agent-row strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-row p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(140deg, var(--blue), #1f44ad);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(46, 107, 255, 0.4);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.reviewer .agent-badge {
  background: linear-gradient(140deg, #19b8d8, #0e7fa3);
  box-shadow: 0 0 14px rgba(77, 214, 255, 0.3);
}

.connector {
  position: relative;
  width: 1px;
  height: 22px;
  margin: 0 0 0 32px;
  background: var(--line-hi);
  overflow: hidden;
}

.connector::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 1px;
  height: 8px;
  background: var(--cyan);
  animation: data-drop 1.6s linear infinite;
}

@keyframes data-drop {
  to {
    transform: translateY(38px);
  }
}

.gate-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 13px;
  padding: 11px 12px;
  color: var(--text);
  border: 1px dashed rgba(110, 155, 255, 0.45);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.gate-row span {
  color: var(--quiet);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
}

.gate-row strong {
  color: var(--cyan);
  font-weight: 600;
}

/* evidence lane */
.event-log {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
}

.event-log li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.event-log li:last-child {
  border-bottom: 0;
}

.event-log span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
}

.event-log li:last-child::after {
  content: "▍";
  grid-column: 2;
  color: var(--green);
  font-size: 12px;
  line-height: 0.4;
  animation: blink 1.1s steps(1) infinite;
}

.evidence-lane[data-reveal] .event-log li {
  opacity: 0;
}

.evidence-lane[data-reveal].is-in .event-log li {
  animation: rise 0.5s calc(var(--i, 0) * 0.16s + 0.1s) cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ============ sections shared ============ */

.section {
  padding: clamp(74px, 8.6vw, 124px) clamp(20px, 4vw, 58px);
}

.section-kicker {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  margin-bottom: 48px;
}

.section-kicker .eyebrow {
  grid-column: 1;
}

.section-kicker h2 {
  grid-column: 2;
  margin-bottom: 0;
}

/* ============ 01 system ============ */

.system-section {
  border-top: 1px solid var(--line);
}

.system-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.system-map article {
  position: relative;
  min-height: 250px;
  padding: 24px 22px;
}

.system-map .idx {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.system-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 4px 0 20px;
  background: rgba(46, 107, 255, 0.1);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
}

.system-icon svg {
  width: 25px;
  height: 25px;
  stroke: var(--cyan);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-map p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ============ 02 templates ============ */

.templates-section {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.templates-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  margin-bottom: 40px;
}

.templates-intro p {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 17.5px;
}

.idea-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.idea-types article {
  min-height: 208px;
  padding: 20px 18px;
}

.idea-types article.implementation {
  background: rgba(46, 107, 255, 0.12);
  border-color: rgba(110, 155, 255, 0.34);
  box-shadow: 0 0 24px rgba(46, 107, 255, 0.12);
}

.idea-types span {
  display: block;
  margin-bottom: 22px;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.idea-types strong {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 12px;
  padding: 0 8px;
  color: var(--cyan);
  border: 1px solid rgba(77, 214, 255, 0.4);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.idea-types p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 13.5px;
}

.template-matrix {
  overflow: hidden;
}

.template-matrix > div {
  display: grid;
  grid-template-columns: 1.02fr 1.5fr 1.55fr 1.32fr 1.32fr 1.18fr;
  min-width: 960px;
  border-bottom: 1px solid var(--line);
}

.template-matrix > div:last-child {
  border-bottom: 0;
}

.template-matrix .matrix-head {
  background: linear-gradient(120deg, rgba(46, 107, 255, 0.35), rgba(46, 107, 255, 0.12));
  border-bottom-color: var(--line-hi);
}

.template-matrix strong,
.template-matrix span {
  min-width: 0;
  padding: 13px;
  border-right: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.4;
}

.template-matrix .matrix-head span {
  color: var(--text);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-matrix strong {
  color: var(--text);
  background: rgba(110, 155, 255, 0.06);
  font-weight: 700;
}

.template-matrix span {
  color: var(--text-soft);
}

.template-matrix strong:last-child,
.template-matrix span:last-child {
  border-right: 0;
}

.template-rule {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
  padding: 24px 26px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--blue) 0%, #1d3fa6 100%);
  border-radius: 2px;
  box-shadow: 0 0 40px rgba(46, 107, 255, 0.3);
}

.template-rule strong {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.template-rule p {
  margin-bottom: 0;
  color: rgba(232, 238, 252, 0.85);
}

/* ============ 03 workflow ============ */

.workflow-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(74px, 8.6vw, 124px) clamp(20px, 4vw, 58px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(100% 80% at 90% 10%, rgba(46, 107, 255, 0.16), transparent 55%),
    var(--bg);
}

.workflow-copy {
  max-width: 680px;
}

.workflow-copy p {
  color: var(--text-soft);
  font-size: 17.5px;
}

.tandem-diagram {
  display: grid;
  gap: 12px;
}

.intake-card,
.done-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.done-card {
  border-color: rgba(56, 217, 138, 0.4);
  background: rgba(56, 217, 138, 0.07);
}

.done-card::before {
  border-color: rgba(56, 217, 138, 0.6);
}

.done-card::after {
  border-color: rgba(56, 217, 138, 0.6);
}

.phase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(140deg, var(--blue), #1f44ad);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(46, 107, 255, 0.35);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.done-card .phase-icon {
  background: linear-gradient(140deg, var(--green), #1a8f58);
  box-shadow: 0 0 14px rgba(56, 217, 138, 0.4);
}

.intake-card small,
.done-card small,
.stage-head small {
  display: block;
  margin-bottom: 3px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.intake-card strong,
.done-card strong {
  display: block;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.16;
}

.intake-card p,
.done-card p,
.tandem-stages article p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13.5px;
}

.tandem-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tandem-stages article {
  min-height: 236px;
  padding: 16px;
}

.stage-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.stage-head h3 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.mini-loop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.mini-loop span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  color: #ffffff;
  background: rgba(46, 107, 255, 0.28);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
}

.mini-loop span:nth-of-type(2) {
  background: rgba(25, 184, 216, 0.3);
}

.mini-loop span:nth-of-type(3) {
  background: rgba(110, 155, 255, 0.12);
}

.mini-loop i {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-loop i::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 5px;
  background: linear-gradient(90deg, var(--line-hi), transparent);
}

.mini-loop.reverse span:nth-of-type(3),
.mini-loop.gate span:nth-of-type(3) {
  background: rgba(56, 217, 138, 0.4);
  border-color: rgba(56, 217, 138, 0.55);
}

/* ============ 04 evidence ============ */

.evidence-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.evidence-grid {
  display: grid;
}

.evidence-grid article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line-hi);
}

.evidence-grid article:last-child {
  border-bottom: 1px solid var(--line-hi);
}

.evidence-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(46, 107, 255, 0.1);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
}

.evidence-icon svg {
  width: 25px;
  height: 25px;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.evidence-grid h3 {
  margin-bottom: 7px;
}

.evidence-grid p {
  margin-bottom: 0;
  color: var(--text-soft);
}

/* ============ 05 agent stack ============ */

.agent-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding: clamp(74px, 8.6vw, 124px) clamp(20px, 4vw, 58px);
  border-top: 1px solid var(--line);
}

.agent-copy {
  max-width: 650px;
}

.agent-copy p {
  color: var(--text-soft);
  font-size: 17.5px;
}

.matrix {
  overflow: hidden;
}

.matrix div {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}

.matrix div:last-child {
  border-bottom: 0;
}

.matrix span {
  order: 1;
  flex-shrink: 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.matrix div::before {
  content: "";
  order: 2;
  flex: 1;
  border-bottom: 1px dotted rgba(110, 155, 255, 0.28);
  transform: translateY(-4px);
}

.matrix strong {
  order: 3;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

/* ============ 06 board setup ============ */

.setup-section {
  border-top: 1px solid var(--line);
}

.setup-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 14px;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(46, 107, 255, 0.14), rgba(46, 107, 255, 0.03));
}

.setup-feature h3 {
  font-size: 22px;
}

.setup-feature p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 16px;
}

.setup-feature-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.prov-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: var(--cyan);
  background: rgba(110, 155, 255, 0.08);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.prov-chip.gh {
  color: var(--text);
}

.prov-plus {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 16px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.setup-grid article {
  padding: 24px 22px;
}

.setup-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.setup-grid p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ============ 07 cost & context ============ */

.cost-section {
  border-top: 1px solid var(--line);
}

.dev-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pillars article {
  min-height: 210px;
  padding: 24px 22px;
}

.pillars h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.pillars p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ============ 07 roadmap ============ */

.roadmap-section {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.roadmap-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.roadmap-cols article {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
}

.roadmap-cols article.is-live {
  border-color: rgba(56, 217, 138, 0.4);
  box-shadow: 0 0 30px rgba(56, 217, 138, 0.1);
}

.roadmap-cols article.is-live::before,
.roadmap-cols article.is-live::after {
  border-color: rgba(56, 217, 138, 0.6);
}

.roadmap-cols header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.roadmap-cols h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 0;
  font-size: 17.5px;
}

.tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  color: var(--text-soft);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tag-now {
  color: var(--green);
  border-color: rgba(56, 217, 138, 0.5);
}

.plan-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 14.5px;
}

.plan-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.plan-list li::before {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.plan-list.now li::before {
  content: "✓";
  color: var(--green);
}

.plan-list.next li::before {
  content: "→";
  color: var(--cyan);
}

.plan-list.later li::before {
  content: "·";
  color: var(--quiet);
}

.plan-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 13px;
}

/* ============ 07 FAQ ============ */

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-grid article {
  padding: 24px 22px;
}

.faq-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.faq-grid p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ============ 08 license / 09 contact ============ */

.license-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding: clamp(54px, 6.6vw, 82px) clamp(20px, 4vw, 58px);
  border-top: 1px solid var(--line);
}

.license-band h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.6vw, 46px);
}

.license-copy {
  max-width: 780px;
}

.license-copy p {
  color: var(--text-soft);
  font-size: 17.5px;
}

.license-copy a,
.reference-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--cyan);
  border: 1px solid rgba(77, 214, 255, 0.45);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.license-copy a:hover,
.reference-links a:hover {
  background: rgba(77, 214, 255, 0.1);
  box-shadow: 0 0 18px rgba(77, 214, 255, 0.2);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding: clamp(54px, 6.6vw, 82px) clamp(20px, 4vw, 58px);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.contact-band h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.6vw, 46px);
}

.contact-copy {
  max-width: 780px;
}

.contact-copy p {
  color: var(--text-soft);
  font-size: 17.5px;
}

.contact-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(110, 155, 255, 0.08);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.contact-copy a:hover {
  background: rgba(110, 155, 255, 0.16);
  box-shadow: 0 0 18px rgba(46, 107, 255, 0.25);
}

/* ============ final CTA ============ */

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin: 0 clamp(20px, 4vw, 58px) clamp(56px, 7vw, 92px);
  padding: clamp(30px, 4.6vw, 56px);
  color: #ffffff;
  background:
    radial-gradient(120% 140% at 14% 0%, rgba(77, 214, 255, 0.18), transparent 52%),
    linear-gradient(130deg, var(--blue) 0%, #16329a 88%);
  border-radius: 4px;
  box-shadow: 0 0 70px rgba(46, 107, 255, 0.4);
}

.final-cta img {
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  padding: 13px;
  background: rgba(5, 12, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.final-cta .eyebrow {
  color: rgba(232, 238, 252, 0.8);
}

.final-cta .eyebrow::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), transparent);
}

.final-cta h2 {
  max-width: 820px;
  margin-bottom: 0;
}

.final-cta h2 em {
  background: linear-gradient(92deg, #cfe3ff, #8ff0ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.final-cta .button.primary {
  color: var(--blue-deep, #142f86);
  color: #14328f;
  background: #ffffff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
}

.final-cta .button.primary:hover {
  background: #e7efff;
}

.final-cta .button.secondary {
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  background: transparent;
}

.final-cta .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ============ footer ============ */

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px clamp(20px, 4vw, 58px);
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  background: rgba(5, 12, 28, 0.7);
}

.footer-brand {
  color: var(--text);
  font-size: 17px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  padding: 4px;
  background: var(--panel-solid);
  border: 1px solid var(--line-hi);
  border-radius: 50%;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer a:hover {
  color: var(--text);
}

/* ============ license page ============ */

.license-hero {
  padding: clamp(60px, 8.4vw, 110px) clamp(20px, 4vw, 58px) clamp(46px, 6vw, 76px);
}

.license-hero h1 {
  max-width: 1080px;
  font-size: clamp(34px, 4.8vw, 62px);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.license-hero p {
  max-width: 800px;
  color: var(--text-soft);
  font-size: clamp(17px, 1.9vw, 20px);
}

.license-page {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 4vw, 58px);
  border-top: 1px solid var(--line);
}

.license-summary {
  position: sticky;
  top: 90px;
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  box-shadow: var(--glow);
}

.license-summary img {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  padding: 9px;
  background: var(--panel-solid);
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(46, 107, 255, 0.25);
}

.license-summary dl {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.license-summary dt {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.license-summary dd {
  margin: 3px 0 0;
  color: var(--text);
  font-weight: 700;
}

.license-details {
  display: grid;
  gap: 20px;
}

.license-details section {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.license-details section:last-child {
  border-bottom: 0;
}

.license-details h2 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
}

.license-details p {
  max-width: 820px;
  color: var(--text-soft);
  font-size: 17px;
}

.license-details ul {
  display: grid;
  gap: 10px;
  max-width: 820px;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 17px;
}

.license-details li::marker {
  color: var(--cyan);
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ motion safety ============ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .led-green,
  .led-blue,
  .blink-soft,
  .run-state,
  .cursor-block,
  .connector::after,
  .event-log li:last-child::after {
    animation: none;
  }

  .hero-copy > *,
  .console-wrap {
    animation-duration: 0.01ms;
    animation-delay: 0s;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .evidence-lane[data-reveal] .event-log li {
    opacity: 1;
    animation: none !important;
  }
}

/* ============ responsive ============ */

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .console-wrap {
    max-width: 980px;
  }

  .system-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-map article {
    min-height: auto;
  }

  .roadmap-cols {
    grid-template-columns: 1fr;
  }

  .idea-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars article {
    min-height: auto;
  }

  .setup-feature {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .faq-grid,
  .pillars,
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .status-strip .ss-mid {
    display: none;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 102px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px;
    color: var(--text);
    background: #0a1530;
    border: 1px solid var(--line-hi);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .console-grid,
  .section-kicker,
  .templates-intro,
  .workflow-section,
  .evidence-section,
  .agent-section,
  .license-band,
  .contact-band,
  .license-page,
  .final-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-kicker .eyebrow,
  .section-kicker h2 {
    grid-column: auto;
  }

  .idea-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-matrix {
    overflow-x: auto;
  }

  .template-rule {
    grid-template-columns: 1fr;
  }

  .final-cta {
    align-items: start;
  }

  .final-actions,
  .site-footer nav {
    justify-content: flex-start;
  }

  .license-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .status-strip {
    font-size: 9.5px;
  }

  .site-header {
    min-height: 60px;
  }

  .site-nav {
    top: 96px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(38px, 12.5vw, 56px);
  }

  h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .hero-actions,
  .final-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .console-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .console-bar em {
    display: none;
  }

  .system-map {
    grid-template-columns: 1fr;
  }

  .idea-types {
    grid-template-columns: 1fr;
  }

  .idea-types article {
    min-height: auto;
  }

  .idea-types span {
    margin-bottom: 18px;
  }

  .matrix div {
    flex-wrap: wrap;
  }

  .matrix div::before {
    display: none;
  }

  .matrix strong {
    width: 100%;
    text-align: left;
  }

  .tandem-stages {
    grid-template-columns: 1fr;
  }

  .tandem-stages article {
    min-height: auto;
  }

  .mini-loop {
    grid-template-columns: auto minmax(46px, 1fr) auto minmax(46px, 1fr) auto minmax(46px, 1fr);
    gap: 6px;
  }

  .mini-loop span {
    width: 29px;
    height: 29px;
    font-size: 11px;
  }
}
