:root {
  --brand: #2f6bff;
  --brand-strong: #5b8dff;
  --brand-soft: rgba(47, 107, 255, 0.14);
  --accent: #22d3ee;

  --bg: #0a0e1c;
  --bg-alt: #0d1226;
  --panel: #131a2e;
  --panel-alt: #1a2340;
  --panel-raised: #1c2542;
  --border: #232c4a;
  --border-soft: #1a2138;

  --text: #e8ecf7;
  --text-secondary: #97a3c2;
  --text-muted: #626d8c;

  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.14);
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-brand: 0 10px 30px rgba(47, 107, 255, 0.28);

  --font-display: 'M PLUS 1p', 'Noto Sans JP', system-ui, sans-serif;
  --font-body: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Mono', Consolas, monospace;

  --content-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.brand svg { filter: drop-shadow(0 2px 6px rgba(47, 107, 255, 0.35)); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

nav.main-nav a:hover { color: var(--text); }
nav.main-nav a.active { color: var(--brand-strong); }

.lang-switch {
  font-size: 12.5px !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}
.lang-switch:hover { color: var(--text) !important; border-color: var(--brand); }

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
}

.nav-cta:hover { background: var(--brand-strong); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 0 0;
}

.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-strong); }
.breadcrumb span { margin: 0 6px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero.hero-compact { padding: 56px 0 64px; }

.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.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: 13px;
  font-weight: 700;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.hero.hero-compact h1 { font-size: 38px; }

.hero h1 .accent { color: var(--brand-strong); }

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 24px 0 34px;
  max-width: 480px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover { background: var(--brand-strong); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover { border-color: var(--brand); color: var(--brand-strong); }

.trust-row {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item svg { color: var(--success); flex-shrink: 0; }

/* ── App window mockup ─────────────────────────────────── */
.app-window {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #05070f;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-secondary);
}

.app-titlebar svg { width: 15px; height: 15px; flex-shrink: 0; }

.win-btns { margin-left: auto; display: flex; gap: 10px; opacity: 0.6; }
.win-btns span { width: 10px; height: 10px; }

.app-body {
  display: flex;
  font-size: 11px;
  height: 380px;
}

.app-sidebar {
  width: 148px;
  min-width: 148px;
  background: #080b16;
  border-right: 1px solid var(--border-soft);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
}

.app-nav-item.active { background: var(--brand-soft); color: var(--brand-strong); }
.app-nav-item svg { width: 13px; height: 13px; flex-shrink: 0; }

.app-main { flex: 1; padding: 16px; overflow: hidden; }

.app-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; }

.app-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }

.app-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px;
}

.app-card-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.app-card-icon svg { width: 12px; height: 12px; }
.icon-scan { background: var(--brand-soft); color: var(--brand-strong); }
.icon-threat { background: var(--danger-soft); color: var(--danger); }
.icon-quarantine { background: rgba(151,163,194,0.14); color: var(--text-secondary); }
.icon-active { background: var(--success-soft); color: var(--success); }

.app-card-value { font-size: 15px; font-weight: 700; }
.app-card-label { font-size: 9px; color: var(--text-secondary); margin-top: 2px; }

.app-panel {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px;
  height: 140px;
}

.app-panel-title { font-size: 10px; font-weight: 700; margin-bottom: 8px; color: var(--text-secondary); }

.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 80px; }
.mini-bar { flex: 1; background: linear-gradient(180deg, var(--brand-strong), var(--brand)); border-radius: 2px 2px 0 0; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 88px 0; }

.section-alt { background: var(--bg-alt); }

.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }

.section-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--brand-strong);
  margin-bottom: 12px;
}

.section-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-secondary); font-size: 15px; }

/* Features bento grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 18px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover { border-color: var(--brand); transform: translateY(-2px); }

.feature-card.wide { grid-column: span 2; grid-row: span 2; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-card.wide .feature-icon { width: 52px; height: 52px; }

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card.wide h3 { font-size: 22px; }

.feature-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; flex: 1; }
.feature-card.wide p { font-size: 15px; max-width: 420px; }

.feature-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.feature-tag {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  background: var(--panel-alt); border-radius: 999px; padding: 4px 10px;
}

/* Screenshot section */
.screenshot-frame {
  max-width: 920px;
  margin: 0 auto;
}

/* Product lineup */
.lineup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.lineup-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.lineup-card:hover { border-color: var(--brand); transform: translateY(-2px); }

.lineup-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.lineup-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.lineup-tagline { font-size: 12.5px; color: var(--brand-strong); font-weight: 600; margin-bottom: 10px; }
.lineup-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; flex: 1; }
.lineup-price { margin-top: 16px; font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-grid.single { grid-template-columns: minmax(0, 420px); justify-content: center; }

.global-success { max-width: 640px; margin: 0 auto 40px; }

.price-card {
  background: var(--panel);
  border: 1px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-brand);
  max-width: none;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.price-name { font-size: 14px; font-weight: 700; color: var(--brand-strong); letter-spacing: 1px; }

.price-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  margin: 16px 0 4px;
  font-variant-numeric: tabular-nums;
}

.price-value span { font-size: 16px; color: var(--text-secondary); font-weight: 500; margin-left: 6px; }
.price-note { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.price-features { list-style: none; padding: 0; margin: 0 0 32px; text-align: left; display: flex; flex-direction: column; gap: 12px; }

.price-features li { display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.price-features svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }

.purchase-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--panel-alt);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

/* Checkout */
.checkout-label {
  display: block;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.checkout-input {
  width: 100%;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
}

.checkout-input:focus {
  outline: none;
  border-color: var(--brand);
}

.checkout-error {
  text-align: left;
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 8px;
}

.checkout-status {
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--panel-alt);
  border-radius: var(--radius-sm);
}

.checkout-status.is-error { color: var(--danger); }

.purchase-success {
  text-align: left;
  background: var(--success-soft);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
}

.success-title { font-weight: 700; font-size: 15px; color: var(--success); margin-bottom: 8px; }
.success-desc { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 14px; }

.license-key-box {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  color: var(--text);
  word-break: break-all;
}

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

details.faq-item {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}

details.faq-item summary {
  padding: 16px 0;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--brand-strong);
  font-weight: 400;
  margin-left: 12px;
}

details.faq-item[open] summary::after { content: '−'; }

details.faq-item p { color: var(--text-secondary); font-size: 14px; padding-bottom: 18px; margin: 0; }

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.final-cta h2 { font-size: 32px; margin-bottom: 16px; }
.final-cta p { color: var(--text-secondary); margin-bottom: 32px; }

/* Footer */
footer {
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.footer-desc { color: var(--text-muted); font-size: 13px; max-width: 320px; }

.footer-col h4 { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Blog / article ─────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.blog-card-tag { font-size: 12px; font-weight: 700; color: var(--brand-strong); margin-bottom: 10px; }
.blog-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.blog-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; flex: 1; }
.blog-card-meta { font-size: 12px; color: var(--text-muted); margin-top: 16px; }

.article-header { max-width: 760px; margin: 0 auto; text-align: center; }
.article-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.article-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.article-lede { font-size: 16px; color: var(--text-secondary); }

.prose { max-width: 760px; margin: 0 auto; font-size: 15.5px; color: var(--text); }
.prose h2 { font-size: 24px; font-weight: 800; margin: 48px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
.prose p { color: var(--text-secondary); margin: 0 0 18px; }
.prose ul, .prose ol { color: var(--text-secondary); margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand-strong); text-decoration: underline; }
.prose code {
  font-family: var(--font-mono);
  background: var(--panel-alt);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--accent);
}
.prose pre {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 24px;
}
.prose pre code { background: none; padding: 0; color: var(--text-secondary); }
.prose blockquote {
  border-left: 3px solid var(--brand);
  margin: 0 0 24px;
  padding: 4px 0 4px 20px;
  color: var(--text-secondary);
  font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); color: var(--text-secondary); }
.prose th { color: var(--text); font-weight: 700; background: var(--panel); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 32px;
}
.stat-box {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--brand-strong); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.callout {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
}
.callout strong { color: var(--text); }

.article-cta {
  max-width: 760px;
  margin: 48px auto 0;
  background: var(--panel);
  border: 1px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
}
.article-cta h3 { font-size: 19px; margin-bottom: 10px; }
.article-cta p { color: var(--text-secondary); font-size: 14px; margin-bottom: 18px; }

/* ── About / developer page tables ──────────────────────── */
.info-table { width: 100%; border-collapse: collapse; margin: 0 0 40px; }
.info-table th, .info-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); font-size: 14px; vertical-align: top; }
.info-table th { width: 220px; color: var(--text-secondary); font-weight: 700; background: var(--panel-alt); }
.info-table td { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .app-window { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .feature-card.wide { grid-column: span 2; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .app-body { height: auto; }
  .app-cards { grid-template-columns: repeat(2, 1fr); }
  .lineup-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .info-table th { width: 140px; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: span 1; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 30px; }
  section { padding: 60px 0; }
  .price-card { padding: 34px 26px; }
  .article-header h1 { font-size: 26px; }
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: none; padding-bottom: 4px; }
}
