:root {
  color-scheme: dark;
  --bg: #080c17;
  --bg-soft: #0b1020;
  --panel: #11182a;
  --panel-2: #151e33;
  --line: rgba(187, 202, 230, 0.14);
  --text: #f3f6fc;
  --muted: #a7b2c7;
  --blue: #728dff;
  --blue-2: #9bafff;
  --green: #55d6a7;
  --amber: #ffd06a;
  --red: #ff637d;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 7%, rgba(95, 120, 255, 0.16), transparent 29rem),
    radial-gradient(circle at 4% 42%, rgba(49, 196, 159, 0.08), transparent 25rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(10, 15, 27, 0.78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0.7rem;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, var(--blue-2), #516eff);
  color: #070b15;
  font-weight: 900;
}
nav { display: flex; gap: 1.25rem; margin-left: auto; }
nav a, footer a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
nav a:hover, nav a:focus-visible, footer a:hover, footer a:focus-visible { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.05rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-weight: 730;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(114, 141, 255, 0.55); outline-offset: 3px; }
.button-primary { background: linear-gradient(135deg, #869dff, #5f78ef); color: #070b15; }
.button-secondary { background: rgba(255,255,255,0.04); border-color: var(--line); }
.button-ghost { border-color: var(--line); background: transparent; }
.button-small { min-height: 38px; padding: 0.45rem 0.8rem; font-size: 0.88rem; }

.hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7.5rem 0 5rem;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}
.eyebrow, .kicker {
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  font-weight: 800;
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 20px var(--green); }
h1 {
  margin: 1.15rem 0 1.35rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  max-width: 780px;
}
h1 em { color: var(--blue-2); font-style: normal; }
.hero-lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); max-width: 690px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.disclosure { color: #7f8ba2; font-size: 0.79rem; max-width: 650px; margin-top: 1.1rem; }

.audit-card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(155deg, rgba(25, 35, 59, 0.96), rgba(11, 16, 29, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.4deg);
}
.window-bar { height: 48px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); padding: 0 1rem; color: var(--muted); }
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3c465d; }
.window-bar strong { margin-left: auto; margin-right: auto; font-size: 0.78rem; }
.score-row { display: flex; justify-content: space-between; align-items: center; padding: 1.35rem 1.4rem 0.9rem; }
.score-row small { color: var(--muted); }
.score { font-size: 2.7rem; font-weight: 850; letter-spacing: -0.05em; }
.score span { color: var(--muted); font-size: 1rem; font-weight: 600; }
.badge { border-radius: 999px; padding: 0.35rem 0.65rem; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.08em; }
.badge-amber { background: rgba(255, 208, 106, 0.13); color: var(--amber); border: 1px solid rgba(255, 208, 106, 0.3); }
.finding { margin: 0.7rem 1.4rem; padding: 0.95rem 1rem; border-radius: 0.75rem; background: rgba(255,255,255,0.035); border-left: 4px solid; }
.finding-critical { border-color: var(--red); }
.finding-medium { border-color: var(--amber); }
.finding-top { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.65rem; margin-bottom: 0.42rem; }
.finding-top span { color: var(--red); font-weight: 850; }
.finding-medium .finding-top span { color: var(--amber); }
.finding-top code { color: var(--muted); }
.finding strong { font-size: 0.94rem; }
.finding p { color: var(--muted); font-size: 0.78rem; margin: 0.35rem 0 0; }
.artifact-row { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 1.4rem 1.35rem; }
.artifact-row span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 0.7rem; border: 1px solid var(--line); border-radius: 0.4rem; padding: 0.35rem 0.45rem; }

.proof-strip {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.proof-strip div { display: flex; flex-direction: column; padding: 1.2rem 1.3rem; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { font-size: 0.9rem; }
.proof-strip span { color: var(--muted); font-size: 0.75rem; }

.section { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 8rem 0; }
.section-alt { width: 100%; padding-left: max(1rem, calc((100% - 1180px) / 2)); padding-right: max(1rem, calc((100% - 1180px) / 2)); background: linear-gradient(180deg, rgba(17,24,42,0), rgba(17,24,42,0.68), rgba(17,24,42,0)); }
.section-heading { max-width: 760px; margin-bottom: 3rem; }
.section-heading h2, .pricing-card h2 { margin: 0.6rem 0 1rem; font-size: clamp(2.15rem, 4vw, 3.7rem); line-height: 1.03; letter-spacing: -0.048em; }
.section-heading p, .pricing-card p { color: var(--muted); font-size: 1.05rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr 0.8fr; gap: 4rem; align-items: end; }
.split-heading p { margin-bottom: 0.4rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.feature-grid article { min-height: 220px; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)); }
.feature-number { color: var(--blue-2); font-family: ui-monospace, monospace; font-size: 0.72rem; }
.feature-grid h3, .manifest-panel h3, .start-grid h3 { margin: 2.7rem 0 0.7rem; font-size: 1.25rem; }
.feature-grid p, .manifest-panel li, .start-grid p { color: var(--muted); font-size: 0.9rem; }
.fine-print { margin-top: 1.2rem; color: #79859a; font-size: 0.75rem; }

.pipeline { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.55rem; }
.pipeline li { position: relative; min-height: 132px; padding: 1rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--panel); }
.pipeline li::after { content: "→"; position: absolute; right: -0.55rem; top: 50%; color: var(--blue-2); z-index: 2; }
.pipeline li:last-child::after { content: none; }
.pipeline span { display: block; color: var(--blue-2); font-family: ui-monospace, monospace; font-size: 0.72rem; margin-bottom: 1.4rem; }
.pipeline strong, .pipeline small { display: block; }
.pipeline small { color: var(--muted); margin-top: 0.2rem; font-size: 0.7rem; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.code-panel, .manifest-panel, .start-grid article { border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); overflow: hidden; }
.code-title { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.code-title button { border: 1px solid var(--line); border-radius: 0.45rem; color: var(--text); background: rgba(255,255,255,0.04); padding: 0.35rem 0.55rem; cursor: pointer; }
pre { margin: 0; overflow-x: auto; }
.code-panel pre { min-height: 230px; padding: 2rem; display: flex; align-items: center; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.manifest-panel { padding: 1.8rem; }
.manifest-panel h3 { margin-top: 0.6rem; }
.manifest-panel ul { padding-left: 1.1rem; }
.manifest-panel li { margin: 0.6rem 0; }
.manifest-panel code { color: var(--blue-2); }

.pricing-card { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(114,141,255,0.34); border-radius: 1.4rem; background: radial-gradient(circle at 100% 0%, rgba(114,141,255,0.18), transparent 25rem), var(--panel); }
.price-box { padding: 1.6rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(8,12,23,0.62); }
.price-box small, .price-box p { color: var(--muted); }
.price-box strong { display: block; font-size: 4rem; line-height: 1.2; letter-spacing: -0.06em; }
.price-box strong span { color: var(--blue-2); font-size: 1.5rem; vertical-align: top; margin-right: 0.15rem; }
.price-box p { font-size: 0.78rem; margin: 0; }

.start-section { padding-top: 5rem; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.start-grid article { padding: 1.6rem; }
.start-grid h3 { margin-top: 1rem; }
.start-grid pre { background: #090e1a; border: 1px solid var(--line); border-radius: 0.7rem; padding: 1rem; margin: 1rem 0; color: #dce4ff; font-size: 0.84rem; }
.step-chip { display: inline-block; border: 1px solid rgba(114,141,255,0.35); background: rgba(114,141,255,0.1); color: var(--blue-2); border-radius: 999px; padding: 0.3rem 0.55rem; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.japanese-note { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--blue); background: rgba(114,141,255,0.06); color: var(--muted); font-size: 0.86rem; }
.japanese-note strong { color: var(--text); }

footer { width: min(1180px, calc(100% - 2rem)); margin: 1rem auto 2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: 0.8rem; }
footer div { display: flex; gap: 1rem; flex-wrap: wrap; }
footer strong { color: var(--text); }

@media (max-width: 900px) {
  nav { display: none; }
  .site-header .button-small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .audit-card { transform: none; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .split-heading, .two-column, .pricing-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline li:nth-child(3)::after { content: none; }
}

@media (max-width: 580px) {
  .site-header { width: calc(100% - 1rem); }
  .brand span:last-child { display: none; }
  .hero, .section, .proof-strip, footer { width: calc(100% - 1.25rem); }
  h1 { font-size: 3.1rem; }
  .proof-strip, .feature-grid, .pipeline, .start-grid { grid-template-columns: 1fr; }
  .proof-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip div:last-child { border-bottom: 0; }
  .pipeline li::after { content: "↓"; top: auto; bottom: -0.7rem; right: 50%; }
  .pipeline li:nth-child(3)::after { content: "↓"; }
  .pipeline li:last-child::after { content: none; }
  .section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .hero-actions .button, .cta-row .button { width: 100%; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
