:root {
  color: #eef5ff;
  background: #070a14;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  color: #eef5ff;
  background:
    radial-gradient(circle at 18% 4%, rgba(80, 210, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(142, 97, 255, 0.22), transparent 30rem),
    linear-gradient(180deg, #070a14 0%, #0b1120 48%, #08101a 100%);
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(90px, 1fr);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav nav,
.hero-actions,
.hero-tags,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #08101a;
  background: linear-gradient(135deg, #7dd3fc, #a7f3d0 52%, #c4b5fd);
  border-radius: 8px;
  font-size: 12px;
}

.site-nav nav {
  gap: 4px;
  padding: 6px;
  color: rgba(235, 245, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.site-nav nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.nav-cta {
  justify-self: end;
  padding: 10px 16px;
  color: #09111e;
  background: #e8fbff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 78px 0 42px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #83f7c4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.install-copy h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.98;
}

.hero-lead {
  max-width: 690px;
  margin: 26px 0 0;
  color: rgba(232, 240, 255, 0.74);
  font-size: 18px;
  line-height: 1.8;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  color: #06111d;
  background: linear-gradient(135deg, #89f7c5, #8bd8ff);
  box-shadow: 0 18px 44px rgba(58, 207, 255, 0.18);
}

.secondary-button {
  color: #eaf3ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-tags {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 8px 10px;
  color: rgba(232, 240, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
}

.product-preview,
.module-tree,
.command-card,
.capability-card,
.terminal-card,
.faq-list details {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 14px;
}

.product-preview {
  align-self: center;
  overflow: hidden;
  background: rgba(9, 15, 28, 0.9);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  color: rgba(232, 240, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.preview-topbar span:nth-child(1) { background: #fb7185; }
.preview-topbar span:nth-child(2) { background: #facc15; }
.preview-topbar span:nth-child(3) { background: #4ade80; }
.preview-topbar strong { margin-left: 8px; font-size: 12px; }

.preview-layout {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 392px;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  background: rgba(2, 7, 18, 0.62);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-nav {
  padding: 10px 12px;
  color: rgba(232, 240, 255, 0.58);
  border-radius: 8px;
  font-size: 13px;
}

.preview-nav.active {
  color: #07111d;
  background: #a7f3d0;
  font-weight: 800;
}

.preview-main {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.preview-heading p {
  margin: 0 0 6px;
  color: #83f7c4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
}

.preview-heading button {
  height: 36px;
  padding: 0 14px;
  color: #06111d;
  background: #8bd8ff;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.module-tree,
.command-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.module-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  color: rgba(232, 240, 255, 0.72);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
}

.module-row.selected {
  color: #f8ffff;
  background: rgba(41, 211, 137, 0.16);
  border: 1px solid rgba(131, 247, 196, 0.28);
}

.module-row b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-row em {
  color: #a7f3d0;
  font-size: 12px;
  font-style: normal;
}

.command-card {
  color: #cbd5e1;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
}

.command-line { color: #bfdbfe; }
.log-line.success { color: #86efac; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.metric-strip div {
  display: grid;
  gap: 4px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-strip strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.metric-strip span {
  color: rgba(232, 240, 255, 0.66);
  font-size: 13px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.install-copy h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.section-heading p:not(.eyebrow),
.install-copy p:not(.eyebrow) {
  margin: 20px 0 0;
  color: rgba(232, 240, 255, 0.66);
  font-size: 16px;
  line-height: 1.8;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.capability-card {
  min-height: 220px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04));
}

.capability-card p {
  margin: 0 0 34px;
  color: #8bd8ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.capability-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.capability-card span {
  display: block;
  margin-top: 14px;
  color: rgba(232, 240, 255, 0.64);
  font-size: 14px;
  line-height: 1.75;
}

.install-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.install-grid,
.terminal-card,
.faq-list {
  display: grid;
  gap: 14px;
}

.terminal-card {
  padding: 20px;
}

.terminal-card span {
  color: #ffffff;
  font-weight: 800;
}

.terminal-card code {
  display: block;
  padding: 10px 12px;
  overflow: auto;
  color: #c4f1ff;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
  white-space: nowrap;
}

.download-card-link {
  display: block;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  color: #06111d;
  background: linear-gradient(135deg, #89f7c5, #8bd8ff);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.terminal-card small {
  color: rgba(232, 240, 255, 0.58);
  line-height: 1.6;
}

.faq-list {
  max-width: 840px;
  margin-top: 34px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  color: #ffffff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.faq-list p {
  margin: 14px 0 0;
  color: rgba(232, 240, 255, 0.66);
  line-height: 1.75;
}

.site-footer {
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 42px;
}

.site-footer strong {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  margin: 10px 0 0;
  color: rgba(232, 240, 255, 0.6);
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-nav nav {
    display: none;
  }

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

  .hero-section {
    min-height: auto;
    padding-top: 56px;
  }

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

@media (max-width: 640px) {
  .site-nav,
  .hero-section,
  .section,
  .metric-strip,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .preview-layout,
  .capability-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: grid;
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
