:root {
  --bg: #07111f;
  --bg-soft: #0d1b30;
  --panel: rgba(11, 22, 38, 0.86);
  --panel-strong: rgba(14, 28, 48, 0.96);
  --line: rgba(163, 201, 255, 0.16);
  --line-strong: rgba(97, 208, 255, 0.42);
  --text: #f2f7ff;
  --muted: #adc0db;
  --accent: #61d0ff;
  --teal: #2dd4bf;
  --warm: #f4c35c;
  --coral: #fb923c;
  --success: #5fe4ba;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --content: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", Avenir, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(97, 208, 255, 0.18), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(244, 195, 92, 0.14), transparent 20%),
    radial-gradient(circle at 50% 52%, rgba(45, 212, 191, 0.08), transparent 36%),
    linear-gradient(180deg, #08111d 0%, #0a1525 46%, #07111f 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 88%);
  pointer-events: none;
  z-index: 0;
}

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

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

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(7, 14, 26, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  padding: 6px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 28px rgba(97, 208, 255, 0.14);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe8fb;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, color 170ms ease, background 170ms ease;
}

.button:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: var(--line-strong);
  background: rgba(97, 208, 255, 0.1);
}

.button-primary {
  color: #07111f;
  background: linear-gradient(135deg, var(--warm), #ffe7a5);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(244, 195, 92, 0.24);
}

.button-primary:hover {
  color: #07111f;
  background: linear-gradient(135deg, #f9cf71, #fff0be);
  border-color: transparent;
}

.button-subtle {
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.84rem;
}

/* Hero */
.hero {
  padding: 58px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 24px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(97, 208, 255, 0.1);
  border: 1px solid rgba(97, 208, 255, 0.22);
  color: #d7ecff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.55rem, 4.9vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero-copy,
.section-heading p,
.card p,
.path p,
.sim-card p,
.cta-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 58ch;
  font-size: 1.04rem;
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.install-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(5, 13, 24, 0.84);
  border: 1px solid var(--line);
}

.install-bar code {
  color: #8ce9d8;
  font-size: 0.88rem;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(97, 208, 255, 0.28);
  background: rgba(97, 208, 255, 0.1);
  color: #d9f3ff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.copy-btn:hover {
  background: rgba(97, 208, 255, 0.2);
  border-color: rgba(97, 208, 255, 0.52);
}

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

.metric,
.hero-panel,
.card,
.path,
.sim-card,
.showcase-stage,
.cta-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.metric {
  padding: 15px 16px;
  border-radius: 15px;
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
  color: #ffffff;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.workflow-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.workflow-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7ecff;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Hero Visual Panel */
.hero-panel {
  padding: 20px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(18, 36, 58, 0.96), rgba(8, 18, 32, 0.92)),
    var(--panel);
}

.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero-panel-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 700;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(95, 228, 186, 0.14);
}

.panel-screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #060d18;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  margin-bottom: 14px;
}

.panel-screen img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.panel-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(6, 13, 24, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.83rem;
  color: var(--muted);
}

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

.panel-signal div {
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-signal span {
  display: block;
  margin-bottom: 3px;
  color: #9bc0e6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-signal strong {
  font-size: 0.92rem;
  color: #ffffff;
}

/* Sections */
main section {
  padding: 34px 0;
  scroll-margin-top: 86px;
}

.section-heading {
  max-width: 66ch;
  margin-bottom: 22px;
}

.section-heading .kicker {
  margin-bottom: 8px;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.kicker {
  display: block;
  margin-bottom: 8px;
  color: #8fdcff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Interactive Feature Showcase Workbench */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.showcase-tab {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
}

.showcase-tab:hover {
  color: #ffffff;
  border-color: var(--line-strong);
}

.showcase-tab[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(97, 208, 255, 0.22), rgba(45, 212, 191, 0.18));
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(97, 208, 255, 0.14);
}

.showcase-stage {
  border-radius: var(--radius-xl);
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(15, 29, 49, 0.94), rgba(8, 17, 30, 0.94)),
    var(--panel);
}

.showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.82fr);
  gap: 22px;
  align-items: center;
}

.showcase-panel[hidden] {
  display: none;
}

.showcase-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #060d18;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.showcase-media img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.showcase-details h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}

.showcase-details p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.68;
}

.showcase-bullets {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #d6e6fb;
  line-height: 1.72;
  font-size: 0.93rem;
}

.showcase-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(4, 10, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-cmd code {
  color: #93e5ff;
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
}

.showcase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Simulation 2x2 Visual Showcase */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sim-card {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease;
}

.sim-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.sim-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060d18;
  border-bottom: 1px solid var(--line);
}

.sim-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 280ms ease;
}

.sim-card:hover .sim-thumb img {
  transform: scale(1.02);
}

.sim-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sim-body p {
  margin: 0 0 14px;
  font-size: 0.93rem;
  flex: 1;
}

.sim-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.sim-link:hover {
  text-decoration: underline;
}

/* Capability, Paths, and Docs Grids */
.capability-grid,
.path-grid,
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.path,
.docs-link {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.docs-link {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.docs-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.docs-link strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.06rem;
}

.docs-link span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.93rem;
}

.path ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.93rem;
}

/* CTA */
.cta {
  padding: 36px 0 54px;
}

.cta-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(97, 208, 255, 0.14), rgba(244, 195, 92, 0.13)),
    rgba(12, 23, 40, 0.92);
}

/* Citations */
.citations {
  padding: 0 0 46px;
}

.citation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.citation-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.citation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.citation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.citation-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.citation-card code {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.24);
  color: #d8ebff;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Footer */
.footer {
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bar a:hover {
  color: var(--accent);
}

/* Image Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 10, 20, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  position: relative;
  max-width: min(1240px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  color: #dbe8fb;
  font-size: 0.92rem;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(12, 24, 42, 0.85);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .showcase-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links,
  .hero-actions {
    width: 100%;
  }

  .metrics,
  .panel-signal,
  .sim-grid,
  .capability-grid,
  .path-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .install-bar,
  .citation-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
