:root {
  --surface: #0a0a0b; --raised: #141416; --raised-2: #1b1b1e; --sunken: #050506;
  --line: #2a2a2d; --line-strong: #646469;
  --ink: #f4f3ef; --muted: #8e8e93; --on-ink: #0a0a0b;
  --beni: #e0102f; --beni-text: #ff3b55; --on-beni: #ffffff; --beni-tint: #1c0b0e;
  --gin: #b8b8bc; --ghost: #151517; --nav-bg: rgba(10,10,11,.74); --shadow: 0 24px 60px rgba(0,0,0,.5);
  --f-sans: "Geist", "SF Pro Display", -apple-system, system-ui, sans-serif;
  --f-mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --f-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-min: "Shippori Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --ease-out: cubic-bezier(.16,1,.3,1); --ease-ink: cubic-bezier(.7,0,.2,1);
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --surface: #f4f3ef; --raised: #ffffff; --raised-2: #f0efeb; --sunken: #eae9e4;
    --line: #d8d7d2; --line-strong: #85858a;
    --ink: #0a0a0b; --muted: #5e5e63; --on-ink: #f4f3ef;
    --beni-text: #c80a27; --beni-tint: #fbe9ec;
    --gin: #5e5e63; --ghost: #e9e8e3; --nav-bg: rgba(244,243,239,.8); --shadow: 0 24px 60px rgba(20,20,20,.12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --surface: #f4f3ef; --raised: #ffffff; --raised-2: #f0efeb; --sunken: #eae9e4;
  --line: #d8d7d2; --line-strong: #85858a;
  --ink: #0a0a0b; --muted: #5e5e63; --on-ink: #f4f3ef;
  --beni-text: #c80a27; --beni-tint: #fbe9ec;
  --gin: #5e5e63; --ghost: #e9e8e3; --nav-bg: rgba(244,243,239,.8); --shadow: 0 24px 60px rgba(20,20,20,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.label { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.jp { font-family: var(--f-jp); letter-spacing: .3em; }
.min { font-family: var(--f-min); font-weight: 600; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.period { color: var(--beni-text); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acc { fill: var(--beni); }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand svg { height: 22px; width: auto; }
.brand .mk { height: 26px; }
.brand .by { display: inline-flex; align-items: center; gap: 8px; padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line); color: var(--muted); }
.brand .by svg { height: 12px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .16s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .16s var(--ease-out); }
.icon-btn:hover { border-color: var(--line-strong); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; border-radius: 999px; font: 500 15px/1 var(--f-sans); letter-spacing: -.01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: opacity .16s var(--ease-out), border-color .16s var(--ease-out), background-color .16s var(--ease-out), transform .2s var(--ease-out); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-beni { background: var(--beni); color: var(--on-beni); }
.btn-primary:hover, .btn-beni:hover { opacity: .88; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn .arr { transition: transform .16s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* sections */
.section { padding-block: clamp(88px, 12vw, 152px); border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }
.sec-head h2 { font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -.045em; }
.sec-head p:not(.label) { font-size: 19px; color: var(--muted); max-width: 54ch; }

/* grids of facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 12px; padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.fact:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.fact .k { font-family: var(--f-min); font-weight: 600; font-size: 44px; line-height: 1; }
.fact h3 { font-size: 20px; letter-spacing: -.015em; }
.fact p { font-size: 15px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 2px solid var(--line); }
.steps li:last-child { border-top-color: var(--beni); }
.steps .n { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.steps h3 { font-size: 21px; letter-spacing: -.02em; }
.steps p { color: var(--muted); font-size: 15px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.pill .jp { letter-spacing: .1em; color: var(--muted); font-size: 12px; }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-weight: 400; font-size: 22px; color: var(--muted); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 26px; color: var(--muted); max-width: 70ch; }

/* cta band */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta-band h2 { font-size: clamp(52px, 9vw, 120px); line-height: .92; letter-spacing: -.055em; }
.cta-band .side { display: flex; flex-direction: column; gap: 20px; }
.cta-band .side p { color: var(--muted); font-size: 18px; max-width: 40ch; }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field > .lbl { font-size: 14px; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field .hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); font: 15px/1.4 var(--f-sans); transition: border-color .16s var(--ease-out), box-shadow .16s var(--ease-out); }
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.field.err .input, .field.err .select, .field.err .textarea { border-color: var(--beni-text); }
.field .msg { display: none; font-size: 13px; color: var(--beni-text); }
.field.err .msg { display: block; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; transition: background-color .16s, color .16s, box-shadow .16s; }
.choice input:checked + span { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.card-opt { position: relative; }
.card-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.card-opt > span { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--raised); transition: box-shadow .16s; }
.card-opt b { font-weight: 500; font-size: 15px; }
.card-opt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.card-opt input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); }
.card-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
footer .brand svg { height: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-meta { display: flex; gap: 20px; font-size: 13px; color: var(--muted); }

/* reveal */
.pre { opacity: 0; transform: translateY(24px); }
[data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .cta-band, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .steps, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .brand .by { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .pre { opacity: 1; transform: none; }
}


.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(52px, 8.4vw, 116px); line-height: .92; letter-spacing: -.055em; }
.hero h1 .l2 { color: var(--muted); }
.lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--muted); max-width: 36ch; }
.lead strong { color: var(--ink); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }
.vjp { position: absolute; right: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--f-min); font-weight: 600; font-size: 15px; letter-spacing: .6em; color: var(--muted); margin: 0; }

/* the launch */
.launch { position: relative; aspect-ratio: 5 / 6; width: 100%; max-width: 560px; justify-self: center; }
.launch svg.sky { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.star { fill: var(--line-strong); }
.ground { stroke: var(--line); stroke-width: 1; }
.pad { fill: var(--raised-2); stroke: var(--line); }
.tower { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.smoke circle { fill: color-mix(in srgb, var(--ink) 15%, transparent); }
.smoke .s2 { fill: color-mix(in srgb, var(--ink) 24%, transparent); }
.trail { fill: url(#trail); }
.rk { transform-box: view-box; }
.rk .body { fill: var(--ink); }
.rk .win { fill: var(--surface); }
.rk .win-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.rk .fins, .rk .noz { fill: var(--gin); }
.rk .band { fill: var(--beni); }
.fl { transform-box: fill-box; transform-origin: 50% 0; }
.fl .f1 { fill: var(--beni); }
.fl .f2 { fill: #ff4a63; }
.fl .f3 { fill: #ffffff; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); font-size: 13px; white-space: nowrap; z-index: 3; }
.chip .mono { color: var(--muted); font-size: 12px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.chip.hot i { background: var(--beni); }
.chip.c1 { left: -4%; top: 22%; }
.chip.c2 { right: -4%; top: 60%; }
.chip.c3 { left: 2%; bottom: 20%; }

/* sequence: shake on the pad → ignition + smoke → liftoff → hover */
@keyframes shake { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-.6px,.4px); } 50% { transform: translate(.6px,-.3px); } 75% { transform: translate(-.4px,-.4px); } }
@keyframes lift { 0% { transform: translateY(0); } 100% { transform: translateY(-236px); } }
@keyframes hover { 0%,100% { transform: translateY(-236px); } 50% { transform: translateY(-246px); } }
@keyframes ignite { 0% { transform: scale(.2, .05); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1, 1); opacity: 1; } }
@keyframes flicker { 0% { transform: scale(1, 1); } 25% { transform: scale(.94, 1.12); } 50% { transform: scale(1.04, .9); } 75% { transform: scale(.97, 1.06); } 100% { transform: scale(1, 1); } }
@keyframes puffL { 0% { transform: translate(0,0) scale(.2); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-150px,-26px) scale(1.5); opacity: 0; } }
@keyframes puffR { 0% { transform: translate(0,0) scale(.2); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(150px,-26px) scale(1.5); opacity: 0; } }
@keyframes puffU { 0% { transform: translate(0,0) scale(.3); opacity: 0; } 25% { opacity: .9; } 100% { transform: translate(0,-60px) scale(1.8); opacity: 0; } }
@keyframes trailIn { 0% { transform: scaleY(0); opacity: 1; } 60% { opacity: 1; } 100% { transform: scaleY(1); opacity: .0; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.rk-move { animation: lift 1.6s cubic-bezier(.55,0,.2,1) 1.25s both, hover 3.2s ease-in-out 2.85s infinite; }
.rk-shake { animation: shake .09s linear 0s 14; }
.fl { animation: ignite .55s var(--ease-out) .6s both, flicker .16s linear 1.15s infinite; }
.smoke circle { transform-box: fill-box; transform-origin: center; opacity: 0; }
.smoke .l { animation: puffL 2.2s cubic-bezier(.2,.7,.2,1) both; }
.smoke .r { animation: puffR 2.2s cubic-bezier(.2,.7,.2,1) both; }
.smoke .u { animation: puffU 1.8s ease-out both; }
.trail-g { transform-box: fill-box; transform-origin: 50% 100%; animation: trailIn 2.4s cubic-bezier(.55,0,.2,1) 1.25s both; }
.chip { animation: chipIn .7s var(--ease-out) both; }
.chip.c1 { animation-delay: 2.5s; } .chip.c2 { animation-delay: 2.7s; } .chip.c3 { animation-delay: 2.9s; }

/* console */
.console { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.console .sec-head { margin-bottom: 0; }
.term { background: var(--sunken); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.term-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 12px var(--f-mono); color: var(--muted); }
.term-bar .d { display: flex; gap: 6px; } .term-bar .d i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); }
.term pre { margin: 0; padding: 26px 24px; overflow-x: auto; font: 14px/1.85 var(--f-mono); }
.term .c { color: var(--muted); } .term .ok { color: var(--ink); } .term .r { color: var(--beni-text); }
.term .note { padding: 0 24px 22px; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap, .console { grid-template-columns: minmax(0, 1fr); }
  .launch { order: -1; max-width: 420px; }
  .vjp { display: none; }
  .chip { font-size: 12px; padding: 8px 12px; gap: 8px; }
  .chip .mono { font-size: 11px; }
  .chip.c1 { left: 2%; } .chip.c2 { right: 2%; } .chip.c3 { left: 6%; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-move { transform: translateY(-236px); }
  .fl { transform: none; opacity: 1; }
  .trail-g { opacity: 0; }
}
