@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap");

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #07090d;
  --bg-soft: #0d1118;
  --ink: #fff7e8;
  --muted: #b8aa94;
  --quiet: #776d61;
  --line: rgba(255, 247, 232, 0.13);
  --line-strong: rgba(255, 247, 232, 0.24);
  --gold: #f1b85c;
  --gold-soft: #b9843f;
  --teal: #43ddcf;
  --teal-dark: #0d706f;
  --violet: #c58dff;
  --panel: rgba(12, 15, 21, 0.76);
  --panel-solid: #10141d;
  --shadow: 0 28px 110px rgba(0, 0, 0, 0.48);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 8%, rgba(67, 221, 207, 0.18), transparent 310px),
    radial-gradient(circle at 19% 12%, rgba(241, 184, 92, 0.18), transparent 340px),
    linear-gradient(180deg, #0b0d12 0%, #07090d 36%, #07090d 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 247, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 232, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center top, transparent 0%, transparent 28%, rgba(7, 9, 13, 0.88) 88%),
    linear-gradient(90deg, rgba(7, 9, 13, 0.9), transparent 22%, transparent 78%, rgba(7, 9, 13, 0.9));
  pointer-events: none;
}

a {
  color: inherit;
}

code,
pre,
.eyebrow,
.nav-links,
.nav-action,
.button,
.quickstart-panel,
.signal-strip,
.memory-node span,
.gate-stack span,
.showcase-grid span,
.timeline span,
.tab-button,
.copy-button,
.status-card {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.72);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(241, 184, 92, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 23%, rgba(241, 184, 92, 0.2), transparent 46%),
    rgba(255, 247, 232, 0.04);
  overflow: hidden;
}

.brand-mark img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: top center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-links a,
.mobile-menu a,
footer a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 247, 232, 0.07);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-action {
  padding: 0 18px;
  color: #140f08;
  background: linear-gradient(180deg, #ffd98f, var(--gold));
}

.nav-action:hover,
.button:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.05);
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.open span:nth-child(2) {
  opacity: 0;
}

.menu-button.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 92px;
  left: 16px;
  right: 16px;
  z-index: 39;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(9, 11, 16, 0.96);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 800;
}

.mobile-menu a:hover {
  color: var(--ink);
  background: rgba(255, 247, 232, 0.07);
}

main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(330px, 0.74fr);
  grid-template-areas:
    "copy stage"
    "quick stage";
  align-items: center;
  gap: 26px 58px;
  min-height: min(100vh, 980px);
  padding: 134px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 49%;
  width: min(1050px, 92vw);
  height: min(1050px, 92vw);
  border: 1px solid rgba(255, 247, 232, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(66px, 9.3vw, 132px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
}

.hero-lede {
  max-width: 670px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 1.85vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-width: 172px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
}

.button-primary {
  color: #120e08;
  border-color: transparent;
  background: linear-gradient(180deg, #ffd98f, var(--gold));
  box-shadow: 0 12px 42px rgba(241, 184, 92, 0.18);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 247, 232, 0.055);
}

.button-secondary:hover {
  border-color: rgba(67, 221, 207, 0.46);
}

.character-stage {
  position: relative;
  grid-area: stage;
  align-self: center;
  height: 665px;
  min-height: 665px;
  border: 1px solid rgba(255, 247, 232, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.055), transparent 34%),
    radial-gradient(circle at 50% 30%, rgba(241, 184, 92, 0.22), transparent 32%),
    radial-gradient(circle at 52% 58%, rgba(67, 221, 207, 0.16), transparent 42%),
    rgba(12, 15, 21, 0.54);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.character-stage::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 247, 232, 0.09);
  border-radius: 28px;
  pointer-events: none;
}

.character-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(7, 9, 13, 0.7) 68%, rgba(7, 9, 13, 0.94));
  pointer-events: none;
}

.aura-ring {
  position: absolute;
  left: 50%;
  top: 44%;
  border: 1px solid rgba(241, 184, 92, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ring-one {
  width: 520px;
  height: 520px;
}

.ring-two {
  width: 360px;
  height: 360px;
  border-color: rgba(67, 221, 207, 0.22);
}

.character {
  position: absolute;
  left: 50%;
  bottom: -5px;
  z-index: 2;
  width: min(450px, 96%);
  max-height: 94%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 26px 58px rgba(0, 0, 0, 0.58));
  transform: translateX(-50%);
}

.status-card {
  position: absolute;
  z-index: 4;
  width: min(226px, 48%);
  padding: 14px 16px;
  border: 1px solid rgba(255, 247, 232, 0.16);
  border-radius: 18px;
  background: rgba(8, 10, 15, 0.72);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.status-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-card strong {
  color: var(--ink);
  font-size: 13px;
}

.status-memory {
  top: 32px;
  left: 32px;
}

.status-trust {
  right: 32px;
  bottom: 118px;
}

.quickstart-panel {
  grid-area: quick;
  position: relative;
  z-index: 3;
  max-width: 720px;
  border: 1px solid rgba(67, 221, 207, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(67, 221, 207, 0.12), transparent 40%),
    rgba(10, 13, 19, 0.84);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.quickstart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.quickstart-top > span {
  padding-left: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quickstart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-list {
  display: flex;
  gap: 6px;
}

.tab-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 247, 232, 0.045);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  color: #0a0e10;
  background: var(--teal);
}

.command-box {
  position: relative;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 247, 232, 0.16);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 247, 232, 0.075);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  cursor: pointer;
}

.copy-button:hover {
  border-color: rgba(67, 221, 207, 0.42);
  background: rgba(67, 221, 207, 0.09);
}

.copy-button.copied {
  color: #0a0e10;
  border-color: transparent;
  background: var(--gold);
}

.copy-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 17px;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.copy-icon::before {
  left: 1px;
  top: 1px;
  opacity: 0.58;
}

.copy-icon::after {
  right: 1px;
  bottom: 1px;
  background: rgba(10, 13, 19, 0.76);
}

.copy-button.copied .copy-icon {
  display: none;
}

.copy-label {
  display: none;
  font-size: 10px;
  font-weight: 800;
}

.copy-button.copied {
  width: 70px;
}

.copy-button.copied .copy-label {
  display: inline;
}

.install-code {
  margin: 0;
  min-height: 100px;
  padding: 22px 62px 22px 22px;
  color: var(--teal);
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 16px 0 132px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
  overflow: hidden;
}

.signal-strip div {
  min-height: 132px;
  padding: 22px;
  background: rgba(12, 15, 21, 0.74);
}

.signal-strip span {
  display: block;
  margin-bottom: 18px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-strip strong {
  display: block;
  color: var(--ink);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.12;
}

.memory-section,
.security-section,
.skills-section,
.roadmap-section {
  margin-bottom: 132px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading h2,
.security-copy h2 {
  margin-bottom: 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.security-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.memory-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.memory-map::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67, 221, 207, 0.55), rgba(241, 184, 92, 0.55), transparent);
  pointer-events: none;
}

.memory-node,
.gate-stack article,
.showcase-grid article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.06), transparent 48%),
    var(--panel);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.memory-node {
  min-height: 320px;
  padding: 28px;
}

.memory-node::after,
.showcase-grid article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0.65;
}

.memory-node span,
.gate-stack span,
.showcase-grid span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.memory-node h3,
.gate-stack h3,
.showcase-grid h3 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.08;
}

.memory-node p,
.gate-stack p,
.showcase-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.node-semantic {
  transform: translateY(42px);
}

.node-relational {
  transform: translateY(84px);
}

.security-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: center;
  padding: clamp(26px, 4.8vw, 58px);
  border: 1px solid rgba(241, 184, 92, 0.2);
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 18%, rgba(241, 184, 92, 0.18), transparent 30%),
    radial-gradient(circle at 88% 84%, rgba(67, 221, 207, 0.12), transparent 34%),
    rgba(12, 15, 21, 0.72);
}

.gate-stack {
  display: grid;
  gap: 14px;
}

.gate-stack article {
  min-height: 168px;
  padding: 24px;
}

.gate-stack article:nth-child(2) {
  margin-left: 34px;
}

.gate-stack article:nth-child(3) {
  margin-left: 68px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.showcase-grid article {
  min-height: 270px;
  padding: 24px;
}

.showcase-grid code {
  color: var(--teal);
  font-size: 0.9em;
}

.roadmap-section {
  padding-bottom: 10px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(12, 15, 21, 0.72);
}

.timeline span {
  display: block;
  margin-bottom: 22px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline strong {
  display: block;
  font-size: 22px;
  line-height: 1.12;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  gap: 18px;
}

footer a {
  transition: color 160ms ease;
}

footer a:hover {
  color: var(--ink);
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

@media (max-width: 1040px) {
  .site-nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links,
  .nav-action {
    display: none;
  }

  .menu-button {
    display: flex;
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "stage"
      "quick";
    min-height: auto;
    padding-top: 126px;
  }

  .character-stage {
    height: auto;
    min-height: 720px;
  }

  .quickstart-panel {
    max-width: none;
  }

  .signal-strip,
  .showcase-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .memory-map {
    grid-template-columns: 1fr;
  }

  .memory-map::before {
    display: none;
  }

  .node-semantic,
  .node-relational {
    transform: none;
  }

  .memory-node {
    min-height: auto;
  }

  .security-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .site-nav {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 60px;
    padding: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    gap: 18px;
    padding-top: 108px;
    padding-bottom: 48px;
  }

  .hero::before {
    width: 125vw;
    height: 125vw;
  }

  h1 {
    font-size: clamp(54px, 17vw, 76px);
  }

  .hero-lede,
  .section-heading p:not(.eyebrow),
  .security-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .character-stage {
    height: auto;
    min-height: 575px;
    border-radius: 28px;
  }

  .ring-one {
    width: 420px;
    height: 420px;
  }

  .ring-two {
    width: 290px;
    height: 290px;
  }

  .character {
    width: min(380px, 104%);
  }

  .status-card {
    width: min(196px, 54%);
    padding: 12px 13px;
  }

  .status-memory {
    top: 18px;
    left: 18px;
  }

  .status-trust {
    right: 18px;
    bottom: 74px;
  }

  .quickstart-top {
    align-items: stretch;
    flex-direction: column;
  }

  .quickstart-controls {
    align-items: stretch;
  }

  .tab-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .install-code {
    font-size: 12px;
  }

  .signal-strip,
  .showcase-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .memory-section,
  .security-section,
  .skills-section,
  .roadmap-section {
    margin-bottom: 82px;
  }

  .section-heading h2,
  .security-copy h2 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .memory-node,
  .gate-stack article,
  .showcase-grid article,
  .timeline li {
    border-radius: 22px;
    padding: 22px;
    min-height: auto;
  }

  .security-section {
    padding: 22px;
    border-radius: 28px;
  }

  .gate-stack article:nth-child(2),
  .gate-stack article:nth-child(3) {
    margin-left: 0;
  }

  footer {
    display: grid;
  }
}
