:root {
  --bg: #07090e;
  --bg-elevated: #0c1018;
  --surface: #111722;
  --surface-hover: #161d2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f5f9;
  --text-muted: #9aa8bc;
  --text-dim: #6b7a90;
  --accent: #5aa8ff;
  --accent-soft: rgba(90, 168, 255, 0.12);
  --accent-border: rgba(90, 168, 255, 0.28);
  --max: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

/* Ambient motion */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  will-change: transform;
}

.ambient-orb--a {
  width: 48vw;
  height: 48vw;
  max-width: 560px;
  max-height: 560px;
  top: -14%;
  left: 12%;
  background: radial-gradient(circle, rgba(90, 168, 255, 0.5), transparent 68%);
  animation: orb-drift-a 16s ease-in-out infinite alternate;
}

.ambient-orb--b {
  width: 40vw;
  height: 40vw;
  max-width: 460px;
  max-height: 460px;
  top: 32%;
  right: -6%;
  background: radial-gradient(circle, rgba(100, 150, 255, 0.38), transparent 68%);
  animation: orb-drift-b 20s ease-in-out infinite alternate;
}

.ambient-orb--c {
  width: 34vw;
  height: 34vw;
  max-width: 400px;
  max-height: 400px;
  bottom: 2%;
  left: 28%;
  background: radial-gradient(circle, rgba(80, 130, 220, 0.32), transparent 68%);
  animation: orb-drift-c 18s ease-in-out infinite alternate;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 18%, black 15%, transparent 72%);
  opacity: 0.7;
}

.ambient-spotlight {
  position: absolute;
  width: 720px;
  height: 720px;
  left: 0;
  top: 0;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 168, 255, 0.22), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  will-change: transform, opacity;
  transform: translate3d(-50%, -50%, 0);
}

body.has-spotlight .ambient-spotlight {
  opacity: 1;
}

@keyframes orb-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12%, 16%) scale(1.12); }
}

@keyframes orb-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-14%, 10%) scale(1.15); }
}

@keyframes orb-drift-c {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(10%, -14%) scale(0.92); }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

a:hover { color: #8ec4ff; }

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

code {
  font-family: var(--mono);
  font-size: 0.84em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #041018;
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, backdrop-filter 0.2s;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-right: auto;
}

.logo img {
  border-radius: 0.4rem;
  flex-shrink: 0;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-mobile-only {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

@media (max-width: 820px) {
  .header-desktop-only {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    background: rgba(7, 9, 14, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    transform: translateY(-0.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  body.nav-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.85rem 0.9rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-mobile-only {
    display: block;
  }

  .nav-mobile-cta {
    margin-top: 0.35rem;
    text-align: center;
    font-weight: 600;
    color: #041018 !important;
    background: var(--accent) !important;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.45);
  }

  .nav-backdrop[hidden] {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #041018;
  box-shadow: 0 0 0 1px rgba(90, 168, 255, 0.2), 0 8px 24px rgba(90, 168, 255, 0.12);
}

.btn-primary:hover {
  background: #8ec4ff;
  color: #041018;
  transform: translateY(-1px);
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
}

.btn-glow:hover::after {
  transform: translateX(120%);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.8125rem;
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 1.15rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(90, 168, 255, 0.55);
  animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(90, 168, 255, 0.55); opacity: 1; }
  70% { box-shadow: 0 0 0 8px rgba(90, 168, 255, 0); opacity: 0.85; }
  100% { box-shadow: 0 0 0 0 rgba(90, 168, 255, 0); opacity: 1; }
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 42ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-chips li {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.trust-chips li:hover {
  border-color: var(--accent-border);
  color: var(--text);
  transform: translateY(-1px);
}

.trust-chips code {
  padding: 0;
  border: none;
  background: none;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Hero panel */

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.float-soft {
  animation: float-soft 6s ease-in-out infinite;
}

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

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.panel-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.panel-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.install-paths {
  list-style: none;
  margin: 0;
  padding: 0;
}

.install-paths li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.15rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.install-paths li:hover {
  background: rgba(255, 255, 255, 0.02);
}

.install-paths li:last-of-type { border-bottom: none; }

.install-paths strong {
  grid-column: 1;
  font-size: 0.9rem;
  color: var(--text);
}

.install-paths span {
  grid-column: 1;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.install-paths a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.8125rem;
  font-weight: 600;
}

.panel-foot {
  margin: 0;
  padding: 0.9rem 1.25rem 1.1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  line-height: 1.45;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.85) 0%, transparent 100%);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.contact-block h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-head p,
.contact-block p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.section-cta {
  margin: 1.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Interactive cards */

.interactive-card {
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.interactive-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(90, 168, 255, 0.08);
}

/* Direction ladder */

.ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  counter-reset: ladder;
}

@media (max-width: 1100px) {
  .ladder { grid-template-columns: repeat(3, 1fr); }
}

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

.ladder-item {
  position: relative;
  padding: 1.25rem 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 9.5rem;
}

.ladder-item--done {
  border-color: rgba(90, 168, 255, 0.28);
  background: linear-gradient(165deg, rgba(90, 168, 255, 0.08), var(--surface) 55%);
}

.ladder-item--next {
  border-color: rgba(120, 220, 160, 0.35);
  box-shadow: 0 0 0 1px rgba(120, 220, 160, 0.08);
}

.ladder-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.ladder-item--done .ladder-badge {
  color: #9ecbff;
  border-color: rgba(90, 168, 255, 0.35);
  background: rgba(90, 168, 255, 0.1);
}

.ladder-item--next .ladder-badge {
  color: #a8e6c0;
  border-color: rgba(120, 220, 160, 0.4);
  background: rgba(120, 220, 160, 0.1);
}

.ladder-item h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ladder-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Pillars */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 960px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.pillar {
  padding: 1.35rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pillar p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

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

.steps li {
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Pipeline bar (Tier B) */

.pipeline-bar {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.pipeline-track {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: min(100%, 640px);
  justify-content: space-between;
}

.pipeline-node {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-dim);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.pipeline-node--end {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.pipeline-seg {
  flex: 1;
  height: 3px;
  min-width: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.pipeline-flow {
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, #8ec4ff, var(--accent), transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(90, 168, 255, 0.55);
  animation: pipeline-run 1.9s ease-in-out infinite;
}

.pipeline-seg:nth-child(2) .pipeline-flow { animation-delay: 0s; }
.pipeline-seg:nth-child(4) .pipeline-flow { animation-delay: 0.35s; }
.pipeline-seg:nth-child(6) .pipeline-flow { animation-delay: 0.7s; }
.pipeline-seg:nth-child(8) .pipeline-flow { animation-delay: 1.05s; }

@keyframes pipeline-run {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(280%); opacity: 0; }
}

.pipeline-bar.is-visible .pipeline-node {
  animation: node-glow 2.4s ease-in-out infinite;
}

.pipeline-bar.is-visible .pipeline-node:nth-child(1) { animation-delay: 0s; }
.pipeline-bar.is-visible .pipeline-node:nth-child(3) { animation-delay: 0.35s; }
.pipeline-bar.is-visible .pipeline-node:nth-child(5) { animation-delay: 0.7s; }
.pipeline-bar.is-visible .pipeline-node:nth-child(7) { animation-delay: 1.05s; }
.pipeline-bar.is-visible .pipeline-node:nth-child(9) { animation-delay: 1.4s; }

@keyframes node-glow {
  0%, 100% { border-color: var(--border); color: var(--text-dim); }
  40%, 55% {
    border-color: var(--accent-border);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(90, 168, 255, 0.15);
  }
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

@media (max-width: 800px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.feature-grid li {
  padding: 1.25rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-grid p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Scope */

.scope-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 700px) {
  .scope-pair { grid-template-columns: 1fr; }
}

.scope-card {
  padding: 1.35rem 1.35rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.scope-card--muted {
  border-style: dashed;
  opacity: 0.95;
}

.scope-card h3 {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scope-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-card li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.scope-card li + li { margin-top: 0.45rem; }

.scope-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
}

.scope-card--muted li::before {
  background: transparent;
  border: 1px solid var(--text-dim);
}

.scope-link {
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

/* Packs */

.pack-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 800px) {
  .pack-cards { grid-template-columns: 1fr; }
}

.pack-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pack-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.pack-card p {
  margin: 0 0 1.1rem;
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pack-card a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Download */

.download-block .section-head { margin-bottom: 1.75rem; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

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

.download-card {
  padding: 1.25rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.download-card--muted { opacity: 0.75; }

.download-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.download-card p {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.download-card code {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Docs */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 800px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.doc-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.05rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

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

.doc-grid strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.doc-grid span {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* Contact */

.contact-block {
  max-width: 36rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.35rem;
}

.contact-links a {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  border-radius: 0.35rem;
  opacity: 0.9;
}

.footer-brand p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-brand a { color: var(--text-muted); }

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.footer-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* Reveal + stagger */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible.stagger > *:nth-child(1) { transition-delay: 0.04s; }
.reveal.is-visible.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal.is-visible.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal.is-visible.stagger > *:nth-child(4) { transition-delay: 0.22s; }
.reveal.is-visible.stagger > *:nth-child(5) { transition-delay: 0.28s; }
.reveal.is-visible.stagger > *:nth-child(6) { transition-delay: 0.34s; }

.reveal.is-visible.stagger > * {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: rgba(90, 168, 255, 0.28);
}

/* —— Mobile / tablet layout —— */

@media (max-width: 900px) {
  .hero {
    padding: 2.5rem 0 2.75rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
  }

  .lead {
    max-width: none;
    font-size: 1rem;
  }

  .float-soft {
    animation: none;
  }

  .pipeline-bar {
    margin-top: 1.5rem;
    padding: 0.9rem 0.75rem;
  }

  .pipeline-track {
    min-width: 28rem;
  }

  .pipeline-node {
    font-size: 0.65rem;
    padding: 0.3rem 0.45rem;
  }
}

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

  .section {
    padding: 3rem 0;
  }

  .section-head {
    margin-bottom: 1.5rem;
  }

  .section-head p,
  .contact-block p {
    font-size: 0.95rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
    min-height: 2.85rem;
  }

  .trust-chips {
    gap: 0.4rem;
  }

  .trust-chips li {
    font-size: 0.72rem;
    padding: 0.4rem 0.65rem;
  }

  .install-paths li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
  }

  .install-paths a {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 0.15rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
  }

  .interactive-card:hover {
    transform: none;
  }

  .interactive-card:active {
    border-color: var(--accent-border);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }

  .footer-nav {
    gap: 0.85rem 1.15rem;
  }

  .contact-links {
    flex-direction: column;
    gap: 0.85rem;
  }

  .contact-links a {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
  }

  /* Lighter ambient on small screens for performance */
  .ambient-orb--c {
    display: none;
  }

  .ambient-orb {
    filter: blur(56px);
    opacity: 0.65;
  }

  .ambient-grid {
    opacity: 0.45;
    background-size: 48px 48px;
  }

  .ambient-spotlight {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0 2.25rem;
  }

  .eyebrow {
    font-size: 0.75rem;
  }

  .panel-head {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .download-card code {
    font-size: 0.68rem;
    word-break: break-all;
  }

  .pipeline-track {
    min-width: 26rem;
  }
}

/* Safe area (notched phones) */
@supports (padding: max(0px)) {
  .site-header .wrap {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .site-footer {
    padding-bottom: max(2.25rem, calc(1.25rem + env(safe-area-inset-bottom)));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ambient-orb,
  .float-soft,
  .badge-dot,
  .pipeline-flow,
  .pipeline-bar.is-visible .pipeline-node,
  .btn-glow::after {
    animation: none !important;
  }

  .ambient-spotlight {
    display: none;
  }

  .reveal,
  .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .interactive-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  .nav {
    transition: none;
  }
}

/* Coarse pointer: larger hit targets */
@media (pointer: coarse) {
  .nav a,
  .doc-grid a,
  .pack-card a,
  .btn {
    min-height: 2.75rem;
  }

  .btn-sm {
    min-height: 2.5rem;
    padding-inline: 0.9rem;
  }
}
