:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #141820;
  --surface-soft: #191f29;
  --text: #f3f5f8;
  --muted: #a7b0bf;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #58d6b5;
  --accent-soft: rgba(88, 214, 181, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0b0d10 0%, #10141b 100%);
}

a {
  color: inherit;
}

code {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08rem 0.35rem;
  white-space: nowrap;
}

.page {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 36px;
}

.hero,
.section,
.panel,
.legal {
  border: 1px solid var(--border);
  background: rgba(20, 24, 32, 0.92);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero {
  padding: 44px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 34px 0 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.62;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 20px;
}

.lead.strong {
  color: var(--text);
  font-weight: 700;
}

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.links a,
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.links a:hover,
.back:hover,
.site-footer a:hover {
  border-color: rgba(88, 214, 181, 0.6);
  color: var(--accent);
}

.section,
.panel {
  margin-top: 18px;
  padding: 30px;
}

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

.steps article {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.steps span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

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

.grid .panel:last-child {
  grid-column: 1 / -1;
}

.statement {
  padding: 14px 16px;
  border: 1px solid rgba(88, 214, 181, 0.28);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 800;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.legal {
  padding: 38px 44px;
}

.legal h1 {
  margin-top: 28px;
  font-size: clamp(34px, 6vw, 58px);
}

.legal h2 {
  margin-top: 34px;
}

.legal h3 {
  margin-top: 24px;
}

.legal ul,
.legal ol {
  padding-left: 1.35rem;
}

.legal li {
  margin: 0.45rem 0;
  line-height: 1.55;
}

.legal nav {
  margin: 28px 0 34px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.muted {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 860px) {
  .steps,
  .grid {
    grid-template-columns: 1fr;
  }

  .grid .panel:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 22px, 1080px);
    padding: 18px 0;
  }

  .hero,
  .section,
  .panel,
  .legal {
    padding: 22px;
  }

  .logo {
    width: 58px;
    height: 58px;
  }

  p,
  .lead {
    font-size: 16px;
  }

  .brand-header {
    margin-bottom: 22px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }
}
