:root {
  --ink: #10120f;
  --paper: #f3f0e8;
  --paper-bright: #fbfaf6;
  --line: rgba(16, 18, 15, 0.16);
  --muted: #6c7168;
  --acid: #d8ff57;
  --coral: #ff6b4a;
  --blue: #7ab8ff;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper-bright);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.text-link {
  display: inline-block;
  padding-block: 10px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  width: min(1440px, calc(100% - 48px));
  height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.nav {
  display: flex;
  gap: 34px;
  font-size: 0.84rem;
  font-weight: 650;
}

.nav a,
.footer-links a {
  position: relative;
}

.nav a::after,
.footer-links a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
  padding: 12px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  width: min(1440px, calc(100% - 48px));
  min-height: 750px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: 78px 0 86px;
}

.eyebrow,
.section-index,
.frame-label,
.note-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #77a630;
  box-shadow: 0 0 0 5px rgba(119, 166, 48, 0.13);
}

.hero h1 {
  max-width: 780px;
  margin: 32px 0 28px;
  font-size: clamp(3.5rem, 6.2vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.hero-lede {
  max-width: 660px;
  margin: 0;
  color: #4e534c;
  font-size: clamp(1.02rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 52px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 0 rgba(16, 18, 15, 0.12);
}

.button-primary:hover {
  background: #292c27;
}

.button-secondary:hover {
  background: var(--paper-bright);
}

.hero-facts {
  max-width: 670px;
  margin: 56px 0 0;
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding-right: 20px;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 650;
}

.hero-visual {
  position: relative;
  padding: 22px;
}

.visual-glow {
  position: absolute;
  inset: 13% 4% 6% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(216, 255, 87, 0.78), transparent 44%),
    radial-gradient(circle at 70% 74%, rgba(122, 184, 255, 0.56), transparent 46%);
  filter: blur(46px);
  opacity: 0.66;
}

.visual-frame {
  position: relative;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), transparent 35%),
    #11130f;
  color: var(--paper);
  box-shadow:
    0 36px 70px rgba(16, 18, 15, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(1.5deg);
}

.frame-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
}

.frame-label {
  display: block;
  margin-bottom: 9px;
  color: #969b90;
}

.frame-header strong {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.live-badge {
  padding: 7px 10px;
  border: 1px solid rgba(216, 255, 87, 0.35);
  border-radius: 999px;
  background: rgba(216, 255, 87, 0.09);
  color: var(--acid);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.queue-card {
  min-height: 86px;
  padding: 16px 17px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.queue-card-active {
  border-color: rgba(216, 255, 87, 0.38);
  background: rgba(216, 255, 87, 0.08);
}

.queue-card-review {
  border-color: rgba(255, 107, 74, 0.35);
}

.queue-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #a9ada3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.queue-kicker {
  display: block;
  margin-bottom: 6px;
  color: #8e9388;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.queue-card strong {
  font-size: 0.93rem;
}

.queue-state {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 700;
}

.queue-state-muted {
  color: #888d83;
}

.queue-state-review {
  color: #ff8e73;
}

.queue-connector {
  height: 24px;
  padding-left: 37px;
}

.queue-connector span {
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.18);
}

.frame-footer {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.frame-footer span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #a4a99e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.63rem;
}

.visual-caption {
  position: relative;
  max-width: 430px;
  margin: 20px auto 0;
  color: #666b63;
  font-size: 0.75rem;
  text-align: center;
}

.statement {
  padding: clamp(90px, 13vw, 190px) 24px;
  background: var(--acid);
}

.statement p {
  max-width: 1180px;
  margin: 0 auto;
  font-size: clamp(2.2rem, 5vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.statement strong {
  font-weight: 760;
}

.product-section,
.principles-section {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(100px, 12vw, 180px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 160px minmax(320px, 1fr) minmax(260px, 0.52fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 76px;
}

.section-index {
  padding-top: 10px;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.feature {
  min-height: 330px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.28);
}

.feature-large {
  grid-row: span 2;
  min-height: 678px;
  display: flex;
  flex-direction: column;
}

.feature-accent {
  background: var(--coral);
  border-color: transparent;
}

.feature-number {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 70px 0 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.feature-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.feature h3 {
  margin: 0 0 13px;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  letter-spacing: -0.045em;
}

.feature p {
  max-width: 540px;
  margin: 0;
  color: #555a52;
  line-height: 1.65;
}

.feature-accent .feature-number,
.feature-accent p {
  color: rgba(16, 18, 15, 0.7);
}

.mini-console {
  margin-top: auto;
  padding: 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #b8bdb2;
  font-size: 0.72rem;
}

.mini-console div {
  padding: 8px 0;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.mini-console code {
  color: #d8dcd3;
}

.mini-console b {
  color: #8f958a;
  font-weight: 600;
}

.console-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.console-dot.green {
  background: var(--acid);
}

.console-dot.amber {
  background: #ffc164;
}

.console-dot.slate {
  background: #737a70;
}

.system-section {
  padding: clamp(100px, 12vw, 180px) max(24px, calc((100vw - 1440px) / 2));
  background: var(--ink);
  color: var(--paper);
}

.section-heading-light .section-index,
.section-heading-light > p:last-child {
  color: #9ba095;
}

.system-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.system-steps li {
  min-height: 160px;
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.step-marker {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

.system-steps li > div {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) 1fr;
  gap: 30px;
  align-items: center;
}

.system-steps h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
}

.system-steps p {
  max-width: 560px;
  margin: 0;
  color: #9ba095;
  line-height: 1.65;
}

.claude-note {
  margin-top: 64px;
  padding: 30px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  border: 1px solid rgba(216, 255, 87, 0.26);
  border-radius: 16px;
  background: rgba(216, 255, 87, 0.06);
}

.note-label {
  color: var(--acid);
}

.claude-note p {
  max-width: 850px;
  margin: 0;
  color: #d4d8cf;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.48;
}

.principle-list {
  border-top: 1px solid var(--line);
}

.principle-list article {
  min-height: 170px;
  display: grid;
  grid-template-columns: 160px minmax(280px, 0.7fr) 1fr;
  gap: 34px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.principle-list span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.principle-list h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.7vw, 2.8rem);
  letter-spacing: -0.04em;
}

.principle-list p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.closing {
  min-height: 510px;
  padding: clamp(70px, 8vw, 120px) max(24px, calc((100vw - 1440px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
  background: var(--blue);
}

.closing h2 {
  margin: 26px 0 0;
  font-size: clamp(3rem, 7vw, 7.3rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.closing-actions {
  padding-bottom: 10px;
}

.button-light {
  min-width: 240px;
  justify-content: space-between;
  background: var(--paper-bright);
}

.closing-actions p {
  margin: 16px 0 0;
  font-size: 0.72rem;
  text-align: center;
}

.site-footer {
  width: min(1440px, calc(100% - 48px));
  min-height: 160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: center;
}

.brand-footer {
  color: var(--ink);
}

.site-footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.76rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

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

  .hero-visual {
    width: min(720px, 100%);
    justify-self: center;
  }

  .section-heading {
    grid-template-columns: 110px 1fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

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

  .feature-large {
    grid-row: auto;
    min-height: 580px;
  }

  .system-steps li {
    grid-template-columns: 90px 1fr;
  }

  .system-steps li > div {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 0;
  }

  .principle-list article {
    grid-template-columns: 90px 0.7fr 1fr;
  }

  .closing {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .closing-actions {
    width: fit-content;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .product-section,
  .principles-section,
  .site-footer {
    width: min(100% - 30px, 1440px);
  }

  .site-header {
    height: 74px;
  }

  .header-cta {
    padding: 10px 13px;
    font-size: 0.68rem;
  }

  .brand {
    font-size: 0.74rem;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .hero {
    gap: 52px;
    min-height: 0;
    padding: 46px 0 66px;
  }

  .hero h1 {
    margin-top: 28px;
    font-size: clamp(2.6rem, 12.5vw, 4.6rem);
  }

  .hero-lede {
    font-size: 0.98rem;
  }

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

  .button {
    width: 100%;
  }

  .hero-facts {
    gap: 12px;
  }

  .hero-facts dd {
    font-size: 0.74rem;
  }

  .hero-visual {
    padding: 0;
  }

  .visual-frame {
    padding: 22px 16px;
    border-radius: 22px;
    transform: none;
  }

  .frame-header {
    margin-bottom: 28px;
  }

  .live-badge {
    display: none;
  }

  .queue-card {
    grid-template-columns: 38px 1fr;
  }

  .queue-index {
    width: 34px;
    height: 34px;
  }

  .queue-state {
    grid-column: 2;
  }

  .queue-connector {
    padding-left: 33px;
  }

  .statement {
    padding-right: 15px;
    padding-left: 15px;
  }

  .statement p {
    font-size: 2.25rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 48px;
  }

  .section-heading > p:last-child {
    grid-column: auto;
  }

  .section-heading h2 {
    font-size: 2.7rem;
  }

  .feature {
    min-height: 320px;
    padding: 26px;
  }

  .feature-large {
    min-height: 560px;
  }

  .feature-icon {
    margin-top: 54px;
  }

  .mini-console {
    padding: 14px;
    overflow: hidden;
  }

  .system-section {
    padding-right: 15px;
    padding-left: 15px;
  }

  .system-steps li {
    grid-template-columns: 56px 1fr;
  }

  .step-marker {
    width: 38px;
    height: 38px;
  }

  .claude-note {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .principle-list article {
    min-height: 0;
    padding: 32px 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .principle-list p {
    grid-column: 1;
  }

  .closing {
    min-height: 500px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .closing h2 {
    font-size: 3.7rem;
  }

  .closing-actions,
  .button-light {
    width: 100%;
  }

  .site-footer {
    padding: 34px 0;
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
