:root {
  --bg: #0d1117;
  --bg-soft: #111824;
  --ink: #e6edf3;
  --ink-muted: #8b949e;
  --accent: #00d4ff;
  --accent-strong: #38bec9;
  --accent-soft: rgba(0, 212, 255, 0.12);
  --warm: #d29922;
  --card: #161b22;
  --border: #30363d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1240px;
  --font-display: "Inter", "Noto Sans JP", sans-serif;
  --font-body: "Inter", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px circle at 12% -10%, rgba(0, 212, 255, 0.12), transparent 60%),
    radial-gradient(900px circle at 100% 0%, rgba(88, 166, 255, 0.12), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(0deg, rgba(0, 212, 255, 0.06), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 64px;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(48, 54, 61, 0.8);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 4px;
}

.logo-grid .sq {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00d4ff;
}

.logo-grid .s2 { background: #38bec9; }
.logo-grid .s3 { background: #54d1db; }
.logo-grid .s4 { background: #87eaf2; }

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #02131a;
  box-shadow: 0 12px 28px rgba(0, 212, 255, 0.28);
}

.btn.primary:hover {
  background: #4ee2ff;
}

.btn.ghost {
  border-color: rgba(230, 237, 243, 0.2);
  color: var(--ink);
  background: transparent;
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 36px;
  align-items: start;
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 32px;
}

.landing-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 32px;
  min-height: calc(100vh - 180px);
  justify-content: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
}

.hero-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.16);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.panel-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid rgba(48, 54, 61, 0.9);
  box-shadow: var(--shadow);
}

.panel-card.subtle {
  box-shadow: none;
  background: rgba(22, 27, 34, 0.7);
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 12px;
}

.panel-steps {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--ink-muted);
  display: grid;
  gap: 6px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ink-muted);
  display: grid;
  gap: 6px;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.highlight-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(48, 54, 61, 0.9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.highlight-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.highlight-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.18), rgba(210, 153, 34, 0.18));
  border: 1px solid rgba(48, 54, 61, 0.8);
}

.cta-strip h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.cta-strip p {
  margin: 0;
  color: var(--ink-muted);
}

.section {
  padding-top: 8px;
  border-top: 1px solid rgba(48, 54, 61, 0.7);
}

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 10px;
}

.section-lead {
  color: var(--ink-muted);
  line-height: 1.8;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.section-copy p {
  color: var(--ink-muted);
  line-height: 1.8;
}

.callout {
  margin-top: 18px;
  background: rgba(22, 27, 34, 0.85);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px dashed rgba(0, 212, 255, 0.3);
}

.callout h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.callout ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  display: grid;
  gap: 6px;
}

.diagram-card {
  background: rgba(22, 27, 34, 0.85);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(48, 54, 61, 0.9);
  display: grid;
  gap: 16px;
}

.diagram {
  display: grid;
  gap: 10px;
}

.diagram-layer {
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.02));
  border: 1px solid rgba(0, 212, 255, 0.25);
  font-weight: 600;
  color: var(--ink);
}

.diagram-note {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.doc-card {
  display: block;
  padding: 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(48, 54, 61, 0.9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  color: inherit;
  text-decoration: none;
}

.doc-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.doc-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.link-card:hover {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 22px 42px rgba(0, 212, 255, 0.18);
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid rgba(48, 54, 61, 0.9);
  display: grid;
  gap: 14px;
  position: relative;
}

.pricing-card.highlight {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 24px 60px rgba(0, 212, 255, 0.18);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #02131a;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0;
}

.price span {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.pricing-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  display: grid;
  gap: 6px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.faq-item {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(48, 54, 61, 0.9);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.cta-band {
  margin: 24px 0 8px;
  padding: 32px 36px;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.2), rgba(210, 153, 34, 0.2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toc {
  position: sticky;
  top: 112px;
  align-self: start;
}

.toc-card {
  background: rgba(13, 17, 23, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(48, 54, 61, 0.9);
  padding: 16px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.toc-title {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--ink-muted);
}

.toc-card a {
  display: block;
  text-decoration: none;
  color: var(--ink-muted);
  padding: 4px 6px;
  border-radius: 8px;
}

.toc-card a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid rgba(48, 54, 61, 0.7);
  padding-top: 32px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
}

.site-footer.compact {
  margin-top: 32px;
}

/* ── Agent Manual (Vagrant-like) ─────────────────────────────── */
body.agent-manual {
  color-scheme: light;
  --bg: #f4f7f4;
  --bg-soft: #ffffff;
  --ink: #0f172a;
  --ink-muted: #5b6470;
  --accent: #19a974;
  --accent-strong: #12885d;
  --accent-soft: rgba(25, 169, 116, 0.12);
  --warm: #f59f0b;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --max: 1200px;
  --font-display: "Space Grotesk", "Noto Sans JP", sans-serif;
  --font-body: "Space Grotesk", "Noto Sans JP", sans-serif;
  background:
    radial-gradient(900px circle at 10% -10%, rgba(25, 169, 116, 0.14), transparent 55%),
    radial-gradient(700px circle at 92% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    var(--bg);
}

body.agent-manual::before {
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.04), transparent 40%),
    repeating-linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.04),
      rgba(15, 23, 42, 0.04) 1px,
      transparent 1px,
      transparent 16px
    );
  opacity: 0.35;
}

.agent-manual .site-header {
  background: rgba(244, 247, 244, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.agent-manual .site-nav a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.agent-manual .btn.primary {
  background: var(--accent);
  color: #0b1c14;
  box-shadow: 0 14px 28px rgba(25, 169, 116, 0.22);
}

.agent-manual .btn.ghost {
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--ink);
}

.agent-manual .btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.agent-manual .content-grid {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 32px;
}

.agent-manual .content-main {
  gap: 36px;
}

.agent-manual .section {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-top: 20px;
}

.agent-manual .doc-hero {
  border-top: none;
  padding: 28px 28px 26px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(25, 169, 116, 0.12), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(25, 169, 116, 0.2);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.agent-manual .doc-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(25, 169, 116, 0.18), transparent 70%);
  opacity: 0.7;
}

.agent-manual .doc-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-strong);
  font-weight: 600;
}

.agent-manual .doc-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.agent-manual .doc-lead {
  font-size: 0.98rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.7;
}

.agent-manual .toc {
  top: 104px;
}

.agent-manual .toc-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.agent-manual .toc-card a {
  color: var(--ink-muted);
  font-weight: 500;
}

.agent-manual .toc-card a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.agent-manual .ep,
.agent-manual .ft,
.agent-manual .note {
  box-shadow: none;
}

.agent-manual .ep {
  background: var(--card);
  border: 1px solid var(--border);
}

.agent-manual .ft th {
  background: rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid var(--border);
  color: #6b7280;
}

.agent-manual .ft td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.agent-manual .site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.agent-manual .concept-card {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.agent-manual .concept-diagram {
  width: 100%;
  height: auto;
  display: block;
}

.agent-manual .concept-caption {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero-section {
  text-align: center;
  padding: 80px 0 48px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  font-weight: 400;
}

.hero-accent {
  color: var(--accent);
  font-weight: 600;
}

.hero-section .hero-lead {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-muted);
}

.hero-section .hero-cta {
  justify-content: center;
}

/* ── Pain Point Cards ─────────────────────────────────────── */
.pain-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pain-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid rgba(48, 54, 61, 0.9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pain-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 22px 42px rgba(0, 212, 255, 0.12);
}

.pain-icon {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 10px;
  line-height: 1.4;
}

.pain-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

/* ── Architecture ─────────────────────────────────────────── */
.arch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: start;
}

.flow-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-layer {
  width: 100%;
  max-width: 380px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(0, 212, 255, 0.02));
  text-align: center;
}

.flow-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.flow-desc {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.flow-arrow::before {
  content: "↓";
  font-size: 1.2rem;
  line-height: 1;
}

.arrow-label {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.layer-browser { border-color: rgba(0, 212, 255, 0.4); }
.layer-wasm { border-color: rgba(82, 185, 193, 0.4); background: linear-gradient(135deg, rgba(82, 185, 193, 0.12), rgba(82, 185, 193, 0.02)); }
.layer-rust { border-color: rgba(241, 178, 125, 0.4); background: linear-gradient(135deg, rgba(241, 178, 125, 0.12), rgba(241, 178, 125, 0.02)); }
.layer-python { border-color: rgba(210, 153, 34, 0.4); background: linear-gradient(135deg, rgba(210, 153, 34, 0.12), rgba(210, 153, 34, 0.02)); }

/* Agent path */
.agent-path {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid rgba(210, 153, 34, 0.4);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.agent-path-header {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--warm);
  margin-bottom: 14px;
  font-size: 1rem;
}

.agent-path-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
}

.agent-path-node {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(210, 153, 34, 0.4);
  background: linear-gradient(135deg, rgba(210, 153, 34, 0.12), rgba(210, 153, 34, 0.02));
  text-align: center;
}

.agent-path-arrow {
  flex: 1;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.78rem;
  position: relative;
  padding: 0 8px;
}

.agent-path-arrow::before {
  content: "→";
  display: block;
  font-size: 1.2rem;
  color: var(--warm);
  margin-bottom: 2px;
}

.agent-path-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Tech highlights */
.tech-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.tech-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid rgba(48, 54, 61, 0.7);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-item strong {
  color: var(--accent);
  font-family: var(--font-display);
}

.tech-item span {
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ── Security ─────────────────────────────────────────────── */
.security-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.security-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid rgba(48, 54, 61, 0.9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.security-icon {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--accent-strong);
  margin-bottom: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
}

.security-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.security-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

/* ── Pricing detail link ─────────────────────────────────── */
.pricing-detail-link {
  text-align: center;
  margin-top: 18px;
}

.pricing-detail-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.pricing-detail-link a:hover {
  color: #4ee2ff;
}

/* ── Doc Links ────────────────────────────────────────────── */
.doc-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.doc-link-card {
  display: block;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(48, 54, 61, 0.9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doc-link-card:hover {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 22px 42px rgba(0, 212, 255, 0.18);
}

.doc-link-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.doc-link-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* ── Responsive overrides for new sections ────────────────── */
@media (max-width: 900px) {
  .hero-section {
    padding: 48px 0 32px;
    min-height: auto;
  }

  .pain-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arch-layout {
    grid-template-columns: 1fr;
  }

  .tech-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-cards {
    grid-template-columns: 1fr;
  }

  .doc-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pain-cards {
    grid-template-columns: 1fr;
  }

  .tech-highlights {
    grid-template-columns: 1fr;
  }

  .agent-path-flow {
    flex-direction: column;
    gap: 6px;
  }

  .agent-path-arrow::before {
    content: "↓";
  }
}

.fade-in,
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: riseIn 700ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 900px) {
  .landing-main {
    min-height: auto;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-compact {
    grid-template-columns: 1fr;
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 0 20px 48px;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .header-cta {
    width: 100%;
    justify-content: flex-start;
    order: 4;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-row {
    grid-template-columns: 1fr;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  .fade-in,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Landing Page — Vagrant Docs Style
   ═══════════════════════════════════════════════════════════════ */

html:has(body.landing-page) {
  color-scheme: light;
  scroll-behavior: smooth;
}

body.landing-page {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --ink: #000000;
  --ink-muted: #444444;
  --ink-subtle: #888888;
  --accent: #cc00ff;
  --border: #e0e0e0;
  --card: #ffffff;
  --radius: 4px;
  --font: "Yu Gothic UI", "YuGothic", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  background: var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  font-size: 16px;
  line-height: 1.6;
}

body.landing-page::before {
  display: none;
}

.landing-page .page {
  max-width: none;
  padding: 0;
}

/* ── Header ───────────────────────────────────────────────── */
.landing-page .site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
  box-shadow: none;
  padding-left: 24px;
  padding-right: 24px;
}

.landing-page .brand-text {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.landing-page .logo-grid .sq { background: #00d4ff; }
.landing-page .logo-grid .s2 { background: #38bec9; }
.landing-page .logo-grid .s3 { background: #54d1db; }
.landing-page .logo-grid .s4 { background: #87eaf2; }

.landing-page .site-nav a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius);
  padding: 4px 10px;
}

.landing-page .site-nav a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.landing-page .btn.ghost {
  border-color: var(--border);
  color: var(--ink);
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  box-shadow: none;
}

.landing-page .btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── 2-Column Layout ─────────────────────────────────────── */
.lp-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ── Left Sidebar ────────────────────────────────────────── */
.lp-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 24px 16px 24px 24px;
  border-right: 1px solid var(--border);
}

.lp-cta-btn {
  display: inline-block;
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none !important;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}

.lp-cta-btn:hover {
  opacity: 0.85;
  color: #ffffff !important;
  text-decoration: none !important;
}

.lp-title-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 24px;
}

.lp-title-row .lp-cta-btn {
  margin-left: auto;
}

.lp-title-row h1 {
  margin-bottom: 0;
}

.lp-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: 16px;
}

.lp-sidebar-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
  padding: 20px 12px 8px;
  margin: 0;
}

.lp-sidebar-heading:first-child {
  padding-top: 0;
}

.lp-sidebar-nav a {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  padding: 5px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}

.lp-sidebar-nav a:hover {
  background: #f5f5f5;
  color: var(--ink);
}

.lp-sidebar-nav a.active {
  color: var(--accent);
  font-weight: 500;
  background: rgba(204, 0, 255, 0.06);
}

.lp-sidebar-pair {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px;
}

.lp-sidebar-pair a {
  padding: 5px 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.1s;
}

.lp-sidebar-pair a:hover {
  color: var(--accent);
}

.lp-sidebar-sep {
  color: var(--ink-subtle);
  padding: 0 6px;
  font-size: 0.75rem;
}

/* ── Main Content ────────────────────────────────────────── */
.lp-content {
  padding: 24px 48px 64px 48px;
  min-width: 0;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.lp-breadcrumb {
  font-size: 0.8125rem;
  color: var(--ink-subtle);
  margin-bottom: 24px;
}

.lp-breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.lp-breadcrumb a:hover {
  color: var(--accent);
}

.lp-bc-sep {
  margin: 0 6px;
  color: var(--ink-subtle);
}

/* ── Typography ──────────────────────────────────────────── */
.lp-content h1 {
  font-family: var(--font);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0 0 24px;
  color: var(--ink);
}

.lp-tagline {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-subtle);
}

.lp-intro-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.lp-intro-list li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-muted);
  padding: 3px 0;
}

.lp-content h2 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.lp-content h3 {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 32px 0 8px;
  color: var(--ink);
}

.lp-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

.lp-content a {
  color: var(--accent);
  text-decoration: none;
}

.lp-content a:hover {
  text-decoration: underline;
}

/* Permalink anchor (» symbol) */
.lp-anchor {
  color: var(--ink-subtle);
  font-size: 0.85em;
  margin-left: 8px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.lp-content h2:hover .lp-anchor,
.lp-content h3:hover .lp-anchor {
  opacity: 1;
}

.lp-anchor:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Why Hawk-Backtester Cards ──────────────────────────── */
.lp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.lp-why-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s;
}

.lp-why-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lp-why-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--ink);
}

.lp-why-card p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .lp-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .lp-why-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Screenshot Carousel ─────────────────────────────────── */
.lp-carousel {
  margin: 32px 0 0;
  overflow: hidden;
  position: relative;
}

.lp-carousel::before,
.lp-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  z-index: 1;
  pointer-events: none;
}

.lp-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.lp-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.lp-carousel-track {
  display: flex;
  gap: 16px;
  animation: lp-scroll 40s linear infinite;
  width: max-content;
}

.lp-carousel-track:hover {
  animation-play-state: paused;
}

.lp-carousel-item {
  flex-shrink: 0;
  margin: 0;
}

.lp-carousel-item figcaption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.lp-carousel-item img {
  height: 220px;
  width: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  object-fit: cover;
}

@keyframes lp-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .lp-carousel-item img {
    height: 160px;
  }
}

@media (max-width: 720px) {
  .lp-carousel-item img {
    height: 120px;
  }
}

/* ── Architecture (horizontal) ───────────────────────────── */
.lp-arch-h {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 0;
  row-gap: 0;
  margin-top: 20px;
  max-width: 640px;
}

.lp-arch-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0 0 8px;
}

.lp-arch-bridge-placeholder {
  /* empty cell in row 1 col 2 */
}

.lp-arch-boxes {
  display: flex;
  flex-direction: column;
}

.lp-arch-boxes--right {
  align-self: stretch;
}

.lp-arch-box {
  background: var(--card);
  color: var(--ink);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid #000000;
}

.lp-arch-box + .lp-arch-box {
  margin-top: 6px;
}

.lp-arch-box span {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.lp-arch-box--engine {
  border-left-color: #cc00ff;
}

.lp-arch-box--sim {
  border-left-color: #cc00ff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Bridge (WebSocket arrow) */
.lp-arch-bridge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  flex-shrink: 0;
  align-self: end;
  grid-row: 2;
  grid-column: 2;
  margin-bottom: 20px;
}

.lp-arch-bridge-arrow {
  display: flex;
  align-items: center;
  color: var(--ink-subtle);
  font-size: 0.75rem;
  gap: 0;
  white-space: nowrap;
}

.lp-arch-bridge-arrow::before {
  content: "←";
  margin-right: 4px;
}

.lp-arch-bridge-arrow::after {
  content: "→";
  margin-left: 4px;
}

/* Legend */
.lp-arch-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.lp-arch-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-arch-legend-line {
  display: inline-block;
  width: 16px;
  height: 3px;
  border-radius: 1px;
}

.lp-arch-legend-line--service {
  background: #cc00ff;
}

.lp-arch-legend-line--user {
  background: #000000;
}

/* ── Footer ──────────────────────────────────────────────── */
.landing-page .site-footer {
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.875rem;
  padding-left: 24px;
  padding-right: 24px;
}

.landing-page .footer-links a {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.landing-page .footer-links a:hover {
  color: var(--accent);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-layout {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .lp-sidebar {
    display: none;
  }
  .lp-content {
    padding: 24px 0 48px;
  }
  .lp-content h1 { font-size: 1.5rem; }
  .lp-content h2 { font-size: 1.25rem; margin-top: 36px; }
  .lp-arch-h {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .lp-arch-bridge-placeholder { display: none; }
  .lp-arch-bridge {
    grid-column: 1;
    grid-row: auto;
    padding: 8px 0;
    align-self: center;
    margin-bottom: 0;
  }
  .lp-arch-bridge-arrow::before { content: "↑"; }
  .lp-arch-bridge-arrow::after { content: "↓"; }
}

@media (max-width: 720px) {
  .lp-content h1 { font-size: 1.375rem; }
}

/* ── Metric Tables (analysis_docs) ───────────────────────── */
.lp-metric-table-wrap {
  overflow-x: auto;
  margin: 12px 0 24px;
}

.lp-metric-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.lp-metric-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.lp-metric-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
  vertical-align: top;
}

.lp-metric-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.lp-metric-table code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: #f5f5f5;
  padding: 1px 5px;
  border-radius: 3px;
  color: #333;
}

.lp-metric-table tr:hover {
  background: #fafafa;
}

@media (max-width: 720px) {
  .lp-metric-table td:first-child {
    white-space: normal;
  }
}

.lp-ordered-list {
  margin: 12px 0 24px;
  padding-left: 24px;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--ink-muted);
}

.lp-ordered-list li {
  padding: 2px 0;
}
