:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #11161c;
  --panel-2: #151b22;
  --text: #f5f7f2;
  --muted: #aeb7b6;
  --soft: #d9e2dc;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #61d7c7;
  --accent-ink: #062522;
  --blue: #82aaff;
  --danger: #ff6b76;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(110deg, rgba(97, 215, 199, 0.16), transparent 36%),
    linear-gradient(180deg, #10151a 0%, #0b0d10 56%, #090a0c 100%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(11, 13, 16, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent-ink);
  background: var(--accent);
}

.site-header nav {
  gap: 8px;
}

.site-header nav a {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-header nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

main {
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(104px, 12vw, 148px) clamp(18px, 6vw, 92px) clamp(44px, 7vw, 96px);
}

.hero-copy {
  min-width: 0;
  max-width: 680px;
  animation: rise 0.68s ease-out both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 104px;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

h2 {
  max-width: 950px;
  font-size: 68px;
  line-height: 1.02;
}

h3 {
  max-width: 620px;
  font-size: 40px;
  line-height: 1.08;
}

.lead,
.section-head p,
.case-item p,
.feature-list p,
.update-flow p,
.install p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  max-width: 610px;
  margin: 24px 0 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 16px;
}

a.primary,
button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

a.primary {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

a.primary:hover,
button:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 215, 199, 0.6);
}

pre {
  max-width: 660px;
  overflow: auto;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #dffdf5;
  font-size: 13px;
  line-height: 1.5;
}

.hero-visual {
  min-width: 0;
  margin: 0;
  animation: float-in 0.78s ease-out 0.08s both;
}

.hero-visual img,
.case-item img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.proof div {
  min-height: 132px;
  padding: 26px clamp(18px, 3vw, 36px);
  border-right: 1px solid var(--line);
}

.proof div:last-child {
  border-right: 0;
}

.proof strong,
.proof span {
  display: block;
}

.proof strong {
  font-size: 40px;
  line-height: 1;
}

.proof span {
  margin-top: 12px;
  color: var(--muted);
}

.section,
.feature-band,
.update-flow,
.install {
  padding: clamp(62px, 9vw, 118px) clamp(18px, 6vw, 92px);
}

.section-head {
  max-width: 960px;
  margin-bottom: clamp(30px, 5vw, 62px);
}

.section-head p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 18px;
}

.section-head.compact {
  margin-bottom: 32px;
}

.case-grid {
  display: grid;
  gap: clamp(38px, 7vw, 96px);
}

.case-item {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
}

.case-item > * {
  min-width: 0;
}

.case-item.reverse {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.95fr);
}

.case-item.reverse img {
  order: 2;
}

.case-item.reverse div {
  order: 1;
}

.case-item p {
  max-width: 560px;
  font-size: 17px;
}

.feature-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature-list div {
  min-height: 250px;
  padding: 24px;
  background: var(--panel-2);
}

.feature-list span {
  color: var(--blue);
  font-weight: 950;
}

.feature-list strong {
  display: block;
  margin-top: 28px;
  font-size: 22px;
}

.update-flow {
  border-bottom: 1px solid var(--line);
}

.flow-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.flow-lane {
  min-width: 0;
  min-height: 288px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.flow-lane span {
  color: var(--accent);
  font-weight: 950;
}

.flow-lane strong {
  display: block;
  margin-top: 28px;
  font-size: 22px;
}

.flow-lane code,
.update-config code,
.install-builder code,
.domain-command code {
  color: var(--soft);
  overflow-wrap: anywhere;
}

.update-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--line);
}

.update-config div {
  min-width: 0;
  padding: 22px 24px;
  background: rgba(10, 14, 18, 0.86);
}

.update-config span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.update-config code {
  display: block;
  font-size: 14px;
  line-height: 1.55;
}

.install-builder {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.install-builder .eyebrow {
  margin-bottom: 0;
}

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

.install-modes label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.install-modes input {
  width: 14px;
  height: 14px;
  margin: 0 6px 0 0;
  accent-color: var(--accent);
}

.domain-field {
  display: grid;
  gap: 8px;
}

.domain-field[hidden] {
  display: none;
}

.domain-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.domain-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.26);
  font: inherit;
  outline: none;
}

.domain-field input:focus {
  border-color: rgba(97, 215, 199, 0.62);
}

.install-builder code {
  display: block;
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  font-size: 13px;
  line-height: 1.5;
}

.domain-builder {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.64fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(34px, 6vw, 72px);
}

.domain-builder h3 {
  max-width: 720px;
}

.domain-command {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.domain-command label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.domain-command input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.26);
  font: inherit;
  outline: none;
}

.domain-command input:focus {
  border-color: rgba(97, 215, 199, 0.62);
}

.domain-command code {
  display: block;
  padding: 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  font-size: 13px;
  line-height: 1.5;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.58fr);
  align-items: start;
  gap: clamp(28px, 6vw, 86px);
}

.install > div:first-child {
  max-width: 780px;
}

.install-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.install-panel span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.install-panel code {
  display: block;
  margin-top: 10px;
  color: var(--soft);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.install-panel .primary {
  margin-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 980px) {
  .hero,
  .case-item,
  .case-item.reverse,
  .domain-builder,
  .install {
    grid-template-columns: 1fr;
  }

  .case-item.reverse img,
  .case-item.reverse div {
    order: initial;
  }

  .proof,
  .feature-list,
  .flow-lanes,
  .update-config {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof div:nth-child(2) {
    border-right: 0;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 72px;
  }

  h2 {
    font-size: 52px;
  }

  h3 {
    font-size: 34px;
  }

  .lead {
    font-size: 21px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 58px;
    padding: 0 14px;
  }

  .brand span:last-child {
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header nav {
    gap: 2px;
  }

  .site-header nav a {
    min-height: 34px;
    padding: 0 6px;
    font-size: 12px;
  }

  .hero {
    padding: 86px 16px 48px;
  }

  h1 { font-size: 50px; }
  h2 { font-size: 38px; }
  h3 { font-size: 28px; }
  .lead { font-size: 17px; }

  .install-modes {
    grid-template-columns: 1fr;
  }

  .actions {
    gap: 10px;
  }

  a.primary,
  button {
    min-height: 44px;
    padding: 0 15px;
  }

  pre {
    font-size: 12px;
  }

  .hero-visual img,
  .case-item img {
    border-radius: 16px;
  }

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

  .proof div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .section,
  .feature-band,
  .update-flow,
  .install {
    padding: 56px 16px;
  }

  .case-grid {
    gap: 54px;
  }

  .feature-list div {
    min-height: auto;
  }

  .flow-lanes,
  .update-config {
    grid-template-columns: 1fr;
  }

  .flow-lane {
    min-height: auto;
  }
}
