/* Shared stylesheet for the /rate/* and /tier-list-maker/ landing pages.
   Mirrors the design tokens and class names of the main landing page
   (index.html) so the pages read as one site. Keep in sync when the
   landing look changes. */

:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --bg-alt: #0f0f17;
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --violet-lighter: #c4b5fd;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--violet-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--violet-lighter), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
}

section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 12px auto 56px;
  font-size: 1.05rem;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 16px;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.logo svg {
  flex-shrink: 0;
}

.nav-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--violet-lighter);
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.45);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(124, 58, 237, 0.15);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .logo {
    font-size: 0.95rem;
  }

  .nav-cta {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 70px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), rgba(124, 58, 237, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.06;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 34px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 14px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #a78bfa);
  color: #fff;
  box-shadow: 0 10px 34px rgba(124, 58, 237, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(124, 58, 237, 0.6);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.fine-print {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Example board ---------- */
.board {
  width: 100%;
  max-width: 420px;
  margin: 48px auto 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: left;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(124, 58, 237, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.board-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 700;
}

.tier-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.tier-chip {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.tier-chip.s {
  background: linear-gradient(135deg, #c4b5fd, #7c3aed);
}
.tier-chip.a {
  background: rgba(167, 139, 250, 0.55);
}
.tier-chip.b {
  background: rgba(167, 139, 250, 0.35);
  color: #ece9fe;
}
.tier-chip.c {
  background: rgba(167, 139, 250, 0.2);
  color: #d9d5f0;
}
.tier-chip.d {
  background: rgba(167, 139, 250, 0.1);
  color: var(--text-muted);
}

.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.board-row:last-child {
  border-bottom: none;
}

.rank {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rank.gold {
  background: linear-gradient(135deg, #fde68a, #eab308);
  color: #201700;
}
.rank.silver {
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  color: #14181f;
}
.rank.bronze {
  background: linear-gradient(135deg, #e0a374, #b45309);
  color: #1c0f00;
}

.item-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stars {
  position: relative;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.16);
  width: 5.6em;
}

.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--violet-light);
}

.total-badge {
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: var(--violet-lighter);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 9px;
  border-radius: 8px;
  min-width: 38px;
  text-align: center;
}

/* ---------- Feature cards ---------- */
.features {
  padding: 90px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.4);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

/* ---------- Prose section ---------- */
.prose-section {
  padding: 0 0 90px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  text-align: left;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.prose p {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.prose a {
  color: var(--violet-lighter);
}

.prose ul,
.prose ol {
  color: var(--text-muted);
  margin: 0 0 18px;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 6px;
}

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

.article-section {
  padding: 24px 0 90px;
}

.article-section .prose h2 {
  margin-top: 44px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 0 0 90px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 4px 22px;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--violet-light);
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 20px 0 100px;
}

.final-cta h2 {
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto 34px;
  font-size: 1.05rem;
}

.final-cta .btn {
  font-size: 1.05rem;
  padding: 17px 34px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0 60px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  font-weight: 800;
}

.footer-tag {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--violet-light);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 100%;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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