:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --paper: #ffffff;
  --ink: #121212;
  --muted: #62615c;
  --soft: #ece9e1;
  --line: #d8d4ca;
  --orange: #ff5a1f;
  --green: #28bf67;
  --blue: #2878ff;
  --shadow: 0 18px 50px rgba(22, 20, 17, 0.09);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 18, 18, 0.035) 1px, transparent 1px) 0 0 / 100% 40px,
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

::selection {
  color: #fff;
  background: var(--orange);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 14px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 247, 244, 0.9);
  border-bottom: 1px solid rgba(216, 212, 202, 0.85);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.section-heading,
.product-title,
.tag-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
}

.nav-links {
  gap: clamp(14px, 4vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: clamp(32px, 7vw, 82px);
  align-items: center;
  padding: clamp(46px, 8vw, 86px) 0 clamp(36px, 7vw, 72px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.45fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: end;
  padding: clamp(46px, 9vw, 92px) 0 clamp(34px, 7vw, 68px);
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(52px, 8vw, 102px);
  line-height: 0.96;
  font-weight: 900;
  overflow-wrap: normal;
  text-wrap: balance;
}

.page-hero p {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 24px);
}

.page-hero aside {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 20, 17, 0.05);
}

.page-hero aside strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.page-hero aside span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(64px, 10vw, 132px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
  font-weight: 760;
}

.hero-subtitle::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.12em;
  background: var(--orange);
  border-radius: 999px;
  vertical-align: 0.02em;
}

.hero-note {
  max-width: 570px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button::after {
  content: "->";
  margin-left: 10px;
}

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

.button-dark {
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
}

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

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin-top: 34px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 20, 17, 0.05);
}

.metric {
  min-height: 92px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span,
.metric em,
.queue-header span,
.queue-row span,
.queue-row em,
.terminal-lines,
.product-title span,
.tag-row span,
.update-item time,
.update-item > span,
.social-card em,
.section-heading span,
.footer {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  line-height: 1;
}

.metric em {
  display: block;
  margin-top: 6px;
}

.queue-window {
  overflow: hidden;
  color: #f5f7f7;
  background:
    radial-gradient(circle at 20% 0%, rgba(40, 120, 255, 0.2), transparent 32%),
    #111413;
  border: 1px solid #282c2b;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.window-topbar {
  display: grid;
  grid-template-columns: 12px 12px 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid #2b302f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.window-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.window-topbar span:nth-child(1) {
  background: #ff5f57;
}

.window-topbar span:nth-child(2) {
  background: #ffbd2e;
}

.window-topbar span:nth-child(3) {
  background: #28c840;
}

.window-topbar strong {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-topbar em {
  padding: 4px 8px;
  color: #94e7b5;
  background: rgba(40, 191, 103, 0.12);
  border-radius: 999px;
  font-style: normal;
  font-weight: 800;
}

.queue-body {
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.queue-header,
.queue-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 72px 110px;
  gap: 12px;
  align-items: center;
}

.queue-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #303634;
}

.queue-row {
  min-height: 38px;
  font-size: 13px;
}

.queue-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-row mark {
  color: #7ddba5;
  background: transparent;
  font-weight: 800;
  white-space: nowrap;
}

.queue-row:nth-of-type(3) mark {
  color: #62a5ff;
}

.queue-row:nth-of-type(5) mark {
  color: #ffb268;
}

.progress-track {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  background: #252b29;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.terminal-lines {
  display: grid;
  gap: 8px;
  padding: 0 18px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-lines p {
  margin: 0;
}

.terminal-lines span {
  color: var(--green);
}

.products,
.build-log,
.about,
.links,
.newsletter,
.detail-section {
  padding: clamp(46px, 7vw, 76px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.about h2,
.newsletter h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading a,
.future-slot a,
.product-card > a {
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.section-heading a::after,
.future-slot a::after,
.product-card > a::after {
  content: " ->";
}

.product-list {
  display: grid;
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 180px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 20, 17, 0.05);
}

.product-card.compact {
  min-height: 150px;
}

.product-card img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.product-title {
  flex-wrap: wrap;
  gap: 10px;
}

.product-card h3,
.update-item h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.product-title span,
.update-item > span {
  padding: 4px 8px;
  color: #10763b;
  background: #dcf8e7;
  border-radius: 999px;
}

.product-card p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span {
  padding: 5px 8px;
  background: #f2f0eb;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.future-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 142px;
  margin-top: 6px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(255, 90, 31, 0.08), transparent),
    rgba(255, 255, 255, 0.62);
  border: 1px dashed #c8c2b7;
  border-radius: 8px;
}

.future-slot strong {
  display: block;
  font-size: 22px;
}

.future-slot p {
  margin: 8px 0 0;
  color: var(--muted);
}

.update-list {
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.update-item p {
  margin: 7px 0 0;
  color: var(--muted);
}

.update-item > span {
  color: #5b554f;
  background: #edebe5;
}

.about {
  display: grid;
  grid-template-columns: 96px minmax(0, 680px);
  gap: 24px;
  align-items: center;
}

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

.feature-card {
  min-height: 190px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card h3 {
  margin: 0;
  font-size: 19px;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.55fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.copy-block h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.copy-block p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.roadmap-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.roadmap-list span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.about-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(255, 90, 31, 0.35), transparent),
    var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.about p,
.newsletter p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.social-card {
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.social-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.social-card strong {
  font-size: 17px;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  padding-inline: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

#newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: start;
}

#newsletter-form input,
#newsletter-form button {
  min-height: 48px;
  border: 1px solid var(--line);
}

#newsletter-form input {
  min-width: 0;
  padding: 0 14px;
  background: var(--paper);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  outline: none;
}

#newsletter-form input:focus {
  border-color: var(--ink);
}

#newsletter-form button {
  padding: 0 18px;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 0 8px 8px 0;
  font-weight: 800;
  cursor: pointer;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .page-hero,
  .newsletter,
  .split-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .section-shell,
  .footer {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    padding: 12px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(56px, 18vw, 78px);
  }

  .page-hero h1 {
    font-size: clamp(38px, 10vw, 44px);
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .hero-note {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metric-strip,
  .product-card,
  .update-item,
  .about,
  .future-slot,
  .footer,
  #newsletter-form {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .queue-header,
  .queue-row {
    grid-template-columns: 30px minmax(0, 1fr) 82px;
  }

  .queue-header span:last-child,
  .queue-row em {
    display: none;
  }

  .product-card {
    gap: 16px;
  }

  .product-card > a {
    justify-self: start;
  }

  .future-slot {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  #newsletter-form input {
    border-right: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
  }

  #newsletter-form button {
    border-radius: 0 0 8px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
