:root {
  --warm-cream: #f5e6d3;
  --paper: #fffaf3;
  --white: #ffffff;
  --ink: #2c2416;
  --orange: #d97642;
  --mustard: #d4a574;
  --olive: #4a7c59;
  --walnut: #6b5d4f;
  --teak: #8b7355;
  --bluegray: #7d9ba8;
  --coral: #e57a77;
  --line: rgba(44, 36, 22, 0.18);
  --soft-shadow: 0 24px 70px rgba(44, 36, 22, 0.16);
}

@theme inline {
  --color-background: var(--warm-cream);
  --color-foreground: var(--ink);
  --font-sans: var(--font-display);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(44, 36, 22, 0.05) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(rgba(44, 36, 22, 0.04) 1px, transparent 1px) 0 0 / 54px 54px,
    var(--warm-cream);
  color: var(--ink);
  font-family:
    Avenir,
    "Century Gothic",
    Futura,
    Montserrat,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 28px clamp(18px, 4vw, 72px) 64px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 9% 18%, rgba(229, 122, 119, 0.34), transparent 22%),
    radial-gradient(circle at 88% 8%, rgba(125, 155, 168, 0.42), transparent 26%),
    radial-gradient(circle at 74% 72%, rgba(212, 165, 116, 0.36), transparent 28%),
    linear-gradient(135deg, #fff8ec 0%, #f5e6d3 54%, #e8d3b9 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(120deg, transparent 0 54%, rgba(74, 124, 89, 0.12) 54% 65%, transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(44, 36, 22, 0.035) 34px 36px);
  mask-image: linear-gradient(#000, transparent 88%);
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #050505;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.7);
  box-shadow: 0 12px 28px rgba(44, 36, 22, 0.08);
  backdrop-filter: blur(18px);
}

.nav-links a {
  min-width: 74px;
  padding: 10px 15px;
  border-radius: 999px;
  color: rgba(44, 36, 22, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  max-width: 1200px;
  min-height: calc(92vh - 96px);
  margin: 0 auto;
  padding-top: 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--olive);
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 9vw, 7.7rem);
  font-weight: 950;
  line-height: 0.92;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  font-weight: 950;
  line-height: 0.98;
}

h3 {
  font-size: clamp(1.35rem, 2.3vw, 2.05rem);
  font-weight: 950;
  line-height: 1.06;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(44, 36, 22, 0.78);
  font-size: clamp(1.02rem, 2vw, 1.34rem);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(44, 36, 22, 0.14);
}

.button-primary {
  background: var(--orange);
  color: var(--paper);
}

.button-secondary {
  background: var(--paper);
  color: var(--ink);
}

.button-tertiary {
  background: var(--olive);
  color: var(--paper);
}

.button-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mustard);
  box-shadow:
    17px 0 0 var(--bluegray),
    34px 0 0 var(--olive);
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: 0;
  max-width: 720px;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: rgba(255, 250, 243, 0.78);
  box-shadow: 10px 10px 0 var(--teak);
}

.spec-strip div {
  min-width: 0;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}

.spec-strip div:last-child {
  border-right: 0;
}

.spec-strip dt {
  margin-bottom: 7px;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-strip dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 950;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 520px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 250, 243, 0.2)),
    linear-gradient(145deg, #8b7355, #6b5d4f 56%, #4c4035);
  box-shadow: var(--soft-shadow), 18px 18px 0 rgba(44, 36, 22, 0.12);
}

.hero-visual::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 250, 243, 0.32);
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 250, 243, 0.08) 22px 24px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 250, 243, 0.08) 34px 36px);
}

.console-top {
  position: absolute;
  top: 26px;
  left: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.console-top span {
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.console-top span:nth-child(1) {
  background: var(--coral);
}

.console-top span:nth-child(2) {
  background: var(--mustard);
}

.console-top span:nth-child(3) {
  background: var(--olive);
}

.chip-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 56px;
}

.chip-board {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0.98) 0 37%, transparent 38%),
    linear-gradient(45deg, transparent 0 47%, rgba(255, 250, 243, 0.24) 47% 53%, transparent 53%),
    linear-gradient(135deg, var(--olive), #335d44);
  box-shadow:
    inset 0 0 0 14px rgba(255, 250, 243, 0.14),
    0 26px 50px rgba(0, 0, 0, 0.26);
}

.chip-board::before,
.chip-board::after {
  position: absolute;
  content: "";
  border: 2px solid rgba(245, 230, 211, 0.78);
  border-radius: 50%;
}

.chip-board::before {
  inset: 34px;
}

.chip-board::after {
  inset: 58px;
  transform: rotate(21deg);
}

.chip-board img {
  position: relative;
  z-index: 3;
  width: min(58%, 210px);
  border-radius: 50%;
  background: #030303;
  box-shadow: 0 0 0 9px rgba(255, 250, 243, 0.12);
}

.chip-label {
  position: absolute;
  right: -24px;
  bottom: 42px;
  z-index: 4;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  background: var(--mustard);
  box-shadow: 8px 8px 0 var(--ink);
}

.chip-label strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1;
}

.chip-label span {
  display: block;
  margin-top: 5px;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.pin {
  position: absolute;
  top: 11%;
  bottom: 11%;
  width: 12px;
  background: repeating-linear-gradient(
    0deg,
    var(--mustard) 0 10px,
    transparent 10px 20px
  );
}

.pin-left {
  left: -24px;
}

.pin-right {
  right: -24px;
}

.signal-lines {
  position: absolute;
  right: 28px;
  bottom: 48px;
  display: grid;
  gap: 12px;
}

.signal-lines span {
  display: block;
  width: 96px;
  height: 10px;
  background: var(--coral);
}

.signal-lines span:nth-child(2) {
  width: 130px;
  background: var(--bluegray);
}

.signal-lines span:nth-child(3) {
  width: 72px;
  background: var(--mustard);
}

.orb,
.starburst,
.atom-ring {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.orb {
  border: 2px solid rgba(44, 36, 22, 0.28);
  border-radius: 50%;
}

.orb-a {
  top: 18%;
  left: -74px;
  width: 220px;
  height: 220px;
  background: rgba(125, 155, 168, 0.32);
}

.orb-b {
  right: 4%;
  bottom: 2%;
  width: 170px;
  height: 170px;
  background: rgba(229, 122, 119, 0.28);
}

.starburst {
  width: 130px;
  aspect-ratio: 1;
  background: var(--orange);
  clip-path: polygon(
    50% 0,
    58% 34%,
    90% 12%,
    66% 42%,
    100% 50%,
    66% 58%,
    90% 88%,
    58% 66%,
    50% 100%,
    42% 66%,
    10% 88%,
    34% 58%,
    0 50%,
    34% 42%,
    10% 12%,
    42% 34%
  );
}

.starburst-a {
  top: 17%;
  right: 43%;
  opacity: 0.82;
}

.starburst-b {
  right: 8%;
  top: 29%;
  width: 76px;
  background: var(--mustard);
}

.atom-ring {
  width: 190px;
  height: 82px;
  border: 3px solid rgba(74, 124, 89, 0.52);
  border-radius: 50%;
}

.ring-a {
  top: 14%;
  right: 20%;
  transform: rotate(-24deg);
}

.ring-b {
  left: 48%;
  bottom: 9%;
  transform: rotate(28deg);
}

.ticker-band {
  display: flex;
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  overflow: hidden;
  padding: 18px clamp(20px, 5vw, 72px);
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-band span {
  position: relative;
}

.ticker-band span::after {
  position: absolute;
  top: 50%;
  right: -34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
  transform: translateY(-50%);
}

.content-section {
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading,
.feature-grid,
.chart-section,
.contract-section,
footer {
  max-width: 1200px;
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(20px, 4vw, 70px);
  align-items: end;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  min-height: 300px;
  padding: 28px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(107, 93, 79, 0.28);
}

.feature-card:nth-child(2) {
  background: #eef4ef;
}

.feature-card:nth-child(3) {
  background: #f7dfd8;
}

.feature-card > p:first-child {
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin-bottom: 18px;
}

.feature-card span {
  display: block;
  width: 72px;
  height: 13px;
  margin-bottom: 24px;
  background:
    linear-gradient(90deg, var(--olive) 0 33%, transparent 33% 43%, var(--mustard) 43% 69%, transparent 69% 78%, var(--orange) 78%);
}

.feature-card > p:last-child {
  margin-bottom: 0;
  color: rgba(44, 36, 22, 0.75);
  font-size: 1rem;
  line-height: 1.65;
}

.chart-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.chart-copy p:not(.eyebrow) {
  color: rgba(44, 36, 22, 0.76);
  font-size: 1.04rem;
  line-height: 1.72;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  min-height: 42px;
  border-bottom: 3px solid var(--orange);
  color: var(--ink);
  font-weight: 950;
  letter-spacing: 0.04em;
}

.social-link {
  border-bottom-color: var(--olive);
}

.chart-frame {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 2px solid var(--ink);
  background: #101010;
  box-shadow: var(--soft-shadow), 14px 14px 0 var(--bluegray);
}

.chart-frame::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 34px;
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(circle at 20px 50%, var(--coral) 0 5px, transparent 6px),
    radial-gradient(circle at 42px 50%, var(--mustard) 0 5px, transparent 6px),
    radial-gradient(circle at 64px 50%, var(--olive) 0 5px, transparent 6px),
    var(--walnut);
  content: "";
}

.chart-frame iframe {
  width: 100%;
  height: 620px;
  border: 0;
  padding-top: 34px;
  background: #111;
}

.contract-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 70px;
  padding: 28px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--mustard);
}

.contract-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.contract-section code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 16px;
  border: 1px solid var(--line);
  background: #f0dfc9;
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.93rem;
}

footer {
  padding: 0 clamp(20px, 5vw, 72px) 42px;
  color: rgba(44, 36, 22, 0.62);
  font-size: 0.86rem;
  line-height: 1.6;
}

footer p {
  margin-bottom: 0;
}

footer a {
  border-bottom: 2px solid rgba(217, 118, 66, 0.55);
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 940px) {
  .hero-grid,
  .section-heading,
  .chart-section,
  .contract-section {
    grid-template-columns: 1fr;
  }

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

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

  .chip-stage {
    min-height: 420px;
    padding: 44px;
  }

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

  .contract-section {
    align-items: stretch;
  }

  .contract-section .button {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-inline: 16px;
  }

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

  .nav-links {
    max-width: 210px;
    flex-wrap: wrap;
    justify-content: flex-end;
    border-radius: 24px;
  }

  .nav-links a {
    min-width: 62px;
    padding-inline: 11px;
  }

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

  .text-link {
    width: fit-content;
  }

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

  .spec-strip div:nth-child(2) {
    border-right: 0;
  }

  .spec-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .hero-visual,
  .chip-stage {
    min-height: 360px;
  }

  .chip-stage {
    padding: 36px;
  }

  .chip-label {
    right: 10px;
    bottom: 22px;
  }

  .pin {
    display: none;
  }

  .signal-lines {
    right: 16px;
    bottom: 18px;
  }

  .chart-section {
    padding-inline: 16px;
  }

  .chart-frame,
  .chart-frame iframe {
    min-height: 520px;
    height: 520px;
  }

  .ticker-band {
    font-size: 0.78rem;
  }
}
