:root {
  --ink: #0f2027;
  --ink-soft: #4f6b73;
  --paper: #ffffff;
  --paper-soft: #eef4f3;
  --line: #d3e0df;
  --hero: #0b2230;
  --hero-2: #123245;
  --hero-ink: #eaf6f4;
  --hero-ink-soft: #9fc2c2;
  --hero-line: rgba(234, 246, 244, 0.16);
  --hero-grid: rgba(95, 224, 208, 0.12);
  --accent: #0f8a7d;
  --accent-deep: #0b6c62;
  --accent-soft: #dcf1ee;
  --flag: #c85a24;
  --flag-soft: #fbe6d8;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---- top nav ---- */
.topnav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topnav .bar { max-width: 1120px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; }
.topnav .logo { display: flex; align-items: baseline; gap: 8px; font-weight: 900; font-size: 20px; letter-spacing: 0.02em; }
.topnav .logo small { font-size: 11px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.08em; }
.topnav .links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.topnav .links a.nav-link { color: var(--ink-soft); text-decoration: none; }
.topnav .links a.nav-link:hover { color: var(--ink); }

.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 999px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-outline { border: 1.5px solid var(--hero); color: var(--hero); }
.btn-outline:hover { background: var(--hero); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 15px; }

/* ---- hero ---- */
.hero { padding: 80px 0 72px; background: radial-gradient(900px 400px at 82% -10%, rgba(15,138,125,0.1), transparent 60%), var(--paper); }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.08em; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid rgba(15,138,125,0.3); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: 40px; line-height: 1.35; font-weight: 900; margin: 0 0 8px; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word; }
.hero h1 .jp { display: block; font-size: 19px; font-weight: 600; color: var(--ink-soft); margin-top: 4px; }
.hero .tagline { font-size: 18px; font-weight: 700; color: var(--accent-deep); margin: 14px 0 16px; }
.hero p.lead { font-size: 15.5px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 32px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .trust-row { display: flex; gap: 26px; margin-top: 44px; flex-wrap: wrap; }
.hero .trust-row .stat b { display: block; font-size: 22px; font-weight: 900; }
.hero .trust-row .stat span { font-size: 12.5px; color: var(--ink-soft); }

/* ---- hero HUD visual ---- */
.hud { position: relative; aspect-ratio: 16/11; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -22px rgba(11,34,48,0.4);
  background: repeating-linear-gradient(0deg, var(--hero-grid) 0 1px, transparent 1px 44px), repeating-linear-gradient(90deg, var(--hero-grid) 0 1px, transparent 1px 44px), linear-gradient(160deg, var(--hero) 0%, var(--hero-2) 100%); }
.hud-site { position: absolute; left: 14%; top: 18%; width: 46%; height: 56%; background: rgba(234,246,244,0.05); border: 1px solid var(--hero-line); border-radius: 4px; }
.hud-site::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(234,246,244,0.14) 0 1px, transparent 1px 14%), repeating-linear-gradient(90deg, rgba(234,246,244,0.14) 0 1px, transparent 1px 16.6%); }
.hud-tarp { position: absolute; left: 58%; top: 28%; width: 26%; height: 30%; background: rgba(95,224,208,0.1); border: 1px solid var(--hero-line); clip-path: polygon(0 8%, 60% 0, 100% 12%, 92% 55%, 100% 62%, 78% 100%, 30% 92%, 0 70%); }
.hud-box { position: absolute; border: 1.5px solid var(--flag); border-radius: 3px; }
.hud-box::after { content: attr(data-label); position: absolute; left: 0; bottom: 100%; margin-bottom: 5px; font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; font-size: 10px; color: var(--hero); background: var(--flag); padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.hud-box.b1 { left: 21%; top: 32%; width: 15%; height: 12%; }
.hud-box.b2 { left: 63%; top: 36%; width: 16%; height: 16%; }
.scanline { position: absolute; left: 0; right: 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(95,224,208,0.16), transparent); animation: sweep 5s linear infinite; }
@keyframes sweep { 0% { top: -40%; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .scanline { animation: none; top: 30%; } }
.hud-telemetry { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 16px; padding: 10px 16px; background: rgba(5,14,19,0.55); border-top: 1px solid var(--hero-line); font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; font-size: 10.5px; color: var(--hero-ink-soft); flex-wrap: wrap; }
.hud-telemetry b { color: var(--hero-ink); font-weight: 600; }
.hud-telemetry .rec { color: var(--flag); }
.hud-telemetry .rec::before { content: "●"; margin-right: 4px; }

/* ---- section shell ---- */
section { padding: 84px 0; }
.section-alt { background: var(--paper-soft); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; font-size: 11.5px; font-weight: 700; color: var(--accent-deep); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: 30px; font-weight: 900; margin: 0 0 14px; word-break: keep-all; }
.section-head p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---- problem cards ---- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .num { font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; font-size: 11px; font-weight: 700; color: var(--flag); background: var(--flag-soft); display: inline-block; padding: 2px 8px; border-radius: 4px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin: 0 0 10px; }
.card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---- flow ---- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow .step { text-align: center; }
.flow .step .circle { width: 50px; height: 50px; border-radius: 50%; background: var(--hero); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; margin: 0 auto 14px; font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; }
.flow .step h4 { font-size: 15px; margin: 0 0 6px; }
.flow .step p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .n { font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; font-size: 11.5px; color: var(--accent-deep); margin-bottom: 12px; display: block; }
.feature h3 { font-size: 15.5px; margin: 0 0 8px; }
.feature p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---- screenshot showcase ---- */
.showcase-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(11,34,48,0.35); }
.showcase-frame img { width: 100%; }

/* ---- trust / proof ---- */
.proof-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.proof-list { list-style: none; margin: 0; padding: 0; }
.proof-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.proof-list li:last-child { border-bottom: none; }
.proof-list li .mark { color: var(--accent-deep); font-weight: 900; font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; }
.proof-card { background: var(--hero); color: #fff; border-radius: var(--radius); padding: 28px; }
.proof-card .quote { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.proof-card .who { font-size: 12px; color: var(--hero-ink-soft); font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; }

/* ---- detection maturity table ---- */
.maturity-rows { border-top: 1px solid var(--line); margin-top: 22px; max-width: 760px; margin-left: auto; margin-right: auto; }
.maturity-row { display: grid; grid-template-columns: 140px 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.maturity-row:last-child { border-bottom: none; }
.maturity-row .k { font-size: 14.5px; font-weight: 700; }
.maturity-row .tag { display: inline-block; font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; width: fit-content; }
.maturity-row .tag.solved { background: var(--accent-soft); color: var(--accent-deep); }
.maturity-row .tag.build { background: var(--paper-soft); color: var(--ink-soft); border: 1px solid var(--line); }
.maturity-row .tag.research { background: var(--flag-soft); color: var(--flag); }
.maturity-row .v { font-size: 13px; color: var(--ink-soft); }

/* ---- pipeline (how it works) ---- */
.pipeline { list-style: none; margin: 26px auto 0; padding: 0; max-width: 700px; border-left: 2px solid var(--line); }
.pipeline li { position: relative; padding: 0 0 28px 30px; }
.pipeline li:last-child { padding-bottom: 0; }
.pipeline li::before {
  content: attr(data-n);
  position: absolute; left: -13px; top: -1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pipeline h4 { font-size: 15px; margin: 0 0 6px; }
.pipeline p { font-size: 13.5px; color: var(--ink-soft); margin: 0; max-width: 60ch; }
.pipeline-note { margin: 20px auto 0; max-width: 700px; font-size: 12.5px; color: var(--ink-soft); background: var(--paper-soft); border-radius: 8px; padding: 14px 18px; }

/* ---- operations rows ---- */
.op-rows { border-top: 1px solid var(--line); margin-top: 22px; max-width: 760px; margin-left: auto; margin-right: auto; }
.op-row { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.op-row:last-child { border-bottom: none; }
.op-row .k { font-size: 13.5px; font-weight: 700; color: var(--accent-deep); }
.op-row .v { font-size: 13.5px; color: var(--ink-soft); }

/* ---- pricing ---- */
.pricing-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 40px; max-width: 760px; margin: 0 auto; }
.pricing-formula { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-weight: 800; font-size: 17px; margin: 8px 0 28px; }
.pricing-formula .chip { background: var(--paper-soft); border: 1px solid var(--line); padding: 10px 18px; border-radius: 10px; font-size: 13.5px; }
.pricing-formula .plus { color: var(--ink-soft); font-weight: 400; }
.pricing-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.pricing-notes div { font-size: 13px; color: var(--ink-soft); }
.pricing-notes b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 4px; }

/* ---- roadmap ---- */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.roadmap .phase { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--paper); border-left: 3px solid var(--accent); }
.roadmap .phase .tag { font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace; font-size: 11px; font-weight: 700; color: var(--accent-deep); margin-bottom: 8px; }
.roadmap .phase h4 { font-size: 14.5px; margin: 0 0 8px; }
.roadmap .phase p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

/* ---- final CTA ---- */
.cta-band { background: var(--hero); color: #fff; border-radius: 24px; padding: 56px; text-align: center; margin: 0 28px; }
.cta-band h2 { font-size: 26px; margin: 0 0 12px; font-weight: 900; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0 0 28px; }
.cta-band .cta-row { justify-content: center; }

footer { padding: 40px 28px 60px; color: var(--ink-soft); font-size: 12.5px; text-align: center; }
footer .foot-links { margin-top: 10px; }
footer .foot-links a { text-decoration: none; margin: 0 8px; }

@media (max-width: 860px) {
  .hero .grid, .proof-grid { grid-template-columns: 1fr; }
  .cards-3, .flow, .features, .roadmap, .pricing-notes { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .cards-3, .flow, .features, .roadmap, .pricing-notes { grid-template-columns: 1fr; }
  .hero .trust-row { gap: 18px; }
  .cta-band { padding: 36px 22px; margin: 0 16px; }
  .op-row { grid-template-columns: 1fr; gap: 4px; }
}
