/* ============================================================
   Saneurai — dark samurai marketing site
   Design system v7: refined surfaces, fluid type, fully
   responsive from 360px phones to widescreen desktops.
   ============================================================ */

:root {
  --bg: #09090b;
  --bg-panel: #0f0f12;
  --bg-raised: #15151a;
  --bg-inset: #070708;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f5f5f6;
  --muted: #a4a4ad;
  --faint: #6e6e78;
  --accent: #e11d48;
  --accent-bright: #fb4d6f;
  --accent-deep: #9f1239;
  --accent-soft: rgba(225, 29, 72, 0.10);
  --accent-line: rgba(225, 29, 72, 0.42);
  --glow: rgba(225, 29, 72, 0.30);
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --shadow-card: 0 18px 48px -18px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 30px 90px -20px rgba(0, 0, 0, 0.65);
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Outfit", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --maxw: 1120px;
  --nav-h: 66px;
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Ambient page atmosphere — barely-there crimson air at the top of the page. */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 640px;
  background:
    radial-gradient(58% 420px at 50% -140px, rgba(225, 29, 72, 0.055), transparent 70%),
    radial-gradient(30% 300px at 88% 0%, rgba(225, 29, 72, 0.03), transparent 70%);
  pointer-events: none; z-index: 0;
}
main, footer.footer { position: relative; z-index: 1; }
header.nav { position: sticky; z-index: 60; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font-family: inherit; }
::selection { background: rgba(225, 29, 72, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-brand); font-weight: 700;
  letter-spacing: 0.22em; font-size: 15px; color: var(--text);
  flex-shrink: 0;
}
.logo-mark { width: 22px; height: 22px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a {
  position: relative; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 4px 0; transition: color 0.16s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--accent);
  transition: right 0.22s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-end { display: flex; align-items: center; gap: 12px; }
.nav-links + .nav-end { margin-left: 0; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none; width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 10px;
  cursor: pointer; transition: border-color 0.16s ease, background 0.16s ease;
}
.nav-toggle:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.nav-toggle span {
  display: block; width: 16px; height: 1.5px; background: var(--text);
  border-radius: 2px; transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; font-weight: 600; font-size: 15px; letter-spacing: 0.005em;
  padding: 13px 26px; border: 1px solid transparent; white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.2s ease,
              transform 0.16s ease, filter 0.16s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #f43f5e 0%, var(--accent) 55%, #c2163d 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 28px -10px var(--glow);
}
.btn-primary:hover {
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 36px -10px var(--glow);
}
.btn-ghost {
  border-color: var(--line-strong); color: var(--text);
  background: rgba(255, 255, 255, 0.015);
}
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 9px; }
.btn-arrow { margin-left: 2px; transition: transform 0.16s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Section rhythm ---------- */
.section { border-top: 1px solid var(--line); }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 88px 24px; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-label::before {
  content: ""; width: 22px; height: 1px; background: var(--accent); opacity: 0.75;
  flex-shrink: 0;
}
.page-head .section-label, .cta-band .section-label { justify-content: center; }
.section h2 {
  font-family: var(--font-brand); font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700; line-height: 1.14; letter-spacing: -0.015em;
  margin-bottom: 18px; text-wrap: balance;
}
.section .section-blurb {
  color: var(--muted); font-size: 17px; max-width: 58ch; text-wrap: pretty;
}
[id] { scroll-margin-top: 90px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
/* Grid children must be allowed to shrink below content width on small screens. */
.hero-copy, .hero-showcase, .xp-media, .xp-copy, .product-copy, .product-media { min-width: 0; }
.hero::before {
  content: ""; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.11) 0%, transparent 65%);
  pointer-events: none;
}
.hero-enso {
  position: absolute; right: -90px; top: 44px; width: 430px; height: 430px;
  color: var(--accent); opacity: 0.065; pointer-events: none;
}
.hero-inner {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 96px 24px 92px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 60px; align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px 2px var(--glow);
}
.hero h1 {
  font-family: var(--font-brand); font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.06; font-weight: 700; letter-spacing: -0.02em;
  max-width: 13ch; text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #fb7185 0%, var(--accent) 55%, #be123c 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brush-stroke {
  width: 124px; height: 4px; margin: 26px 0;
  background: linear-gradient(90deg, var(--accent), rgba(225, 29, 72, 0.35) 65%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 18px -2px var(--glow);
}
.hero .sub { font-size: 17.5px; color: var(--muted); max-width: 44ch; margin-bottom: 16px; text-wrap: pretty; }
.hero .modes-line {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--faint);
  margin-bottom: 40px; letter-spacing: 0.04em;
}
.hero .modes-line b { color: var(--text); font-weight: 400; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero entrance — progressive, disabled under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.02s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.20s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.26s; }
  .hero-copy > *:nth-child(6) { animation-delay: 0.32s; }
  .hero-showcase { animation: rise 0.8s 0.18s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  /* Scroll reveal — .rv is only ever added by JS, so no-JS stays fully visible */
  .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .rv.rv-in { opacity: 1; transform: none; }
}

/* ---------- Hero video showcase ---------- */
.showcase-frame {
  position: relative; border: 1px solid var(--line-strong); border-radius: 18px;
  overflow: hidden; background: #000;
  box-shadow: var(--shadow-pop), 0 0 0 1px rgba(225, 29, 72, 0.05),
              0 0 90px -30px var(--glow);
}
.showcase-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 18%);
}
.showcase-frame video {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000;
}
.showcase-badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
  background: rgba(9, 9, 11, 0.72); border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  border-radius: 999px; padding: 5px 13px; pointer-events: none;
}
.showcase-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px;
}
.showcase-tabs button {
  cursor: pointer; font: 600 13.5px var(--font-body); color: var(--muted);
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px; white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.2s ease;
}
.showcase-tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.showcase-tabs button.is-active {
  color: #fff; background: var(--accent-soft); border-color: var(--accent-line);
  box-shadow: 0 6px 20px -8px var(--glow);
}

/* ---------- Shared card surfaces ---------- */
.mode-card, .step, .craft-card, .stat-card, .pricing-card, .methodology, .post-card, .product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 42%), var(--bg-panel);
  border: 1px solid var(--line);
}

/* ---------- Mode cards ---------- */
.mode-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px;
}
.mode-card {
  display: flex; flex-direction: column; border-radius: var(--radius-l);
  padding: 28px 24px 24px; position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.mode-card:hover {
  border-color: var(--accent-line); transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 40px -18px var(--glow);
}
.mode-card-link {
  display: inline-block; margin-top: auto; padding-top: 16px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  transition: transform 0.16s ease;
}
.mode-card:hover .mode-card-link { transform: translateX(3px); }
.mode-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid rgba(225, 29, 72, 0.18);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.mode-icon svg { width: 20px; height: 20px; }
.mode-card h3 { font-family: var(--font-brand); font-size: 18px; margin-bottom: 9px; letter-spacing: -0.01em; }
.mode-card .jp { color: var(--accent); font-size: 12px; margin-left: 7px; font-weight: 400; opacity: 0.85; }
.mode-card p { color: var(--muted); font-size: 14px; }

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin-top: 52px; counter-reset: step;
}
.step {
  border-radius: var(--radius-l); padding: 28px 24px;
  counter-increment: step; position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.step:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-brand); font-size: 30px; font-weight: 700;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 52px; }
.principle {
  border-top: 2px solid var(--accent-line); padding-top: 20px; position: relative;
}
.principle::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 34px; height: 2px;
  background: var(--accent); box-shadow: 0 0 14px 1px var(--glow);
}
.principle h3 { font-size: 16.5px; margin-bottom: 9px; letter-spacing: -0.01em; }
.principle p { color: var(--muted); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band { border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; bottom: -280px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 820px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.10) 0%, transparent 65%);
}
.cta-band .section-inner { text-align: center; position: relative; padding-top: 96px; padding-bottom: 96px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); }
.cta-band .section-blurb { margin: 0 auto 34px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Page head (interior pages) ---------- */
.page-head { max-width: 760px; margin: 0 auto; padding: 96px 24px 14px; text-align: center; }
.page-head h1 {
  font-family: var(--font-brand); font-size: clamp(32px, 5vw, 48px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance;
}
.lede { color: var(--muted); font-size: 17px; margin-top: 16px; text-wrap: pretty; }
.lede b { color: var(--text); }

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 500px; margin: 52px auto 0; text-align: center;
  border-color: var(--line-strong); border-radius: 22px; padding: 48px 40px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.pricing-card::before {
  content: ""; position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.10), transparent 68%);
  pointer-events: none;
}
.pricing-card .section-label { justify-content: center; position: relative; }
.beta-badge {
  position: absolute; top: 19px; right: -36px; transform: rotate(38deg);
  background: linear-gradient(180deg, #f43f5e, var(--accent-deep));
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; padding: 5px 42px;
  box-shadow: 0 6px 18px -6px var(--glow);
}
.price {
  font-family: var(--font-brand); font-size: 64px; font-weight: 700;
  line-height: 1; margin: 18px 0 8px; letter-spacing: -0.02em; position: relative;
}
.price span { font-size: 17px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-sub { color: var(--faint); font-size: 13.5px; margin-bottom: 30px; position: relative; }
.check-list { list-style: none; text-align: left; margin: 0 auto 34px; max-width: 340px; position: relative; }
.check-list li {
  padding: 10px 0 10px 30px; position: relative; color: var(--muted); font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 12px; height: 2px; background: var(--accent); border-radius: 2px;
}
.check-list b { color: var(--text); }
.pricing-faq { max-width: 700px; margin: 68px auto 0; padding: 0 24px; }
.pricing-faq h2 { font-family: var(--font-brand); font-size: 24px; margin-bottom: 22px; letter-spacing: -0.01em; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 16.5px; margin-bottom: 9px; letter-spacing: -0.01em; }
.faq-item p { color: var(--muted); font-size: 14.5px; }
.faq-item a { color: var(--accent); }
.faq-item a:hover { color: var(--accent-bright); }

/* ---------- Blog / docs ---------- */
.post-list { max-width: 760px; margin: 34px auto 96px; padding: 0 24px; }
.post-card {
  display: grid; grid-template-columns: 130px 1fr; gap: 6px 24px;
  padding: 26px 24px; border-radius: var(--radius-m);
  margin-bottom: 14px; position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.22s ease;
}
.post-card:hover {
  border-color: var(--accent-line); transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.post-card::after {
  content: "→"; position: absolute; right: 22px; top: 24px;
  color: var(--accent); font-size: 15px;
  opacity: 0; transform: translateX(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.post-card:hover::after { opacity: 1; transform: none; }
.post-date { color: var(--faint); font-family: var(--font-mono); font-size: 12.5px; grid-row: span 2; padding-top: 4px; }
.post-title { font-family: var(--font-brand); font-weight: 600; font-size: 18.5px; letter-spacing: -0.01em; }
.post-desc { color: var(--muted); font-size: 14px; }

.prose { max-width: 740px; margin: 0 auto; padding: 84px 24px 104px; }
.prose .post-date { color: var(--faint); font-family: var(--font-mono); font-size: 13px; margin-bottom: 12px; }
.prose h1 {
  font-family: var(--font-brand); font-size: clamp(30px, 4.4vw, 44px);
  margin-bottom: 30px; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance;
}
.prose h2 {
  font-family: var(--font-brand); font-size: 25px; margin: 46px 0 15px;
  letter-spacing: -0.015em;
}
.prose h3 { font-size: 18px; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p { color: #d6d6db; margin-bottom: 17px; }
.prose ul, .prose ol { color: #d6d6db; margin: 0 0 18px 24px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--accent); }
.prose code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px;
}
.prose pre {
  background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px; overflow-x: auto; margin-bottom: 20px;
}
.prose pre code { background: none; border: none; padding: 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(225, 29, 72, 0.35); transition: color 0.15s ease, border-color 0.15s ease; }
.prose a:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.prose blockquote {
  border-left: 2px solid var(--accent-line); padding: 4px 0 4px 20px;
  color: var(--muted); margin-bottom: 18px;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.prose th {
  text-align: left; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 12px 16px;
  background: var(--bg-raised); border-bottom: 1px solid var(--line-strong);
}
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: #d6d6db; }
.prose tr:last-child td { border-bottom: none; }

/* ---------- Product card (Products index) ---------- */
.product-card {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
  border-radius: 22px; padding: 48px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  border-color: var(--accent-line); transform: translateY(-4px);
  box-shadow: var(--shadow-pop), 0 0 60px -24px var(--glow);
}
.product-card h2 { margin-bottom: 14px; }
.product-blurb { color: var(--muted); font-size: 15.5px; margin-bottom: 24px; }
.product-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: 15px;
  transition: transform 0.16s ease;
}
.product-card:hover .product-cta { transform: translateX(3px); }
.product-media img {
  display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.products-more { color: var(--faint); font-size: 14px; margin-top: 30px; text-align: center; }
.products-more a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.products-more a:hover { color: var(--accent); border-color: var(--accent-line); }

/* ---------- Experience Center ---------- */
.xp-section { scroll-margin-top: 84px; }
.xp-block { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: center; }
.xp-block-reverse .xp-media { order: 2; }
.xp-media video {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000;
  border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow-pop);
  transition: border-color 0.2s ease;
}
.xp-media video:hover { border-color: var(--accent-line); }
.xp-copy h2 { margin-bottom: 14px; }
.xp-blurb { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; text-wrap: pretty; }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li {
  padding: 11px 0 11px 30px; position: relative; color: var(--muted);
  font-size: 14.5px; border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 18px;
  width: 12px; height: 2px; background: var(--accent); border-radius: 2px;
}
.feature-list b { color: var(--text); font-weight: 600; }

/* ---------- Craft (Japan / India) ---------- */
.craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.craft-card {
  border-radius: var(--radius-l); padding: 32px 30px; position: relative;
  border-top: 2px solid var(--accent-line);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.craft-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.craft-card h3 { font-family: var(--font-brand); font-size: 19px; margin: 12px 0 10px; letter-spacing: -0.01em; }
.craft-card p { color: var(--muted); font-size: 14.5px; }
.craft-jp {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 31px; padding: 0 11px; border-radius: 9px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.1em;
}
.craft-line {
  margin-top: 34px; text-align: center; color: var(--muted);
  font-family: var(--font-mono); font-size: 14px;
}
.craft-line b, .craft-strip b { color: var(--text); }

/* ---------- On the go (Experience Center) ---------- */
.xp-onthego { grid-template-columns: auto 1fr; }
.phones { display: flex; gap: 22px; align-items: center; }
.phone-frame {
  width: 238px; max-width: 64vw; border-radius: 32px; padding: 9px; background: #060608;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop), inset 0 0 0 3px rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}
.phone-frame video {
  display: block; width: 100%; border-radius: 24px; background: #000;
  aspect-ratio: 390 / 844; object-fit: cover;
}
.phone-frame-back { opacity: 0.85; transform: translateY(22px); }
.craft-strip { border-top: 1px solid var(--line); }
.craft-strip .section-inner { padding: 48px 24px; text-align: center; }
.craft-strip p { color: var(--muted); font-size: 16px; }
.craft-strip-sub { color: var(--faint); font-size: 13.5px; margin-top: 9px; }

/* ---------- Benchmarks ---------- */
.bench-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px;
}
.stat-card {
  border-radius: var(--radius-l); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 7px;
  border-top: 2px solid var(--accent-line);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.stat-value {
  font-family: var(--font-brand); font-size: 40px; font-weight: 700; line-height: 1.05;
  color: var(--text); letter-spacing: -0.02em;
}
.stat-value small { font-size: 17px; font-weight: 400; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.stat-label { font-size: 14.5px; font-weight: 600; color: var(--text); }
.stat-sub { font-size: 12.5px; color: var(--faint); }
.bench-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.bench-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bench-table th {
  text-align: left; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 11px 12px; border-bottom: 1px solid var(--line-strong);
}
.bench-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.bench-table tr:last-child td { border-bottom: none; }
.bench-table td:first-child { color: var(--text); font-weight: 500; }
.bench-table tbody tr { transition: background 0.15s ease; }
.bench-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.bench-note { color: var(--faint); font-size: 12.5px; }
.bench-code {
  font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px;
}
.methodology {
  margin-top: 36px; border-radius: var(--radius-l); padding: 28px 30px;
}
.methodology h3 { font-family: var(--font-brand); font-size: 17.5px; margin-bottom: 13px; letter-spacing: -0.01em; }
.methodology ul { margin-left: 20px; }
.methodology li { color: var(--muted); font-size: 14px; margin-bottom: 9px; }
.methodology li::marker { color: var(--accent); }
.methodology p { color: var(--muted); font-size: 14px; }
.methodology b { color: var(--text); }
.methodology em { color: var(--text); font-style: italic; }
.bench-link { color: var(--accent); }
.bench-link:hover { color: var(--accent-bright); }
.table-wrap {
  overflow-x: auto; margin-top: 42px;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--bg-panel);
  -webkit-overflow-scrolling: touch;
}
.table-wrap .bench-table th:first-child, .table-wrap .bench-table td:first-child { padding-left: 18px; }
.table-wrap .bench-table th:last-child, .table-wrap .bench-table td:last-child { padding-right: 18px; }
.matrix td, .matrix th { white-space: nowrap; }
.matrix td.yes { color: var(--accent); font-weight: 700; }
.matrix td.part { color: var(--muted); font-style: italic; }
.matrix td.no { color: var(--faint); }
.telemetry-strip {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; justify-content: center;
}
.telemetry-strip span {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-size: 14px; color: var(--muted);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.telemetry-strip span:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.telemetry-strip b {
  font-family: var(--font-brand); font-size: 16.5px; color: var(--text); margin-right: 4px;
}
.bench-foot { margin-top: 24px; text-align: center; color: var(--faint); font-size: 13px; }
.bench-foot a { color: var(--muted); }
.bench-foot a:hover { color: var(--accent); }

/* ---------- SB-1 leaderboard ---------- */
.sb1-table td, .sb1-table th { white-space: nowrap; }
.sb1-rank { font-family: var(--font-brand); font-weight: 700; color: var(--muted); }
.sb1-model { font-family: var(--font-mono); font-size: 13px; color: var(--text); font-weight: 600; }
.sb1-overall { min-width: 190px; }
.sb1-overall b {
  font-family: var(--font-brand); font-size: 17px; color: var(--text); margin-left: 10px;
}
.sb1-bar {
  display: inline-block; vertical-align: middle; width: 96px; height: 7px;
  background: var(--bg-raised); border-radius: 4px; overflow: hidden;
}
.sb1-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 4px; }
.sb1-cell { font-family: var(--font-mono); font-size: 12.5px; text-align: center; border-radius: 6px; }
.sb1-cell.sb1-9 { color: #fecdd3; background: rgba(225, 29, 72, 0.30); }
.sb1-cell.sb1-7 { color: #fda4af; background: rgba(225, 29, 72, 0.18); }
.sb1-cell.sb1-5 { color: #a1a1aa; background: rgba(255, 255, 255, 0.06); }
.sb1-cell.sb1-3 { color: #71717a; background: rgba(255, 255, 255, 0.03); }
.sb1-cell.sb1-0 { color: #52525b; }
.sb1-lat { color: var(--faint); font-size: 12.5px; }
.sb1-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 42px; }
.bench-soon { margin-top: 36px; max-width: 780px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.008); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px 42px; }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  padding-bottom: 34px; border-bottom: 1px solid var(--line);
}
.footer-brand-block { max-width: 300px; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-brand); font-weight: 700; letter-spacing: 0.22em; font-size: 14px;
}
.footer-tag { color: var(--faint); font-size: 13.5px; margin-top: 12px; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
  max-width: 560px; justify-content: flex-end;
}
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text); }
.footer-fine { color: var(--faint); font-size: 12.5px; margin-top: 28px; text-align: center; }
.footer-fine a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.footer-fine a:hover { color: var(--accent); border-color: var(--accent-line); }

/* ============================================================
   Responsive — laptop / tablet / phone
   ============================================================ */

/* Small laptops and large tablets */
@media (max-width: 1080px) {
  .hero-grid { gap: 44px; }
  .xp-block { gap: 40px; }
  .product-card { gap: 36px; padding: 40px; }
}

/* Tablets and down: stack the two-column layouts */
@media (max-width: 960px) {
  .section-inner { padding: 72px 24px; }
  .hero-inner { padding: 76px 24px 72px; }
  .hero-enso { opacity: 0.045; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 15ch; }
  .hero .sub { max-width: 52ch; }
  .hero-showcase { max-width: 720px; margin: 0 auto; width: 100%; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .xp-block { grid-template-columns: 1fr; gap: 30px; }
  .xp-block-reverse .xp-media { order: 0; }
  .xp-onthego { grid-template-columns: 1fr; }
  .phones { justify-content: center; }
  .phone-frame-back { display: none; }
  .product-card { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .bench-stats { grid-template-columns: 1fr 1fr; }
  .bench-tables { grid-template-columns: 1fr; }
  .sb1-method-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}

/* Collapse the nav into a menu panel */
@media (max-width: 900px) {
  .nav-toggle { display: flex; align-self: center; }
  /* nav-links (which carried margin-left:auto) is absolute here — the
     sign-in + toggle cluster must anchor itself to the right edge */
  .nav-end, .nav-links + .nav-end { margin-left: auto; align-self: center; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-strong);
    padding: 10px 24px 16px;
    display: none;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 13px 4px; font-size: 15px;
    border-top: 1px solid var(--line);
  }
  .nav-links a:first-child { border-top: none; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav-inner { padding: 0 18px; gap: 14px; }
  .section-inner { padding: 60px 20px; }
  .hero-inner { padding: 60px 20px 60px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero .sub { font-size: 16.5px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .mode-grid, .steps, .principles, .craft-grid, .bench-stats { grid-template-columns: 1fr; }
  .principles { gap: 28px; }
  .page-head { padding: 64px 20px 10px; }
  .post-list { margin-bottom: 72px; padding: 0 20px; }
  .post-card { grid-template-columns: 1fr; padding: 22px 20px; }
  .post-card::after { display: none; }
  .post-date { grid-row: auto; }
  .prose { padding: 60px 20px 80px; }
  .pricing-card { padding: 40px 24px; }
  .price { font-size: 52px; }
  .price span { display: block; margin-top: 8px; }
  .check-list { max-width: 100%; }
  .phone-frame { width: 214px; }
  .product-card { padding: 26px 20px; border-radius: 18px; }
  .showcase-tabs {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; padding-bottom: 6px; margin-left: -4px; margin-right: -4px;
    padding-left: 4px; padding-right: 4px;
    scrollbar-width: none;
  }
  .showcase-tabs::-webkit-scrollbar { display: none; }
  .cta-band .section-inner { padding-top: 72px; padding-bottom: 72px; }
  .stat-value { font-size: 36px; }
  .footer-inner { padding: 48px 20px 36px; }
}

/* Small phones */
@media (max-width: 400px) {
  .nav-brand span { font-size: 13.5px; letter-spacing: 0.18em; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .btn-sm { padding: 8px 14px; font-size: 12.5px; }
  .telemetry-strip span { padding: 9px 16px; font-size: 13.5px; }
}

/* Reduced motion: nothing moves, everything is simply visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
