:root {
  color-scheme: light;
  --ink: #0b1c2f;
  --ink-soft: #52667f;
  --ink-faint: #8492a4;
  --paper: #f4efe5;
  --surface: #fffdf8;
  --surface-2: #f8f4eb;
  --line: #d9d0c0;
  --line-soft: #e8e1d5;
  --teal: #18c3b6;
  --teal-deep: #087e78;
  --teal-soft: #ddf7f2;
  --amber: #f5b842;
  --amber-soft: #fff1cf;
  --coral: #ef766b;
  --shadow: 0 18px 55px rgba(32, 44, 56, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 4%, rgba(24, 195, 182, 0.14), transparent 28rem),
    radial-gradient(circle at 4% 38%, rgba(245, 184, 66, 0.10), transparent 26rem),
    linear-gradient(180deg, #faf7f0 0, var(--paper) 78%);
}

a,
button { font: inherit; -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.site-head {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(11, 28, 47, 0.13);
  background: rgba(255, 253, 248, 0.91);
  backdrop-filter: blur(18px);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 18px; letter-spacing: 0.09em; }
.brand small { color: var(--ink-faint); font-size: 9px; font-weight: 850; letter-spacing: 0.18em; }

.toge-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--ink);
  box-shadow: 0 6px 20px rgba(11, 28, 47, 0.16);
}

.toge-mark i,
.toge-mark b {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--teal);
  transform: rotate(45deg);
}

.toge-mark i:first-child { top: 7px; left: 7px; }
.toge-mark i:nth-child(2) { right: 7px; bottom: 7px; }
.toge-mark b { top: 13px; left: 13px; border-color: var(--amber); background: rgba(245, 184, 66, 0.18); }

.truth-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
}

.truth-state span,
.foot-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.truth-state i,
.foot-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 184, 66, 0.17);
}

.truth-state small { color: var(--ink-faint); }

.head-link {
  justify-self: end;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

main { width: min(1480px, 100%); margin: 0 auto; }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  align-items: center;
  gap: clamp(44px, 7vw, 118px);
  padding: clamp(74px, 10vw, 142px) clamp(24px, 6vw, 92px);
}

.eyebrow {
  display: inline-block;
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 920px;
  margin: 22px 0 24px;
  font-size: clamp(48px, 6.2vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em { color: var(--teal-deep); font-style: normal; }

.hero-lead {
  max-width: 740px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.58;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--ink); }
.button.secondary { border-color: var(--teal-deep); color: var(--teal-deep); background: var(--surface); }
.button.pending { border-style: dashed; border-color: var(--line); color: var(--ink-faint); background: transparent; }
.button.pending:hover { border-color: var(--amber); color: var(--ink-soft); background: var(--amber-soft); }

.truth-note {
  max-width: 720px;
  margin: 15px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.5;
}

.door-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 112px 1fr;
  align-items: center;
  gap: 0;
}

.door-visual::before,
.door-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.door-visual::before {
  inset: 4% 7%;
  border: 1px solid rgba(24, 195, 182, 0.24);
}

.door-visual::after {
  inset: 13% 17%;
  border: 1px dashed rgba(11, 28, 47, 0.18);
}

.signal-card {
  position: relative;
  z-index: 2;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.signal-card small { color: var(--ink-faint); font-size: 10px; font-weight: 950; letter-spacing: 0.15em; }
.signal-card strong { margin: 8px 0 11px; font-size: clamp(30px, 3vw, 46px); }
.signal-card span { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.signal-discord { transform: translateY(-42px); }
.signal-toge { transform: translateY(42px); border-color: rgba(24, 195, 182, 0.5); }

.door-core {
  position: relative;
  z-index: 3;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-deep);
  background: var(--teal-soft);
  box-shadow: 0 0 0 14px rgba(24, 195, 182, 0.08), 0 18px 45px rgba(8, 126, 120, 0.18);
}

.door-core span,
.door-core small { font-size: 8px; font-weight: 950; letter-spacing: 0.14em; }
.door-core b { font-size: 28px; line-height: 1; }

.boundary,
.circuit {
  padding: clamp(70px, 8vw, 118px) clamp(24px, 6vw, 92px);
  border-top: 1px solid var(--line);
}

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2,
.interactions h2,
.real-state h2 { margin: 10px 0 0; font-size: clamp(34px, 4vw, 60px); line-height: 1.05; letter-spacing: -0.04em; }

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.boundary-grid article { min-height: 300px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--line-soft); }
.boundary-grid article:last-child { border-right: 0; }
.article-index { color: var(--teal-deep); font-size: 11px; font-weight: 950; letter-spacing: 0.13em; }
.boundary-grid h3 { margin: 42px 0 16px; font-size: 25px; }
.boundary-grid p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.boundary-grid small { margin-top: auto; color: var(--ink-faint); font-size: 9px; font-weight: 950; letter-spacing: 0.16em; }

.interactions {
  margin: 0 clamp(24px, 4vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(44px, 7vw, 100px);
  padding: clamp(70px, 8vw, 110px) clamp(24px, 5vw, 74px);
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(24, 195, 182, 0.18), transparent 30rem),
    var(--ink);
  box-shadow: 0 30px 90px rgba(11, 28, 47, 0.2);
}

.interactions .eyebrow { color: #71e4d8; }
.interactions-copy > p { max-width: 630px; color: #b8c5d4; font-size: 17px; line-height: 1.65; }
code { padding: 0.08em 0.38em; border-radius: 5px; font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: 0.9em; background: rgba(24, 195, 182, 0.11); }

.guardrails { display: grid; gap: 11px; margin-top: 30px; }
.guardrails span { display: flex; align-items: center; gap: 10px; color: #d8e2ed; font-size: 13px; }
.guardrails i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: rgba(24, 195, 182, 0.13); font-style: normal; }

.gesture-list { display: grid; gap: 12px; }
.gesture-list article { padding: 24px 26px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 17px; background: rgba(255, 255, 255, 0.045); }
.gesture-kind { display: block; margin-bottom: 12px; color: #71e4d8; font-size: 9px; font-weight: 950; letter-spacing: 0.15em; }
.gesture-list strong { display: flex; flex-wrap: wrap; gap: 7px; font-size: 17px; }
.gesture-list p { margin: 10px 0 0; color: #aebdcd; line-height: 1.5; }

.circuit-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.circuit-line li { position: relative; display: grid; gap: 9px; padding: 30px 24px 10px 0; }
.circuit-line li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px var(--teal-soft); }
.circuit-line span { margin-top: 8px; color: var(--teal-deep); font-size: 10px; font-weight: 950; letter-spacing: 0.13em; }
.circuit-line strong { font-size: 19px; }
.circuit-line small { color: var(--ink-soft); font-size: 13px; }

.real-state {
  margin: 0 clamp(24px, 6vw, 92px) clamp(74px, 9vw, 130px);
  display: grid;
  grid-template-columns: 1fr minmax(430px, 0.9fr);
  gap: clamp(46px, 8vw, 130px);
  align-items: center;
  padding: clamp(46px, 6vw, 78px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.real-state > div > p { max-width: 650px; color: var(--ink-soft); line-height: 1.65; }
.real-state dl { margin: 0; border-top: 1px solid var(--line); }
.real-state dl div { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.real-state dt { color: var(--ink-soft); }
.real-state dd { margin: 0; text-align: right; font-weight: 850; }

.site-foot {
  min-height: 130px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px clamp(24px, 6vw, 92px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.brand.compact .toge-mark { width: 34px; height: 34px; }
.site-foot p { margin: 0; color: var(--ink-soft); text-align: center; font-size: 12px; }

.toast {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 48px));
  padding: 16px 20px;
  border: 1px solid var(--amber);
  border-radius: 14px;
  color: var(--ink);
  background: var(--amber-soft);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .door-visual { max-width: 760px; width: 100%; margin: 0 auto; }
  .boundary-grid { grid-template-columns: repeat(2, 1fr); }
  .boundary-grid article:nth-child(2) { border-right: 0; }
  .boundary-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  .interactions { grid-template-columns: 1fr; }
  .real-state { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-head { grid-template-columns: 1fr auto; min-height: 64px; padding: 10px 16px; }
  .truth-state { justify-self: end; }
  .truth-state small,
  .head-link { display: none; }
  .brand strong { font-size: 15px; }
  .hero { min-height: auto; gap: 30px; padding: 64px 18px 74px; }
  .hero h1 { margin-top: 18px; font-size: clamp(42px, 13vw, 64px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .door-visual { min-height: 390px; grid-template-columns: 1fr 72px 1fr; }
  .signal-card { min-width: 0; min-height: 160px; padding: 18px 13px; border-radius: 17px; }
  .signal-card strong { font-size: 24px; }
  .signal-card span { font-size: 10px; }
  .door-core { width: 72px; height: 72px; box-shadow: 0 0 0 8px rgba(24, 195, 182, 0.08); }
  .door-core span,
  .door-core small { font-size: 6px; }
  .door-core b { font-size: 22px; }
  .boundary,
  .circuit { padding: 64px 18px; }
  .section-head { display: block; margin-bottom: 28px; }
  .boundary-grid { grid-template-columns: 1fr; }
  .boundary-grid article { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .boundary-grid article:last-child { border-bottom: 0; }
  .boundary-grid h3 { margin-top: 30px; }
  .interactions { min-width: 0; margin: 0 10px; padding: 62px 18px; border-radius: 22px; }
  .gesture-list article { padding: 20px 18px; }
  .circuit-line { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); }
  .circuit-line li { padding: 0 0 32px 28px; }
  .circuit-line li::before { top: 4px; left: -5px; }
  .circuit-line span { margin-top: 0; }
  .real-state { min-width: 0; margin: 0 10px 72px; padding: 42px 18px; border-radius: 22px; }
  .real-state dl div { display: grid; gap: 5px; }
  .real-state dd { text-align: left; }
  .site-foot { grid-template-columns: 1fr; justify-items: start; gap: 18px; }
  .site-foot p { text-align: left; }
  .toast { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
