/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  --blurple: #5865f2;
  --blurple-bright: #7d8bff;
  --blurple-deep: #4752c4;
  --bg: #0e0f16;
  --bg-2: #16171f;
  --bg-3: #1d1f2a;
  --panel: #1a1c26;
  --line: #2a2d3a;
  --text: #f4f5fb;
  --muted: #a6a9be;
  --dim: #71748c;
  --green: #43b581;
  --amber: #faa61a;
  --red: #f04747;
  --grey: #36393f;
  --radius: 18px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(60rem 40rem at 80% -10%, rgba(88,101,242,0.18), transparent 60%),
    radial-gradient(50rem 40rem at -10% 20%, rgba(88,101,242,0.10), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; }
code { font-family: var(--mono); }

/* ─── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(14,15,22,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; text-decoration: none; font-size: 1.02rem;
}
.mark { width: 30px; height: 30px; border-radius: 8px; filter: drop-shadow(0 3px 8px rgba(88,101,242,0.5)); }
.mark.small { width: 26px; height: 26px; }
.ghost-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none;
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  transition: all 0.18s ease;
}
.ghost-link:hover { color: var(--text); border-color: var(--blurple); background: rgba(88,101,242,0.12); }

/* ─── Shared section scaffolding ──────────────────────────── */
.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem);
}
.band h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  font-weight: 850;
  text-align: center;
}
.section-lede, .section-foot {
  text-align: center; color: var(--muted);
  max-width: 46rem; margin: 1rem auto 0; font-size: 1.08rem;
}
.section-foot { margin-top: 2.5rem; }
.section-foot em, .section-lede em { color: var(--text); font-style: normal; font-weight: 700; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.kicker {
  display: inline-block;
  color: var(--blurple-bright); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 900; letter-spacing: -0.035em;
}
.hero h1 .again {
  color: var(--blurple-bright);
  position: relative; display: inline-block;
}
.hero h1 .again::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.08em; height: 0.16em;
  background: var(--blurple); border-radius: 4px; transform: rotate(-1.5deg);
}
.lede { margin-top: 1.4rem; font-size: 1.2rem; color: var(--muted); max-width: 32rem; }
.lede strong { color: var(--text); }

.downloads { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.downloads.center { justify-content: center; }
.dl {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 0.6rem 1.25rem; border-radius: 12px; text-decoration: none;
  background: var(--bg-3); border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  min-width: 108px;
}
.dl .os { font-weight: 700; font-size: 1rem; }
.dl .ext { font-size: 0.78rem; color: var(--dim); font-family: var(--mono); }
.dl:hover { transform: translateY(-2px); border-color: var(--blurple); }
.dl.primary {
  background: var(--blurple); border-color: var(--blurple);
  box-shadow: 0 8px 24px rgba(88,101,242,0.4);
}
.dl.primary .ext { color: rgba(255,255,255,0.8); }
.dl.primary:hover { background: var(--blurple-bright); }
.fineprint { margin-top: 1rem; font-size: 0.85rem; color: var(--dim); }

/* ─── Hero demo (the gag) ─────────────────────────────────── */
.hero-demo { display: flex; flex-direction: column; align-items: center; }
.fake-window {
  width: 100%; max-width: 360px; aspect-ratio: 4 / 3;
  background: var(--grey); border-radius: 14px; overflow: hidden;
  border: 1px solid #23262e;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
  position: relative;
}
.titlebar {
  height: 34px; background: #202225; display: flex; align-items: center; gap: 7px;
  padding: 0 12px; position: relative; z-index: 2;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: var(--red); } .dot.amber { background: var(--amber); } .dot.green { background: var(--green); }
.titlebar-label {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 0.8rem; color: var(--dim); font-weight: 600;
}
.screen {
  position: absolute; inset: 34px 0 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; transition: opacity 0.4s ease;
}
.stuck-screen { background: var(--grey); }
.fixed-screen { background: #1e2b24; opacity: 0; pointer-events: none; }
.fake-window[data-state="fixed"] .stuck-screen { opacity: 0; }
.fake-window[data-state="fixed"] .fixed-screen { opacity: 1; }

.ring { width: 46px; height: 46px; }
.ring-track { stroke: rgba(255,255,255,0.12); }
.ring-spin {
  stroke: #b9becb; stroke-dasharray: 90 126; transform-origin: center;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stuck-text { color: #c7cad3; font-weight: 600; font-size: 0.98rem; }
.stuck-sub { color: #82858f; font-size: 0.82rem; }

.check svg { width: 58px; height: 58px; }
.check-path { stroke: var(--green); stroke-dasharray: 60; stroke-dashoffset: 60; }
.fake-window[data-state="fixed"] .check-path { animation: draw 0.5s 0.1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fixed-text { color: #eafff4; font-weight: 800; font-size: 1.5rem; }
.fixed-sub { color: #8fd9b6; font-size: 0.85rem; }

.fix-btn {
  margin-top: 1.5rem; padding: 0.9rem 2.4rem; border: none; cursor: pointer;
  background: var(--blurple); color: #fff; font-weight: 800; font-size: 1.15rem;
  border-radius: 12px; font-family: var(--font);
  box-shadow: 0 10px 26px rgba(88,101,242,0.45);
  transition: transform 0.12s ease, background 0.15s ease;
}
.fix-btn:hover { background: var(--blurple-bright); transform: translateY(-2px); }
.fix-btn:active { transform: translateY(1px) scale(0.98); }
.fix-btn.fixing { background: var(--blurple-deep); cursor: progress; }
.demo-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--dim); text-align: center; max-width: 22rem; }

/* ─── "Been there" counter ────────────────────────────────── */
.counter { text-align: center; padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
.counter-eyebrow {
  color: var(--blurple-bright); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.counter-number {
  font-size: clamp(3.4rem, 12vw, 6rem); font-weight: 900; line-height: 1;
  letter-spacing: -0.03em; color: var(--blurple-bright);
  font-variant-numeric: tabular-nums; margin: 0.4rem 0 0.2rem;
  text-shadow: 0 6px 30px rgba(88, 101, 242, 0.45);
  transition: transform 0.15s ease;
}
.counter-caption { color: var(--muted); font-size: 1.08rem; max-width: 34rem; margin: 0 auto; }
.been-btn { margin-top: 1.5rem; }
.been-btn.counted { background: var(--bg-3); border: 1px solid var(--blurple); box-shadow: none; cursor: default; }
.been-btn.counted:hover { background: var(--bg-3); transform: none; }
.counter.is-down .counter-number { color: var(--dim); text-shadow: none; }

/* ─── Problem cards ───────────────────────────────────────── */
.cards { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--blurple); }
.card h3 { font-size: 1.15rem; margin: 1rem 0 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.mini-window {
  height: 84px; border-radius: 10px; margin: 0 auto; width: 90%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #23262e;
}
.mini-window.grey { background: repeating-linear-gradient(45deg,#3a3d44,#3a3d44 10px,#36393f 10px,#36393f 20px); }
.mini-window.blank { background: #313338; }
.mini-window.spin { background: var(--grey); }
.tiny-ring {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15); border-top-color: #b9becb;
  animation: spin 0.9s linear infinite; display: block;
}

/* ─── Fix steps ───────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem; align-items: stretch; margin-top: 2.8rem;
}
.step {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.5rem; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blurple); color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(88,101,242,0.4); margin-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.96rem; }
.step-arrow { display: flex; align-items: center; color: var(--blurple-bright); font-size: 1.8rem; font-weight: 800; }

/* ─── Stay logged in ──────────────────────────────────────── */
.loggedin { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.loggedin h2 { text-align: left; }
.loggedin-copy p { color: var(--muted); margin-top: 1.2rem; font-size: 1.06rem; }
.loggedin-copy strong { color: var(--text); }
.loggedin-copy code {
  background: var(--bg-3); padding: 0.1rem 0.4rem; border-radius: 5px;
  font-size: 0.86em; border: 1px solid var(--line); color: var(--blurple-bright);
}
.aside { font-size: 0.95rem !important; color: var(--dim) !important; }

.deletion-table { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.8rem; }
.col {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.2rem; position: relative;
}
.col.never { border-color: rgba(67,181,129,0.5); background: rgba(67,181,129,0.06); }
.col h3 { font-size: 0.95rem; margin-bottom: 0.7rem; }
.col.always h3 { color: var(--muted); }
.col.deep h3 { color: var(--blurple-bright); }
.col.never h3 { color: var(--green); }
.col ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.col li { font-family: var(--mono); font-size: 0.8rem; color: var(--text); }
.col li code { font-family: var(--mono); color: var(--text); }
.col .why { color: var(--green); font-family: var(--font); font-size: 0.72rem; }
.col.deep li code { background: var(--bg-3); padding: 0 0.25rem; border-radius: 4px; }
.tag {
  display: inline-block; margin-top: 0.9rem; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim);
  padding: 0.2rem 0.55rem; border: 1px solid var(--line); border-radius: 999px;
}
.tag.safe { color: var(--green); border-color: rgba(67,181,129,0.5); }

/* ─── Versus ──────────────────────────────────────────────── */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2.8rem; }
.vs-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem;
}
.vs-card.old { border-color: rgba(240,71,71,0.35); }
.vs-card.new { border-color: rgba(88,101,242,0.5); }
.vs-label {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: rgba(240,71,71,0.15); color: #ff8b8b;
}
.vs-label.good { background: rgba(67,181,129,0.15); color: #7fe6b6; }
.vs-card p { color: var(--muted); font-size: 0.95rem; }
.vs-card p code { color: var(--blurple-bright); font-size: 0.88em; }
.vs-card p em { color: var(--text); font-style: italic; }

.big-button-frame {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 150px; background: var(--bg-2); border-radius: 12px; border: 1px solid var(--line);
}
.big-button {
  background: var(--blurple); color: #fff; font-weight: 800; font-size: 1.35rem;
  padding: 1rem 2.6rem; border-radius: 12px;
  box-shadow: 0 10px 26px rgba(88,101,242,0.45);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ─── Terminal ────────────────────────────────────────────── */
.terminal {
  background: #0b0c10; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.terminal.wide { max-width: 40rem; margin: 2.4rem auto 0; }
.terminal-bar { height: 30px; background: #17181d; display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.terminal pre { padding: 1.1rem 1.3rem; overflow-x: auto; }
.terminal code { font-family: var(--mono); font-size: 0.86rem; color: #d6d9e4; line-height: 1.7; white-space: pre; }
.terminal .prompt { color: var(--green); user-select: none; }
.terminal .comment { color: #61647a; }
.terminal .cursor { color: var(--blurple-bright); animation: blink 1s step-end infinite; }
.terminal .wrap { color: #61647a; }
@keyframes blink { 50% { opacity: 0; } }

/* ─── Nuclear / deep clean ────────────────────────────────── */
.nuclear-inner {
  background: linear-gradient(135deg, rgba(250,166,26,0.10), rgba(88,101,242,0.10));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem); display: flex; gap: 1.6rem; align-items: center;
}
.nuclear-icon { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.nuclear h2 { text-align: left; font-size: clamp(1.4rem,3.4vw,2rem); }
.nuclear p { color: var(--muted); margin-top: 0.8rem; }
.nuclear strong { color: var(--text); }

/* ─── Badge strip ─────────────────────────────────────────── */
.badges {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1rem clamp(1.1rem,4vw,2.5rem);
  display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center;
}
.badge {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-size: 0.9rem; font-weight: 600; color: var(--muted);
}
.badge.highlight {
  background: var(--blurple); border-color: var(--blurple); color: #fff;
}
.badge.highlight span { opacity: 0.82; font-weight: 400; }

/* ─── CLI flags ───────────────────────────────────────────── */
.flags {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 0.7rem;
  max-width: 40rem; margin: 1.6rem auto 0;
}
.flag {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 1rem;
}
.flag code { color: var(--blurple-bright); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.flag span { color: var(--muted); font-size: 0.86rem; }

/* ─── Final CTA ───────────────────────────────────────────── */
.final-cta { text-align: center; }
.final-cta .downloads { margin-top: 2rem; }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.5rem clamp(1.1rem,4vw,2.5rem);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; }
.footer-note { color: var(--muted); font-size: 0.92rem; }
.footer-note a { color: var(--blurple-bright); text-decoration: none; }
.footer-note a:hover { text-decoration: underline; }
.footer-disclaimer { color: var(--dim); font-size: 0.8rem; max-width: 34rem; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-demo { order: 2; }
  .lede, .kicker { margin-left: auto; margin-right: auto; }
  .downloads { justify-content: center; }
  .loggedin { grid-template-columns: 1fr; }
  .loggedin h2 { text-align: center; }
  .nuclear-inner { flex-direction: column; text-align: center; }
  .nuclear h2 { text-align: center; }
}
@media (max-width: 720px) {
  .cards.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-content: center; padding: 0.2rem 0; }
  .deletion-table { grid-template-columns: 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .flags { grid-template-columns: 1fr; }
  .badge.highlight span { display: none; }
}
@media (max-width: 420px) {
  .wordmark span { display: none; }
  .dl { flex: 1; }
}

/* ─── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-spin, .tiny-ring, .big-button, .cursor { animation: none !important; }
  .ring-spin { stroke-dasharray: 90 40; }
  .check-path { stroke-dashoffset: 0; }
  * { transition-duration: 0.01ms !important; }
}
