:root {
  --cream: #f4efe5;
  --cream-deep: #e8dfd0;
  --paper: #fbf8f1;
  --ink: #101d33;
  --navy: #123c68;
  --blue: #1f568d;
  --orange: #d85d2a;
  --orange-soft: #f1ad78;
  --sage: #8eab9c;
  --muted: #5e6671;
  --line: rgba(16, 29, 51, 0.16);
  --shadow: 0 28px 80px rgba(16, 29, 51, 0.14);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", YuGothic, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img { width: 148px; }

nav { display: flex; align-items: center; gap: 24px; }
nav a { font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: .04em; }
nav a:not(.nav-cta):not(.nav-star):hover { color: var(--orange); }
.nav-lang { color: var(--blue); font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.nav-star { padding: 9px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.38); }
.nav-star:hover { color: white; border-color: var(--orange); background: var(--orange); }
.nav-cta { padding: 10px 18px; color: white; background: var(--ink); border-radius: 999px; }
.nav-cta:hover { background: var(--orange); }

.hero {
  min-height: calc(100svh - 78px);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 76px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background-image: linear-gradient(rgba(16, 29, 51, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 29, 51, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  border: 110px solid rgba(216, 93, 42, .09);
  border-radius: 50%;
  top: 4%;
  right: -130px;
  animation: hero-ring-drift 14s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-ring-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  42% { transform: translate3d(-32px, 16px, 0) scale(1.025); }
  72% { transform: translate3d(-10px, -12px, 0) scale(.99); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 900px);
  align-items: center;
}

.eyebrow, .section-kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; line-height: 1.16; letter-spacing: -.035em; }

h1 { margin-bottom: 30px; font-size: clamp(47px, 5.5vw, 78px); font-weight: 860; }
h1 span { color: var(--orange); }

.product-headline { display: grid; gap: 2px; }
.product-headline span {
  color: var(--ink);
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.product-headline strong {
  margin-top: 13px;
  color: var(--orange);
  font-size: clamp(49px, 5.5vw, 78px);
  line-height: .94;
  letter-spacing: -.055em;
}

.hero-lead { max-width: 660px; margin: 0 0 34px; color: #3f4854; font-size: 17px; line-height: 2; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 23px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover { background: var(--orange); border-color: var(--orange); }
.button-ghost:hover { color: white; background: var(--ink); }

.review-card-wrap { position: relative; min-width: 0; }
.review-card { position: relative; z-index: 2; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; color: #e9eef5; background: #101b2c; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.review-topbar { height: 54px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #5e6878; }
.window-dots i:first-child { background: var(--orange); }
.review-topbar .status { justify-self: end; padding: 5px 8px; color: #b8dfc8; background: rgba(97, 183, 135, .12); border-radius: 3px; }
.review-body { padding: 17px; }
.review-line { min-height: 75px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; margin-bottom: 9px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; background: rgba(255,255,255,.035); }
.review-line:last-child { margin-bottom: 0; }
.review-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.review-line strong { display: block; font: 700 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.review-line small { display: block; margin-top: 7px; color: #8d99a9; font-size: 10px; }
.review-line b { font: 800 21px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.review-this .review-icon { color: #ffd3bd; background: rgba(216,93,42,.2); }
.verified .review-icon { color: #bde8d0; background: rgba(90,170,126,.18); }
.risk .review-icon { color: #ffe8aa; background: rgba(217,177,71,.17); }
.comments .review-icon { color: #bdd9f5; background: rgba(76,130,183,.2); }
.review-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 22px; color: #8d99a9; background: #0b1422; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.review-footer .arrow { color: var(--orange-soft); }
.review-footer strong { color: white; }
.band { padding: 88px 0; border-block: 1px solid var(--line); background: var(--paper); }
.problem-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
h2 { margin-bottom: 0; font-size: clamp(36px, 4.8vw, 62px); }
.balanced-heading { font-size: clamp(38px, 4vw, 54px); overflow-wrap: normal; word-break: keep-all; }
.balanced-heading span { display: block; white-space: nowrap; }
.problem-heading { font-size: clamp(36px, 4.3vw, 58px); }
.problem-heading span + span { margin-top: .08em; }
.green-word { color: #2f8f5b; font-style: italic; }
.lang-en .step-ja { font-family: inherit; font-style: normal; font-weight: 800; }
.problem-copy { padding-top: 34px; color: #464f5a; font-size: 16px; }
.problem-copy p { margin: 0 0 20px; }
.problem-answer { padding-left: 20px; border-left: 3px solid var(--orange); color: var(--ink); font-weight: 800; }
.intent-flow { display: grid; grid-template-columns: 1fr 42px 1.08fr 42px 1fr 42px 1.14fr; align-items: stretch; margin-top: 64px; }
.diff-input, .flow-node { min-height: 214px; display: flex; flex-direction: column; justify-content: center; padding: 24px; border: 1px solid var(--line); }
.diff-input { color: #e9eef5; background: var(--ink); }
.diff-input > span, .flow-node > span { margin-bottom: 17px; color: var(--orange-soft); font: 900 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.diff-input > strong, .flow-node > strong { font: 850 clamp(21px, 2.1vw, 31px)/1.12 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.04em; }
.diff-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 25px; }
.diff-stats i { padding: 6px 8px; color: #aeb9c7; border: 1px solid rgba(255,255,255,.14); font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.flow-node { color: var(--ink); background: var(--paper); }
.behavior-node { background: rgba(31,86,141,.06); border-color: rgba(31,86,141,.3); }
.behavior-node > span { color: var(--blue); }
.behavior-pair { display: grid; gap: 5px; margin-top: 22px; }
.behavior-pair i { padding: 7px 9px; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.45); font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }
.behavior-pair i::before { margin-right: 7px; color: var(--blue); font-weight: 900; }
.behavior-pair i:first-child::before { content: "BASE"; }
.behavior-pair i:last-child::before { content: "HEAD"; color: var(--orange); }
.intent-question-node { background: rgba(216,93,42,.09); border-color: rgba(216,93,42,.35); text-align: center; }
.intent-question-node > span { color: var(--orange); }
.expectation-node { color: #e9eef5; background: var(--blue); border-color: var(--blue); }
.expectation-node > span { color: #c9def2; }
.expectation-node > small { margin-top: 22px; color: #bfd2e5; font: 700 8px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.map-arrow { display: grid; place-items: center; color: var(--orange); }
.map-arrow b { font-size: 22px; }

.section { padding: 120px 0; }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; margin-bottom: 66px; }
.section-heading > p { margin: 0 0 6px; color: var(--muted); }
.section-heading.compact { grid-template-columns: 1fr; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.step { min-height: 360px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); background: rgba(251,248,241,.55); }
.step-socratic { grid-column: 1 / -1; min-height: 0; padding: 36px; }
.step-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.step-head span { color: var(--orange); font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.step-head small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.step h3 { margin-bottom: 7px; font: 800 clamp(27px, 3vw, 38px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.step-ja { margin: 0 0 25px; color: var(--orange); font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 14px; }
.step > p:not(.step-ja), .step-copy > p:not(.step-ja) { margin: 0; color: #545e6a; font-size: 14px; }
.step-copy > p strong { color: var(--ink); }
.step-featured-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 52px; align-items: center; }
.step-outcome { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; line-height: 1.65; }
.step-socratic .step-outcome { margin-top: 32px; }
.step-outcome span { display: block; margin-bottom: 7px; color: var(--blue); font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }

.comparison-map { padding: 25px; color: #e9eef5; background: var(--ink); }
.compare-pair { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 10px; }
.compare-pair > span { display: grid; place-items: center; min-height: 58px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.055); font: 800 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.compare-pair small { margin-bottom: 7px; color: #8d99a9; font-size: 8px; letter-spacing: .14em; }
.compare-pair b { color: var(--orange-soft); text-align: center; }
.flow-connector { display: flex; align-items: center; gap: 12px; margin: 11px 0; color: #8d99a9; font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.flow-connector::before, .flow-connector::after { height: 1px; flex: 1; content: ""; background: rgba(255,255,255,.16); }
.review-signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.review-signals span { min-height: 48px; display: grid; place-items: center; padding: 8px; color: #ffe0cf; background: rgba(216,93,42,.17); font-size: 11px; font-weight: 800; text-align: center; }
.review-plan-node { min-height: 58px; display: grid; place-items: center; padding: 10px; color: var(--ink); background: var(--paper); text-align: center; }
.review-plan-node small { color: var(--blue); font: 900 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.review-plan-node strong { font-size: 14px; }

.compact-diagram { display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr; align-items: center; gap: 5px; margin: 28px 0; }
.compact-diagram span { min-height: 54px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); font-size: 10px; font-weight: 800; text-align: center; }
.compact-diagram b { color: var(--orange); text-align: center; }

.output { color: #f6f0e5; background: var(--ink); }
.output-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 86px; align-items: center; }
.section-kicker.light { color: var(--orange-soft); }
.output-intro > p:not(.section-kicker) { margin: 28px 0 0; color: #aeb8c5; }
.output-review-card .review-card { border-color: rgba(255,255,255,.13); box-shadow: 0 30px 80px rgba(0,0,0,.28); transform: none; }

.use-cases { background: var(--paper); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-grid article { min-height: 560px; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); background: var(--cream); }
.case-label { margin-bottom: 22px; color: var(--blue); font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.case-grid h3 { margin-bottom: 12px; font: 850 clamp(31px, 3vw, 44px)/1.02 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.045em; }
.case-grid .case-ja { margin: 0 0 22px; color: var(--ink); font-size: 19px; font-weight: 800; line-height: 1.5; }
.case-grid article > p:not(.case-ja) { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.case-visual { margin-top: auto; border: 1px solid var(--line); background: var(--paper); }

.terminal-question { overflow: hidden; color: #e8eef6; border-color: rgba(255,255,255,.08); background: #0d1829; }
.case-terminal-bar { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; color: #8c99aa; background: #142238; font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.case-terminal-bar i { color: #637185; font-size: 7px; font-style: normal; letter-spacing: 2px; }
.terminal-question-body { padding: 17px; font: 600 10px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-question-body code { color: #c7d1de; }
.terminal-question-body code > span:first-child, .terminal-question-body p > b { color: var(--orange-soft); }
.terminal-question-body code strong { color: #eef4fb; }
.terminal-cursor { width: 6px; height: 13px; display: inline-block; margin-left: 4px; background: #8ca4bd; vertical-align: -2px; animation: terminal-blink 1.1s steps(1) infinite; }
.terminal-question-body p { margin: 14px 0 11px; color: #f2f5f8; font: inherit; }
.terminal-question-body ul { display: grid; gap: 3px; margin: 0; padding: 0; color: #8d99a9; list-style: none; }
.terminal-question-body li { min-height: 32px; display: grid; grid-template-columns: 16px 1fr; align-items: center; gap: 2px; padding: 4px 8px; border: 1px solid transparent; border-radius: 3px; }
.terminal-question-body li > b { color: #7790aa; }
.terminal-question-body li span { display: flex; align-items: baseline; gap: 8px; }
.terminal-question-body li strong { color: #c4ceda; }
.terminal-question-body li small { color: #758398; font: 600 8px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-question-body .selected { border-color: rgba(189,232,208,.22); background: rgba(89,165,124,.13); }
.terminal-question-body .selected > b, .terminal-question-body .selected strong { color: #bde8d0; }
.terminal-question-body .selected small { color: #8fbca4; }
.terminal-key-hint { display: flex; justify-content: flex-end; gap: 11px; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); color: #65748a; font-size: 7px; }
.terminal-key-hint span { display: flex; align-items: center; gap: 3px; }
.terminal-key-hint kbd { min-width: 16px; padding: 2px 4px; border: 1px solid #46556a; border-bottom-color: #718095; border-radius: 3px; color: #a5b2c2; background: #17253a; font: inherit; text-align: center; }
@keyframes terminal-blink { 50% { opacity: 0; } }

.animated-terminal { overflow: hidden; color: #e8eef6; border-color: rgba(255,255,255,.08); background: #0d1829; }
.animated-terminal-body { min-height: 246px; padding: 17px; font: 600 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.animated-terminal-body > code { display: block; margin-bottom: 15px; color: #c7d1de; font: inherit; }
.animated-terminal-body > code > span:first-child { color: var(--orange-soft); }
.animated-terminal-body > code strong { color: #eef4fb; }
.terminal-stage { animation-duration: 8.8s; animation-iteration-count: infinite; animation-timing-function: ease; animation-fill-mode: both; }
.stage-one { animation-name: terminal-stage-one; }
.stage-two { animation-name: terminal-stage-two; }
.stage-three { animation-name: terminal-stage-three; }
.stage-four { animation-name: terminal-stage-four; }
.terminal-run { min-height: 34px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 7px; margin-top: 6px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 3px; background: rgba(255,255,255,.035); }
.terminal-run span { color: #82b7e9; font-weight: 850; }
.terminal-run b { color: #cbd6e2; font-weight: 700; }
.terminal-run em { color: #bde8d0; font-style: normal; font-weight: 850; }
.test-target { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 8px; min-height: 34px; padding: 6px 9px; border: 1px solid rgba(130,183,233,.18); background: rgba(130,183,233,.06); }
.test-target small { color: #82b7e9; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.test-target strong { color: #e8eef6; font-size: 8px; }
.test-execution b { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; overflow: hidden; }
.test-execution b i { position: absolute; inset: auto 0 -3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #82b7e9 0 72%, rgba(130,183,233,.12) 72%); animation: base-test-progress 8.8s ease infinite; }
.test-execution.stage-three b i { animation-name: head-test-progress; }
.test-execution.stage-three em { color: var(--orange-soft); }
.terminal-verdict { min-height: 47px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; margin-top: 10px; padding: 8px 10px; border: 1px solid rgba(239,106,44,.34); border-radius: 3px; background: rgba(239,106,44,.12); }
.terminal-verdict > span { color: var(--orange-soft); font-size: 18px; text-align: center; }
.terminal-verdict div { display: grid; gap: 4px; }
.terminal-verdict small { color: #de9670; font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.terminal-verdict strong { color: #fff2e9; font-size: 10px; }
.mutation-inject { min-height: 42px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid rgba(239,106,44,.28); background: rgba(239,106,44,.08); }
.mutation-inject span { color: var(--orange-soft); font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.mutation-inject strong { color: #f5d4c2; font-size: 8px; }
.mutation-inject i { color: #d77f51; font-size: 7px; font-style: normal; }
.mutation-run { grid-template-columns: 68px 1fr auto; }
.mutation-run b { color: var(--orange-soft); font-size: 8px; }
.mutation-run.stage-two em { color: #de9670; }
.mutation-run.stage-three { border-color: rgba(94,159,123,.28); background: rgba(94,159,123,.08); }
.mutation-run.stage-three em { color: #9fd4b6; }
.mutation-terminal .terminal-verdict { border-color: rgba(94,159,123,.34); background: rgba(94,159,123,.13); }
.mutation-terminal .terminal-verdict > span, .mutation-terminal .terminal-verdict small { color: #9fd4b6; }
.mutation-terminal .terminal-verdict strong { color: #dff6e9; }
@keyframes base-test-progress {
  0%, 25% { transform: scaleX(0); transform-origin: left; }
  38%, 100% { transform: scaleX(1); transform-origin: left; }
}
@keyframes head-test-progress {
  0%, 44% { transform: scaleX(0); transform-origin: left; }
  57%, 100% { transform: scaleX(1); transform-origin: left; }
}
@keyframes terminal-stage-one {
  0%, 7% { opacity: 0; transform: translateY(5px); }
  14%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes terminal-stage-two {
  0%, 25% { opacity: 0; transform: translateY(5px); }
  32%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes terminal-stage-three {
  0%, 44% { opacity: 0; transform: translateY(5px); }
  51%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes terminal-stage-four {
  0%, 63% { opacity: 0; transform: translateY(5px); }
  70%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

.principles-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; }
.safety-summary { display: grid; gap: 8px; margin: 38px 0 0; padding: 18px 0; border-block: 1px solid var(--line); }
.safety-summary strong { color: var(--orange); font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.safety-summary span { color: var(--muted); font-size: 12px; font-weight: 700; }
.principle-list { border-top: 1px solid var(--line); }
.principle-list article { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.principle-list article > span { color: var(--orange); font: 800 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.principle-list h3 { margin: 0 0 8px; font-size: 20px; }
.principle-list p { margin: 0; color: var(--muted); font-size: 14px; }
.safety-mechanism { grid-column: 1 / -1; display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; margin-top: 34px; padding-top: 72px; border-top: 1px solid var(--line); }
.mechanism-heading h3 { margin: 0 0 22px; font-size: clamp(28px, 3vw, 40px); line-height: 1.25; }
.mechanism-heading h3 span { display: block; }
.mechanism-heading > p:last-child { max-width: 430px; color: var(--muted); font-size: 14px; }
.mechanism-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--line); }
.mechanism-list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 26px; background: var(--paper); }
.mechanism-list li > span { color: var(--orange); font: 800 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mechanism-list strong { display: block; margin-bottom: 10px; font-size: 15px; line-height: 1.7; }
.mechanism-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.mechanism-list code { color: var(--ink); font-size: .9em; }
.mechanism-heading h3:lang(ja), .mechanism-list strong:lang(ja) { word-break: auto-phrase; }
.mechanism-caveat { grid-column: 2; margin: -70px 0 0; padding: 16px 18px; color: var(--muted); background: #ece7dc; font-size: 11px; line-height: 1.7; }
.mechanism-caveat strong { color: var(--ink); }

.install { padding-top: 40px; }
.install-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; align-items: center; padding: 72px; color: white; background: var(--blue); border-radius: 8px; box-shadow: var(--shadow); }
.install-copy h2 { font-size: clamp(34px, 4vw, 53px); }
.install-copy > p:not(.section-kicker) { color: #d0dfed; }
.install-copy a { display: inline-block; margin-top: 20px; font-size: 13px; font-weight: 800; text-underline-offset: 5px; }
.install-terminal { overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: 8px; background: #0d1829; box-shadow: 0 22px 50px rgba(4,12,24,.3); }
.terminal-bar { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; color: #9eabba; background: #142238; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-bar i { color: #58677a; font-style: normal; letter-spacing: 4px; }
.command-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 20px; }
.command-row code { overflow-x: auto; color: #e6edf5; font: 600 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.command-row code span { color: var(--orange-soft); }
.copy-button { min-height: 31px; padding: 0 11px; border: 1px solid #46556a; border-radius: 4px; color: #b6c1ce; background: transparent; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.copy-button:hover, .copy-button:focus-visible { color: white; border-color: var(--orange-soft); }
.copy-button.copied { color: #bde8d0; border-color: #5e9f7b; }
.terminal-divider { height: 1px; position: relative; background: rgba(255,255,255,.1); }
.terminal-divider span { position: absolute; top: 50%; left: 20px; padding: 0 7px; color: #66758a; background: #0d1829; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; transform: translateY(-50%); }
.terminal-hint { margin: 0; padding: 14px 20px; color: #8997a9; background: rgba(255,255,255,.025); font-size: 11px; }
.terminal-hint code { color: #dce8f5; }

.origin { color: #f6f0e5; background: var(--ink); }
.origin-intro, .research-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: end; }
.origin-intro h2 { font-size: clamp(36px, 3.8vw, 50px); }
.origin-heading { overflow-wrap: normal; word-break: keep-all; }
.origin-heading span { display: block; white-space: nowrap; }
.origin-intro > p, .research-intro > p { margin: 0 0 6px; color: #aeb8c5; font-size: 15px; line-height: 2; }
.name-flow { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 68px; border-top: 1px solid rgba(255,255,255,.17); border-left: 1px solid rgba(255,255,255,.17); }
.name-flow article { min-height: 300px; padding: 32px; border-right: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); }
.name-flow article > span, .paper-grid article > span { color: var(--orange-soft); font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.name-flow h3 { margin: 45px 0 10px; font: 800 clamp(26px, 3vw, 38px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.name-flow strong { display: block; color: var(--orange-soft); font-size: 14px; }
.name-flow p { margin: 30px 0 0; color: #aeb8c5; font-size: 13px; }
.research-intro { margin-top: 110px; padding-top: 80px; border-top: 1px solid rgba(255,255,255,.17); }
.research-intro h3 { margin: 0; font: 800 clamp(34px, 4.2vw, 54px)/1.05 ui-monospace, SFMono-Regular, Menlo, monospace; }
.paper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.paper-grid article { min-height: 380px; display: flex; flex-direction: column; padding: 30px; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.025); }
.paper-grid h4 { margin: 38px 0 20px; color: #f6f0e5; font: 760 18px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.03em; }
.paper-grid p { margin: 0 0 30px; color: #aeb8c5; font-size: 12px; line-height: 1.85; }
.paper-grid a { margin-top: auto; color: #f6f0e5; font-size: 11px; font-weight: 850; text-underline-offset: 5px; }
.paper-grid a span { color: var(--orange-soft); }
.research-note { max-width: 900px; margin: 50px 0 0; padding-left: 20px; border-left: 3px solid var(--orange); color: #8f9aaa; font-size: 11px; }

footer { padding: 58px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding-top: 34px; border-top: 1px solid var(--line); }
.footer-inner img { width: 130px; }
.footer-inner p { color: var(--muted); font-family: Georgia, serif; font-size: 13px; font-style: italic; }
.footer-inner div { display: flex; justify-self: end; gap: 20px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); font-size: 11px; font-weight: 800; text-underline-offset: 4px; }

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

@media (max-width: 980px) {
  nav { gap: 10px; }
  nav a:not(.nav-cta):not(.nav-lang):not(.nav-star) { display: none; }
  .hero { min-height: auto; }
  .review-card-wrap { width: min(620px, 100%); margin-inline: auto; }
  .problem-grid, .section-heading, .output-grid, .principles-grid, .install-card, .origin-intro, .research-intro, .safety-mechanism { grid-template-columns: 1fr; gap: 46px; }
  .problem-copy { padding-top: 0; }
  .intent-flow { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .diff-input, .flow-node { min-height: 0; padding: 24px; }
  .map-arrow { min-height: 52px; grid-template-columns: auto auto; gap: 10px; }
  .map-arrow b { transform: rotate(90deg); }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step, .step-socratic { min-height: 0; }
  .step-socratic { grid-column: auto; }
  .step-featured-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .name-flow, .paper-grid { grid-template-columns: 1fr; }
  .name-flow article, .paper-grid article { min-height: 0; }
  .case-grid article { min-height: 0; }
  .case-label { margin-bottom: 18px; }
  .mechanism-caveat { grid-column: auto; margin: -18px 0 0; }
  .install-card { padding: 56px; }
}

@media (max-width: 700px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .header-inner { min-height: 66px; }
  .brand img { width: 112px; }
  nav { gap: 6px; }
  .nav-star, .nav-cta { padding: 8px 10px; font-size: 11px; }
  .nav-star { font-size: 0; }
  .nav-star::after { content: "★ Star"; font-size: 11px; }
  .hero { padding: 58px 0 76px; }
  h1 { font-size: clamp(32px, 8.4vw, 44px); word-break: keep-all; overflow-wrap: normal; }
  .product-headline { gap: 3px; }
  .product-headline span { font-size: clamp(29px, 8vw, 39px); }
  .product-headline strong { margin-top: 10px; font-size: clamp(39px, 10.5vw, 51px); }
  .hero-lead { font-size: 15px; }
  .balanced-heading { font-size: clamp(32px, 10vw, 44px); }
  .problem-heading { font-size: clamp(31px, 9vw, 42px); }
  .origin-intro h2 { font-size: clamp(32px, 9vw, 40px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .review-card { transform: none; }
  .review-line { grid-template-columns: 34px 1fr auto; padding-inline: 11px; }
  .review-line small { font-size: 9px; }
  .band, .section { padding: 72px 0; }
  .problem-grid { gap: 30px; }
  .intent-flow { margin-top: 40px; }
  .section-heading { margin-bottom: 46px; }
  .step { padding: 25px; }
  .comparison-map { padding: 18px; }
  .case-grid article { padding: 26px; }
  .case-grid { grid-template-columns: 1fr; }
  .safety-mechanism { margin-top: 16px; padding-top: 52px; }
  .mechanism-list { grid-template-columns: 1fr; }
  .mechanism-list li { padding: 22px; }
  .install { padding-top: 24px; }
  .install-card { width: 100%; padding: 66px 20px; border-radius: 0; }
  .command-row { grid-template-columns: 1fr; }
  .copy-button { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner img { margin-inline: auto; }
  .footer-inner div { justify-self: center; }
}

@media (max-width: 480px) {
  .intent-flow { margin-top: 32px; }
  .compact-diagram { grid-template-columns: 1fr; margin: 22px 0; }
  .compact-diagram b { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-glow { animation: none; }
  .terminal-stage { opacity: 1 !important; transform: none !important; animation: none !important; }
}
