:root {
  --bg: #070a10;
  --bg2: #0b101a;
  --surface: rgba(14, 20, 32, 0.88);
  --surface2: rgba(20, 29, 45, 0.86);
  --surface3: rgba(7, 10, 16, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(168, 85, 247, 0.32);
  --brand: #a855f7;
  --brand2: #c084fc;
  --brand-dim: rgba(168, 85, 247, 0.13);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --text: #f6f3ea;
  --muted: #9aa4b8;
  --green: #22c55e;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.08), transparent 28rem),
    linear-gradient(225deg, rgba(34, 211, 238, 0.07), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

a {
  color: inherit;
}

::selection {
  background: rgba(192, 132, 252, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.82);
  outline-offset: 3px;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.wrap {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 16, 0.86);
  backdrop-filter: blur(22px);
}

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

.brand,
.nav-links,
.actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.85rem;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.24));
}

.brand strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1rem;
}

.brand span span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  gap: 1.1rem;
}

.actions {
  gap: 0.65rem;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--brand2);
}

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

.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 0.32rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn.gold {
  border-color: rgba(192, 132, 252, 0.56);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 14px 36px rgba(168, 85, 247, 0.18);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn.gold:hover {
  box-shadow: 0 18px 46px rgba(168, 85, 247, 0.28);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.25rem 0 3.25rem;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.32), rgba(34, 211, 238, 0.18), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.34rem 0.82rem;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-dim), rgba(34, 211, 238, 0.06));
  color: var(--brand2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.72);
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
}

h2 {
  line-height: 1.12;
}

.lead {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.74;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.hero-panel,
.mini-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(20, 29, 45, 0.92), rgba(7, 10, 16, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel::before,
.mini-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.08), transparent),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 38px;
}

.panel-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  display: block;
  font-family: "Syne", sans-serif;
  font-weight: 800;
}

.panel-subtitle {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #86efac;
  font-size: 0.8rem;
  font-weight: 800;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.7);
}

.panel-body {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.metric-card {
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-top: 0.25rem;
  color: var(--brand2);
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.section {
  padding: 3.2rem 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: 2.15rem;
}

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

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

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

.card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.16);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), transparent 46%);
  opacity: 0.8;
}

.card > * {
  position: relative;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p,
.card li,
.article p,
.article li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.card p {
  margin: 0;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 0.9rem;
}

.step {
  counter-increment: steps;
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
}

.step::before {
  content: counter(steps);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  font-weight: 900;
}

.step strong {
  display: block;
  margin-bottom: 0.2rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.article {
  max-width: 820px;
  padding-bottom: 3rem;
}

.article h2 {
  margin-top: 2rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  font-size: 0.82rem !important;
}

.guide-cover {
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 536;
  object-fit: cover;
}

.guide-cover figcaption {
  padding: 0.7rem 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.guide-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.guide-list li::marker {
  color: var(--brand2);
}

.guide-table {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.guide-table-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.guide-table-row:last-child {
  border-bottom: 0;
}

.guide-table-row strong {
  color: var(--text);
  font-size: 0.88rem;
}

.guide-table-row span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.code-label {
  margin: 1rem 0 0.45rem;
  color: var(--text) !important;
  font-size: 0.82rem !important;
  font-weight: 800;
}

.guide-code {
  margin: 0;
  overflow-x: auto;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: rgba(4, 9, 16, 0.86);
  color: #a5f3fc;
  font-size: 0.78rem;
  line-height: 1.55;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.guide-links a,
.related-guides a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  background: var(--brand-dim);
  text-decoration: none;
}

.guide-faq {
  display: grid;
  gap: 0.7rem;
}

.guide-faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.guide-faq summary {
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.guide-faq details p {
  margin-bottom: 0;
}

.related-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.related-guides a {
  min-height: 64px;
}

.article a {
  color: var(--brand2);
  font-weight: 800;
}

.notice {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(168, 85, 247, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-dim), rgba(34, 211, 238, 0.05));
  color: rgba(246, 243, 234, 0.88);
}

.conversion-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(34, 211, 238, 0.06)),
    var(--surface);
}

.conversion-strip p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  background: rgba(4, 7, 12, 0.46);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  gap: 1.2rem;
}

.mdh-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 560px;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101724;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.mdh-consent strong,
.mdh-consent span {
  display: block;
}

.mdh-consent span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.mdh-consent button {
  min-width: 76px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.mdh-consent button[data-consent="grant"] {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3rem;
  }

  .hero-grid,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.1rem 0 0.75rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1rem, 1160px);
  }

  .nav-inner {
    min-height: auto;
    padding: 0.7rem 0;
  }

  .actions .btn:not(.gold) {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  h1 {
    font-size: 2.32rem;
  }

  .section-head h2 {
    font-size: 1.72rem;
  }

  .lead {
    font-size: 1rem;
  }

  .guide-table-row,
  .related-guides {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .conversion-strip .btn {
    width: 100%;
  }

  .footer-inner,
  .mdh-consent {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
