/* ============================================================
   MintJams Commerce — Landing styles
   Base tone = "Clear" (CMS-faithful: mint + blue, white canvas)
   [data-tone="studio"] = warm commerce tone (mint + amber)
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;
  --surface-3: #EFF1F5;
  --ink: #0B1220;
  --ink-2: #1F2937;
  --ink-soft: #4B5563;
  --ink-mute: #9CA3AF;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  --brand: #00B894;
  --brand-2: #00D6A7;
  --brand-ink: #00715A;
  --brand-soft: #D6F4EB;

  /* accent = cool blue (Clear) */
  --accent: #2D6BFF;
  --accent-2: #4A88FF;
  --accent-soft: #DDE9FF;
  --accent-ink: #1949C2;

  /* tertiary for variety (purple) */
  --tri: #7C3AED;
  --tri-soft: #F1E8FF;
  --tri-ink: #6B21A8;

  --code-bg: #0B1220;
  --code-panel: #0F172A;
  --code-ink: #E5E7EB;
  --code-mute: #6B7280;
  --code-green: #5EEAD4;
  --code-blue: #93C5FD;
  --code-yellow: #FCD34D;
  --code-pink: #F0ABFC;
  --code-border: #1F2937;

  --why-bg: #0B1220;
  --why-card: #131A29;
  --why-line: #2A3142;

  --radius: 16px;
  --hero-glow: var(--brand);
}

/* ===== STUDIO tone (warm, commerce) ===== */
[data-tone="studio"] {
  --bg: #FBF9F5;
  --surface: #FFFFFF;
  --surface-2: #F5F1EA;
  --surface-3: #ECE5D9;
  --ink: #1A130C;
  --ink-2: #2C2218;
  --ink-soft: #5B5040;
  --ink-mute: #A39684;
  --border: #EAE2D5;
  --border-strong: #D7CBB8;

  --brand: #00B894;
  --brand-2: #1FCBA6;
  --brand-ink: #0A6A55;
  --brand-soft: #D7F1E8;

  /* accent = warm amber (oklch-harmonised with mint) */
  --accent: oklch(0.70 0.135 56);
  --accent-2: oklch(0.77 0.12 62);
  --accent-soft: oklch(0.93 0.045 66);
  --accent-ink: oklch(0.50 0.12 50);

  --tri: oklch(0.62 0.13 28);
  --tri-soft: oklch(0.93 0.04 36);
  --tri-ink: oklch(0.47 0.13 28);

  --code-bg: #1C1206;
  --code-panel: #241708;
  --code-ink: #F3ECE0;
  --code-mute: #9C8B72;
  --code-border: #3A2A14;

  --why-bg: #1A1208;
  --why-card: #251A0C;
  --why-line: #3A2C18;

  --hero-glow: var(--accent);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "IBM Plex Sans", system-ui, sans-serif;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  transition: background .4s ease, color .4s ease;
}
.latin { font-family: "IBM Plex Sans", "Noto Sans JP", system-ui, sans-serif; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.015em; font-weight: 700; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.nav-inner {
  display: flex; align-items: center; gap: 40px;
  padding: 14px 32px;
  max-width: 1280px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.logo .mark {
  width: 26px; height: 26px; border-radius: 2px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; font-weight: 700; font-size: 14px;
  font-family: "IBM Plex Sans", sans-serif; letter-spacing: -0.04em;
  box-shadow: 0 2px 7px -2px color-mix(in oklab, var(--brand) 55%, transparent);
}
.logo .name { display: flex; align-items: baseline; gap: 7px; }
.logo .name b { font-weight: 600; }
.logo .name .sub {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 2px 7px; border-radius: 5px;
}
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--ink-soft); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 4px 10px -2px rgba(0,0,0,.15);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: var(--surface); color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-soft); padding: 10px 4px; }
.btn-ghost:hover { color: var(--ink); }
.btn-brand {
  background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 6px 14px -4px color-mix(in oklab, var(--brand) 60%, transparent);
}
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 20px -4px color-mix(in oklab, var(--brand) 60%, transparent); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.arrow { display: inline-block; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* === GITHUB MINI === */
.gh-mini {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft);
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.gh-mini:hover { border-color: var(--border-strong); }

/* === HERO === */
.hero { position: relative; padding: 56px 0 24px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% 28% 55% 28%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklab, var(--hero-glow) 20%, transparent) 0%, transparent 70%);
  filter: blur(44px);
  z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 52px; align-items: center; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border: 1px solid color-mix(in oklab, var(--brand) 35%, transparent);
  padding: 6px 12px; border-radius: 999px;
  font-weight: 500;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent); }
.eyebrow .latin { letter-spacing: 0.04em; }

.hero h1 {
  font-size: clamp(33px, 4.6vw, 54px);
  font-weight: 700;
  margin: 22px 0 22px;
  letter-spacing: -0.025em;
}
.hero h1 .gradient {
  background: linear-gradient(110deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: 16.5px; color: var(--ink-soft);
  max-width: 500px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 22px;
  display: flex; gap: 18px; align-items: center;
  font-size: 13px; color: var(--ink-mute);
  flex-wrap: wrap;
}
.hero-meta .check { color: var(--brand); font-weight: 600; }

/* === BROWSER WINDOW === */
.browser {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow:
    0 1px 0 color-mix(in oklab, #fff 100%, transparent) inset,
    0 4px 8px -2px rgba(11,18,32,.06),
    0 30px 60px -20px rgba(11,18,32,.18),
    0 60px 100px -40px rgba(11,18,32,.15);
  overflow: hidden;
}
.browser-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 96%, #000), var(--surface-2));
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.b-lights { display: flex; gap: 6px; }
.b-lights span { width: 11px; height: 11px; border-radius: 50%; }
.b-lights span:nth-child(1) { background: #FF5F57; }
.b-lights span:nth-child(2) { background: #FEBC2E; }
.b-lights span:nth-child(3) { background: #28C840; }
.b-url {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  max-width: 480px;
  margin: 0 auto;
}
.b-url .lock { color: var(--brand); }
.b-url .url-host { color: var(--ink); }
.b-actions { color: var(--ink-mute); font-size: 12px; }

.browser-body { position: relative; aspect-ratio: 16 / 10; background: #0a0a0a; }
.browser-body img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* placeholder shot */
.shot-ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface-3) 14px 28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--ink-mute);
}
.shot-ph .pchip {
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: 8px 14px; border-radius: 8px; color: var(--ink-soft);
  box-shadow: 0 8px 20px -10px rgba(11,18,32,.2);
}
.shot-ph .psub { font-size: 11px; }

/* hero screenshot tabs */
.shot-tabs {
  display: flex; gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.shot-tab {
  background: transparent; border: none;
  font-family: inherit; font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 14px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.shot-tab .pill { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-mute); }
.shot-tab:hover { color: var(--ink); }
.shot-tab.active {
  background: var(--surface);
  color: var(--ink); font-weight: 500;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.04);
}
.shot-tab[data-shot="1"].active .pill { background: var(--brand); }
.shot-tab[data-shot="2"].active .pill { background: var(--accent); }
.shot-tab[data-shot="3"].active .pill { background: var(--tri); }

.hero-shot { position: relative; }
.hero-shot .shot-stage { position: relative; }
.hero-shot .browser { transition: opacity .35s; }
.hero-shot .browser.is-out { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

/* floating badges */
.float-tag {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: 0 12px 24px -10px rgba(11,18,32,.18);
  display: flex; align-items: center; gap: 8px;
  z-index: 4;
}
.float-tag .swatch { width: 8px; height: 8px; border-radius: 50%; }
.float-tag .swatch.live { background: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent); }
.float-tag .swatch.warn { background: var(--accent); }
.float-tag.ft-1 { top: 19%; left: -2.5%; }
.float-tag.ft-2 { bottom: 11%; right: -2%; }
@media (max-width: 1100px) { .float-tag { display: none; } }

/* === TRUST BAR === */
.stack {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.stack .head { text-align: center; font-size: 13px; color: var(--ink-mute); margin-bottom: 26px; letter-spacing: 0.02em; }
.stack-row {
  display: flex; justify-content: center; align-items: center;
  gap: 14px 40px; flex-wrap: wrap;
  color: var(--ink-soft); font-weight: 500;
}
.stack-row .item {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px; opacity: .8; transition: opacity .2s;
}
.stack-row .item:hover { opacity: 1; }
.stack-row .item svg { width: 20px; height: 20px; }
.stack-row .sep { width: 1px; height: 18px; background: var(--border); }

/* === SECTION HEADERS === */
section { padding: 100px 0; }
.sec-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.sec-head .label {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-ink); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.sec-head .label::before { content: ""; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
.sec-head h2 {
  font-size: clamp(29px, 3.9vw, 43px);
  font-weight: 700; margin: 12px 0 16px;
  letter-spacing: -0.02em;
}
.sec-head p { color: var(--ink-soft); font-size: 17px; }

/* === PIPELINE (the core story) === */
.pipeline-sec { background: var(--surface-2); }
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  max-width: 1180px; margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 980px) { .pipeline { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.pl-node {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  margin: 0 7px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 168px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pl-node:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 18px 36px -22px rgba(11,18,32,.3); }
.pl-node .pl-ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--ink);
}
.pl-node .pl-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pl-node .pl-k { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.04em; }
.pl-node h4 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.pl-node p { font-size: 12px; color: var(--ink-soft); line-height: 1.55; }
.pl-node.accent-brand .pl-ic { background: var(--brand-soft); border-color: color-mix(in oklab, var(--brand) 28%, transparent); color: var(--brand-ink); }
.pl-node.accent-acc .pl-ic { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 28%, transparent); color: var(--accent-ink); }
.pl-node.accent-tri .pl-ic { background: var(--tri-soft); border-color: color-mix(in oklab, var(--tri) 28%, transparent); color: var(--tri-ink); }
/* connector arrows between nodes */
.pl-node:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1.5px solid var(--border-strong);
  border-right: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  z-index: 2;
}
@media (max-width: 980px) { .pl-node::after { display: none !important; } .pl-node { margin: 0; } }
.pipeline-foot {
  max-width: 1180px; margin: 28px auto 0;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-soft);
}
.pipeline-foot .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 999px;
}
.pipeline-foot .chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.pipeline-foot .chip .d.b { background: var(--accent); }
.pipeline-foot .chip .d.p { background: var(--tri); }

/* === PILLARS === */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.pillar .p-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pillar.content .p-icon { background: var(--brand-soft); color: var(--brand-ink); }
.pillar.bpm .p-icon { background: var(--accent-soft); color: var(--accent-ink); }
.pillar.eip .p-icon { background: var(--tri-soft); color: var(--tri-ink); }
.pillar .p-icon svg { width: 22px; height: 22px; stroke-width: 1.8; fill: none; stroke: currentColor; }
.pillar h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.pillar > p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.pillar ul.feats { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); }
.pillar ul.feats li {
  font-size: 13.5px; color: var(--ink-soft);
  padding: 6px 0; display: flex; align-items: flex-start; gap: 10px;
}
.pillar ul.feats li::before {
  content: ""; flex: none; margin-top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); opacity: 0.5;
}
.pillar.bpm ul.feats li::before { background: var(--accent); }
.pillar.eip ul.feats li::before { background: var(--tri); }

/* === SPOTLIGHT === */
.spotlight { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 1000px) {
  .spotlight { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; }
  .spotlight.reverse { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .spotlight.reverse .spot-text { order: 2; }
}
.spot-text .label {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.spot-text.t-content .label { color: var(--brand-ink); }
.spot-text.t-bpm .label { color: var(--accent-ink); }
.spot-text.t-sys .label { color: var(--tri-ink); }
.spot-text h2 { font-size: clamp(27px, 3.3vw, 37px); margin: 12px 0 16px; letter-spacing: -0.02em; }
.spot-text > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 24px; max-width: 490px; }
.spot-text .feat-list { display: grid; gap: 14px; }
.spot-text .feat { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 4px 0; }
.spot-text .feat .fi {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 12px; font-family: "IBM Plex Mono", monospace;
}
.spot-text.t-content .feat .fi { background: var(--brand-soft); color: var(--brand-ink); border-color: color-mix(in oklab, var(--brand) 25%, transparent); }
.spot-text.t-bpm .feat .fi { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in oklab, var(--accent) 25%, transparent); }
.spot-text.t-sys .feat .fi { background: var(--tri-soft); color: var(--tri-ink); border-color: color-mix(in oklab, var(--tri) 25%, transparent); }
.spot-text .feat strong { font-weight: 600; font-size: 14.5px; display: block; margin-bottom: 2px; }
.spot-text .feat p { font-size: 13.5px; color: var(--ink-soft); }

.spot-img { position: relative; }
.spot-img .browser { transform: rotate(-0.3deg); }
.spot-img.reverse .browser { transform: rotate(0.3deg); }

/* === COMPONENTS / MODULES GRID === */
.components { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .components { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .components { grid-template-columns: 1fr; } }
.comp {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.comp:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(11,18,32,.28); }
.comp .c-icon {
  width: 40px; height: 40px; border-radius: 10px;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; overflow: hidden;
  box-shadow: 0 4px 10px -2px rgba(11,18,32,.18);
}
.comp .c-icon svg { width: 20px; height: 20px; stroke-width: 1.8; fill: none; stroke: currentColor; }
.comp .c-icon.g-brand { background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.comp .c-icon.g-acc { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.comp .c-icon.g-tri { background: linear-gradient(135deg, color-mix(in oklab, var(--tri) 70%, #fff), var(--tri)); }
.comp .c-icon.g-ink { background: linear-gradient(135deg, #374151, var(--ink)); }
.comp h4 { font-size: 15px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.005em; }
.comp h4 .latin { font-weight: 500; color: var(--ink-mute); font-size: 11px; letter-spacing: 0.04em; margin-left: 6px; }
.comp p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.comp.c-custom { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.comp.c-custom .c-icon { background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.4); box-shadow: none; }
.comp.c-custom h4 { color: var(--bg); }
.comp.c-custom p { color: color-mix(in oklab, var(--bg) 75%, var(--ink)); }

/* === WHY (dark narrative) === */
.why-section { background: var(--why-bg); color: #fff; }
.why-section .sec-head h2 { color: #fff; }
.why-section .sec-head p { color: #B6BBC4; }
.why-section .sec-head .label { color: var(--brand-2); }
.why-section .sec-head .label::before { background: var(--brand-2); }
.narrative { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 0 auto; }
@media (max-width: 900px) { .narrative { grid-template-columns: 1fr; } }
.nar-card { background: var(--why-card); border: 1px solid var(--why-line); border-radius: var(--radius); padding: 28px; }
.nar-card.before {
  border-color: color-mix(in oklab, #DC2626 30%, var(--why-line));
  background: linear-gradient(180deg, rgba(220,38,38,.08), transparent 60%), var(--why-card);
}
.nar-card.after {
  border-color: color-mix(in oklab, var(--brand) 40%, transparent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 14%, transparent), transparent 60%), var(--why-card);
}
.nar-card .tag {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  display: inline-block; margin-bottom: 14px;
}
.nar-card.before .tag { color: #FCA5A5; background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.3); }
.nar-card.after .tag { color: var(--brand-2); background: color-mix(in oklab, var(--brand) 14%, transparent); border-color: color-mix(in oklab, var(--brand) 40%, transparent); }
.nar-card h3 { font-size: 21px; margin-bottom: 14px; color: #fff; font-weight: 600; }
.nar-card ul li {
  padding: 10px 0; padding-left: 26px; color: #B6BBC4; font-size: 14.5px;
  border-top: 1px dashed var(--why-line); position: relative;
}
.nar-card ul li:first-child { border-top: 0; }
.nar-card.before ul li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 12px; height: 2px; background: #DC2626; border-radius: 2px;
}
.nar-card.after ul li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 12px; height: 8px;
  border-left: 1.5px solid var(--brand-2); border-bottom: 1.5px solid var(--brand-2);
  transform: rotate(-45deg);
}

/* === IDENTITY STRIP === */
.identity-sec { background: var(--surface-2); }
.id-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 56px; align-items: center; max-width: 1120px; margin: 0 auto; }
@media (max-width: 940px) { .id-grid { grid-template-columns: 1fr; gap: 36px; } }
.id-text .label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); font-weight: 500; }
.id-text h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 12px 0 16px; letter-spacing: -0.02em; }
.id-text p { color: var(--ink-soft); font-size: 15.5px; max-width: 460px; }
.id-cards { display: grid; gap: 12px; }
.id-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
}
.id-card .ic {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-soft);
}
.id-card.svc .ic { background: var(--brand-soft); color: var(--brand-ink); border-color: color-mix(in oklab, var(--brand) 25%, transparent); }
.id-card.grp .ic { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in oklab, var(--accent) 25%, transparent); }
.id-card.ops .ic { background: var(--tri-soft); color: var(--tri-ink); border-color: color-mix(in oklab, var(--tri) 25%, transparent); }
.id-card .id-name { font-family: "IBM Plex Mono", monospace; font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.id-card .id-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

/* === QUICK START === */
.quickstart { background: var(--surface-2); }
.qs-grid { display: grid; gap: 30px; grid-template-columns: 1fr; max-width: 1080px; margin: 0 auto; align-items: center; }
@media (min-width: 1000px) { .qs-grid { grid-template-columns: 1fr 1.2fr; } }
.qs-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.qs-steps li:first-child { border-top: 0; }
.qs-steps .n {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.qs-steps strong { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.qs-steps p { font-size: 13.5px; color: var(--ink-soft); }
.qs-steps code { background: var(--surface-3); padding: 1px 6px; border-radius: 4px; font-family: "IBM Plex Mono", monospace; font-size: 12.5px; }
.code-block { background: var(--code-bg); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(11,18,32,.35); border: 1px solid var(--code-border); }
.code-block .head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--code-panel); border-bottom: 1px solid var(--code-border);
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--code-mute);
}
.code-block .head .lights { display: flex; gap: 5px; }
.code-block .head .lights span { width: 10px; height: 10px; border-radius: 50%; }
.code-block .head .lights span:nth-child(1) { background: #FF5F57; }
.code-block .head .lights span:nth-child(2) { background: #FEBC2E; }
.code-block .head .lights span:nth-child(3) { background: #28C840; }
.code-block .head .title { margin-left: 10px; }
.code-block pre {
  margin: 0; padding: 22px; color: var(--code-ink);
  font-family: "IBM Plex Mono", monospace; font-size: 13px; line-height: 1.8; overflow-x: auto;
}
.code-block pre .com { color: var(--code-mute); }
.code-block pre .cmd { color: var(--code-blue); }
.code-block pre .str { color: var(--code-green); }
.code-block pre .num { color: var(--code-yellow); }
.code-block pre .flag { color: var(--code-pink); }
.code-block .footer-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-top: 1px solid var(--code-border);
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--code-mute); background: var(--code-panel);
}
.code-block .footer-bar .ok { color: var(--code-green); }

/* === EXTENSIBILITY === */
.extend {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 56px;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
@media (min-width: 1000px) { .extend { grid-template-columns: 1fr 1fr; } }
.extend::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand) 20%, transparent), transparent 70%);
}
.extend h3 { font-size: 30px; margin-bottom: 16px; letter-spacing: -0.02em; }
.extend > div > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 22px; max-width: 460px; }
.extend .mini-list li { font-size: 14px; color: var(--ink-soft); padding: 4px 0; padding-left: 22px; position: relative; }
.extend .mini-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 12px; height: 6px;
  border-left: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand);
  transform: rotate(-45deg);
}

/* backend diagram */
.app-diagram { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; position: relative; box-shadow: 0 30px 60px -25px rgba(11,18,32,.15); }
.app-diagram .ad-title { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-mute); margin-bottom: 14px; }
.app-diagram .ad-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.app-diagram .ad-app {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 8px; text-align: center; font-size: 11px; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.app-diagram .ad-app .dot { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); }
.app-diagram .ad-app.c-1 .dot { background: linear-gradient(135deg, #60E0BE, #00B894); }
.app-diagram .ad-app.c-2 .dot { background: linear-gradient(135deg, #8AB8FF, #2D6BFF); }
.app-diagram .ad-app.c-3 .dot { background: linear-gradient(135deg, #FCD34D, #D97706); }
.app-diagram .ad-app.c-4 .dot { background: linear-gradient(135deg, #F0ABFC, #A21CAF); }
.app-diagram .ad-arrow { text-align: center; color: var(--brand); font-family: "IBM Plex Mono", monospace; font-size: 16px; margin: 4px 0; }
.app-diagram .ad-core {
  margin-top: 8px; padding: 14px; border-radius: 10px;
  border: 2px dashed var(--brand);
  background: color-mix(in oklab, var(--brand-soft) 50%, transparent);
  display: flex; align-items: center; gap: 14px;
}
.app-diagram .ad-core .dot {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-family: "IBM Plex Mono", monospace; font-size: 13px;
}
.app-diagram .ad-core .info strong { font-size: 13px; font-weight: 600; }
.app-diagram .ad-core .info p { font-size: 11.5px; color: var(--ink-soft); margin: 0; }

/* === FAQ === */
.faq { max-width: 800px; margin: 0 auto; }
.qa { border-top: 1px solid var(--border); padding: 22px 0; }
.qa:last-child { border-bottom: 1px solid var(--border); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 16.5px; font-weight: 500; letter-spacing: -0.005em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 100% 1.5px, 1.5px 100%;
  background-position: center; background-repeat: no-repeat;
  color: var(--brand); transition: transform .25s;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa .ans { padding: 14px 0 0; color: var(--ink-soft); font-size: 14.5px; max-width: 700px; }
.qa .ans code { background: var(--surface-3); padding: 1px 6px; border-radius: 4px; font-family: "IBM Plex Mono", monospace; font-size: 13px; }

/* === FINAL CTA === */
.cta-final { background: var(--ink); border-radius: 28px; padding: 72px 48px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 100% at 0% 0%, color-mix(in oklab, var(--brand) 30%, transparent) 0%, transparent 60%),
    radial-gradient(60% 100% at 100% 100%, color-mix(in oklab, var(--accent) 30%, transparent) 0%, transparent 60%);
  opacity: .9;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final .label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px; }
.cta-final .label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); }
.cta-final h2 { font-size: clamp(31px, 5vw, 50px); color: #fff; margin-bottom: 16px; letter-spacing: -0.025em; }
.cta-final p { font-size: 17px; color: rgba(255,255,255,.78); margin-bottom: 32px; }
.cta-final .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.cta-final .btn-primary { background: #fff; color: var(--ink); }
.cta-final .btn-primary:hover { filter: none; background: #f3f4f6; }
.cta-final .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.cta-final .btn-secondary:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.cta-final .meta { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.55); font-family: "IBM Plex Mono", monospace; }

/* === FOOTER === */
footer { padding: 60px 0 40px; border-top: 1px solid var(--border); margin-top: 80px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h5 { font-size: 12px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.foot-grid ul { display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { color: var(--ink-soft); font-size: 14px; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand { max-width: 300px; }
.foot-brand p { color: var(--ink-soft); font-size: 14px; margin-top: 14px; line-height: 1.65; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 24px; font-size: 13px; color: var(--ink-mute); flex-wrap: wrap; gap: 12px; }

/* === Reveal ===
   Visible is the DEFAULT. The hidden pre-animation state is applied ONLY when
   JS is present and painting (html.js-anim is set before first paint, and removed
   as a safety fallback). This guarantees content is never stuck hidden in
   non-painting contexts (print / PDF / export / screenshot / no-JS). */
html.js-anim .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
html.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js-anim .reveal { opacity: 1; transform: none; transition: none; } }
html.js-anim body.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Mobile adjustments */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding-top: 32px; }
  .nav-links { display: none; }
  .cta-final { padding: 48px 24px; border-radius: 18px; }
  .extend { padding: 32px 24px; }
  .id-grid { gap: 30px; }
}
