:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-elevated: rgba(16, 18, 27, 0.78);
  --bg-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f7fb;
  --text-muted: #b0b9ca;
  --text-soft: #8791a6;
  --accent: #78b8ff;
  --accent-strong: #4f8dff;
  --accent-warm: #7ef2c9;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(89, 148, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(126, 242, 201, 0.12), transparent 22%),
    linear-gradient(180deg, #0a0b12 0%, #09090b 55%, #0f1117 100%);
  font-family: "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  padding: 14px 18px;
  margin-bottom: 32px;
  background: rgba(9, 9, 11, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(120, 184, 255, 0.35), rgba(126, 242, 201, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.footer-links a {
  color: var(--text-muted);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 28px;
  align-items: center;
  min-height: 68vh;
  padding: 28px 0 48px;
}

.eyebrow,
.card-label {
  margin: 0 0 14px;
  color: var(--accent-warm);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.3rem, 9vw, 6.9rem);
}

.hero-body,
.legal-summary {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
}

.button-primary {
  color: #08101a;
  background: linear-gradient(135deg, var(--accent), #d8f7ff);
  border-color: transparent;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.panel-window,
.info-card,
.detail-card,
.legal-document,
.legal-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 23, 34, 0.92), rgba(11, 13, 20, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.panel-window {
  width: min(100%, 520px);
  min-height: 360px;
  padding: 18px;
  backdrop-filter: blur(16px);
}

.panel-window::after,
.info-card::after,
.detail-card::after,
.legal-document::after,
.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.panel-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.panel-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.panel-body {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(5, 7, 12, 0.72);
  border: 1px solid var(--line);
  min-height: 280px;
}

.code-line {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: "SFMono-Regular", "SF Mono", Consolas, monospace;
  font-size: 0.95rem;
}

.token-key {
  display: inline-block;
  min-width: 88px;
  color: var(--accent);
}

.panel-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
}

.panel-glow-a {
  width: 220px;
  height: 220px;
  background: rgba(120, 184, 255, 0.32);
  top: 28px;
  right: 8%;
}

.panel-glow-b {
  width: 180px;
  height: 180px;
  background: rgba(126, 242, 201, 0.18);
  bottom: 32px;
  left: 12%;
}

.feature-grid,
.detail-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.detail-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.info-card,
.detail-card {
  padding: 28px;
}

.info-card h2,
.detail-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
}

.info-card p,
.detail-card p,
.feature-list,
.legal-document p,
.legal-document li {
  color: var(--text-muted);
}

.feature-list {
  margin: 0;
  padding-left: 18px;
}

.legal-main {
  padding-bottom: 24px;
}

.legal-hero {
  padding: 34px;
  margin-bottom: 20px;
}

.legal-meta {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.legal-document {
  padding: 36px 34px;
}

.legal-document section + section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 14px;
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  letter-spacing: -0.03em;
}

.legal-document p {
  margin: 0;
}

.legal-document p + p,
.legal-document ul {
  margin-top: 14px;
}

.legal-document ul {
  padding-left: 22px;
}

.site-footer {
  padding: 26px 8px 0;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero,
  .feature-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 10px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-panel {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
    padding-top: 12px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    border-radius: 28px;
    padding: 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .hero h1,
  .legal-hero h1 {
    font-size: clamp(2.4rem, 12vw, 4.1rem);
  }

  .info-card,
  .detail-card,
  .legal-hero,
  .legal-document {
    padding: 24px 20px;
  }

  .panel-window {
    padding: 14px;
  }

  .panel-body {
    padding: 14px;
  }
}
