:root {
  --bg: #07070a;
  --bg-2: #0d0d14;
  --surface: rgba(18, 18, 28, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.95);
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.5);
  --accent: #b26bff;
  --accent-2: #5d87ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 30px;
  --content-width: min(1180px, calc(100% - 40px));
  --content-width-narrow: min(860px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  background:
    radial-gradient(900px 560px at 12% 0%, rgba(178, 107, 255, 0.18), transparent 60%),
    radial-gradient(820px 520px at 88% 18%, rgba(93, 135, 255, 0.12), transparent 58%),
    radial-gradient(900px 620px at 50% 100%, rgba(178, 107, 255, 0.08), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 380px at 18% 14%, rgba(255, 255, 255, 0.05), transparent 72%),
    radial-gradient(560px 360px at 80% 20%, rgba(178, 107, 255, 0.06), transparent 74%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.page {
  width: var(--content-width);
  margin: 0 auto;
  padding: 28px 0 54px;
  position: relative;
  z-index: 1;
}

.page--narrow {
  width: var(--content-width-narrow);
}

.surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.surface::before {
  content: "";
  position: absolute;
  inset: -10% 25% auto -10%;
  height: 220px;
  background: radial-gradient(circle, rgba(178, 107, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-link img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-link,
.button,
.button-secondary,
.chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.nav-link,
.chip-link,
.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.88);
}

.button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 8, 12, 0.9);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.button:hover,
.button:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
.chip-link:hover,
.chip-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.06);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel,
.section-panel,
.article-shell,
.legal-shell,
.faq-panel {
  padding: clamp(24px, 4vw, 40px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.8fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.hero-panel--single {
  grid-template-columns: 1fr;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.page-title,
.article-title,
.section-title,
.legal-shell h1 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.98;
  font-weight: 810;
}

.page-title,
.article-title {
  font-size: clamp(38px, 6vw, 68px);
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
}

.lead,
.hero-copy p,
.article-intro,
.section-copy,
.legal-meta,
.article-body p,
.faq-answer {
  color: var(--muted);
  line-height: 1.7;
}

.lead,
.article-intro {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 42rem;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.55;
}

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

.hero-frame {
  padding: 12px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border);
  background:
    radial-gradient(360px 280px at 70% 20%, rgba(178, 107, 255, 0.12), transparent 58%),
    radial-gradient(300px 220px at 20% 80%, rgba(93, 135, 255, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.03);
}

.hero-frame img {
  border-radius: calc(var(--radius) - 12px);
}

.grid {
  display: grid;
  gap: 22px;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card,
.mini-card,
.cta-panel,
.faq-item,
.legal-block,
.article-callout {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.22);
}

.guide-card {
  display: grid;
  text-decoration: none;
}

.guide-card figure {
  margin: 0;
  padding: 10px 10px 0;
}

.guide-card img {
  width: 100%;
  aspect-ratio: 5 / 6.5;
  object-fit: cover;
  border-radius: 18px;
}

.guide-card-copy {
  padding: 18px;
}

.guide-card h2,
.guide-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.guide-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-meta {
  display: inline-flex;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card:hover,
.guide-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 22px;
}

.article-shell {
  display: grid;
  gap: 26px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.article-body {
  max-width: 72ch;
}

.article-body h2,
.article-body h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.article-body h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-top: 28px;
}

.article-body h3 {
  font-size: clamp(20px, 2vw, 26px);
  margin-top: 22px;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 14px 0 0;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}

.article-callout,
.cta-panel {
  padding: 22px;
}

.article-callout strong,
.cta-panel strong {
  display: block;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.article-callout p,
.cta-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.cta-panel h2,
.cta-panel h3 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.resource-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.resource-link {
  display: block;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.resource-link strong {
  display: block;
  font-size: 17px;
  font-weight: 730;
  letter-spacing: -0.02em;
}

.resource-link span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 690;
  letter-spacing: -0.02em;
}

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

.faq-answer {
  padding: 0 20px 20px;
}

.legal-shell {
  max-width: 76ch;
}

.legal-shell h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 14px;
}

.legal-meta {
  margin: 0 0 26px;
  font-size: 15px;
}

.legal-shell h2 {
  margin: 28px 0 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.legal-shell h3 {
  margin: 20px 0 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.legal-shell p,
.legal-shell ul {
  color: var(--muted);
  line-height: 1.72;
}

.legal-shell ul {
  padding-left: 20px;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 2px 0;
  color: var(--faint);
  font-size: 13px;
}

.page-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.page-footer a:hover,
.page-footer a:focus-visible {
  color: rgba(255, 255, 255, 0.96);
}

.page-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.redirect-shell {
  width: var(--content-width-narrow);
  margin: 0 auto;
  padding: 72px 0;
}

.redirect-note {
  padding: 28px;
}

@media (max-width: 980px) {
  .hero-panel,
  .two-column {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page,
  .page--narrow,
  .redirect-shell {
    width: calc(100% - 24px);
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-panel,
  .section-panel,
  .article-shell,
  .legal-shell,
  .faq-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .guide-grid,
  .resource-links {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .button-secondary,
  .nav-link,
  .chip-link {
    width: 100%;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .nav-link,
  .button,
  .button-secondary,
  .chip-link,
  .guide-card {
    transition: none;
  }
}
