:root {
  --bg: #071019;
  --bg-soft: #0d1a29;
  --panel: #13263d;
  --panel-soft: #0f2034;
  --text: #edf4ff;
  --muted: #a8b8cf;
  --accent: #23d18b;
  --accent-soft: #17b7a2;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 4.15rem;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", -apple-system, system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 8% -2%, rgba(35, 209, 139, 0.15), transparent 55%),
    radial-gradient(900px 520px at 100% -10%, rgba(23, 183, 162, 0.14), transparent 55%),
    linear-gradient(180deg, #050b13 0%, #071019 45%, #081427 100%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(11px);
  background: rgba(7, 15, 25, 0.88);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 0 5px rgba(35, 209, 139, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.nav-cta {
  padding: 0.52rem 0.72rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.93rem;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  color: #041019;
  background: linear-gradient(130deg, var(--accent), var(--accent-soft));
  font-weight: 700;
  border-color: rgba(0, 0, 0, 0.15);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.23rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

main {
  width: 100%;
  margin: 0 auto 4rem;
}

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 3.1rem 0 2.8rem;
}

.section.alt {
  position: relative;
}

.section.alt::before {
  content: "";
  position: absolute;
  inset: 1.2rem -1.1rem;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  z-index: -1;
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.46rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 209, 139, 0.45);
  background: linear-gradient(130deg, rgba(35, 209, 139, 0.2), rgba(23, 183, 162, 0.12));
  box-shadow: 0 10px 22px rgba(35, 209, 139, 0.15);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.45rem, 2.9vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

.legal-page .doc-panel h3 {
  margin-top: 1.25rem;
}

.legal-page .doc-panel h3:first-child {
  margin-top: 0;
}

p {
  margin: 0;
}

.lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 66ch;
  line-height: 1.55;
}

.hero {
  display: grid;
  grid-template-columns: 0.88fr 1.58fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-breakout {
  width: min(calc(100% - 2rem), 1800px);
  margin-left: auto;
  margin-right: auto;
}

.overview-shot img {
  aspect-ratio: 21 / 10;
  object-fit: contain;
  object-position: left center;
  background: #06121d;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
}

.hero-pills {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-pills span {
  padding: 0.38rem 0.63rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 209, 139, 0.36);
  background: rgba(35, 209, 139, 0.12);
  color: #cdfbe9;
  font-size: 0.8rem;
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.workflow-columns {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1fr auto 1.35fr;
  gap: 1rem;
  align-items: stretch;
}

.workflow-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(126, 250, 210, 0.38) 18%, rgba(126, 250, 210, 0.5) 50%, rgba(126, 250, 210, 0.38) 82%, transparent 100%);
}

.workflow-copy {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.15rem 1.2rem;
}

.steps,
.checks {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  display: grid;
  gap: 0.5rem;
}

.muted {
  margin-top: 1rem;
  color: var(--muted);
}

.muted.no-top {
  margin-top: 0;
}

.architecture {
  margin-top: 1rem;
  border: 1px solid rgba(35, 209, 139, 0.24);
  background:
    radial-gradient(900px 280px at 10% 0%, rgba(35, 209, 139, 0.14), transparent 58%),
    linear-gradient(165deg, #12293f, #102339 58%, #0f2136);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
}

.architecture .node {
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0.8rem;
  padding: 0.8rem 0.7rem;
  text-align: center;
  font-weight: 700;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  min-height: 5rem;
  min-width: 8.8rem;
  display: grid;
  place-items: center;
  letter-spacing: 0.01em;
  flex: 0 0 8.8rem;
}

.architecture .arrow {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 250, 210, 0.4);
  background: rgba(126, 250, 210, 0.08);
  display: grid;
  place-items: center;
  color: #7efad2;
  font-size: 1.15rem;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(126, 250, 210, 0.22);
  flex: 0 0 2.4rem;
}

.module-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.module-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(15, 31, 49, 0.92), rgba(12, 25, 41, 0.86));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
  height: 100%;
}

.module-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(35, 209, 139, 0.86), rgba(23, 183, 162, 0.24));
  pointer-events: none;
}

.module-card:nth-child(even) {
  background: linear-gradient(168deg, rgba(18, 36, 57, 0.94), rgba(11, 24, 39, 0.88));
}

.module-card:nth-child(1)::before { background: linear-gradient(180deg, #23d18b, rgba(35, 209, 139, 0.25)); }
.module-card:nth-child(2)::before { background: linear-gradient(180deg, #7efad2, rgba(126, 250, 210, 0.25)); }
.module-card:nth-child(3)::before { background: linear-gradient(180deg, #78b4ff, rgba(120, 180, 255, 0.25)); }
.module-card:nth-child(4)::before { background: linear-gradient(180deg, #ffd07e, rgba(255, 208, 126, 0.25)); }
.module-card:nth-child(5)::before { background: linear-gradient(180deg, #ff8fa3, rgba(255, 143, 163, 0.25)); }
.module-card:nth-child(6)::before { background: linear-gradient(180deg, #b8ff6a, rgba(184, 255, 106, 0.25)); }
.module-card:nth-child(7)::before { background: linear-gradient(180deg, #9ea8ff, rgba(158, 168, 255, 0.25)); }
.module-card:nth-child(8)::before { background: linear-gradient(180deg, #ffb3e0, rgba(255, 179, 224, 0.25)); }

.module-card h3 {
  padding-left: 0.35rem;
}

.module-card p {
  color: var(--muted);
  line-height: 1.5;
}

.module-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  line-height: 1.45;
  display: grid;
  gap: 0.35rem;
}

.shot-row {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.08rem;
}

.module-card .shot-row {
  margin-top: auto;
}

.service-log-card .shot {
  min-height: 190px;
}

.service-log-card .shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

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

.shot {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.82rem;
  overflow: hidden;
  padding: 0;
  display: block;
  cursor: zoom-in;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot.frame img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-caption {
  display: block;
  padding: 0.6rem 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: left;
}

.requirements-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.requirements-grid article {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.requirements-grid h3 {
  margin-bottom: 0.65rem;
}

.requirements-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.45;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.cta {
  text-align: center;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.cta p {
  color: var(--muted);
  max-width: 72ch;
}

.install-steps {
  counter-reset: install-step;
  list-style: none;
  margin: 0.2rem auto 0;
  max-width: 78ch;
  text-align: left;
  color: var(--text);
  line-height: 1.5;
  display: grid;
  gap: 0.55rem;
  padding-left: 0;
}

.install-steps li {
  counter-increment: install-step;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(23, 183, 162, 0.14), rgba(255, 255, 255, 0.03));
  padding: 0.55rem 0.95rem 0.55rem 3rem;
}

.install-steps li::before {
  content: counter(install-step);
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #052015;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

.quick-commands {
  width: min(100%, 900px);
  margin: 0.2rem auto 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(5, 11, 18, 0.85);
  padding: 0.8rem 0.9rem;
  overflow-x: auto;
}

.quick-commands code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #d8f1e7;
  white-space: pre;
}

.cta-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  border-radius: 0.72rem;
  border: 1px solid var(--line);
  font-weight: 650;
}

.btn-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.btn.primary {
  color: #051017;
  background: linear-gradient(130deg, var(--accent), var(--accent-soft));
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 90;
}

.img-modal.open {
  display: grid;
}

.img-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 10, 0.83);
  backdrop-filter: blur(6px);
}

.img-modal__body {
  position: relative;
  width: min(96vw, 1450px);
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.55rem;
  background: rgba(10, 19, 30, 0.95);
  box-shadow: var(--shadow);
}

.img-modal__img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  display: block;
  border-radius: 0.75rem;
}

.img-modal__close {
  position: absolute;
  top: calc(-2.2rem - 5px);
  right: 0;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(8, 18, 29, 0.96);
  color: var(--text);
  padding: 0.36rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 10, 17, 0.88);
  backdrop-filter: blur(8px);
}

.site-footer__inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1rem 0 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer__copy {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-footer__nav a {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 0.2rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.dev-ribbon {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 95;
  width: 360px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: none;
  padding: 0.52rem 1.1rem 0.52rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-left: 0;
  border-bottom: 0;
  border-right: 0;
  border-radius: 0 0.35rem 0 0;
  background: linear-gradient(135deg, #ffd15c, #ff9f43);
  color: #2c1b00;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  overflow: hidden;
}

.dev-ribbon::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 24px;
  height: calc(100% + 2px);
  background: #05070d;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

@media (max-width: 1120px) {
  .module-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 920px) {
  body {
    padding-top: 3.9rem;
  }

  .site-header {
    padding: 0.8rem 0.9rem;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 3.6rem 0 0 0;
    background: rgba(2, 8, 14, 0.66);
    backdrop-filter: blur(2px);
    z-index: 39;
  }

  .menu-toggle {
    display: inline-flex;
    z-index: 72;
  }

  .site-nav {
    position: fixed;
    top: 3.6rem;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid var(--line);
    border-left: 0;
    border-right: 0;
    border-radius: 0 0 0.9rem 0.9rem;
    background: #07121e;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    justify-content: stretch;
    justify-items: stretch;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 3.6rem);
    overflow-y: auto;
    z-index: 40;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }

  .nav-link,
  .nav-cta {
    text-align: left;
    width: 100%;
    display: block;
    font-size: 1.05rem;
    padding: 0.72rem 0.82rem;
  }

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

  .hero-breakout {
    width: min(calc(100% - 1.6rem), 1800px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero,
  .hero-copy,
  .overview-shot {
    min-width: 0;
  }

  .workflow-columns {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .workflow-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(126, 250, 210, 0.45) 25%, rgba(126, 250, 210, 0.55) 50%, rgba(126, 250, 210, 0.45) 75%, transparent 100%);
  }

  .architecture {
    flex-direction: column;
    gap: 0.5rem;
  }

  .architecture .arrow {
    transform: rotate(90deg);
  }

  .architecture .node {
    width: 100%;
    max-width: 18rem;
    flex: 0 0 auto;
    min-height: 4.2rem;
  }

  .requirements-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(calc(100% - 1.1rem), var(--max));
  }

  .hero-breakout {
    width: min(calc(100% - 1.25rem), 1800px);
  }

  .section {
    padding: 2.2rem 0 2rem;
  }

  .shot-row,
  .shot-row.two,
  .shot-row.three,
  .shot-row.four {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    width: min(calc(100% - 1.1rem), var(--max));
    padding: 0.85rem 0 0.95rem;
  }

  .site-footer {
    padding-bottom: 3.35rem;
  }

  .dev-ribbon {
    left: 0;
    bottom: 0;
    width: 290px;
    transform: none;
    font-size: 0.72rem;
    padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  }

  .dev-ribbon::after {
    width: 18px;
  }
}
