:root {
  --bg: #0e0e10;
  --surface: #151518;
  --surface-2: #1f1f22;
  --surface-3: #262528;
  --text: #f9f5f8;
  --muted: #adaaad;
  --line: #343139;
  --primary: #c799ff;
  --secondary: #d896fe;
  --danger: #ff6e84;
  --pink: #ff8ba0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 22% 8%, rgba(199, 153, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 78% 22%, rgba(255, 139, 160, 0.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.shell {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(14, 14, 16, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #1d1029;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #d9b8ff;
}

.button.secondary {
  background: var(--surface-2);
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(199, 153, 255, 0.55);
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 58px;
  padding: 64px 0 78px;
}

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

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

h1 {
  font-size: clamp(52px, 8vw, 104px);
  max-width: 820px;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
  max-width: 820px;
}

h3 {
  font-size: 24px;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #d8d2d7;
  font-size: clamp(18px, 2.4vw, 23px);
  overflow-wrap: break-word;
}

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

.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.proof-line span {
  border-left: 2px solid rgba(199, 153, 255, 0.42);
  padding-left: 12px;
}

.hero-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.hero-banner {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-shot,
.wide-shot {
  display: block;
  width: min(100%, 430px);
  margin-left: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-shot.back {
  position: absolute;
  left: 0;
  top: 88px;
  width: 360px;
  opacity: 0.58;
  filter: saturate(0.8);
}

.phone-shot.front {
  position: absolute;
  right: 0;
  top: 0;
}

.section {
  padding: 104px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section.compact {
  padding: 70px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.section-copy {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

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

.panel {
  background: linear-gradient(180deg, rgba(31, 31, 34, 0.82), rgba(21, 21, 24, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
}

.panel p,
.doc p,
.doc li {
  color: var(--muted);
}

.site-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.site-pill {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--surface);
  color: #ded7df;
  font-weight: 800;
}

.workflow {
  display: grid;
  grid-template-columns: 0.74fr 1fr;
  gap: 54px;
  align-items: center;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
}

.step::before {
  content: counter(step);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(199, 153, 255, 0.12);
  color: var(--primary);
  font-weight: 900;
}

.install {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 30px;
  align-items: start;
}

.terminal {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  border-radius: 14px;
  background: #070708;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e7dff0;
}

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

.oss-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.oss-band a,
.oss-band div {
  background: var(--surface);
  padding: 24px;
}

.page-hero {
  padding: 86px 0 56px;
}

.page-hero h1 {
  font-size: clamp(46px, 7vw, 86px);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.doc {
  max-width: 820px;
}

.doc section {
  padding: 0 0 46px;
}

.doc h2 {
  font-size: 34px;
  margin-bottom: 14px;
}

.doc h3 {
  margin: 26px 0 10px;
}

.doc pre {
  margin: 18px 0;
}

.asset-preview {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.feature-showcase {
  display: grid;
  gap: 18px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shot-grid img,
.feature-showcase img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.shot-grid.two-up {
  align-items: start;
}

.wide-shot {
  width: 100%;
  max-width: none;
  margin: 0;
}

.footer {
  padding: 48px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .site-nav .button {
    display: none;
  }

  .hero,
  .section-head,
  .workflow,
  .install,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    display: block;
  }

  .hero h1,
  .lead {
    max-width: calc(100vw - 40px);
  }

  .hero-media {
    min-height: auto;
    margin-top: 42px;
  }

  .phone-shot.back {
    width: 300px;
    left: -54px;
  }

  .phone-shot.front {
    width: min(350px, 92vw);
    right: -8px;
  }

  .grid,
  .site-list,
  .oss-band,
  .shot-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

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

  .phone-shot.front {
    animation: float 5.8s ease-in-out infinite;
  }

  @keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
}
