:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101114;
  --panel-2: #171821;
  --line: #2a2d36;
  --text: #f6f3f7;
  --muted: #b7b1bf;
  --soft: #7f778a;
  --pink: #ff6be7;
  --pink-2: #ffb2f4;
  --green: #b7ff68;
  --cyan: #74e7ff;
  --shadow: rgba(255, 107, 231, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 107, 231, 0.07), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(5, 5, 5, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

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

.nav-button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #111216;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 74px 7vw 64px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 84%);
}

.hero-copy,
.hero-logo {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(72px, 14vw, 188px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.lede {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.12;
}

.sublede,
.section p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 760;
}

.button.primary {
  color: #160014;
  background: var(--pink-2);
  border-color: var(--pink-2);
  box-shadow: 0 0 36px var(--shadow);
}

.button.secondary {
  background: #111216;
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(255, 107, 231, 0.22));
}

.terminal-band,
.init-band {
  padding: 0 7vw 88px;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  max-width: 980px;
  font-size: clamp(28px, 4vw, 50px);
}

.tui-preview {
  display: block;
  width: min(1160px, 100%);
  height: auto;
  border: 1px solid #282b35;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 0 46px rgba(255, 107, 231, 0.12);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -42px 7vw 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.proof-strip div {
  min-height: 116px;
  padding: 22px;
  background: #0d0e12;
}

.proof-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--pink-2);
  font-size: 26px;
  line-height: 1;
}

.proof-strip span {
  color: var(--muted);
  font-size: 14px;
}

.terminal {
  width: min(980px, 100%);
  border: 1px solid #34313d;
  border-radius: 8px;
  background: #0b0c0f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #262832;
  background: #15161c;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--soft);
}

.terminal-bar span:nth-child(1) {
  background: #ff6868;
}

.terminal-bar span:nth-child(2) {
  background: #ffd166;
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal pre,
.install pre {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  color: #e8e3ed;
  font-size: 15px;
}

.section {
  padding: 96px 7vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  margin-bottom: 36px;
}

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

.feature-grid article,
.install-grid > div,
.metric-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid article {
  padding: 24px;
}

.feature-grid p {
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 44px;
  align-items: center;
}

.inline-link {
  color: var(--cyan);
  font-weight: 760;
}

.metric-table {
  padding: 8px;
}

.metric-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

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

.metric-table span {
  color: var(--muted);
}

.metric-table strong {
  color: var(--pink-2);
  font-size: 20px;
}

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

.install-grid h3 {
  padding: 22px 24px 0;
}

.install pre {
  background: var(--panel-2);
  border-top: 1px solid var(--line);
}

.zh {
  background: #08080a;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 32px 7vw 48px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer a {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 22px;
  }

  .nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .feature-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 54px 22px 38px;
  }

  .hero-logo {
    justify-content: flex-start;
  }

  .hero-logo img {
    max-width: 360px;
  }

  .terminal-band,
  .init-band,
  .section,
  .proof-strip {
    padding-left: 22px;
    padding-right: 22px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    margin: 0 22px 56px;
    padding: 0;
  }

  .terminal pre,
  .install pre {
    font-size: 13px;
  }
}
