:root {
  --ink: #f8f5ff;
  --muted: #b8accd;
  --panel: #211638;
  --panel-light: #2b1d48;
  --deep: #100a20;
  --line: #4c396c;
  --cyan: #72f4e8;
  --yellow: #ffcb57;
  --purple: #9e7cff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--deep); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
p { color: var(--muted); font-size: 17px; line-height: 1.7; }
h1 { margin-bottom: 26px; font-size: clamp(58px, 8vw, 102px); line-height: .88; letter-spacing: -.075em; }
h1 em { color: var(--yellow); font-style: normal; }
h2 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 62px); line-height: .96; letter-spacing: -.055em; }
h3 { margin-bottom: 12px; font-size: 27px; line-height: 1.05; }

.kit-shell { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 85% 8%, rgba(114, 244, 232, .08), transparent 26%), var(--deep); }
.kit-header, .kit-main, .kit-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.kit-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 26px; border-bottom: 1px solid #322544; }
.kit-brand { display: flex; align-items: center; gap: 18px; }
.kit-brand img { width: 174px; filter: brightness(0) invert(1); }
.kit-brand span { padding-left: 18px; border-left: 1px solid var(--line); color: var(--cyan); font: 800 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.kit-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; color: var(--muted); font-size: 14px; font-weight: 800; }
.kit-nav a:hover, .kit-nav a[aria-current="page"] { color: var(--yellow); }
.kit-main { padding-bottom: 72px; }
.kit-hero { min-height: 700px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 64px; padding: 82px 0; }
.kicker { margin: 0 0 17px; color: var(--cyan); font: 900 12px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .17em; text-transform: uppercase; }
.lead { max-width: 650px; font-size: 21px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.kit-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid var(--yellow); border-radius: 999px; background: var(--yellow); color: var(--deep); font-weight: 900; }
.kit-button:hover { background: white; border-color: white; }
.kit-button.secondary { border-color: var(--line); background: transparent; color: white; }
.kit-button.secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.board-display { position: relative; min-height: 540px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: radial-gradient(circle, rgba(114, 244, 232, .13), transparent 50%), #17102a; }
.board-grid { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(114,244,232,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(114,244,232,.22) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(circle, black 20%, transparent 75%); }
.board-display img { position: relative; width: min(86%, 480px); filter: drop-shadow(0 28px 40px rgba(0,0,0,.38)); }
.board-status { position: absolute; right: 24px; bottom: 22px; color: var(--yellow); font: 800 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.status-dot { width: 8px; height: 8px; display: inline-block; margin-right: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.cyber-board { border-color: #74629a; background: radial-gradient(circle at 50% 43%, #fff 0 46%, #e9e3f4 76%, #cfc4e4 100%); }
.cyber-board .board-grid { opacity: .16; background-image: linear-gradient(rgba(87,55,130,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(87,55,130,.35) 1px, transparent 1px); }
.cyber-board img { width: min(96%, 520px); filter: drop-shadow(0 24px 30px rgba(39,20,70,.22)); }
.cyber-board .board-status { padding: 9px 12px; border: 1px solid rgba(61,38,93,.18); border-radius: 999px; background: rgba(255,255,255,.9); color: #291840; box-shadow: 0 8px 24px rgba(39,20,70,.12); }
.section { padding: 82px 0; border-top: 1px solid #322544; }
.section-intro { max-width: 760px; margin-bottom: 42px; }
.path-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.path-card { position: relative; min-height: 280px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: linear-gradient(140deg, var(--panel), #181027); transition: transform .18s ease, border-color .18s ease; }
.path-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.path-card > span { color: var(--cyan); font: 800 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.path-card b { position: absolute; right: 26px; top: 18px; color: #493560; font: 900 55px ui-monospace, SFMono-Regular, Consolas, monospace; }
.path-card h3 { margin-top: 54px; }
.path-card p { max-width: 470px; margin-bottom: 24px; }
.path-card strong { color: var(--yellow); font-size: 14px; }
.system-map { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.system-stack { display: grid; gap: 9px; }
.system-stack span { padding: 15px 18px; border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 8px; background: var(--panel); color: white; font: 800 12px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.system-stack span:nth-child(2n) { border-left-color: var(--cyan); transform: translateX(18px); }
.system-stack span:nth-child(3n) { border-left-color: var(--yellow); transform: translateX(36px); }
.kit-footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #322544; color: var(--muted); font-size: 14px; }
.kit-footer strong { color: white; }
.kit-footer a { color: var(--yellow); font-weight: 900; }

.subpage-main { padding-top: 72px; }
.subpage-hero { max-width: 900px; padding: 52px 0 72px; }
.subpage-hero h1 { font-size: clamp(54px, 7vw, 88px); }
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 82px; }
.library-card { min-height: 310px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.library-card .card-code { color: var(--cyan); font: 800 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.library-card h2 { margin-top: 54px; font-size: 32px; }
.library-card p { flex: 1; }
.card-status { align-self: flex-start; padding: 7px 10px; border-radius: 999px; background: rgba(255,203,87,.12); color: var(--yellow); font: 800 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }
.library-card.live { border-color: #6c51a0; }
.library-card a { align-self: flex-start; color: var(--yellow); font-weight: 900; }
.wide-card { grid-column: span 2; }
.step-list { display: grid; gap: 16px; padding-bottom: 82px; }
.step-card { display: grid; grid-template-columns: 100px 1fr; gap: 28px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.step-number { color: var(--cyan); font: 900 38px ui-monospace, SFMono-Regular, Consolas, monospace; }
.step-card h2 { font-size: clamp(30px, 4vw, 44px); }
.step-card p { max-width: 820px; margin-bottom: 0; }
.notice { margin-bottom: 82px; padding: 22px 24px; border: 1px solid #6c51a0; border-radius: 18px; background: rgba(158,124,255,.1); color: #ddd3ee; line-height: 1.6; }

@media (max-width: 900px) {
  .kit-header { align-items: flex-start; padding: 20px 0; }
  .kit-brand span { display: none; }
  .kit-hero, .system-map { grid-template-columns: 1fr; }
  .kit-hero { gap: 28px; padding-top: 56px; }
  .board-display { min-height: 430px; }
  .library-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .kit-header, .kit-main, .kit-footer { width: min(100% - 28px, 1180px); }
  .kit-header { display: block; }
  .kit-brand img { width: 154px; }
  .kit-nav { justify-content: flex-start; margin-top: 18px; font-size: 12px; }
  h1, .subpage-hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .kit-hero { min-height: auto; padding: 48px 0 64px; }
  .hero-actions .kit-button { width: 100%; }
  .board-display { min-height: 330px; border-radius: 24px; }
  .board-status { right: 16px; bottom: 14px; font-size: 9px; }
  .section { padding: 62px 0; }
  .path-grid, .library-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 250px; }
  .wide-card { grid-column: auto; }
  .system-map { gap: 32px; }
  .system-stack span:nth-child(n) { transform: none; }
  .step-card { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .kit-footer { flex-direction: column; align-items: flex-start; justify-content: center; padding: 30px 0; }
}
