:root {
  --bg: #050817;
  --bg-elevated: #0d1428;
  --bg-soft: #111a32;
  --text: #edf4ff;
  --muted: #9aa7bd;
  --border: #24304a;
  --teal: #00E2FB;
  --teal-soft: rgba(0, 226, 251, .12);
  --max: 1100px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% -10%, rgba(0,226,251,.10), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5,8,23,.88);
  border-bottom: 1px solid rgba(36,48,74,.75);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 160px; display: block; }
.desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 18px;
}
.desktop-nav a,
.mobile-nav a {
  color: #dce6f5;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--teal);
}

.mobile-nav { display: none; }
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 750;
}
.mobile-nav summary::-webkit-details-marker { display: none; }

.hero { padding: 68px 0 52px; }
.hero h1 { margin-top: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 64px;
  align-items: center;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { margin: 16px 0 20px; font-size: clamp(2.65rem, 7vw, 5.3rem); }
h2 { margin-top: 2.3em; font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { margin-top: 1.7em; }
.lead { color: #bac6d9; font-size: clamp(1.08rem, 2vw, 1.28rem); max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 800;
}
.btn-primary { background: var(--teal); color: #031018; border-color: var(--teal); }
.btn-secondary { color: var(--text); background: rgba(255,255,255,.025); }
.hero-mark {
  width: min(100%, 340px);
  margin: 0 auto;
  image-rendering: auto;
  filter: drop-shadow(0 20px 70px rgba(0,226,251,.16));
}

.section { padding: 42px 0 68px; }
.section > .wrap > h2:first-child { margin-top: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.card {
  background: linear-gradient(180deg, rgba(17,26,50,.94), rgba(13,20,40,.94));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; }
.icon-dot {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal);
  font-weight: 900; margin-bottom: 18px;
}

.legal-hero { padding: 44px 0 18px; }
.legal-hero h1 { font-size: clamp(2.25rem, 5vw, 3.7rem); margin-top: 0; margin-bottom: 10px; }
.meta { color: var(--muted); font-size: .93rem; }
.content {
  max-width: 860px;
  padding-bottom: 72px;
}
.content p, .content li { color: #c7d2e3; }
.content strong { color: var(--text); }
.content ul { padding-left: 1.25rem; }
.content .notice {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  border-radius: 0 12px 12px 0;
}
.content hr { border: 0; border-top: 1px solid var(--border); margin: 38px 0; }
.content h2 { scroll-margin-top: 100px; }

.contact-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  padding: 22px;
  margin: 24px 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 42px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; }
.footer-links a { color: #b9c5d7; text-decoration: none; }
.third-party {
  margin-top: 20px;
  max-width: 820px;
  font-size: .84rem;
  color: #77869e;
}
.third-party p { margin: 0; }
.third-party p + p { margin-top: 10px; }
.third-party strong { color: #8f9db4; }

code {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: .12em .35em;
  border-radius: 6px;
  color: #dffbff;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 20px 0 30px; min-width: 620px; }
th, td { border-bottom: 1px solid var(--border); padding: 12px 10px; text-align: left; vertical-align: top; }
th { color: var(--text); }
td { color: #c7d2e3; }

@media (max-width: 780px) {
  .site-header { position: static; }

  /* Use the phone layout as the standard across all mobile-width pages.
     This keeps the header, hero, cards, legal pages, support, and footer
     aligned to the same compact content column on wider mobile browsers. */
  .wrap {
    width: min(calc(100% - 36px), 430px);
  }

  .header-inner {
    min-height: 64px;
    padding: 12px 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .brand img { width: 126px; }

  .desktop-nav { display: none; }

  .mobile-nav {
    display: block;
    position: relative;
  }

  /* Standard three-line hamburger trigger. The dropdown itself stays the same. */
  .mobile-nav summary {
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 0;
  }

  .mobile-nav summary::before {
    content: "";
    width: 23px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    box-shadow:
      0 -7px 0 var(--text),
      0 7px 0 var(--text);
  }

  .mobile-nav summary::after { content: none; }

  .mobile-nav[open] summary {
    background: rgba(255,255,255,.04);
  }

  .mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    min-width: 210px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0d1428;
    box-shadow: 0 18px 45px rgba(0,0,0,.38);
  }

  .mobile-nav nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .mobile-nav nav a:hover,
  .mobile-nav nav a[aria-current="page"] {
    background: var(--teal-soft);
  }

  /* Phone-first mobile layout. Wider mobile browsers keep the same compact
     proportions instead of stretching the hero toward a desktop layout. */
  .hero { padding: 30px 0 8px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    width: min(calc(100% - 36px), 430px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.15rem);
    margin-top: 0;
  }

  .hero .lead { font-size: 1.08rem; }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
    margin-top: 26px;
  }

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

  /* Mobile mark stays beneath Community Rules. */
  .hero-mark {
    display: block;
    width: 92px;
    margin: 24px auto 0;
    filter: drop-shadow(0 12px 34px rgba(0,226,251,.14));
  }

  .section { padding: 28px 0 48px; }

  /* Keep the homepage feature heading visually connected to the mark above it. */
  .hero + .section { padding-top: 10px; }
  .hero + .section h2 { margin-top: 0; }

  .section h2 { margin-top: 1.35em; }

  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }

  .card { padding: 21px; }

  .legal-hero { padding: 28px 0 16px; }

  .legal-hero h1 { margin-top: 0; }

  .content { padding-bottom: 54px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 410px) {
  .wrap { width: min(calc(100% - 30px), var(--max)); }
  .brand img { width: 118px; }
}
