/* ============================================================
   رختکن — Brandbook Microsite · Direction C (Swagger / Kinetic)
   ============================================================ */

@font-face {
  font-family: "Morabba";
  src: url("fonts/Morabba_FaNum_VF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakh";
  src: url("fonts/YekanBakhFaNum-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* surfaces — dark-first (from tokens.css) */
  --bg-deep: #07070C;
  --bg-base: #0E0E16;
  --bg-elevated: #15151F;
  --glass-04: rgba(255,255,255,.04);
  --glass-07: rgba(255,255,255,.07);
  --glass-10: rgba(255,255,255,.10);

  /* text */
  --text-primary: #F5F4F0;
  --text-secondary: #B8B5AB;
  --text-tertiary: #6B6960;

  /* accent — purple / indigo */
  --accent-1: #7163D9;
  --accent-2: #534AB7;
  --accent-3: #3D3699;
  --accent-soft: #9B8FFF;
  --accent-grad: linear-gradient(135deg, #7163D9, #534AB7 55%, #3D3699);

  /* tiers (halo) */
  --tier-bronze: #D97706;
  --tier-silver: #94A3B8;
  --tier-gold: #FCD34D;
  --tier-platinum: #93C5FD;
  --tier-null: #534AB7;

  /* semantic */
  --ok: #34D399;
  --warn: #FFD60A;
  --err: #FB7185;
  --info: #60A5FA;

  --font-fa: "YekanBakh", system-ui, sans-serif;
  --font-display: "Morabba", "YekanBakh", serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-fa);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-1); color: #fff; }

a { color: inherit; }

/* grain overlay applied to body via ::before */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- typographic helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.kicker {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: 2px;
  color: var(--accent-soft);
  text-transform: uppercase;
}
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 2; }

section.band {
  position: relative;
  padding-block: clamp(80px, 11vw, 150px);
  z-index: 2;
}
section.band.alt { background: var(--bg-base); }
section.band.deep { background: var(--bg-deep); }

.band-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}

/* section number tag */
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(28px, 4vw, 52px); flex-wrap: wrap; }
.sec-no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 46px);
  color: transparent;
  -webkit-text-stroke: 1.4px var(--accent-2);
  line-height: 1;
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1.04;
  margin: 0;
}
.sec-sub { color: var(--text-secondary); font-size: clamp(15px, 1.5vw, 19px); max-width: 60ch; margin-top: 4px; }

/* ============================================================
   NAV — sticky vertical index + progress
   ============================================================ */
.sidenav {
  position: fixed;
  inset-inline-start: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.sidenav a {
  --d: 8px;
  width: var(--d); height: var(--d);
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  position: relative;
  text-decoration: none;
  transition: background .25s, transform .25s;
}
.sidenav a::after {
  content: attr(data-label);
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(14,14,22,.92);
  border: 1px solid rgba(255,255,255,.08);
  padding: 4px 10px;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.sidenav a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.sidenav a.active { background: var(--accent-soft); box-shadow: 0 0 12px var(--accent-1); transform: scale(1.35); }
@media (max-width: 920px) { .sidenav { display: none; } }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 70;
  background: transparent;
}
.progress > i {
  display: block; height: 100%;
  width: 0%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px var(--accent-1);
}

/* top brand bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 55;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(7,7,12,.85), transparent);
  pointer-events: none;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.topbar .brand img { height: 30px; width: auto; }
.topbar .meta { font-size: 12.5px; color: var(--text-tertiary); letter-spacing: 1px; pointer-events: auto; }

/* ============================================================
   KINETIC TICKER
   ============================================================ */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
  padding-block: 14px;
}
.ticker-track {
  display: inline-block;
  will-change: transform;
  animation: tick 38s linear infinite;
}
.ticker.rev .ticker-track { animation-direction: reverse; }
.ticker-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 34px);
  color: var(--text-tertiary);
  padding-inline: 26px;
}
.ticker-track span b { color: var(--accent-soft); -webkit-text-stroke: 0; }
.ticker-track .dot { color: var(--accent-2); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(90px, 12vh, 150px) var(--gutter) clamp(40px, 6vh, 70px);
}
.hero .slab {
  position: absolute; inset: 0;
  background: linear-gradient(118deg, transparent 0%, transparent 40%, rgba(61,54,153,.36) 40.2%, rgba(83,74,183,.26) 63%, transparent 63.2%);
  z-index: 0;
}
.hero .halo {
  position: absolute; top: -22%; inset-inline-start: -8%;
  width: min(640px, 70vw); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113,99,217,.32), transparent 64%);
  filter: blur(26px);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero .swag-label { font-family: var(--font-fa); font-weight: 700; font-size: clamp(15px, 1.8vw, 22px); color: var(--accent-1); margin-bottom: 4px; }
.hero h1 { margin: 0; }
.hero .line-stroke {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 15vw, 190px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.92);
  text-shadow: 0 0 60px rgba(113,99,217,.45);
}
.hero .line-fill {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 15vw, 190px);
  line-height: .9;
  background: linear-gradient(135deg, #fff, #9b8fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub-row { margin-top: clamp(22px, 3vw, 36px); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero .sub-row img { width: clamp(48px, 6vw, 72px); height: auto; }
.hero .sub-row p { margin: 0; font-size: clamp(15px, 1.6vw, 20px); color: var(--text-secondary); max-width: 48ch; line-height: 1.8; }
.scroll-cue { position: absolute; bottom: 22px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 3; font-size: 12px; color: var(--text-tertiary); letter-spacing: 2px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--accent-soft), transparent); display: block; }

/* ============================================================
   HERO SWITCH — toggle cover directions A / B / C
   ============================================================ */
.hero-stage { position: relative; }
/* hide via a selector that outranks per-variant base display (.hero-b display:grid) */
.hero-stage > .hero-variant { display: none; }
/* show only the active cover, each with its correct display mode */
body[data-hero="a"] .hero-variant[data-hero="a"] { display: flex; }
body[data-hero="c"] .hero-variant[data-hero="c"] { display: flex; }
body[data-hero="b"] .hero-variant[data-hero="b"] { display: grid; }

.hero-switch {
  position: fixed;
  top: 11px; left: 50%; transform: translateX(-50%);
  z-index: 80;
  display: flex; align-items: center; gap: 4px;
  padding: 5px;
  background: rgba(14,14,22,.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.hero-switch .lbl { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-tertiary); padding-inline: 10px 4px; }
.hero-switch button {
  font-family: var(--font-fa);
  font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary);
  background: transparent; border: none; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.hero-switch button:hover { color: var(--text-primary); }
.hero-switch button.on { color: #fff; background: var(--accent-grad); box-shadow: 0 4px 14px rgba(113,99,217,.45); }
@media (max-width: 620px) {
  .hero-switch .lbl { display: none; }
  .hero-switch button { padding: 7px 11px; font-size: 12px; }
  .topbar .meta { display: none; }
}

/* ---- shared hero CTA pills ---- */
.hero-ctas { margin-top: clamp(24px, 3vw, 36px); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pill-primary { padding: 13px 28px; border-radius: 999px; background: var(--accent-grad); font-weight: 700; font-size: clamp(15px,1.6vw,18px); box-shadow: 0 10px 30px rgba(113,99,217,.45); }
.pill-ghost { padding: 12px 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); font-weight: 600; font-size: clamp(14px,1.5vw,17px); color: var(--text-secondary); }

/* ============================================================
   HERO A — THE TUNNEL
   ============================================================ */
.hero-a {
  position: relative; min-height: 100svh;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: clamp(96px, 13vh, 160px) var(--gutter) clamp(50px, 7vh, 80px);
  background: radial-gradient(120% 90% at 50% 0%, #1a1733 0%, #0b0a16 45%, #07070C 100%);
}
.hero-a .shaft {
  position: absolute; top: -6%; left: 50%; transform: translateX(-50%);
  width: min(460px, 60vw); height: 118%;
  background: linear-gradient(180deg, rgba(113,99,217,.42) 0%, rgba(113,99,217,.10) 45%, transparent 78%);
  filter: blur(40px); pointer-events: none; z-index: 0;
}
.hero-a .tunnel { position: absolute; bottom: 0; left: 0; width: 100%; height: 46vh; opacity: .5; z-index: 0; }
.hero-a .a-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-a .a-emblem { width: clamp(120px, 16vw, 188px); height: auto; margin-bottom: clamp(20px, 3vw, 30px); filter: drop-shadow(0 12px 40px rgba(113,99,217,.55)); }
.hero-a h1 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 8.5vw, 92px); line-height: 1.06;
  text-shadow: 0 6px 60px rgba(113,99,217,.35);
}
.hero-a .a-sub { margin-top: clamp(18px,2.5vw,26px); font-size: clamp(16px,1.8vw,21px); color: var(--text-secondary); max-width: 620px; line-height: 1.9; margin-inline: auto; }

/* ============================================================
   HERO B — TACTICS BOARD
   ============================================================ */
.hero-b {
  position: relative; min-height: 100svh;
  grid-template-columns: 1.05fr .95fr; overflow: hidden;
  background: var(--bg-base);
}
.hero-b .b-copy {
  position: relative; z-index: 2;
  padding: clamp(96px, 12vh, 150px) clamp(28px, 5vw, 64px) clamp(40px, 6vh, 64px);
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg,#101019,#0a0a12);
}
.hero-b .b-badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(113,99,217,.4); background: rgba(113,99,217,.08);
  font-size: 13.5px; font-weight: 600; color: #b9b0f5; margin-bottom: clamp(18px,3vw,28px);
}
.hero-b .b-badge i { width: 7px; height: 7px; border-radius: 999px; background: var(--accent-1); box-shadow: 0 0 10px var(--accent-1); display: block; }
.hero-b h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.1; }
.hero-b h1 .accent { color: var(--accent-1); }
.hero-b .b-sub { margin-top: clamp(16px,2vw,24px); font-size: clamp(16px,1.7vw,19px); color: var(--text-secondary); line-height: 2; max-width: 460px; }
.hero-b .b-chips { margin-top: clamp(24px,3vw,36px); display: flex; gap: 12px; flex-wrap: wrap; }
.hero-b .b-chips span { padding: 9px 18px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: 14.5px; color: var(--text-secondary); }
.hero-b .b-wordmark { width: clamp(120px,14vw,150px); height: auto; margin-top: clamp(30px,4vw,44px); opacity: .92; }
.hero-b .b-board {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 80% at 70% 30%, #1a1838 0%, #0c0b18 60%, #08080f 100%);
}
.hero-b .b-board .chalk { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; }
.hero-b .b-fan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-b .b-card {
  position: absolute; width: clamp(120px, 13vw, 170px); aspect-ratio: 170/244; border-radius: 16px;
  background: linear-gradient(160deg, rgba(133,150,210,.30), rgba(20,20,32,.65));
  border: 1px solid rgba(155,143,255,.45); backdrop-filter: blur(6px);
}
.hero-b .b-card .notch { position: absolute; top: 12px; inset-inline-end: 12px; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 18px solid rgba(252,211,77,.85); }
.hero-b .b-card.l { transform: translateX(clamp(-86px,-9vw,-128px)) rotate(-16deg) scale(.92); z-index: 1; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.hero-b .b-card.m { transform: translateX(0) rotate(0deg) scale(1); z-index: 3; box-shadow: 0 24px 70px rgba(113,99,217,.55), inset 0 0 30px rgba(133,150,210,.25); }
.hero-b .b-card.r { transform: translateX(clamp(86px,9vw,128px)) rotate(16deg) scale(.92); z-index: 1; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
@media (max-width: 820px) {
  .hero-b { grid-template-columns: 1fr; }
  .hero-b .b-board { min-height: 42vh; order: 2; }
  .hero-b .b-copy { order: 1; }
}

/* ============================================================
   reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   cards / grids
   ============================================================ */
.card {
  background: var(--glass-04);
  border: 1px solid var(--glass-07);
  border-radius: 16px;
  padding: clamp(20px, 2.4vw, 30px);
}
.card.glow { box-shadow: inset 0 0 0 1px rgba(155,143,255,.10); }

.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* idea hero statement block */
.idea-statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 96px);
  line-height: 1.02;
  margin: 0;
}
.idea-statement .accent { color: var(--accent-1); }
.idea-statement .stroke { color: transparent; -webkit-text-stroke: 2px var(--accent-soft); }

/* mechanic mapping table */
.maptable { width: 100%; border-collapse: collapse; font-size: clamp(14px, 1.5vw, 17px); }
.maptable th, .maptable td { text-align: start; padding: 16px 18px; border-bottom: 1px solid var(--glass-07); }
.maptable th { color: var(--accent-soft); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.maptable td:first-child { color: var(--text-primary); font-weight: 700; white-space: nowrap; }
.maptable td:last-child { color: var(--text-secondary); }
.maptable tr:last-child td { border-bottom: none; }

/* ============================================================
   RED LINE — do / don't
   ============================================================ */
.redline-banner {
  border: 1px solid rgba(251,113,133,.32);
  background: linear-gradient(135deg, rgba(251,113,133,.08), rgba(251,113,133,.02));
  border-radius: 18px;
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}
.redline-banner::before {
  content: "مهارت، نه شانس";
  position: absolute; inset-inline-end: -10px; bottom: -28px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(60px, 12vw, 150px);
  color: rgba(251,113,133,.05);
  white-space: nowrap;
  pointer-events: none;
}
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .dodont { grid-template-columns: 1fr; } }
.dodont-col { border-radius: 14px; padding: clamp(18px, 2.2vw, 26px); }
.dodont-col.do { background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.24); }
.dodont-col.dont { background: rgba(251,113,133,.07); border: 1px solid rgba(251,113,133,.24); }
.dodont-col h4 { margin: 0 0 14px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.dodont-col .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dodont-col .chips span { font-size: 14px; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.05); }
.dodont-col.do .chips span { color: #8af0c8; }
.dodont-col.dont .chips span { color: #ffb3bf; text-decoration: line-through; text-decoration-color: rgba(251,113,133,.5); }

.catch-flag {
  margin-top: 18px;
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,214,10,.06);
  border: 1px solid rgba(255,214,10,.28);
  border-radius: 12px;
  padding: 18px 20px;
}
.catch-flag .ico { font-size: 20px; line-height: 1.2; }
.catch-flag b { color: var(--warn); }
.catch-flag code { font-family: "JetBrains Mono", monospace; background: rgba(0,0,0,.4); padding: 2px 7px; border-radius: 5px; font-size: .9em; color: #ffd9dd; }
.catch-flag .fix { color: var(--ok); font-weight: 700; }

/* ============================================================
   VERBAL BACKBONE — four pillars cards
   ============================================================ */
.backbone-card {
  position: relative;
  border-radius: 16px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--glass-07);
  background: linear-gradient(160deg, var(--glass-04), transparent);
  overflow: hidden;
  min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.backbone-card .role { font-size: 13px; letter-spacing: 1.5px; color: var(--accent-soft); font-weight: 700; text-transform: uppercase; }
.backbone-card .line { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 38px); line-height: 1.12; margin: 14px 0; }
.backbone-card .use { font-size: 14px; color: var(--text-tertiary); line-height: 1.7; }
.backbone-card .bignum {
  position: absolute; top: -18px; inset-inline-start: 14px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 130px; color: rgba(255,255,255,.025);
  pointer-events: none;
}
.backbone-card.hero-c { border-color: rgba(155,143,255,.4); box-shadow: inset 0 0 40px rgba(113,99,217,.10); }

.paradox-note {
  margin-top: 20px; padding: 20px 24px; border-radius: 14px;
  background: var(--glass-04); border: 1px solid var(--glass-07);
  border-inline-start: 3px solid var(--accent-1);
  color: var(--text-secondary); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.9;
}
.paradox-note b { color: var(--text-primary); }

/* ============================================================
   PERSONALITY — traits + voice rows
   ============================================================ */
.trait { padding: clamp(20px, 2.4vw, 28px); border-radius: 14px; background: var(--glass-04); border: 1px solid var(--glass-07); }
.trait .n { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--accent-soft); -webkit-text-stroke: 0; }
.trait h4 { margin: 8px 0 6px; font-size: clamp(17px, 1.8vw, 21px); }
.trait p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.75; }

.voice-row { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 0; align-items: stretch; border-bottom: 1px solid var(--glass-07); }
.voice-row:last-child { border-bottom: none; }
.voice-row > div { padding: 18px 20px; }
.voice-row .situ { color: var(--text-tertiary); font-weight: 600; font-size: 14px; display: flex; align-items: center; }
.voice-row .bad { color: #ffb3bf; font-size: 14.5px; position: relative; }
.voice-row .good { color: var(--text-primary); font-size: 15.5px; font-weight: 600; background: rgba(113,99,217,.05); border-radius: 8px; }
.voice-row .lbl { font-size: 11px; letter-spacing: 1px; display: block; margin-bottom: 5px; font-weight: 700; }
.voice-row .bad .lbl { color: var(--err); }
.voice-row .good .lbl { color: var(--accent-soft); }
@media (max-width: 760px) { .voice-row { grid-template-columns: 1fr; } .voice-row .situ { color: var(--accent-soft); font-weight: 700; } }

/* ============================================================
   MESSAGING PILLARS
   ============================================================ */
.pillar { padding: clamp(22px, 2.6vw, 32px); border-radius: 16px; background: linear-gradient(165deg, var(--glass-04), transparent); border: 1px solid var(--glass-07); position: relative; }
.pillar .num { font-family: var(--font-display); font-weight: 900; font-size: 18px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-grad); margin-bottom: 16px; }
.pillar h4 { margin: 0 0 8px; font-size: clamp(18px, 2vw, 23px); }
.pillar .core { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.pillar .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pillar .tags span { font-size: 12.5px; padding: 5px 11px; border-radius: 7px; background: rgba(255,255,255,.05); color: var(--text-tertiary); }
.pillar .tags span.mech { color: var(--accent-soft); background: rgba(113,99,217,.10); }

/* ============================================================
   TAGLINE LIBRARY
   ============================================================ */
.tag-group { margin-bottom: 36px; }
.tag-group h4 { font-size: 14px; letter-spacing: 1.5px; color: var(--accent-soft); margin: 0 0 16px; text-transform: uppercase; font-weight: 700; }
.tag-lines { display: flex; flex-direction: column; gap: 10px; }
.tag-line {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.2;
  color: var(--text-secondary);
  transition: color .3s, transform .3s;
  cursor: default;
  display: flex; align-items: baseline; gap: 14px;
}
.tag-line:hover { color: var(--text-primary); transform: translateX(-6px); }
.tag-line .bullet { width: 7px; height: 7px; border-radius: 999px; background: var(--accent-2); flex: none; transform: translateY(-4px); }
.tag-line:hover .bullet { background: var(--accent-soft); box-shadow: 0 0 10px var(--accent-1); }

/* ============================================================
   VISUAL IDENTITY
   ============================================================ */
.logo-stage {
  border-radius: 18px;
  background: radial-gradient(90% 100% at 50% 0%, #16142b, #0a0a14 70%);
  border: 1px solid var(--glass-07);
  display: grid; place-items: center;
  padding: clamp(30px, 5vw, 64px);
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.logo-stage .clearspace { position: absolute; border: 1px dashed rgba(155,143,255,.3); border-radius: 8px; }
.logo-stage img { position: relative; z-index: 2; }
.logo-caption { font-size: 13.5px; color: var(--text-tertiary); margin-top: 12px; text-align: center; }

.rule-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--glass-07); }
.rule-item:last-child { border-bottom: none; }
.rule-item .yn { font-weight: 800; font-size: 17px; flex: none; width: 22px; }
.rule-item .yn.y { color: var(--ok); }
.rule-item .yn.n { color: var(--err); }
.rule-item p { margin: 0; font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }

/* color swatches */
.swatch { border-radius: 13px; overflow: hidden; border: 1px solid var(--glass-07); }
.swatch .chip { height: 92px; display: flex; align-items: flex-end; padding: 12px; }
.swatch .info { padding: 12px 14px; background: var(--glass-04); }
.swatch .info .tok { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--text-primary); }
.swatch .info .hex { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--text-tertiary); }
.swatch .info .use { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; }

.grad-bar { height: 60px; border-radius: 12px; background: var(--accent-grad); display: flex; align-items: center; padding-inline: 18px; font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 600; color: #fff; }

/* typography specimen */
.specimen { border-radius: 16px; background: var(--glass-04); border: 1px solid var(--glass-07); padding: clamp(24px, 3vw, 38px); }
.specimen .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 7vw, 88px); line-height: 1; margin: 0; }
.specimen .meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--text-tertiary); }
.specimen .meta b { color: var(--accent-soft); font-weight: 700; }
.weights { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.weights span { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.25; }

/* ============================================================
   TIER SYSTEM — cards
   ============================================================ */
.tier-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .tier-rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .tier-rail { grid-template-columns: 1fr; } }
.tier-card {
  --halo: var(--accent-2);
  position: relative;
  border-radius: 16px;
  padding: 22px 18px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-07);
  overflow: hidden;
  text-align: center;
}
.tier-card .halo-bg {
  position: absolute; top: -34%; inset-inline-start: 50%; transform: translateX(-50%);
  width: 150%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--halo) 0%, color-mix(in srgb, var(--halo) 45%, transparent) 34%, transparent 60%);
  opacity: .9; filter: blur(2px); pointer-events: none; mix-blend-mode: screen;
}
.tier-card .figure { box-shadow: 0 8px 26px -6px var(--halo); }
.tier-card .figure {
  position: relative; z-index: 2;
  width: 64px; height: 84px; margin: 0 auto 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center;
}
.tier-card .figure::after { content: ""; width: 26px; height: 30px; background: var(--halo); border-radius: 4px 4px 8px 8px; opacity: .85; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M7 2 12 5 17 2l5 4-3 4v14H5V10L2 6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.tier-card .tname { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.tier-card .trange { position: relative; z-index: 2; font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--text-tertiary); margin-top: 3px; }
.tier-card .tdist { position: relative; z-index: 2; margin-top: 12px; font-size: 12px; color: var(--text-secondary); }
.tier-card .tdist b { color: var(--text-primary); font-size: 15px; }
.tier-card.null { border-color: rgba(155,143,255,.4); }
.tier-card.null .star { position: absolute; top: 12px; inset-inline-end: 12px; color: var(--tier-gold); font-size: 18px; z-index: 3; }

.tier-rule {
  margin-top: 22px; display: flex; gap: 16px; align-items: flex-start;
  background: rgba(113,99,217,.06); border: 1px solid rgba(113,99,217,.24);
  border-radius: 14px; padding: 20px 24px;
}
.tier-rule .key { font-size: 22px; }
.tier-rule p { margin: 0; font-size: 15px; color: var(--text-secondary); line-height: 1.85; }
.tier-rule b { color: var(--accent-soft); }

/* surface vs halo diagram */
.sh-demo { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.sh-demo .lbl { font-size: 13.5px; color: var(--text-secondary); }

/* ============================================================
   COPY LIBRARY
   ============================================================ */
.copy-cat { margin-bottom: 14px; }
.copy-cat-title { font-size: 13px; letter-spacing: 1.5px; color: var(--accent-soft); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.copy-bubble {
  background: var(--glass-04); border: 1px solid var(--glass-07);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 18px; margin-bottom: 10px;
  font-size: 15.5px; color: var(--text-primary); line-height: 1.7;
  position: relative;
}
.copy-bubble .ctx { display: block; font-size: 12px; color: var(--text-tertiary); margin-bottom: 5px; font-weight: 600; }

/* ============================================================
   LEGAL
   ============================================================ */
.legal-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--glass-07); }
.legal-item:last-child { border-bottom: none; }
.legal-item .flag { font-size: 22px; flex: none; }
.legal-item h4 { margin: 0 0 6px; font-size: 17px; }
.legal-item p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.8; }
.legal-disclaimer { font-size: 13.5px; color: var(--text-tertiary); font-style: italic; margin-bottom: 20px; }

/* ============================================================
   QUICK REFERENCE (locks)
   ============================================================ */
.locks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .locks { grid-template-columns: 1fr; } }
.lock {
  display: flex; gap: 14px; align-items: baseline;
  padding: 18px 22px; border-radius: 13px;
  background: var(--glass-04); border: 1px solid var(--glass-07);
}
.lock .k { font-size: 12.5px; letter-spacing: 1px; color: var(--accent-soft); font-weight: 700; flex: none; min-width: 92px; text-transform: uppercase; }
.lock .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2vw, 23px); line-height: 1.3; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  text-align: center; padding: clamp(70px, 10vw, 120px) var(--gutter) 60px;
  background: var(--bg-base);
  position: relative; z-index: 2;
}
.foot .big-cta {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 9vw, 120px);
  line-height: .95;
  background: linear-gradient(135deg, #fff, #9b8fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 24px;
}
.foot img { width: clamp(120px, 16vw, 180px); height: auto; margin-bottom: 26px; }
.foot .meta { color: var(--text-tertiary); font-size: 13.5px; letter-spacing: 1px; }

/* utility */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.muted { color: var(--text-secondary); }
.lede { font-size: clamp(16px, 1.8vw, 22px); line-height: 1.9; color: var(--text-secondary); max-width: 66ch; }
.lede b { color: var(--text-primary); font-weight: 700; }
