:root {
  --bg: #f5f7fb;
  --glass: rgba(255, 255, 255, 0.72);
  --stroke: rgba(255, 255, 255, 0.5);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  --text: #0b172a;
  --muted: #4a5568;
  --accent: #3ba7ff;
  --accent-2: #9c7bff;
  --gradient: linear-gradient(135deg, rgba(59, 167, 255, 0.25), rgba(156, 123, 255, 0.25));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', 'SF Pro Display', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.shell {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  z-index: 1;
}

.shell--wide {
  max-width: 1240px;
}

.bg-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.6;
  pointer-events: none;
}

.bg-glow-1 {
  top: -120px;
  left: -140px;
  background: #9c7bff;
}

.bg-glow-2 {
  bottom: -120px;
  right: -140px;
  background: #3ba7ff;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"%3E%3Cfilter id="n" x="0" y="0" width="100%25" height="100%25"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="2" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.08"/%3E%3C/svg%3E');
  mix-blend-mode: soft-light;
  opacity: 0.3;
  z-index: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand--link {
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  height: 44px;
  width: 44px;
}

.brand__name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  backdrop-filter: blur(10px);
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(59, 167, 255, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.chip--ghost {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 32px;
  padding: 32px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero__text h1 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 5vw, 54px);
  letter-spacing: -0.02em;
}

.hero__text .lede {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, #3ba7ff, #9c7bff);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 35px rgba(59, 167, 255, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(59, 167, 255, 0.45);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
}

.btn--secondary:hover {
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.hint {
  color: var(--muted);
  font-weight: 500;
}

.links {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 14px;
}

.card__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #3ba7ff);
  box-shadow: 0 0 0 0 rgba(59, 167, 255, 0.6);
  animation: pulse 2.4s infinite;
}

.card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

.dot-sep {
  font-size: 20px;
}

.glass {
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.45;
  filter: blur(20px);
  z-index: 0;
}

.glass > * {
  position: relative;
  z-index: 1;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 28px;
  padding: 28px 32px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  margin-bottom: 28px;
}

.page-hero__copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(36px, 4.8vw, 52px);
  letter-spacing: -0.02em;
}

.page-hero__copy .lede {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.hero__card--compact {
  align-content: start;
}

.doc-card {
  padding: 32px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.doc {
  display: grid;
  gap: 32px;
}

.doc-section + .doc-section {
  padding-top: 28px;
  border-top: 1px solid rgba(11, 23, 42, 0.08);
}

.doc-section h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.doc-section p,
.doc-section li,
.doc-section th,
.doc-section td {
  line-height: 1.7;
}

.doc-section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.doc-section ul,
.doc-section ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc-subsection + .doc-subsection {
  margin-top: 24px;
}

.doc-subsection h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.doc code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 167, 255, 0.12);
  color: #12416a;
  font-size: 0.95em;
}

.doc a {
  color: #1261b8;
  text-decoration-thickness: 1.5px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(11, 23, 42, 0.08);
}

th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.file-list {
  columns: 2;
  column-gap: 24px;
}

.footer {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 167, 255, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(59, 167, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 167, 255, 0); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__card {
    order: -1;
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

  .file-list {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 32px 16px 48px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav__actions {
    width: 100%;
  }

  .actions {
    align-items: flex-start;
  }

  .page-hero,
  .doc-card,
  .hero {
    padding: 24px 20px;
  }

  .btn,
  .btn--secondary {
    width: 100%;
  }

  .chip {
    width: 100%;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__links {
    justify-content: flex-start;
  }
}
