:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --surface: #1a1a26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --text-muted: #9b9bb0;
  --accent: #ff4081;
  --accent-soft: rgba(255, 64, 129, 0.12);
  --accent-hover: #ff6b9d;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #ff4081 50%, #f97316 100%);
  --radius: 14px;
  --font: "Roboto", system-ui, -apple-system, sans-serif;
  --max: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-hover);
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

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

/* Buttons */
.btn,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.cta-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary,
.cta-link.cta-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 64, 129, 0.4);
}

.btn-primary:hover,
.cta-link.cta-primary:hover {
  box-shadow: 0 12px 36px rgba(255, 64, 129, 0.55);
}

.btn-ghost,
.cta-link.cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(255, 64, 129, 0.18), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  position: relative;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

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

.hero-visual {
  text-align: center;
}

.hero-visual img {
  width: min(100%, 360px);
  border-radius: 16px;
  border: 2px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* TOC */
.toc-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-wrap h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.toc {
  margin: 0;
  padding-left: 1.2rem;
  columns: 1;
}

@media (min-width: 600px) {
  .toc {
    columns: 2;
    column-gap: 2rem;
  }
}

.toc li {
  margin: 0.35rem 0;
}

.toc a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--accent-hover);
}

/* Sections */
.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 42rem;
}

.section h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

/* Relink cards */
.relink-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1.5rem 0;
}

.relink-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.relink-card:hover {
  border-color: rgba(255, 64, 129, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
}

.relink-card strong {
  display: block;
  color: var(--accent-hover);
  margin-bottom: 0.35rem;
}

.relink-card span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Features grid */
.features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.data-table th {
  background: var(--surface);
  color: var(--text);
}

.data-table td {
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--bg-elevated);
}

.faq-list summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  background: var(--surface);
  border-block: 1px solid var(--border);
  text-align: center;
  padding: 2.5rem 0;
}

/* Trust list */
.trust-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 6rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-grid h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: rgba(10, 10, 15, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  gap: 0.5rem;
}

.sticky-cta .cta-link {
  flex: 1;
  padding: 0.85rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
  }

  .sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 4.5rem;
  }
}

/* Legal pages */
.legal-page {
  padding: 2rem 0 4rem;
}

.legal-page h1 {
  font-size: 2rem;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}
