:root {
  --color-primary: #349baa;
  --color-cta: #ef744a;
  --color-highlight: #faba3f;
  --color-secondary: #34b5df;

  --bg-warm: #f8f6f2;
  --bg-soft: #efeae2;
  --surface: #fffcf8;
  --surface-muted: #f6f1e9;

  --text-strong: #20363a;
  --text-body: #4c666b;
  --text-muted: #7b8f93;
  --border-soft: rgba(32, 54, 58, 0.1);
  --border-faint: rgba(32, 54, 58, 0.06);

  --shadow-soft: 0 14px 40px rgba(32, 54, 58, 0.08);
  --shadow-float: 0 22px 60px rgba(32, 54, 58, 0.12);
  --shadow-button: 0 10px 24px rgba(239, 116, 74, 0.22);

  --radius-card: 24px;
  --radius-input: 18px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Rounded", "Avenir Next Rounded", "Nunito Sans", ui-rounded,
    system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(250, 186, 63, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(52, 181, 223, 0.08), transparent 20%),
    var(--bg-warm);
  color: var(--text-strong);
}

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

code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(32, 54, 58, 0.06);
  color: var(--text-strong);
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, "Cascadia Code",
    "Roboto Mono", monospace;
  font-size: 0.92em;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
}

.page-shell::before {
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: rgba(250, 186, 63, 0.13);
}

.page-shell::after {
  bottom: 5%;
  left: -60px;
  width: 200px;
  height: 200px;
  background: rgba(52, 155, 170, 0.09);
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(248, 246, 242, 0.78);
  border-bottom: 1px solid rgba(32, 54, 58, 0.05);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand-lockup img {
  width: 112px;
}

.brand-lockup__meta {
  display: grid;
  gap: 2px;
}

.eyebrow {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.brand-lockup__meta strong {
  font-size: 15px;
  line-height: 1.2;
}

.topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-faint);
  color: var(--text-body);
  font-size: 14px;
}

.hero {
  padding: var(--space-9) 0 var(--space-8);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: var(--space-7);
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 10ch;
}

.hero p {
  margin: var(--space-5) 0 0;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.button--primary {
  color: #fff;
  background: var(--color-cta);
  box-shadow: var(--shadow-button);
}

.button--secondary {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--border-soft);
  box-shadow: 0 8px 20px rgba(32, 54, 58, 0.05);
}

.button--accent {
  color: #2f8a98;
  background: rgba(52, 155, 170, 0.12);
}

.hero-card {
  position: relative;
  padding: var(--space-6);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 252, 248, 0.96)),
    var(--surface);
  border: 1px solid rgba(32, 54, 58, 0.06);
  box-shadow: var(--shadow-float);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(239, 116, 74, 0.06), rgba(52, 181, 223, 0.06));
  pointer-events: none;
}

.hero-card > * {
  position: relative;
}

.hero-card__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.chip--warm {
  background: rgba(250, 186, 63, 0.16);
  color: #8a5f05;
}

.chip--aqua {
  background: rgba(52, 155, 170, 0.12);
  color: #2e8d9c;
}

.hero-card__panel {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: 24px;
  background: var(--surface-muted);
}

.playback {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-4);
  align-items: center;
}

.playback__disc {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #244a52 0 15%, transparent 16%),
    radial-gradient(circle at 50% 50%, #f4d081 0 28%, transparent 29%),
    radial-gradient(circle at 50% 50%, #ef9e49 0 43%, transparent 44%),
    radial-gradient(circle at 50% 50%, #204b5b 0 56%, transparent 57%),
    linear-gradient(145deg, var(--color-primary), var(--color-secondary));
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.22);
}

.playback h3,
.playback p {
  margin: 0;
}

.playback h3 {
  font-size: 22px;
  line-height: 1.15;
}

.playback p {
  color: var(--text-body);
  margin-top: var(--space-2);
}

.progress {
  margin-top: var(--space-4);
}

.progress__rail {
  height: 8px;
  border-radius: 999px;
  background: rgba(32, 54, 58, 0.08);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-highlight), var(--color-cta));
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: 13px;
}

.section {
  padding: 0 0 var(--space-8);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.section__head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section__head p {
  margin: 0;
  max-width: 60ch;
  color: var(--text-body);
  font-size: 18px;
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: var(--space-5);
}

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

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

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

.swatch {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-faint);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.swatch__color {
  min-height: 128px;
}

.swatch__body {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
}

.swatch__body strong {
  font-size: 18px;
}

.swatch__body span {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.5;
}

.token-card,
.spec-card,
.ui-card {
  padding: var(--space-6);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-faint);
  box-shadow: var(--shadow-soft);
}

.spec-card h3,
.ui-card h3,
.token-card h3 {
  margin: 0 0 var(--space-4);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.type-stack {
  display: grid;
  gap: var(--space-4);
}

.type-sample {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-faint);
}

.type-sample:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.type-sample small {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.type-sample--display strong {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.type-sample--h1 strong {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.type-sample--h3 strong {
  font-size: 24px;
  line-height: 1.2;
}

.type-sample--body strong {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--text-body);
}

.space-stack {
  display: grid;
  gap: var(--space-4);
}

.space-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-body);
}

.space-item__bar {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 155, 170, 0.18), rgba(52, 181, 223, 0.35));
}

.button-stack,
.card-stack {
  display: grid;
  gap: var(--space-4);
}

.demo-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid rgba(32, 54, 58, 0.08);
  box-shadow: var(--shadow-soft);
}

.demo-card__accent {
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-primary);
}

.demo-card__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: 14px;
}

.demo-card p,
.token-card p,
.ui-card p,
.spec-card p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.65;
}

.quote {
  position: relative;
  padding: var(--space-7);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(52, 181, 223, 0.12), transparent 32%),
    var(--bg-soft);
  border: 1px solid rgba(32, 54, 58, 0.05);
  overflow: hidden;
}

.quote::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(250, 186, 63, 0.12);
}

.quote blockquote {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.quote p {
  position: relative;
  margin: var(--space-4) 0 0;
  color: var(--text-body);
  font-size: 16px;
}

.footer {
  padding: 0 0 var(--space-8);
}

.footer__panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-faint);
}

.footer__panel p {
  margin: 0;
  color: var(--text-body);
  max-width: 58ch;
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar__inner {
    min-height: 68px;
  }

  .brand-lockup img {
    width: 88px;
  }

  .topbar__pill {
    display: none;
  }

  .hero {
    padding-top: var(--space-8);
  }

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

  .hero-card,
  .token-card,
  .spec-card,
  .ui-card {
    padding: var(--space-5);
  }

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

  .space-item {
    grid-template-columns: 72px 1fr;
  }

  .space-item strong {
    grid-column: 1 / -1;
  }

  .quote {
    padding: var(--space-5);
  }
}
