:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --bg-soft: #fffaf2;
  --ink: #181716;
  --muted: #6a6258;
  --line: #ded7cb;
  --panel: #fffdf8;
  --panel-dark: #171717;
  --accent: #0f766e;
  --accent-strong: #0a4f49;
  --rose: #f4a8bd;
  --blue: #315f95;
  --shadow: 0 24px 70px rgba(24, 23, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(247, 244, 238, 0.9) 34rem),
    var(--bg);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 22px max(28px, calc((100vw - 1240px) / 2));
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid rgba(222, 215, 203, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 760;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  color: #393531;
  font-size: 17px;
  font-weight: 700;
}

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

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

main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 52px;
  min-height: calc(100vh - 92px);
  padding: 42px 0 72px;
}

.hero-copy {
  max-width: 760px;
}

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

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

h1 {
  max-width: 740px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions,
.band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 720;
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

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

.button-primary:hover {
  background: #2c2926;
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.82);
}

.button-secondary:hover {
  border-color: #bfb5a7;
}

.button-ghost {
  color: var(--accent-strong);
  background: transparent;
}

.hero-panel {
  position: relative;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(24, 23, 22, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(239, 246, 243, 0.9)),
    var(--panel);
  box-shadow: var(--shadow);
}

.panel-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.panel-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #df6d73;
}

.panel-topbar span:nth-child(2) {
  background: #e4b64f;
}

.panel-topbar span:nth-child(3) {
  background: #45a979;
}

.panel-topbar strong {
  margin-left: 8px;
}

.terminal-window {
  margin-top: 10px;
  min-height: 440px;
  padding: 28px;
  overflow: hidden;
  border-radius: 8px;
  color: #f4f0e8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 26%),
    var(--panel-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.82;
}

.terminal-window p {
  margin-bottom: 14px;
}

.terminal-window .muted {
  color: #9f978b;
}

.prompt {
  color: #7dd3c7;
}

.output {
  color: #d9d3c9;
}

.section {
  padding: 86px 0 32px;
}

.section.compact {
  padding-top: 40px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.section-heading h2,
.download-band h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

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

article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

article h3 {
  margin-bottom: 12px;
  font-size: 20px;
  letter-spacing: 0;
}

article p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.step-index {
  display: block;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.download-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin: 72px 0 36px;
  padding: 34px;
  border: 1px solid rgba(24, 23, 22, 0.14);
  border-radius: 8px;
  background: #e8f2ee;
}

.download-band p:not(.eyebrow) {
  max-width: 690px;
  margin: 16px 0 0;
  color: #4e5f58;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 700;
}

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-panel {
    max-width: 680px;
  }

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

  .download-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  h1 {
    font-size: 44px;
  }

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

  .button {
    width: 100%;
  }

  .terminal-window {
    min-height: 360px;
    padding: 18px;
    font-size: 13px;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  article {
    min-height: 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
