/* =====================================================================
   OnionPlay onion landing page
   Palette matches onionplay.st: gold #ffcc00, lime #32cd32, near-black.
   Self-hosted Quicksand. No third-party requests.
   ===================================================================== */

@font-face {
  font-family: "Quicksand";
  src: url("fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08080a;
  --card: #111116;
  --card-2: #16161c;
  --border: #26262e;
  --text: #f4f4f7;
  --muted: #a9a9b6;
  --gold: #ffcc00;
  --gold-soft: rgba(255, 204, 0, 0.14);
  --green: #32cd32;
  --green-soft: rgba(50, 205, 50, 0.14);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Ambient gold/green glow, purely decorative and CSS-only. */
.glow {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(closest-side, rgba(255, 204, 0, 0.10), transparent 70%) 18% 0 / 46% 100% no-repeat,
    radial-gradient(closest-side, rgba(50, 205, 50, 0.08), transparent 70%) 82% 4% / 44% 100% no-repeat;
}

.topbar, main, .footer { position: relative; z-index: 1; }

.topbar {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo { display: block; height: 30px; width: auto; }

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(50, 205, 50, 0.45);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  white-space: nowrap;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3rem;
}

/* ---- Hero ---- */
.hero { text-align: center; padding: 2.5rem 0 1rem; }

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  margin: 0 auto 0.75rem;
  max-width: 20ch;
  font-size: clamp(1.75rem, 5vw, 2.9rem);
  line-height: 1.15;
  font-weight: 700;
}

.hl { color: var(--gold); }

.lede {
  margin: 0 auto 1.75rem;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.subtitle {
  margin: 0 auto 0.6rem;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.01em;
}

.domain-card {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid rgba(255, 204, 0, 0.30);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: 0 22px 60px -30px rgba(255, 204, 0, 0.45);
}

.card-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.domain {
  display: inline-block;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gold);
  text-decoration: none;
  word-break: break-all;
  line-height: 1.2;
}

.domain:hover, .domain:focus-visible { text-decoration: underline; }

.card-hint { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.88rem; }

/* ---- Buttons (CTA) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 12px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.btn:hover,
.btn:focus-visible {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.30), 0 0 16px rgba(255, 204, 0, 0.38);
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.55);
  outline: none;
}

.btn:active { transform: translateY(1px); }

.btn-primary { border-color: rgba(255, 204, 0, 0.55); font-weight: 700; }
.btn-primary:hover,
.btn-primary:focus-visible { background: transparent; }

.btn-block { display: flex; width: 100%; }

.domain-btn {
  margin: 0.35rem 0 0;
  padding: 0.75rem 1.25rem;
  font-size: clamp(1.35rem, 5vw, 2.1rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
  word-break: break-all;
}

.brand-btn { background: none; border: 0; padding: 0; color: inherit; }
.brand-btn:hover,
.brand-btn:focus-visible { background: none; border: 0; color: inherit; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(50, 205, 50, 0.6);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(50, 205, 50, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(50, 205, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(50, 205, 50, 0); }
}

.addr {
  display: block;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.82rem, 2.4vw, 1.05rem);
  color: var(--green);
  overflow-wrap: anywhere;
  word-break: break-all;
  padding: 0.85rem 0.95rem;
  background: #0a0a0d;
  border: 1px solid rgba(50, 205, 50, 0.3);
  border-radius: 10px;
}

/* One click selects the whole address, no JavaScript required. */
.selectable { user-select: all; }

.addr-hint {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.qr {
  display: block;
  margin: 1.25rem auto 0;
  width: 190px;
  height: 190px;
  background: #fff;
  padding: 9px;
  border-radius: 12px;
  box-shadow: 0 12px 40px -22px rgba(50, 205, 50, 0.6);
}

/* ---- Panels ---- */
.panel {
  margin: 1rem 0 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-align: center;
}

h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 0.8rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--green), var(--gold));
}

p { margin: 0.5rem 0; }

strong { font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  color: var(--gold);
}

/* ---- Mirrors ---- */
.mirrors { list-style: none; margin: 0.85rem 0 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); grid-auto-rows: 1fr; }
.mirrors li { margin: 0; }
.mirrors .btn { width: 100%; height: 100%; }

/* ---- Steps ---- */
.steps { list-style: none; counter-reset: step; margin: 0.85rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step) ". "; color: var(--gold); font-weight: 700; }

.note { color: var(--muted); font-size: 0.94rem; margin-top: 1rem; }

.tips { list-style: none; margin: 0.85rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.tips li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 0.5rem; }

.links { list-style: none; margin: 0.85rem 0 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); grid-auto-rows: 1fr; }
.links .btn { width: 100%; height: 100%; }

.features { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.features li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 0.5rem; }

.toc ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.toc li { display: flex; }
.toc .btn { width: 100%; height: 100%; padding: 0.6rem 0.9rem; font-weight: 600; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.qa { border: 1px solid var(--border); border-radius: 12px; background: var(--card-2); padding: 0.9rem 1.1rem; }
.qa h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 600; color: var(--gold); }
.qa p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.verify { border-color: rgba(255, 204, 0, 0.35); }

.panel-onion { border-color: rgba(50, 205, 50, 0.30); }
.panel-onion .addr { margin-top: 0.85rem; }

/* ---- Footer ---- */
.footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.fineprint { font-size: 0.82rem; color: #7d7d8a; }

a { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; height: auto; }
.btn { min-width: 0; }

@media (max-width: 720px) {
  .toc ul { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { padding: 1.25rem 0.9rem 3rem; }
  .badge { display: none; }
  .topbar { padding: 0.9rem 0.9rem; }
  .hero { padding: 1.5rem 0 0.5rem; }
  .panel { padding: 1.1rem 1rem; }
  h1 { max-width: none; }
  .qr { width: 150px; height: 150px; }
  .domain-btn { padding: 0.65rem 0.9rem; font-size: clamp(1.15rem, 7vw, 1.6rem); }
  .footer { padding: 1.5rem 0.9rem 2.5rem; }
  .glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}
