.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 96px 20px 72px;
  position: relative;
  overflow: hidden;
}

.waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: clamp(2.75rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0 0 22px;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.os-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-dim);
}

.v2-defiler {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, background 0.2s ease;
}

.v2-defiler:hover {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #07130c;
  transform: translateX(-50%) translateY(2px);
}

.v2-defiler svg { width: 16px; height: 16px; }

.demo-section { padding: 72px 0; border-top: 1px solid var(--border); }

.video-shell {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #090c0b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.video-shell video { width: 100%; height: auto; display: block; }

.section {
  padding: 76px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 96px;
}

#demo { scroll-margin-top: 96px; }

.zip-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.zip-note code, .section-lead code, .cli-steps code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text);
  background: rgba(244, 246, 245, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.cli-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 36px;
  font-size: 1.05rem;
}

.install-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
}

.install-box > * { min-width: 0; }

.install-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

.cli-card {
  min-width: 0;
  max-width: 100%;
  background: #080a09;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.cli-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.os-tabs { display: flex; gap: 6px; }

.os-tab, .copy-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.os-tab.active {
  background: var(--emerald);
  color: #07130c;
  border-color: var(--emerald);
  font-weight: 700;
}

.copy-btn:hover { color: var(--text); border-color: var(--text-muted); }

.cli-code {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .install-box { grid-template-columns: 1fr; }
}
