:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --bg-2: #ffffff;
  --ink: #111824;
  --muted: #5f6673;
  --soft: #e8e5dd;
  --line: rgba(17, 24, 36, 0.12);
  --hair: rgba(17, 24, 36, 0.08);
  --navy: #13294b;
  --navy-2: #0b1931;
  --navy-3: #28466f;
  --amber: #c9984a;
  --green: #2f7d5a;
  --red: #bb4b4b;
  --blue-soft: rgba(19, 41, 75, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 26px 80px rgba(15, 28, 50, 0.14);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --sidebar: 292px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.82), rgba(248, 247, 243, 0.94) 38%, rgba(235, 231, 220, 0.84)),
    radial-gradient(circle at 78% 2%, rgba(201, 152, 74, 0.16), transparent 28%),
    radial-gradient(circle at 2% 20%, rgba(19, 41, 75, 0.13), transparent 32%);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--hair);
  background: rgba(248, 247, 243, 0.78);
  backdrop-filter: blur(18px) saturate(130%);
  padding: 22px 18px 32px;
  z-index: 10;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 22px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(145deg, var(--navy), var(--navy-2));
  box-shadow: 0 18px 38px rgba(19, 41, 75, 0.28), inset 0 1px 0 rgba(255,255,255,.18);
  color: #f6f1e7;
  font-family: "Geist Mono", monospace;
  font-weight: 800;
  font-size: 13px;
}

.brand-lockup strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.brand-lockup small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.search {
  display: block;
  margin-bottom: 22px;
}

.search span {
  display: block;
  margin: 0 0 7px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.search input:focus {
  border-color: rgba(19, 41, 75, 0.35);
  box-shadow: 0 0 0 4px rgba(19, 41, 75, 0.08);
}

.nav-group {
  margin: 20px 0 24px;
}

.nav-title {
  margin: 0 0 8px 10px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #818794;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.nav-link span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link small {
  flex: 0 0 auto;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: #999;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: rgba(19, 41, 75, 0.07);
}

.nav-link.active {
  box-shadow: inset 3px 0 0 var(--navy);
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--hair);
  background: rgba(248, 247, 243, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
}

.crumb {
  flex: 1;
  min-width: 0;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.ghost-button,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button,
.ghost-button {
  padding: 0 15px;
  font-weight: 700;
}

.primary-button {
  border-color: transparent;
  background: var(--navy);
  color: #fffaf0;
  box-shadow: 0 16px 32px rgba(19, 41, 75, 0.2);
}

.ghost-button {
  background: rgba(255,255,255,.66);
  color: var(--ink);
}

.icon-button {
  width: 42px;
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,.72);
}

.icon-button span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.page {
  width: min(1220px, calc(100vw - var(--sidebar) - 40px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px) 0 84px;
}

.page:focus {
  outline: none;
}

.hero {
  min-height: 420px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: clamp(32px, 6vw, 76px);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(201, 152, 74, .36), transparent 24%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff8ed;
  box-shadow: var(--shadow);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.2), #000 28%, transparent 88%);
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.eyebrow {
  color: rgba(255, 248, 237, 0.72);
}

.eyebrow:before,
.section-kicker:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(201, 152, 74, 0.16);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .94;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.64;
  color: rgba(255, 248, 237, 0.8);
}

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

.glass-stat {
  min-height: 126px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}

.glass-stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.glass-stat span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 248, 237, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.section {
  margin-top: 48px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-kicker {
  color: var(--navy);
}

.section h2,
.content-title {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
}

.section-intro,
.content-lead {
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.66;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.58)),
    var(--bg-2);
  box-shadow: 0 18px 50px rgba(15, 28, 50, 0.06);
  padding: 22px;
}

.card h3 {
  font-size: 18px;
  line-height: 1.2;
}

.card p,
.card li {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.58;
}

.card ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

.token-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}

.token-row:last-child {
  border-bottom: 0;
}

.token-row code,
.code,
.chip {
  font-family: "Geist Mono", monospace;
}

.token-row code {
  color: var(--navy);
  font-size: 12px;
}

.swatch {
  width: 72px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
}

.component-stage {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(19,41,75,.06), transparent),
    repeating-linear-gradient(0deg, rgba(19,41,75,.04), rgba(19,41,75,.04) 1px, transparent 1px, transparent 24px),
    rgba(255,255,255,.54);
}

.demo-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.chip.dark {
  background: var(--navy);
  color: #fff8ed;
}

.chip.gold {
  background: rgba(201, 152, 74, 0.16);
  border-color: rgba(201, 152, 74, 0.35);
  color: #6e4d18;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.price-card.featured {
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent),
    linear-gradient(145deg, var(--navy), var(--navy-2));
  color: #fff8ed;
  transform: translateY(-12px);
}

.price-card.featured p,
.price-card.featured li {
  color: rgba(255, 248, 237, 0.72);
}

.price {
  margin: 24px 0;
  font-size: 48px;
  font-weight: 800;
}

.price small {
  font-size: 14px;
  color: inherit;
  opacity: .7;
}

.code {
  display: block;
  overflow: auto;
  white-space: pre;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #101825;
  color: #dce8ff;
  font-size: 12px;
  line-height: 1.65;
}

.showcase {
  min-height: 520px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}

.showcase-copy {
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 0 0, rgba(201,152,74,.18), transparent 36%),
    var(--navy);
  color: #fff8ed;
}

.showcase-copy h2 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: .96;
}

.showcase-copy p {
  margin-top: 18px;
  color: rgba(255, 248, 237, 0.72);
  font-size: 17px;
  line-height: 1.64;
}

.showcase-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(22px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(19,41,75,.06), transparent),
    var(--bg);
}

.mini-screen {
  min-height: 170px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  padding: 16px;
}

.mini-line {
  height: 9px;
  border-radius: 99px;
  background: rgba(19,41,75,.12);
  margin-bottom: 10px;
}

.mini-line.short { width: 54%; }
.mini-line.medium { width: 76%; }
.mini-line.gold { background: rgba(201,152,74,.45); }

.data-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 96px;
  margin-top: 20px;
}

.data-bars span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--navy);
  opacity: .78;
}

.footer-note {
  margin-top: 44px;
  color: var(--muted);
  line-height: 1.6;
}

.scrim {
  display: none;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(330px, 86vw);
    transform: translateX(-100%);
    transition: transform .22s ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 9;
    background: rgba(10, 14, 22, .34);
  }

  body.nav-open .scrim {
    display: block;
  }

  .icon-button {
    display: inline-flex;
  }

  .page {
    width: min(100vw - 36px, 920px);
  }

  .hero-grid,
  .grid.three,
  .pricing,
  .showcase {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .showcase-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 30px 22px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
