:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #edf3fb;
  --text: #101828;
  --muted: #5d6b7e;
  --line: #dbe3ee;
  --brand: #0b63ce;
  --brand-2: #0a4ea4;
  --accent: #12a7a1;
  --dark: #0d1b2a;
  --success: #16794b;
  --warning: #8a5a00;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 45px rgba(24, 46, 76, .10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-2); }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 9999;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { left: 10px; }

.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219,227,238,.9);
}
.header-row { display: flex; align-items: center; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 850; letter-spacing: -.03em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--dark); color: #fff; font-size: 18px; }
.brand strong { color: var(--brand); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { color: #233044; text-decoration: none; font-weight: 700; font-size: 14px; }
.main-nav a:hover { color: var(--brand); }
.nav-cta { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: var(--brand); color: #fff !important; border-radius: 999px; }
.nav-cta:hover { background: var(--brand-2); }

.hero { padding: 68px 0 44px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #e7f1ff; color: #0a4f9d; border: 1px solid #cfe1f8; border-radius: 999px; padding: 7px 11px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.hero h1 { margin: 18px 0 18px; max-width: 790px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: var(--brand); }
.lead { font-size: clamp(18px, 2.2vw, 23px); color: var(--muted); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: #aebfd4; color: var(--brand-2); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; color: #405168; font-size: 14px; font-weight: 650; }
.trust-row span::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 6px; }

.visual-card {
  position: relative; min-height: 540px; border-radius: 30px; overflow: hidden;
  background: radial-gradient(circle at 18% 20%, #e5f2ff 0 15%, transparent 36%), linear-gradient(145deg, #eaf3ff, #fefefe 58%, #e8f7f5);
  border: 1px solid #d7e4f2; box-shadow: var(--shadow);
}
.visual-card::after { content: ""; position: absolute; inset: auto -60px -110px auto; width: 280px; height: 280px; border-radius: 50%; background: rgba(11,99,206,.08); }
.visual-card img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; display: block; }
.image-slot { position: relative; overflow: hidden; background: linear-gradient(145deg,#eaf3ff,#f9fcff); }
.image-slot::before { content: attr(data-placeholder); position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: #50647d; font-weight: 800; background: radial-gradient(circle at 20% 20%, rgba(11,99,206,.12), transparent 38%), radial-gradient(circle at 75% 68%, rgba(18,167,161,.14), transparent 35%); }
.image-slot.loaded::before { display: none; }
.image-slot img.is-missing { display: none; }
.hero-badge { position: absolute; left: 22px; bottom: 22px; z-index: 3; max-width: 310px; background: rgba(13,27,42,.93); color: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 16px 35px rgba(13,27,42,.2); }
.hero-badge strong { display: block; font-size: 26px; line-height: 1.05; margin-bottom: 4px; }
.hero-badge small { color: #c8d7e7; }

.stats { padding: 12px 0 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.stat span { display: block; color: var(--muted); margin-top: 7px; font-size: 14px; }

.section { padding: 72px 0; }
.section-white { background: #fff; }
.section-dark { background: var(--dark); color: #fff; }
.section-dark .section-intro, .section-dark p { color: #c7d2df; }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 32px; }
.kicker { text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 900; color: var(--brand); }
.section-dark .kicker { color: #6eb8ff; }
h2 { margin: 7px 0 8px; font-size: clamp(31px, 4.5vw, 50px); line-height: 1.06; letter-spacing: -.045em; }
h3 { margin-top: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.section-intro { margin: 0; max-width: 760px; color: var(--muted); font-size: 18px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card-dark { background: #14263a; border-color: #233c56; color: #fff; }
.card-dark p { color: #c7d2df; }
.icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #e8f2ff; color: var(--brand); font-weight: 900; margin-bottom: 18px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card a { font-weight: 800; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.split .image-slot { min-height: 450px; border-radius: 28px; border: 1px solid var(--line); }
.split .image-slot img { width: 100%; height: 450px; object-fit: cover; }
.checklist { display: grid; gap: 12px; margin-top: 24px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.check i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #e8f6ef; color: var(--success); font-style: normal; font-weight: 900; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; min-width: 800px; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: #f3f7fc; font-size: 14px; }
.compare td:first-child, .compare th:first-child { font-weight: 800; position: sticky; left: 0; background: inherit; }
.compare tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 850; background: #eaf2fd; color: #174d86; }
.pill.good { background: #e8f6ef; color: #12633e; }
.pill.warn { background: #fff3d9; color: #7a5200; }

.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.decision-card { position: relative; overflow: hidden; }
.decision-card.recommended { border: 2px solid var(--brand); box-shadow: 0 14px 34px rgba(11,99,206,.10); }
.ribbon { position: absolute; top: 14px; right: 14px; background: var(--brand); color: #fff; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 900; }

.knowledge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.knowledge-card { min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--text); transition: transform .18s ease, border-color .18s ease; }
.knowledge-card:hover { transform: translateY(-3px); border-color: #adc7e6; color: var(--text); }
.knowledge-card span { color: var(--muted); }

.faq-list { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 850; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 0 0 18px; }

.cta-band { padding: 36px; border-radius: 28px; background: linear-gradient(120deg, #0d1b2a, #123b67); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); margin: 0; }
.cta-band p { color: #c8d6e5; margin: 10px 0 0; }
.cta-band .btn { white-space: nowrap; background: #fff; color: #0d1b2a; }

.article-hero { padding: 52px 0 30px; }
.article-hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.03; letter-spacing: -.05em; margin: 12px 0 16px; }
.breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: inherit; }
.prose { max-width: 820px; }
.prose h2 { font-size: 34px; margin-top: 52px; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { font-size: 17px; color: #334155; }
.prose li + li { margin-top: 7px; }
.note { border-left: 4px solid var(--brand); background: #eef5fd; padding: 16px 18px; border-radius: 0 14px 14px 0; color: #294a70; }
.source-note { font-size: 13px !important; color: #6b7788 !important; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tag-list a { text-decoration: none; padding: 7px 10px; background: #edf3fb; color: #244667; border-radius: 999px; font-size: 13px; font-weight: 750; }

.site-footer { margin-top: 72px; background: #0d1b2a; color: #c6d2df; padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 26px; }
.site-footer h3 { color: #fff; font-size: 16px; }
.site-footer a { color: #d8e6f5; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid #26394d; margin-top: 32px; padding-top: 18px; font-size: 13px; color: #91a2b5; }

@media (max-width: 980px) {
  .main-nav { position: absolute; display: none; top: 77px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 10px; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .visual-card { min-height: 460px; }
  .visual-card img { min-height: 460px; }
  .stats-grid, .feature-grid, .decision-grid { grid-template-columns: repeat(2, 1fr); }
  .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .wrap { width: min(calc(100% - 22px), var(--max)); }
  .header-row { min-height: 68px; }
  .main-nav { top: 69px; left: 11px; right: 11px; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 45px; }
  .visual-card, .visual-card img { min-height: 390px; }
  .hero-badge { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .stats-grid, .feature-grid, .decision-grid, .knowledge-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .section-head { display: block; }
  .split .image-slot, .split .image-slot img { min-height: 340px; height: 340px; }
  .cta-band { padding: 26px; display: block; }
  .cta-band .btn { margin-top: 18px; width: 100%; }
}

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

/* v0.2 additions */
.brand > span:last-child { font-variant-ligatures: none; }
.footer-grid-wide { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; }
.footer-small { font-size: 13px; color: #91a2b5; }
.footer-bottom { display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.intent-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.intent-card { text-decoration:none; color:var(--text); min-height:160px; display:flex; flex-direction:column; justify-content:space-between; }
.intent-card:hover { color:var(--text); border-color:#adc7e6; transform:translateY(-2px); }
.intent-card strong { color:var(--brand); }
.steps { counter-reset:step; display:grid; gap:14px; margin:26px 0; }
.step { counter-increment:step; display:grid; grid-template-columns:52px 1fr; gap:16px; align-items:start; padding:20px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.step::before { content:counter(step); width:46px; height:46px; display:grid; place-items:center; border-radius:14px; background:var(--dark); color:#fff; font-weight:900; font-size:20px; }
.answer-box { border:1px solid #cfe1f8; background:#f4f9ff; border-radius:18px; padding:20px 22px; margin:22px 0 28px; }
.answer-box strong:first-child { color:#0a4f9d; }
.topic-cloud { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.topic-cloud a { text-decoration:none; padding:8px 11px; border-radius:999px; background:#edf3fb; color:#244667; font-size:13px; font-weight:800; }
.mini-table { width:100%; border-collapse:collapse; margin:22px 0; border:1px solid var(--line); background:#fff; }
.mini-table th,.mini-table td { padding:14px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.mini-table th { background:#f3f7fc; }
.mini-table tr:last-child td { border-bottom:0; }
.faq-groups { display:grid; gap:32px; }
.faq-group h2 { font-size:30px; margin-bottom:14px; }
.term-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.term { border:1px solid var(--line); border-radius:18px; padding:22px; background:#fff; scroll-margin-top:90px; }
.term h2 { font-size:23px; margin:0 0 7px; letter-spacing:-.025em; }
.term p { margin:0; color:#405168; }
.comparison-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.comparison-card { display:flex; flex-direction:column; min-height:230px; }
.comparison-card .meta { color:var(--muted); font-size:13px; font-weight:800; margin-bottom:8px; }
.comparison-card p:last-of-type { flex:1; }
.quick-verdict { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin:22px 0; }
.verdict { padding:20px; border-radius:18px; border:1px solid var(--line); background:#fff; }
.verdict.reco { border-color:#9bc6f5; background:#f5faff; }
.map-section { display:grid; grid-template-columns:.85fr 1.15fr; gap:22px; align-items:stretch; }
.map-card { min-height:360px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(145deg,#eaf3ff,#f9fcff); overflow:hidden; position:relative; }
.map-placeholder { min-height:360px; height:100%; display:grid; place-items:center; text-align:center; padding:34px; }
.map-placeholder .btn { margin-top:14px; }
.map-card iframe { width:100%; height:100%; min-height:360px; border:0; display:block; }
.contact-list { display:grid; gap:12px; margin-top:20px; }
.contact-item { padding:15px 16px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.source-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.source-card { border:1px solid var(--line); border-radius:18px; background:#fff; padding:22px; }
.source-card h3 { margin-bottom:8px; }
.update-badge { display:inline-flex; gap:7px; align-items:center; border-radius:999px; padding:6px 10px; background:#e8f6ef; color:#12633e; font-size:12px; font-weight:900; }
.callout { background:#0d1b2a; color:#fff; border-radius:22px; padding:24px; }
.callout p { color:#c7d2df; }
.usecase-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.usecase-card { border:1px solid var(--line); border-radius:18px; padding:22px; background:#fff; }
.longtail-list { columns:2; column-gap:30px; padding-left:20px; }
.longtail-list li { break-inside:avoid; margin-bottom:7px; }
@media (max-width:980px){ .intent-grid,.comparison-cards,.usecase-grid{grid-template-columns:repeat(2,1fr)} .map-section{grid-template-columns:1fr} .footer-grid-wide{grid-template-columns:repeat(2,1fr)} }
@media (max-width:650px){ .intent-grid,.comparison-cards,.usecase-grid,.term-grid,.quick-verdict,.source-grid,.footer-grid-wide{grid-template-columns:1fr} .step{grid-template-columns:44px 1fr;padding:16px}.step::before{width:40px;height:40px}.longtail-list{columns:1} }
