:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #eeebe3;
  --text: #191b1f;
  --muted: #62676f;
  --line: #d7d1c4;
  --teal: #0e6f68;
  --teal-dark: #0a4d49;
  --amber: #b6681e;
  --ink: #111417;
  --shadow: 0 18px 45px rgba(22, 25, 28, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 244, 239, 0.94);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(17, 20, 23, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  min-width: 38px;
  height: 28px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  gap: clamp(14px, 2.8vw, 34px);
  font-size: 14px;
  color: inherit;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1d211f;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(8, 12, 12, 0.86) 0%, rgba(8, 12, 12, 0.54) 42%, rgba(8, 12, 12, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 12, 12, 0.35), rgba(8, 12, 12, 0.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 44px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b15e;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 740;
  line-height: 1.2;
}

.button-primary {
  background: var(--teal);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0;
}

.overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin-top: -44px;
  padding: 0;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: var(--surface);
  padding: 24px;
}

.metric strong {
  font-size: 30px;
  line-height: 1;
}

.metric span,
.stack-item span,
.note-item time,
.demo-kicker {
  color: var(--muted);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.section-heading {
  max-width: 520px;
}

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

.section-heading p,
.contact p,
.note-item p,
.demo-card p {
  color: var(--muted);
  line-height: 1.75;
}

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

.note-item,
.demo-card,
.stack-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.note-item {
  padding: 24px;
}

.note-item time {
  display: block;
  margin-bottom: 10px;
}

.note-item p,
.demo-card p {
  margin-bottom: 0;
}

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

.demo-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.demo-kicker {
  margin-bottom: 16px;
  color: var(--teal);
  font-weight: 760;
}

.demo-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--amber);
  font-weight: 760;
}

.stack-band {
  width: 100%;
  max-width: none;
  background: var(--ink);
  color: #fff;
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  padding-right: max(18px, calc((100vw - 1180px) / 2));
}

.stack-band .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

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

.stack-item {
  display: grid;
  gap: 12px;
  min-height: 120px;
  align-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  padding: 22px;
}

.stack-item span {
  color: #f0b15e;
}

.stack-item strong {
  font-size: 18px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact > div:first-child {
  max-width: 680px;
}

.contact .button-secondary {
  background: transparent;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--teal);
  font-weight: 740;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 18px;
  }

  .site-nav {
    max-width: 210px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 14px;
    text-align: right;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 70px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .overview,
  .demo-grid,
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: absolute;
  }

  .site-header.is-scrolled {
    background: transparent;
    color: #fff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  h1 {
    font-size: 38px;
  }

  .overview,
  .demo-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
