:root {
  --bg: #0b1020;
  --bg-alt: #11182d;
  --card: #151e36;
  --border: #253256;
  --text: #eef2ff;
  --muted: #9aa7c7;
  --primary: #4f8cff;
  --primary-hover: #3b76e8;
  --pass: #22c55e;
  --warn: #f59e0b;
  --fail: #ef4444;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 16, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand-badge {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 8px; background: var(--primary); color: #fff; font-size: 13px;
}
.brand-tag {
  font-size: 11px; padding: 2px 7px; border-radius: 999px;
  background: rgba(79, 140, 255, 0.18); color: #9bc0ff;
}
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--text); }

.hero { padding: 64px 0 48px; }
.eyebrow { color: #8bb4ff; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; margin: 0 0 10px; }
h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.35; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 10px; }
.hero-sub { color: var(--muted); max-width: 760px; margin: 0 0 28px; font-size: 16px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 28px; }
.section-desc { color: var(--muted); max-width: 760px; margin: 0; }
.muted { color: var(--muted); font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input-row input {
  flex: 1 1 280px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #0c1326; color: var(--text); font-size: 15px;
}
.input-row select {
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #0c1326; color: var(--text); font-size: 14px;
}
.form-helper {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #1e2b4d; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #263661; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; background: #25345c; color: var(--text); }
.btn.full { width: 100%; }
.link-btn {
  background: none; border: none; color: #8bb4ff; font-size: 13px;
  cursor: pointer; text-decoration: underline; padding: 0;
}

.hidden { display: none !important; }
.status-banner {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: rgba(79, 140, 255, 0.12); border: 1px solid rgba(79, 140, 255, 0.35);
  font-size: 14px;
}
.status-banner.error { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); color: #fecaca; }
.status-banner.success { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.4); color: #bbf7d0; }

.results-area { margin-top: 22px; }
.summary-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px; border-radius: 12px; background: #0e162b; border: 1px solid var(--border);
  margin-bottom: 16px;
}
.rank-box { display: flex; align-items: center; gap: 14px; }
.rank-badge {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  font-size: 28px; font-weight: 800; background: var(--primary); color: #fff;
}
.rank-badge.rank-A, .rank-badge.rank-B { background: var(--pass); }
.rank-badge.rank-C, .rank-badge.rank-D { background: var(--warn); color: #111; }
.rank-badge.rank-E, .rank-badge.rank-F { background: var(--fail); }

.finding-list { display: grid; gap: 12px; }
.finding-card {
  padding: 16px; border-radius: 12px; background: #0f172c; border: 1px solid var(--border);
}
.finding-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.badge-pass { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.badge-warn { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.badge-fail { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.prompt-box {
  margin-top: 12px; padding: 12px; border-radius: 10px;
  background: #0a1020; border: 1px solid #2b3c68;
}
.prompt-box pre {
  margin: 8px 0 0; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: #dbeafe;
}
.locked-box {
  margin-top: 10px; padding: 12px; border-radius: 10px;
  background: rgba(79, 140, 255, 0.08); border: 1px dashed #4768b0;
  font-size: 13px; color: #c7d9ff;
}

.step2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.token-box { margin-top: 14px; padding: 14px; border-radius: 10px; background: #0c1326; border: 1px solid var(--border); }
.token-label { font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.code-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #080d1a; padding: 8px 10px; border-radius: 8px; font-size: 12px; overflow-x: auto;
}
.action-stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 14px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.price-card { display: flex; flex-direction: column; gap: 10px; position: relative; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.4); }
.pill {
  align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; background: rgba(79, 140, 255, 0.2); color: #9bc0ff;
}
.price { font-size: 32px; font-weight: 800; margin: 0; }
.price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.price-card ul { padding-left: 18px; margin: 6px 0 14px; color: var(--muted); font-size: 14px; flex: 1; }

.waitlist-form { display: grid; gap: 14px; margin-top: 14px; }
.waitlist-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.waitlist-form input, .waitlist-form select, .waitlist-form textarea {
  padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: #0c1326; color: var(--text); font-size: 14px; font-family: inherit;
}

.ai-cta-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px; padding: 16px 18px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.16), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(79, 140, 255, 0.45);
}
.ai-plan-card {
  padding: 18px; border-radius: 12px; margin-bottom: 16px;
  background: #0d1630; border: 1px solid rgba(79, 140, 255, 0.5);
}
.ai-steps {
  margin: 12px 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px;
}

.site-footer { padding: 36px 0; color: var(--muted); font-size: 13px; }
.copyright { margin-top: 10px; }

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
}
