:root {
  --bg: #081018;
  --bg-soft: #0f1822;
  --panel: rgba(9, 16, 25, 0.86);
  --panel-strong: rgba(13, 20, 32, 0.96);
  --text: #ecf3ff;
  --muted: rgba(236, 243, 255, 0.68);
  --line: rgba(236, 243, 255, 0.1);
  --line-strong: rgba(236, 243, 255, 0.18);
  --accent: #7bd3ff;
  --accent-soft: rgba(123, 211, 255, 0.18);
  --accent-strong: #c7efff;
  --success: #3fd6a0;
  --warning: #ffca67;
  --danger: #ff7a7a;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 720px at 10% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(1000px 720px at 90% 0%, rgba(255, 244, 214, 0.08), transparent 58%),
    linear-gradient(180deg, #04070c 0%, var(--bg) 44%, #060910 100%);
  min-height: 100vh;
}

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

button,
input {
  font: inherit;
}

.shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 22px 84px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(4, 7, 12, 0.72);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), rgba(255, 255, 255, 0.16));
  color: #051019;
  font-weight: 800;
  box-shadow: 0 0 24px var(--accent-soft);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

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

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  padding-top: 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
}

.headline {
  margin: 18px 0 14px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.lede {
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.accent {
  color: var(--accent-strong);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: 180ms ease;
  cursor: pointer;
  font-weight: 650;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.button.primary {
  border-color: color-mix(in srgb, var(--accent) 42%, white 10%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), rgba(255, 255, 255, 0.05));
}

.button.ghost {
  background: transparent;
}

.hero-grid,
.grid-2,
.grid-3 {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  align-items: start;
  margin-top: 20px;
}

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

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

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%);
}

.card-body {
  position: relative;
  padding: 22px;
}

.card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.card-copy,
.body-copy {
  color: var(--muted);
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.live {
  color: var(--success);
  border-color: rgba(63, 214, 160, 0.35);
}

.badge.beta {
  color: var(--warning);
  border-color: rgba(255, 202, 103, 0.35);
}

.badge.planned,
.badge.reviewing {
  color: #ffd9c2;
  border-color: rgba(255, 161, 100, 0.25);
}

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

.metric {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.metric-value {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 2rem;
  line-height: 1;
}

.metric-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-size: 1.9rem;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.section-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

.mono {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-shell {
  display: grid;
  gap: 12px;
}

.search-input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 16px;
}

.search-input::placeholder {
  color: rgba(236, 243, 255, 0.34);
}

.result-shell {
  min-height: 220px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.result-title {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: rgba(236, 243, 255, 0.52);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.subtle {
  font-size: 13px;
  color: rgba(236, 243, 255, 0.46);
}

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

@media (max-width: 720px) {
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .headline {
    max-width: none;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}
