/* RugRadar — local stylesheet only. System fonts. No third-party scripts. */
:root {
  --bg: #07090f;
  --bg-elev: #0e131c;
  --bg-card: #141925;
  --bg-card-hover: #191f2d;
  --line: #2a3142;
  --line-soft: #1c2230;
  --text: #f1f4fa;
  --muted: #b7c0d0;
  --accent: #3ddec8;
  --accent-text: #06221d;
  --accent-dim: rgba(61, 222, 200, 0.14);
  --accent-glow: rgba(61, 222, 200, 0.28);
  --ok: #4ecf8c;
  --ok-bg: rgba(78, 207, 140, 0.12);
  --warn: #e8b84a;
  --warn-bg: rgba(232, 184, 74, 0.12);
  --risk: #ff9aa0;
  --risk-bg: rgba(239, 107, 115, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100%;
}

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 222, 200, 0.08), transparent 55%),
    linear-gradient(180deg, #07090f 0%, #0a0d14 100%);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7aeee0;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 15, 0.82);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  min-width: 2.75rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switch a + a {
  border-left: 1px solid var(--line);
}

.lang-switch a[aria-current="page"] {
  background: var(--accent-dim);
  color: var(--accent);
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current="page"]:hover {
  color: var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.2rem 0 3.6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.tagline {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 0 0 1px rgba(61, 222, 200, 0.15), 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
  color: var(--accent-text);
  background: #62ead7;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

/* Radar visual */
.radar-stage {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(61, 222, 200, 0.12) 0 8%, transparent 9%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 38px, rgba(61, 222, 200, 0.16) 39px, transparent 40px),
    radial-gradient(circle at 50% 50%, #0b1516, #07090f 72%);
  border: 1px solid #1e3f3a;
  box-shadow: inset 0 0 60px rgba(61, 222, 200, 0.08), 0 0 80px rgba(61, 222, 200, 0.08);
  overflow: hidden;
}

.radar-stage::before,
.radar-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.radar-stage::before {
  width: 1px;
  height: 100%;
  background: rgba(61, 222, 200, 0.18);
  box-shadow: 1000px 0 0 rgba(61, 222, 200, 0.18);
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(61, 222, 200, 0.38), rgba(61, 222, 200, 0.05) 18%, transparent 32%);
  animation: sweep 6.5s linear infinite;
  transform-origin: 50% 50%;
}

.radar-blip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  top: 28%;
  left: 68%;
}

.radar-caption {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .radar-sweep,
  .btn {
    animation: none;
    transition: none;
  }
}

/* Sections */
section {
  padding: 1.2rem 0 3.2rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.card-icon svg {
  width: 36px;
  height: 36px;
}

/* Example report */
.report-frame {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: var(--shadow);
  max-width: 520px;
}

.report-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.tg {
  background: #17212b;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #243241;
  font-family: var(--font);
}

.tg-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: #1d2733;
  border-bottom: 1px solid #243241;
}

.tg-bar strong {
  display: block;
  font-size: 0.95rem;
}

.tg-bar span {
  display: block;
  color: #9db0c2;
  font-size: 0.72rem;
}

.tg-body {
  padding: 0.9rem;
}

.tg-bubble {
  background: #182533;
  border-radius: 14px 14px 14px 4px;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e8eef5;
}

.tg-meta {
  color: #8ea0b3;
  font-size: 0.78rem;
  margin: 0 0 0.55rem;
  font-family: var(--mono);
}

.tg-token {
  margin: 0 0 0.85rem;
}

.tg-token strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.signal-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.status {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  margin-top: 0.12rem;
}

.status-ok { color: var(--ok); background: var(--ok-bg); }
.status-warn { color: var(--warn); background: var(--warn-bg); }
.status-risk { color: var(--risk); background: var(--risk-bg); }

.signal-list small {
  display: block;
  color: #9db0c2;
  font-size: 0.8rem;
}

.report-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36rem;
}

/* Pricing */
.pricing {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.price-card.featured {
  border-color: rgba(61, 222, 200, 0.45);
  box-shadow: 0 0 0 1px rgba(61, 222, 200, 0.08), 0 16px 40px rgba(61, 222, 200, 0.06);
}

.price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.price {
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.price span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--warn);
}

.price-card ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
}

.price-card li + li {
  margin-top: 0.35rem;
}

/* Disclaimer */
.disclaimer {
  background: #15110c;
  border: 1px solid #3a3223;
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  color: #e6d9b8;
}

.disclaimer h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--warn);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.disclaimer p {
  margin: 0;
}

.disclaimer p + p {
  margin-top: 0.45rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-inner p {
  margin: 0;
}

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

@media (min-width: 980px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 4.4rem 0 4.6rem;
  }
}

@media (max-width: 719px) {
  .hero {
    padding: 2.2rem 0 2.5rem;
  }
  .radar-stage {
    width: min(100%, 250px);
  }
}

/* ---- pricing.html (draft) */
.draft-banner {
  border: 1px dashed var(--warn);
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 24px;
  font-weight: 600;
}
.checkout-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
}
.checkout-title { margin: 0 0 8px; font-weight: 700; }
.checkout-facts { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: 0.92rem; }
.checkout-facts li + li { margin-top: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); margin: 10px 0; }
.consent input { margin-top: 4px; }
.pay-btn { width: 100%; margin-top: 8px; }
.pay-btn[disabled], .manage .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.pay-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.manage { margin-top: 32px; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.manage h3 { margin-top: 0; }

/* Public coming-soon adjustments (source stylesheet left unchanged) */
.hero-copy h1 {
  font-size: clamp(1.55rem, 4.4vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 16.5em;
}

.brand-name {
  white-space: nowrap;
}

.btn[aria-disabled="true"] {
  cursor: default;
}

.btn[aria-disabled="true"]:hover {
  transform: none;
}

.launch-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--text);
}

.page-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}


.coming-soon-note {
  margin-top: 1rem;
}

.footer-nav a[aria-current="page"] {
  color: var(--text);
}

/* ---- SEO content pages (2026-11-15): main nav, FAQ, blog, glossary */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: var(--bg-card);
}

@media (max-width: 559px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.55rem 0;
    gap: 0.4rem 1rem;
  }
  .header-nav {
    width: 100%;
    justify-content: space-between;
  }
  .site-nav a {
    padding-inline: 0.5rem;
  }
}

.page {
  padding: 2.2rem 0 3.2rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--line);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--text);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.6rem;
  max-width: 48rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0 1.15rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.more {
  margin: 1.2rem 0 0;
  color: var(--muted);
}

/* Article */
.prose-wrap {
  max-width: 46rem;
}

.article-head {
  margin-bottom: 1.6rem;
}

.article-meta {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 700;
  font-size: 0.82rem;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.05rem;
  color: #d9dfea;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  scroll-margin-top: 5.5rem;
}

.prose strong {
  color: var(--text);
}

.lede {
  font-size: 1.15rem;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.2rem 0.4rem;
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
}

.toc-title {
  margin: 0 0 0.5rem !important;
  font-weight: 700;
  color: var(--text) !important;
}

.prose-wrap .disclaimer {
  margin-top: 2.4rem;
}

/* Blog index */
.post-list {
  display: grid;
  gap: 0.9rem;
  max-width: 48rem;
}

.post-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card p + p {
  margin-top: 0.7rem;
}

.post-link {
  font-weight: 700;
}

/* Glossary */
.term-index ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 52rem;
}

.term-index a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
}

.term-index a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.glossary {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  max-width: 48rem;
}

.term {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  scroll-margin-top: 5.5rem;
}

.term:target {
  border-color: var(--accent);
}

.term dt {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}

.term dd {
  margin: 0;
  color: var(--muted);
}

.page .disclaimer {
  margin-top: 2rem;
  max-width: 48rem;
}

/* Waitlist form is built but kept hidden until the privacy statement is live. */
section#waitlist[hidden] { display: none !important; }
