:root {
  --sky: #74d4fe;
  --azure: #3797fe;
  --royal: #0f53ff;
  --deep: #091d5c;

  --bg: #f3f8ff;
  --surface: #ffffff;
  --surface-tonal: #e6f1fe;
  --border: #c6dcfa;
  --text: #0e1b36;
  --muted: #4a6082;
  --shadow: 0 12px 32px rgba(15, 83, 255, 0.08);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08101e;
    --surface: #101c32;
    --surface-tonal: #162645;
    --border: #23385e;
    --text: #eef5ff;
    --muted: #9eb7dc;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--royal);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  a {
    color: var(--sky);
  }
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(15, 83, 255, 0.25);
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--surface-tonal);
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero-wrap {
  padding: 28px 0 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #58c6ff 0%, #0f53ff 58%, #091d5c 100%);
  color: #ffffff;
  padding: 44px 36px;
  box-shadow: 0 20px 50px rgba(15, 83, 255, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 212, 254, 0.26) 0%, rgba(116, 212, 254, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 14px 32px rgba(6, 18, 56, 0.36);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero p {
  margin: 0;
  max-width: 620px;
  font-size: 1.08rem;
  color: rgba(235, 246, 255, 0.94);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 0;
}

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

.btn-white {
  background: #ffffff;
  color: #0b3ed1;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.btn-primary {
  background: var(--royal);
  color: #ffffff;
}

.btn-tonal {
  background: var(--surface-tonal);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Sections */
section {
  padding: 28px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

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

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-tonal {
  background: var(--surface-tonal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

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

.badge-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-tonal);
  color: var(--royal);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

@media (prefers-color-scheme: dark) {
  .badge-num {
    color: var(--sky);
  }
}

/* Prose (Privacy / Terms / Support) */
.page-banner {
  padding: 28px 0 8px;
}

.page-banner h1 {
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  letter-spacing: -0.025em;
}

.page-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  margin: 16px 0 28px;
}

.prose h2 {
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 1.24rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 18px 0 6px;
  font-size: 1.02rem;
}

.prose p,
.prose li {
  color: var(--text);
  font-size: 0.96rem;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.callout {
  background: var(--surface-tonal);
  border-left: 4px solid var(--royal);
  border-radius: 12px;
  padding: 15px 18px;
  margin: 14px 0 20px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-tonal);
  padding: 2px 6px;
  border-radius: 6px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
}

details + details {
  margin-top: 10px;
}

summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  font-weight: 800;
  color: var(--royal);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  margin-top: 32px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.disclaimer {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 30px 22px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .prose {
    padding: 22px 18px;
  }
}
