/* =========================================================================
   /goal showcase — styles
   ========================================================================= */
:root {
  --bg:        #07090d;
  --bg-2:      #0a0e14;
  --panel:     rgba(255,255,255,.035);
  --panel-2:   rgba(255,255,255,.055);
  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.16);
  --text:      #e7edf4;
  --text-mid:  #aeb9c7;
  --text-dim:  #71808f;

  --green:  #7ee787;
  --teal:   #5eead4;
  --amber:  #f0b073;
  --red:    #f0707a;
  --blue:   #a6c8ff;
  --violet: #c4b5fd;

  --accent: var(--green);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Cascadia Code", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
}

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

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

code { font-family: var(--mono); font-size: .92em; }
a { color: inherit; }

/* ---------- background layers ---------- */
.bg-grid {
  position: fixed; inset: -10% 0 0 0; z-index: -2;
  background-image:
    linear-gradient(rgba(126,231,135,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,231,135,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  will-change: transform;
}
.bg-glow {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(94,234,212,.10), transparent 60%),
    radial-gradient(50% 45% at 12% 12%, rgba(126,231,135,.10), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(166,200,255,.06), transparent 60%);
}
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  background: linear-gradient(90deg, var(--green), var(--teal));
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- shared ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 104px 24px; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.018) 12%, rgba(255,255,255,.018) 88%, transparent); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.accent { color: var(--accent); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
}
.section-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.18; margin: 0 0 18px; letter-spacing: -.01em; font-weight: 760; }
.section-lead { color: var(--text-mid); font-size: 17px; margin: 0; }
.section-lead code, .hero-lead code { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 640; text-decoration: none;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(180deg, #8af095, #62d779); color: #06210c;
  box-shadow: 0 8px 26px -10px rgba(126,231,135,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(126,231,135,.7); }
.btn-ghost { background: var(--panel); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--text-dim); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7,9,13,.66); border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-weight: 700; }
.brand-mark { color: var(--green); font-size: 20px; transform: translateY(2px); }
.brand-name { font-family: var(--mono); font-size: 17px; letter-spacing: -.02em; }
.brand-sub { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  text-decoration: none; color: var(--text-mid); font-size: 14px; font-weight: 600;
  padding: 7px 13px; border-radius: 9px; transition: color .18s, background .18s; position: relative;
}
.nav-link:hover { color: var(--text); background: var(--panel); }
.nav-link.active { color: var(--green); }
.nav-link.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--green); border-radius: 2px; }
.nav-cta {
  text-decoration: none; font-size: 13.5px; font-weight: 640; color: var(--text);
  padding: 8px 15px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--panel);
  transition: border-color .2s, background .2s; white-space: nowrap;
}
.nav-cta:hover { border-color: var(--teal); background: var(--panel-2); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px 60px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 13px;
  color: var(--text-mid); padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel); margin-bottom: 26px;
}
.eyebrow code { color: var(--green); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(126,231,135,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(126,231,135,.5);} 70% { box-shadow: 0 0 0 9px rgba(126,231,135,0);} 100% { box-shadow: 0 0 0 0 rgba(126,231,135,0);} }

.hero-title { font-size: clamp(38px, 6.4vw, 70px); line-height: 1.05; letter-spacing: -.025em; font-weight: 800; margin: 0 0 24px; }
.hero-title .line { display: block; }
.hero-title .accent { background: linear-gradient(120deg, var(--green), var(--teal) 60%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 18px; color: var(--text-mid); max-width: 560px; margin: 0 0 32px; }
.hero-lead strong { color: var(--text); font-weight: 680; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.stat-label { font-size: 12.5px; color: var(--text-dim); line-height: 1.35; }

/* terminal */
.hero-term {
  border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #0c1118, #090d12);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--border); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; } .term-dot.y { background: #febc2e; } .term-dot.g { background: #28c840; }
.term-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.term-body { padding: 18px 18px 22px; font-family: var(--mono); font-size: 13.5px; min-height: 280px; }
.term-prompt { color: var(--text); margin-bottom: 14px; word-break: break-word; }
.term-caret { color: var(--teal); margin-right: 6px; }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--green); margin-left: 2px; vertical-align: -3px; animation: blink 1.05s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-log { display: flex; flex-direction: column; gap: 7px; }
.log-line, .sim-line {
  opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease;
  word-break: break-word; line-height: 1.55;
}
.log-line.show, .sim-line.show { opacity: 1; transform: none; }
.log-line.success { margin-top: 6px; font-weight: 600; }

.t-dim { color: var(--text-dim); } .t-amber { color: var(--amber); }
.t-teal { color: var(--teal); } .t-green { color: var(--green); } .t-red { color: var(--red); }

.scroll-hint {
  display: block; text-align: center; margin-top: 56px; color: var(--text-dim);
  font-size: 13px; text-decoration: none; font-family: var(--mono);
  animation: floaty 2.6s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--text); }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-term { order: -1; }
}

/* ---------- loop diagram ---------- */
.loop-wrap { display: grid; gap: 26px; }
.loop-stage {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: stretch;
  padding: 30px 22px 46px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
}
.loop-node {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 18px 18px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-2); transition: border-color .3s, box-shadow .3s, transform .3s, background .3s;
}
.loop-node.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 36px -16px rgba(126,231,135,.5); transform: translateY(-3px); }
.n-eval.active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 12px 36px -16px rgba(94,234,212,.5); }
.ln-ico { font-size: 22px; }
.ln-name { font-weight: 680; font-size: 15px; }
.ln-desc { font-size: 12.5px; color: var(--text-dim); }
.ln-badge { display: none; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 7px; }
.badge-no { color: var(--red); background: rgba(240,112,122,.12); border: 1px solid rgba(240,112,122,.3); }
.badge-yes { color: var(--green); background: rgba(126,231,135,.12); border: 1px solid rgba(126,231,135,.3); }
.loop-stage[data-decision="no"] .n-decide .badge-no { display: inline-block; animation: popin .35s ease; }
.loop-stage[data-decision="yes"] .n-decide .badge-yes { display: inline-block; animation: popin .35s ease; }
@keyframes popin { from { opacity: 0; transform: scale(.85);} to { opacity: 1; transform: none;} }

.loop-arrow { display: none; }
.loop-back {
  position: absolute; left: 22px; right: 22px; bottom: 14px; height: 22px;
  border: 1px dashed rgba(240,112,122,.35); border-top: none;
  border-radius: 0 0 16px 16px;
}
.loop-back span {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  background: var(--bg-2); padding: 0 12px; font-size: 11.5px; color: var(--text-dim); font-family: var(--mono); white-space: nowrap;
}

.loop-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.loop-meta { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 280px; }
.loop-turn-box { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--bg-2); }
.lt-label { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); letter-spacing: .12em; }
.lt-num { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--green); line-height: 1; }
.loop-reason { font-size: 14.5px; color: var(--text-mid); flex: 1; }
.loop-reason.is-no { color: var(--red); } .loop-reason.is-yes { color: var(--green); font-weight: 600; }
.loop-controls { display: flex; gap: 10px; }

@media (max-width: 820px) {
  .loop-stage { grid-template-columns: 1fr; }
  .loop-back { display: none; }
}

/* ---------- simulator ---------- */
.sim { border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.sim-controls { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; padding: 20px 22px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.sim-field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 240px; }
.sim-field-label { font-size: 12.5px; color: var(--text-dim); font-family: var(--mono); letter-spacing: .04em; }
.sim-select {
  font-family: var(--sans); font-size: 14.5px; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: 11px; padding: 12px 14px; cursor: pointer; width: 100%;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: right 18px center, right 13px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.sim-select:focus { outline: none; border-color: var(--teal); }
.sim-run { white-space: nowrap; }

.sim-condition-row { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); background: rgba(126,231,135,.03); }
.sim-cond-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--green); border: 1px solid rgba(126,231,135,.3); border-radius: 6px; padding: 3px 9px; flex-shrink: 0; }
.sim-condition { color: var(--text); font-size: 14px; word-break: break-word; }

.sim-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 0; }
.sim-terminal { border-right: 1px solid var(--border); }
.sim-status { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); transition: color .3s; }
.sim-status.active { color: var(--green); }
.sim-status.done { color: var(--green); font-weight: 700; }
.sim-log {
  font-family: var(--mono); font-size: 13px; padding: 18px 20px; min-height: 300px; max-height: 380px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
}
.sim-line { line-height: 1.55; }
.sim-line.cmd { padding-bottom: 8px; border-bottom: 1px dashed var(--border); margin-bottom: 4px; word-break: break-word; }
.sim-line.cont { color: var(--text-dim); padding-left: 4px; }
.sim-line.success { margin-top: 8px; font-weight: 640; padding: 10px 12px; background: rgba(126,231,135,.08); border: 1px solid rgba(126,231,135,.25); border-radius: 9px; }
.sim-line.eval.ok { font-weight: 600; }

.sim-side { padding: 20px 22px; display: flex; flex-direction: column; gap: 20px; background: rgba(255,255,255,.015); }
.sim-stat { display: flex; flex-direction: column; gap: 4px; }
.ss-label { font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
.ss-val { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.1; }
.ss-bar { height: 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; margin-top: 4px; }
.ss-bar-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--green)); transition: width .25s ease; }
.sim-note { font-size: 11.5px; color: var(--text-dim); margin: 0; line-height: 1.55; }

@media (max-width: 760px) {
  .sim-body { grid-template-columns: 1fr; }
  .sim-terminal { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ---------- case gallery ---------- */
.case-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.chip {
  cursor: pointer; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--text-mid);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--panel);
  transition: all .18s ease;
}
.chip:hover { color: var(--text); border-color: var(--text-dim); }
.chip.active { color: #06210c; background: var(--green); border-color: var(--green); font-weight: 700; }

.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.case-card {
  position: relative; display: flex; flex-direction: column; gap: 13px;
  padding: 24px 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.case-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(126,231,135,.4), transparent 40%); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .25s;
}
.case-card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: 0 22px 50px -28px rgba(0,0,0,.85); }
.case-card:hover::before { opacity: 1; }
.case-card.hidden { display: none; }
.case-top { display: flex; align-items: center; gap: 11px; }
.case-icon { font-size: 25px; line-height: 1; }
.case-tag { font-size: 11.5px; font-weight: 700; color: var(--teal); background: rgba(94,234,212,.1); border: 1px solid rgba(94,234,212,.22); border-radius: 999px; padding: 3px 11px; }
.case-num { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.case-title { font-size: 19px; font-weight: 720; margin: 0; letter-spacing: -.01em; }
.case-cmd { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 13px; }
.case-cmd code { color: var(--green); font-size: 12.3px; line-height: 1.55; word-break: break-word; display: block; }
.case-blurb { font-size: 14px; color: var(--text-mid); margin: 0; }
.case-tip { font-size: 13px; color: var(--text-mid); background: rgba(240,176,115,.06); border-left: 2px solid var(--amber); border-radius: 0 8px 8px 0; padding: 9px 13px; }
.case-tip-label { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--amber); letter-spacing: .1em; margin-right: 9px; }
.case-badge { font-family: var(--mono); font-size: 11.5px; color: var(--blue); }
.case-badge code { color: var(--blue); background: rgba(166,200,255,.1); padding: 1px 6px; border-radius: 5px; }
.case-try {
  margin-top: auto; cursor: pointer; font-family: var(--sans); font-size: 13.5px; font-weight: 640;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 10px 14px; transition: all .18s ease; text-align: center;
}
.case-try:hover { background: var(--green); color: #06210c; border-color: var(--green); }
.inline-try { color: var(--green); font-weight: 600; }

/* ---------- anatomy ---------- */
.anat { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; margin-bottom: 46px; }
.anat-code {
  font-family: var(--mono); font-size: clamp(15px, 2.1vw, 21px); line-height: 2.1; color: var(--text-mid);
  padding: 30px 26px; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--bg-2);
}
.anat-slash { color: var(--green); font-weight: 700; margin-right: 6px; }
.anat-part { border-radius: 7px; padding: 2px 6px; cursor: default; transition: background .2s, color .2s, box-shadow .2s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.anat-part[data-k="end"] { background: rgba(126,231,135,.14); color: #cdf3d2; }
.anat-part[data-k="check"] { background: rgba(94,234,212,.14); color: #c5f5ec; }
.anat-part[data-k="constraint"] { background: rgba(240,176,115,.14); color: #f7dec1; }
.anat-part[data-k="cap"] { background: rgba(166,200,255,.14); color: #d7e6ff; }
.anat-part.dim { background: transparent !important; color: var(--text-dim) !important; }
.anat-part.lit { box-shadow: 0 0 0 1px currentColor; }

.anat-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.anat-legend-item {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 13px;
  padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel);
  cursor: pointer; transition: border-color .2s, background .2s, transform .2s; outline: none;
}
.anat-legend-item:hover, .anat-legend-item.active, .anat-legend-item:focus-visible { border-color: var(--border-2); background: var(--panel-2); transform: translateX(3px); }
.anat-legend-item b { font-size: 14.5px; align-self: center; }
.anat-legend-item span:last-child { grid-column: 2; font-size: 12.8px; color: var(--text-dim); line-height: 1.5; }
.al-sw { grid-row: 1 / span 2; width: 14px; height: 14px; border-radius: 4px; align-self: center; }
.sw-end { background: var(--green); } .sw-check { background: var(--teal); } .sw-constraint { background: var(--amber); } .sw-cap { background: var(--blue); }

.design-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.dcard { padding: 24px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); position: relative; }
.dcard h3 { font-size: 17px; margin: 12px 0 8px; }
.dcard p { font-size: 14px; color: var(--text-mid); margin: 0; }
.dcard p em { color: var(--text); font-style: normal; font-weight: 600; }
.dcard-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 4px 10px; border-radius: 7px; }
.dcard.good { border-color: rgba(126,231,135,.3); } .dcard.good .dcard-tag { color: var(--green); background: rgba(126,231,135,.12); }
.dcard.bad { border-color: rgba(240,112,122,.3); } .dcard.bad .dcard-tag { color: var(--red); background: rgba(240,112,122,.12); }
.dcard.warn { border-color: rgba(240,176,115,.3); } .dcard.warn .dcard-tag { color: var(--amber); background: rgba(240,176,115,.12); }
.dcard code { color: var(--blue); }

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

/* ---------- compare table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); margin-bottom: 28px; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 17px 20px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: top; }
.cmp-table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); font-weight: 700; background: rgba(255,255,255,.02); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { color: var(--text); font-weight: 600; }
.cmp-table code { color: var(--green); background: var(--bg-2); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); }
.cmp-table .row-hl { background: rgba(126,231,135,.05); }
.cmp-table .row-hl td:first-child code { color: #06210c; background: var(--green); border-color: var(--green); }
.cmp-table tbody tr:hover { background: rgba(255,255,255,.025); }

.callout { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border: 1px solid rgba(94,234,212,.25); border-radius: var(--radius); background: rgba(94,234,212,.05); }
.callout-ico { font-size: 26px; color: var(--teal); line-height: 1; }
.callout p { margin: 0; font-size: 15px; color: var(--text-mid); }
.callout strong { color: var(--text); }
.callout code { color: var(--teal); }

/* ---------- meta cta ---------- */
.meta-cta { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 110px; }
.meta-inner {
  text-align: center; padding: 64px 32px; border-radius: 24px; position: relative; overflow: hidden;
  border: 1px solid var(--border-2);
  background: radial-gradient(120% 130% at 50% 0%, rgba(126,231,135,.12), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.meta-badge { display: inline-block; font-family: var(--mono); font-size: 12.5px; color: var(--green); border: 1px solid rgba(126,231,135,.3); background: rgba(126,231,135,.08); border-radius: 999px; padding: 6px 15px; margin-bottom: 22px; }
.meta-inner h2 { font-size: clamp(26px, 4vw, 42px); margin: 0 0 16px; letter-spacing: -.015em; }
.meta-inner p { max-width: 640px; margin: 0 auto 30px; color: var(--text-mid); font-size: 16px; }
.meta-inner .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 30px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-mid); text-decoration: none; font-size: 13.5px; transition: color .18s; }
.footer-col a:hover { color: var(--green); }
.footer-tag { color: var(--text-dim); font-size: 13.5px; margin: 12px 0 0; }
.footer-note { color: var(--text-dim); font-size: 12.5px; line-height: 1.6; margin: 0; }
.footer-note code { color: var(--text-mid); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 30px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 12.5px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
.case-card[data-reveal] { transition-delay: calc(var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cursor, .eyebrow .dot, .scroll-hint { animation: none !important; }
}

/* ---------- confetti ---------- */
.confetti-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }
