@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #061018;
  --bg-elevated: #09151e;
  --surface: rgba(11, 23, 34, 0.94);
  --surface-strong: rgba(15, 32, 46, 0.98);
  --surface-soft: rgba(17, 37, 53, 0.82);
  --surface-muted: rgba(10, 26, 38, 0.76);
  --surface-glass: rgba(8, 18, 29, 0.72);
  --text: #f3f8fc;
  --text-muted: #c4d2dd;
  --text-soft: #8ea2b0;
  --border: rgba(148, 163, 184, 0.2);
  --border-strong: rgba(56, 189, 248, 0.28);
  --primary: #38bdf8;
  --secondary: #7dd3fc;
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.18);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.16);
  --success: #6ee7b7;
  --success-soft: rgba(52, 211, 153, 0.16);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.16);
  --focus: #a5f3fc;
  --shadow-card: 0 28px 80px rgba(2, 8, 23, 0.5);
  --shadow-soft: 0 20px 44px rgba(2, 8, 23, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  line-height: 1.72;
  color: var(--text);
  background:
    radial-gradient(860px 480px at 0% 0%, rgba(56, 189, 248, 0.12), transparent 56%),
    radial-gradient(720px 420px at 100% 0%, rgba(52, 211, 153, 0.1), transparent 50%),
    radial-gradient(760px 420px at 50% 100%, rgba(14, 165, 233, 0.08), transparent 54%),
    linear-gradient(180deg, #040b12 0%, #08121b 48%, #040b12 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 92%);
}

a {
  color: var(--secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease, opacity 180ms ease;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--primary);
  color: #021018;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 12px;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}

.top-nav {
  position: sticky;
  top: 16px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 32, 46, 0.9);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(18, 42, 59, 0.96);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.24);
}

.nav-chip[aria-current='page'] {
  border-color: rgba(56, 189, 248, 0.44);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(13, 148, 136, 0.18));
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  padding: clamp(24px, 3vw, 38px);
  background:
    linear-gradient(155deg, rgba(8, 19, 30, 0.98) 0%, rgba(11, 27, 39, 0.96) 58%, rgba(8, 17, 26, 0.98) 100%);
  box-shadow: var(--shadow-card);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), transparent 86%);
}

.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 72%);
  pointer-events: none;
}

.hero-danger::before {
  background: linear-gradient(90deg, var(--danger), rgba(248, 113, 113, 0.2), transparent 86%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

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

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 32, 46, 0.82), rgba(10, 22, 32, 0.88));
}

.panel-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}

.mini-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(6, 16, 24, 0.38);
}

.mini-card h2,
.mini-card h3 {
  margin: 0 0 6px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

.mini-card p {
  margin: 0;
  color: var(--text-muted);
}

.eyebrow {
  margin: 0;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.95;
  max-width: 11ch;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  line-height: 1.35;
}

.hero-subtitle {
  margin: 0;
  max-width: 66ch;
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--text-muted);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  background: rgba(10, 24, 34, 0.72);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.36);
}

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

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.meta-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(10, 21, 32, 0.72);
}

.meta-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.meta-value {
  margin: 8px 0 0;
  color: var(--text);
  word-break: break-word;
}

.quick-summary {
  margin-top: 18px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 22px;
  padding: 18px;
  background: rgba(11, 27, 39, 0.72);
}

.quick-summary h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 16px;
  margin-top: 18px;
}

.doc-main {
  min-width: 0;
}

.toc {
  position: sticky;
  top: 102px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  background: rgba(9, 18, 28, 0.86);
  box-shadow: var(--shadow-soft);
}

.toc h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-soft);
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.14);
}

.toc a.is-active {
  color: var(--text);
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.22);
}

.section {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(10, 21, 32, 0.92), rgba(8, 18, 28, 0.9));
  box-shadow: var(--shadow-soft);
}

.section[id] {
  scroll-margin-top: 110px;
}

.policy-content p,
.policy-content ul,
.policy-content ol,
.policy-content .callout,
.policy-content .cta-link,
.policy-content .status-panel {
  max-width: 74ch;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

li {
  margin: 0.5rem 0;
}

li::marker {
  color: var(--secondary);
}

code {
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  padding: 2px 7px;
  background: rgba(7, 19, 30, 0.88);
  color: #b9e9ff;
  font-size: 0.95em;
}

.callout {
  margin-top: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--text);
}

.action-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.steps-grid {
  margin-top: 14px;
}

.action-card,
.step-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(14, 31, 46, 0.94), rgba(10, 22, 32, 0.92));
}

.action-card h3,
.step-card h3 {
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.action-card p,
.step-card p {
  margin: 0;
  color: var(--text-muted);
}

.step-card {
  position: relative;
  padding-top: 48px;
}

.step-card::before {
  content: attr(data-step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #10b981);
  color: #02120e;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(16, 185, 129, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.cta-link:hover {
  transform: translateY(-1px);
  color: #02120e;
  box-shadow: 0 22px 34px rgba(16, 185, 129, 0.3);
}

.cta-link:active {
  transform: translateY(0);
}

.cta-link.secondary {
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(9, 22, 33, 0.88);
  color: var(--text);
  box-shadow: none;
}

.cta-link.secondary:hover {
  color: var(--text);
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(13, 31, 46, 0.96);
  box-shadow: 0 16px 28px rgba(2, 8, 23, 0.18);
}

.cta-link.danger {
  border-color: rgba(248, 113, 113, 0.36);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(239, 68, 68, 0.16));
  color: #ffe4e6;
  box-shadow: none;
}

.cta-link.danger:hover {
  color: #fff1f2;
  border-color: rgba(248, 113, 113, 0.52);
  box-shadow: 0 16px 28px rgba(127, 29, 29, 0.2);
}

.cta-link:disabled,
.cta-link[aria-disabled='true'] {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-panel {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(9, 20, 30, 0.92);
  color: var(--text-muted);
}

.status-panel.status-success {
  border-color: rgba(52, 211, 153, 0.32);
  background: var(--success-soft);
  color: #d1fae5;
}

.status-panel.status-error {
  border-color: rgba(248, 113, 113, 0.36);
  background: var(--danger-soft);
  color: #fecdd3;
}

.status-panel.status-warning {
  border-color: rgba(251, 191, 36, 0.34);
  background: var(--warning-soft);
  color: #fde68a;
}

.small-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.reveal {
  animation: fadeSlideIn 360ms ease-out both;
}

.reveal.delay-1 {
  animation-delay: 80ms;
}

.reveal.delay-2 {
  animation-delay: 160ms;
}

.reveal.delay-3 {
  animation-delay: 240ms;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 14px 10px 44px;
  }

  .top-nav {
    top: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .nav-chip {
    flex: 1 1 auto;
  }

  .hero,
  .section,
  .toc {
    border-radius: 22px;
    padding: 16px;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }
}

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