/* ============================================================
   YYSI.COM — the unofficial record of the Great Renaming
   ============================================================ */

:root {
  --bg: #090d15;
  --bg-2: #0e1420;
  --bg-3: #131b2a;
  --line: #1d2635;
  --line-strong: #2b3648;
  --ink: #edeff7;
  --muted: #97a0b5;
  --dim: #5d6778;
  --red: #e5484d;
  --red-dark: #b52f36;
  --gold: #f2c14e;
  --gold-deep: #d9a52e;
  --green: #3ecf8e;
  --amber: #e9a13b;
  --blue: #6c9eff;
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #1a1204; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- ticker ---------- */

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding: 7px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  animation: ticker 36s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 13, 21, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 58px;
}
.brand {
  font-weight: 900; font-size: 19px; letter-spacing: 0.04em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-si { color: var(--gold); }
.brand-dot { color: var(--dim); font-weight: 700; font-size: 15px; }
.nav-links {
  display: flex; gap: 22px; margin-left: auto;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--gold); text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: var(--gold); color: #1a1204;
  box-shadow: 0 0 0 1px var(--gold-deep), 0 6px 22px rgba(242, 193, 78, 0.18);
}
.btn-gold:hover { background: #ffd76e; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 14px; font-size: 12.5px; }

/* ---------- hero ---------- */

.hero {
  padding: 92px 0 84px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(242, 193, 78, 0.09), transparent 65%),
    radial-gradient(ellipse 40% 40% at 85% 110%, rgba(229, 72, 77, 0.06), transparent 60%),
    var(--bg);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 34px;
}
.hero-title {
  font-size: clamp(88px, 17vw, 190px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center;
  gap: 0.12em;
  user-select: none;
}
.hero-arrow { color: var(--dim); font-weight: 700; }

.ai-struck { position: relative; color: var(--muted); }
.ai-struck::after {
  content: "";
  position: absolute; left: -6%; top: 50%;
  width: 112%; height: 0.07em;
  background: var(--red);
  transform: rotate(-7deg);
  border-radius: 99px;
  box-shadow: 0 0 24px rgba(229, 72, 77, 0.55);
}

.si-stamped { position: relative; color: var(--gold); }
.si-stamped::before {
  content: "";
  position: absolute; inset: -0.08em -0.1em;
  border: 0.045em solid var(--red);
  border-radius: 0.08em;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 0.018em rgba(229, 72, 77, 0.4) inset,
              0 0 40px rgba(229, 72, 77, 0.28);
}
.si-stamped span {
  position: relative;
  display: inline-block;
  transform: rotate(-6deg);
  text-shadow: 0 0 46px rgba(242, 193, 78, 0.45);
}

.hero-sub {
  margin-top: 36px;
  font-size: clamp(21px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-body {
  max-width: 660px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17.5px;
}
.hero-body strong { color: var(--ink); }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip-register { border-color: rgba(229, 72, 77, 0.45); }
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 8px 16px;
  background: var(--bg-2);
}
.chip strong { color: var(--gold); }
.hero-cta {
  margin-top: 34px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.fineprint {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.05em;
  color: var(--dim);
}
.hero .fineprint { margin-top: 40px; }

/* ---------- sections ---------- */

.section { padding: 92px 0; border-top: 1px solid var(--line); }
#timeline { scroll-margin-top: 70px; }
#tracker, #dictionary, #tools { scroll-margin-top: 70px; }

.section-head { margin-bottom: 46px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800; letter-spacing: -0.015em; line-height: 1.12;
}

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  border-left: 1px solid var(--line-strong);
  margin-left: 6px;
}
.tl-item {
  position: relative;
  padding: 0 0 40px 34px;
  max-width: 720px;
}
.tl-item:last-child { padding-bottom: 6px; }
.tl-item::before {
  content: "";
  position: absolute; left: -5.5px; top: 9px;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line-strong);
}
.tl-future::before { background: var(--bg-3); box-shadow: 0 0 0 4px var(--bg), 0 0 0 1px var(--line-strong) inset; }
.tl-date {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 8px;
}
.tl-future .tl-date { color: var(--dim); }
.tl-body { color: var(--muted); }
.tl-body strong { color: var(--ink); }
.tl-future .tl-body { color: var(--dim); font-style: italic; }
.section .fineprint { margin-top: 30px; }

/* ---------- tables ---------- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  background: var(--bg-2);
}
.board { width: 100%; border-collapse: collapse; min-width: 640px; }
.board th {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--dim);
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.board td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.board tr:last-child td { border-bottom: none; }
.board tr:hover td { background: rgba(242, 193, 78, 0.025); }
.board td:first-child { font-weight: 600; }
.dim { color: var(--dim); }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid;
  white-space: nowrap;
}
.b-green { color: var(--green); border-color: rgba(62, 207, 142, 0.45); background: rgba(62, 207, 142, 0.08); }
.b-amber { color: var(--amber); border-color: rgba(233, 161, 59, 0.45); background: rgba(233, 161, 59, 0.08); }
.b-red   { color: var(--red);   border-color: rgba(229, 72, 77, 0.5);  background: rgba(229, 72, 77, 0.08); }
.b-gold  { color: var(--gold);  border-color: rgba(242, 193, 78, 0.5); background: rgba(242, 193, 78, 0.08); }

/* ---------- tools ---------- */

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.tool {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  padding: 30px 28px;
}
.tool-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 14px;
}
.tool h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 20px; }

.tool textarea, .tool input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
  resize: vertical;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.tool textarea:focus, .tool input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.12);
}

.replacer-flow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--dim);
  text-align: center;
  padding: 12px 0;
}

.replacer-out-wrap { position: relative; }
.replacer-out {
  display: block;
  min-height: 128px;
  background: rgba(62, 207, 142, 0.035);
  border: 1px solid rgba(62, 207, 142, 0.25);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 14px; line-height: 1.6;
  color: #b8ecd2;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  max-height: 300px;
}
.replacer-out:empty::before {
  content: "Your compliant text will appear here.";
  color: var(--dim);
}

.stamp-eo {
  position: absolute;
  top: -15px; right: 14px;
  transform: rotate(-8deg);
  font-family: var(--font-mono);
  font-weight: 600; font-size: 12px; letter-spacing: 0.14em;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 5px;
  padding: 5px 10px;
  background: rgba(9, 13, 21, 0.88);
  box-shadow: 0 0 34px rgba(229, 72, 77, 0.3);
  animation: stamp-in 0.28s cubic-bezier(0.2, 1.6, 0.4, 1);
  pointer-events: none;
}
@keyframes stamp-in {
  from { transform: rotate(-8deg) scale(1.7); opacity: 0; }
  to   { transform: rotate(-8deg) scale(1); opacity: 1; }
}

.tool-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; gap: 12px;
}
.mono-dim { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--dim); }

.renamer-row { display: flex; gap: 10px; }
.renamer-row input { flex: 1; }

.name-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}
.name-card {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.1s ease;
}
.name-card:hover { border-color: var(--gold); transform: translateX(3px); }
.name-card .nm { font-weight: 700; font-size: 15.5px; color: var(--gold); word-break: break-word; }
.name-card .nd { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--dim); margin-top: 3px; }
.name-card.copied { border-color: var(--green); }
.name-card.copied .nd { color: var(--green); }

/* ---------- share ---------- */

.share { text-align: center; }
.share-inner { max-width: 640px; }
.share .section-eyebrow { color: var(--gold); }
.share h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; letter-spacing: -0.015em; margin-bottom: 30px; }
.share-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 52px 0 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}
.brand-footer { font-size: 17px; margin-bottom: 12px; }
.footer .mono-dim { margin-bottom: 10px; letter-spacing: 0.18em; }
.footer .fineprint { line-height: 1.9; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 60px; }
  .hero-title { gap: 0.06em; }
  .section { padding: 68px 0; }
  .tool { padding: 24px 20px; }
  .hero-cta .btn { width: 100%; text-align: center; }
}
