:root {
  --ink: #08100f;
  --ink-2: #101a18;
  --ink-3: #192522;
  --paper: #f2f0e9;
  --paper-2: #e6e2d7;
  --teal: #20c6b7;
  --teal-deep: #087d75;
  --coral: #e54f4f;
  --gold: #d8ae4d;
  --blue: #65a8dd;
  --muted: #9ca7a3;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(8, 16, 15, 0.15);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: rgba(7, 14, 13, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
}

.site-header.scrolled { background: rgba(7, 14, 13, 0.96); }

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img { width: 34px; height: 34px; object-fit: contain; }

.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a {
  color: #d7ddda;
  font-size: 14px;
  text-decoration: none;
}
.desktop-nav a:hover { color: #fff; }

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  color: #d7ddda;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-star:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.language-switch button {
  min-width: 38px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: #c7d0cc;
  background: transparent;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--teal);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: min(820px, 82vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #070d0c;
}

.hero-bg, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { object-fit: cover; object-position: center 42%; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 9, 8, 0.96) 0%, rgba(4, 9, 8, 0.77) 38%, rgba(4, 9, 8, 0.22) 76%),
    linear-gradient(0deg, rgba(4, 9, 8, 0.8) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 150px 0 68px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow, .section-dark .eyebrow, .roadmap .eyebrow { color: var(--teal); }

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: "Arial Black", Impact, Inter, sans-serif;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span { color: var(--teal); }

.hero-copy {
  max-width: 660px;
  margin: 30px 0 0;
  color: #dbe2df;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions, .download-actions, .contribute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { color: #07100f; background: var(--teal); }
.button.primary:hover { background: #41dbcd; }
.button.secondary { color: inherit; border-color: rgba(255, 255, 255, 0.38); background: rgba(6, 14, 13, 0.44); }
.button.secondary:hover { border-color: #fff; }
.button.is-disabled { opacity: 0.48; pointer-events: none; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 38px;
  color: #b8c2be;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-meta span + span { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.3); }

.release-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 112px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-dark);
}

.release-strip div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 20px max(24px, calc((100vw - var(--max)) / 8));
  border-right: 1px solid var(--line-dark);
}
.release-strip div:last-child { border-right: 0; }
.release-strip strong { font-size: 12px; text-transform: uppercase; }
.release-strip span { color: #53605c; font-size: 14px; }

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading { max-width: 790px; margin-bottom: 48px; }
.section-heading.compact { margin: 0; }
.section-heading h2, .flow-copy h2, .split-band h2, .roadmap h2, .contribute h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}
.section-heading > p:last-child, .flow-copy > p, .split-band article > p, .roadmap > div > p, .contribute > div > p {
  margin: 22px 0 0;
  color: #55625e;
  font-size: 17px;
}

.mode-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.screen-frame {
  overflow: hidden;
  background: #07100f;
  border: 1px solid #15211f;
  border-radius: 7px;
  box-shadow: 0 30px 70px rgba(7, 15, 14, 0.22);
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  color: #89938f;
  font-size: 11px;
}
.screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: #38413f; }
.screen-bar i:first-child { background: var(--coral); }
.screen-bar i:nth-child(2) { background: var(--gold); }
.screen-bar i:nth-child(3) { background: var(--teal); }
.screen-bar span { margin-left: 8px; }
.screen-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  background: #dcd8ce;
  border-radius: 6px;
}
.segmented button {
  min-height: 42px;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #5a6561;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.segmented button[aria-selected="true"] { color: #fff; background: var(--ink); }

.mode-copy { min-height: 210px; padding: 34px 0 28px; border-bottom: 1px solid var(--line-dark); }
.mode-index { color: var(--coral); font-size: 12px; font-weight: 900; }
.mode-copy h3 { margin: 8px 0 12px; font-size: 28px; line-height: 1.15; }
.mode-copy p { margin: 0; color: #55625e; }
.feature-checks { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.feature-checks li { padding-left: 22px; position: relative; font-size: 14px; }
.feature-checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 2px; background: var(--teal-deep); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 76px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.feature-grid article { min-height: 240px; padding: 28px 24px 24px; border-right: 1px solid var(--line-dark); }
.feature-grid article:first-child { padding-left: 0; }
.feature-grid article:last-child { border-right: 0; }
.feature-grid article > span { color: var(--coral); font-size: 12px; font-weight: 900; }
.feature-grid h3 { margin: 34px 0 10px; font-size: 20px; }
.feature-grid p { margin: 0; color: #5c6763; font-size: 14px; }

.section-dark {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  color: #f2f5f4;
  background: var(--ink);
}
.section-dark .section-heading > p:last-child, .section-dark .flow-copy > p { color: #aeb9b5; }

.ai-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr); gap: 80px; align-items: end; }
.difficulty-lab { border-top: 1px solid var(--line); }
.difficulty-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
.difficulty-tabs button {
  min-height: 120px;
  padding: 22px 18px;
  text-align: left;
  color: #9ba7a3;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.difficulty-tabs button:first-child { border-left: 1px solid var(--line); }
.difficulty-tabs button[aria-selected="true"] { color: var(--ink); background: var(--teal); }
.difficulty-tabs button span, .difficulty-tabs button strong, .difficulty-tabs button small { display: block; }
.difficulty-tabs button span { font-size: 11px; }
.difficulty-tabs button strong { margin-top: 14px; font-size: 20px; }
.difficulty-tabs button small { margin-top: 3px; }
.difficulty-detail { min-height: 190px; padding: 28px; border: 1px solid var(--line); border-top: 0; }
.difficulty-detail .label { margin: 0; color: var(--gold); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.difficulty-detail h3 { margin: 10px 0 8px; font-size: 26px; }
.difficulty-detail > p:last-child { margin: 0; color: #b4bfbb; }

.truth-note {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 32px;
  align-items: start;
  margin: 76px 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--line);
}
.truth-note strong { color: var(--gold); }
.truth-note p { margin: 0; color: #b7c0bd; }
.truth-note a { color: var(--teal); text-decoration: none; white-space: nowrap; }

.codeman-flow { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; margin-top: 90px; }
.codeman-art { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; min-height: 540px; overflow: hidden; border-bottom: 1px solid var(--line); }
.codeman-art img { width: min(100%, 520px); max-height: 600px; object-fit: contain; object-position: bottom; }
.flow-line { display: flex; align-items: center; gap: 13px; margin: 32px 0; color: var(--teal); font-size: 13px; font-weight: 800; }
.flow-line span { padding: 8px 10px; border: 1px solid rgba(32, 198, 183, 0.35); border-radius: 4px; }
.assistant-note { padding: 20px 0 0; border-top: 1px solid var(--line); }

.screenshots { padding-bottom: 72px; }
.screen-stage { position: relative; overflow: hidden; min-height: 500px; color: #fff; background: var(--ink); border-radius: 7px; }
.screen-stage img { width: 100%; min-height: 500px; object-fit: cover; }
.screen-stage::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(5, 11, 10, 0.92), transparent); }
.screen-stage > div { position: absolute; z-index: 1; left: 34px; right: 34px; bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.screen-stage span { color: var(--teal); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.screen-stage strong { max-width: 620px; font-size: 24px; line-height: 1.25; text-align: right; }
.mini-screens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.mini-screens figure { margin: 0; }
.mini-screens img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line-dark); border-radius: 6px; }
.mini-screens figcaption { padding: 10px 2px; color: #53605c; font-size: 13px; }

.split-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.split-band article { min-height: 500px; padding: 88px max(40px, calc((100vw - var(--max)) / 2)); }
.split-band article:first-child { padding-left: max(20px, calc((100vw - var(--max)) / 2)); border-right: 1px solid var(--line-dark); }
.split-band article:last-child { padding-right: max(20px, calc((100vw - var(--max)) / 2)); }
.split-band h2 { font-size: clamp(32px, 4vw, 50px); }
.text-link { display: inline-block; margin-top: 28px; color: var(--teal-deep); font-weight: 800; text-decoration: none; }

.online-demo-band {
  width: 100%;
  max-width: none;
  padding: 88px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-dark);
}
.online-demo-label {
  margin: 0 0 20px;
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.online-demo {
  position: relative;
  width: 100%;
  max-width: var(--max);
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #07100f;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(7, 15, 14, 0.18);
}
.online-demo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.content-status { display: grid; grid-template-columns: 0.55fr 1.45fr; gap: 70px; }
.status-copy h2 { margin: 0; font-size: 50px; line-height: 1.05; }
.status-list { border-top: 1px solid var(--line-dark); }
.status-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.status-list strong { color: var(--teal-deep); }
.status-list p { margin: 0; color: #596560; }

.install {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  background: #dfe9e4;
  border-top: 1px solid var(--line-dark);
}
.install-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 80px; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.steps li > span { color: var(--coral); font-size: 12px; font-weight: 900; }
.steps strong { font-size: 19px; }
.steps p { margin: 6px 0 0; color: #4f5c57; }
.requirements { padding: 30px; color: #f4f6f5; background: var(--ink); border-radius: 7px; }
.requirements h3 { margin: 0 0 20px; font-size: 24px; }
.requirements dl { margin: 0; border-top: 1px solid var(--line); }
.requirements dl > div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.requirements dt { color: #93a09b; }
.requirements dd { margin: 0; }
.requirements .download-actions { display: grid; }
.requirements .button { width: 100%; }
.hash-note { margin: 20px 0 0; color: #99a5a0; font-size: 12px; }
.hash-note code { color: var(--gold); }

.roadmap {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 70px;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: #17212d;
}
.roadmap-number { align-self: center; color: var(--blue); font-family: "Arial Black", Impact, sans-serif; font-size: clamp(72px, 12vw, 170px); line-height: 0.8; opacity: 0.23; }
.roadmap > div:last-child { max-width: 710px; }
.roadmap > div > p { color: #b9c2ca; }
.roadmap-caveat { padding-left: 18px; border-left: 3px solid var(--coral); }

.contribute { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: end; }
.contribute .button.secondary { color: var(--ink); border-color: rgba(8, 16, 15, 0.32); background: transparent; }

footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 60px;
  align-items: start;
  padding: 48px max(20px, calc((100vw - var(--max)) / 2));
  color: #aab5b1;
  background: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 12px;
}
footer strong { color: #fff; }
footer p { margin: 6px 0 0; }
footer a { color: var(--teal); text-decoration: none; white-space: nowrap; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .header-tools { gap: 8px; }
  .mode-showcase, .ai-layout, .codeman-flow, .install-grid { grid-template-columns: 1fr; }
  .ai-layout { gap: 50px; }
  .codeman-art { min-height: 430px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid article:nth-child(2) { border-right: 0; }
  .feature-grid article:first-child, .feature-grid article:nth-child(3) { padding-left: 0; }
  .feature-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .truth-note { grid-template-columns: 1fr; gap: 12px; }
  .content-status { grid-template-columns: 1fr; gap: 36px; }
  .roadmap { grid-template-columns: 0.4fr 1.6fr; }
  .contribute { gap: 50px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > a { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 62px; }
  body { font-size: 15px; }
  .site-header { min-height: 60px; padding: 0 14px; }
  .brand span { font-size: 14px; }
  .brand img { width: 30px; height: 30px; }
  .header-tools { gap: 6px; }
  .header-star { min-height: 30px; padding: 0 10px; font-size: 12px; }
  .language-switch button { min-width: 34px; padding: 0 5px; }
  .hero { min-height: 720px; }
  .hero-bg { object-position: 64% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4, 9, 8, 0.94), rgba(4, 9, 8, 0.58)), linear-gradient(0deg, rgba(4, 9, 8, 0.86), transparent 50%); }
  .hero-content { width: min(100% - 28px, var(--max)); padding: 130px 0 42px; }
  .hero h1 { font-size: clamp(40px, 11.3vw, 48px); }
  .hero-copy { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-meta { gap: 8px 14px; }
  .hero-meta span + span { padding-left: 0; border-left: 0; }
  .release-strip { grid-template-columns: repeat(2, 1fr); }
  .release-strip div { min-height: 90px; padding: 16px 18px; border-bottom: 1px solid var(--line-dark); }
  .release-strip div:nth-child(2) { border-right: 0; }
  .section { width: min(100% - 28px, var(--max)); padding: 80px 0; }
  .section-dark, .install, .roadmap { width: 100%; padding-left: 14px; padding-right: 14px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .flow-copy h2, .split-band h2, .roadmap h2, .contribute h2 { font-size: 34px; }
  .mode-showcase { gap: 28px; }
  .segmented button { min-height: 48px; padding: 6px; font-size: 12px; }
  .mode-copy { min-height: 190px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .feature-grid article:last-child { border-bottom: 0; }
  .feature-grid h3 { margin-top: 18px; }
  .difficulty-tabs button { min-height: 106px; padding: 16px 10px; }
  .difficulty-tabs button strong { font-size: 17px; }
  .difficulty-tabs button small { font-size: 10px; }
  .difficulty-detail { min-height: 220px; padding: 22px; }
  .codeman-flow { margin-top: 60px; gap: 38px; }
  .codeman-art { min-height: 360px; }
  .flow-line { flex-wrap: wrap; gap: 8px; }
  .flow-line b { display: none; }
  .screen-stage, .screen-stage img { min-height: 360px; }
  .screen-stage img { object-position: 48% center; }
  .screen-stage > div { left: 18px; right: 18px; bottom: 18px; display: block; }
  .screen-stage strong { display: block; margin-top: 8px; font-size: 18px; text-align: left; }
  .mini-screens { grid-template-columns: 1fr; }
  .split-band { grid-template-columns: 1fr; }
  .split-band article { min-height: auto; padding: 72px 14px; }
  .split-band article:first-child { padding-left: 14px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .split-band article:last-child { padding-right: 14px; }
  .online-demo-band { padding: 60px 14px; }
  .status-copy h2 { font-size: 38px; }
  .status-list > div { grid-template-columns: 90px 1fr; gap: 14px; }
  .install-grid { gap: 42px; }
  .steps li { grid-template-columns: 32px 1fr; gap: 12px; }
  .requirements { padding: 24px 18px; }
  .roadmap { grid-template-columns: 1fr; gap: 26px; }
  .roadmap-number { font-size: 82px; }
  .contribute { grid-template-columns: 1fr; gap: 18px; }
  .contribute-actions { display: grid; }
  footer { grid-template-columns: 1fr; gap: 24px; padding: 38px 14px; }
  footer > a { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
