:root {
  --bg: #f4fbff;
  --bg-alt: #ebf7ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-dark: #07111b;
  --surface-dark-soft: rgba(10, 17, 29, 0.86);
  --text: #08111c;
  --text-soft: #243445;
  --muted: #5a6b7c;
  --line: rgba(14, 165, 233, 0.16);
  --line-strong: rgba(14, 165, 233, 0.3);
  --primary: #0ea5e9;
  --primary-deep: #2563eb;
  --accent: #f97316;
  --success: #10b981;
  --shadow-xl: 0 30px 80px rgba(7, 17, 27, 0.14);
  --shadow-lg: 0 22px 48px rgba(7, 17, 27, 0.1);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --container: min(1160px, calc(100vw - 32px));
  --shot-ratio: 1200 / 870;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.22), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, #eff8ff 100%);
}

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

button,
a,
input,
textarea,
select {
  font: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

button,
a {
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-dark);
  color: #fff;
}

.skip-link:focus-visible {
  top: 12px;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.42);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(7, 17, 27, 0.08);
}

.topbar-inner {
  position: relative;
  min-height: 58px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(125, 211, 252, 0.14);
  box-shadow: 0 14px 28px rgba(7, 17, 27, 0.14);
  background: #050b16;
}

.brand-text {
  font-size: 1.08rem;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 58px 0 42px;
}

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

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(14, 165, 233, 0.16);
  color: var(--primary-deep);
}

.eyebrow-dark {
  background: rgba(14, 165, 233, 0.16);
  color: #bae6fd;
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.hero h1,
.section-head h2,
.cta-panel h2 {
  margin: 18px 0 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  max-width: 12ch;
}

.hero-lead,
.section-head p,
.proof-card p,
.topology-card p,
.bento-card p,
.install-note,
.footer-copy,
.cta-panel p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.hero-lead {
  margin-top: 18px;
  max-width: 62ch;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--text-soft);
  line-height: 1.65;
}

.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-chip,
.hero-shot,
.proof-card,
.topology-card,
.bento-card,
.install-card,
.cta-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.stat-chip {
  padding: 18px;
  border-radius: 20px;
}

.stat-chip strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.stat-chip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
  color: #fff;
  box-shadow: 0 20px 34px rgba(249, 115, 22, 0.28);
}

.button-secondary,
.button-ghost {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: start;
}

.hero-shot {
  padding: 16px;
  border-radius: var(--radius-xl);
}

.hero-shot-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(237, 247, 255, 0.88) 100%);
}

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

.hero-shot-small {
  background: rgba(255, 255, 255, 0.72);
}

.shot-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-float {
  position: absolute;
  z-index: 2;
  max-width: 250px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(7, 17, 27, 0.88);
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(7, 17, 27, 0.18);
  line-height: 1.55;
  font-weight: 600;
}

.hero-float-top {
  top: -8px;
  right: -8px;
}

.hero-float-bottom {
  bottom: 88px;
  left: -10px;
}

.shot-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.98) 0%, rgba(10, 17, 29, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 30px 60px rgba(7, 17, 27, 0.24);
}

.shot-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--shot-ratio);
  object-fit: contain;
}

.shot-frame-main {
  padding: 14px;
}

.shot-frame-small,
.shot-frame-proof-small {
  padding: 12px;
}

.shot-frame-proof,
.shot-frame-proof-small {
  margin-top: 18px;
}

.proof-card-primary .shot-frame-proof {
  margin-top: 0;
}

.section {
  padding: 92px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head-centered {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.cta-panel h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.3rem);
}

.section-proof {
  background: linear-gradient(180deg, #07111b 0%, #0b1623 100%);
}

.section-head-light h2,
.section-head-light p {
  color: #edf5ff;
}

.section-head-light p {
  max-width: 62ch;
  margin-inline: auto;
  color: rgba(226, 232, 240, 0.8);
}

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

.proof-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: none;
}

.proof-card-primary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: center;
}

.proof-card h3,
.topology-card h3,
.bento-card h3,
.install-card h3 {
  margin: 16px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.36rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.proof-card p {
  margin: 12px 0 0;
  color: rgba(226, 232, 240, 0.76);
}

.pill {
  background: rgba(125, 211, 252, 0.12);
  color: #7dd3fc;
}

.pill-strong {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.topology-grid,
.install-grid,
.bento-grid {
  display: grid;
  gap: 18px;
}

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

.topology-card,
.bento-card,
.install-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.topology-card:hover,
.bento-card:hover,
.install-card:hover,
.proof-card:hover,
.hero-shot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.2);
}

.topology-card-wide {
  grid-column: 1 / -1;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.section-features {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(236, 248, 255, 0.88) 100%);
}

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

.bento-wide {
  grid-column: span 2;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary-deep);
}

.icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: start;
}

.install-note {
  margin-top: 16px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(14, 165, 233, 0.14);
  box-shadow: var(--shadow-lg);
}

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

.install-card-wide {
  grid-column: 1 / -1;
}

.install-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-soft);
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  background: #fff;
}

.copy-button.is-success {
  border-color: rgba(16, 185, 129, 0.26);
  color: #047857;
}

.install-card pre {
  margin: 18px 0 0;
  padding: 20px;
  overflow-x: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, #07111b 0%, #0b1623 100%);
  color: #e2e8f0;
  box-shadow: 0 24px 46px rgba(7, 17, 27, 0.16);
}

.install-card code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
  line-height: 1.65;
  font-size: 0.95rem;
}

.section-cta {
  padding-top: 28px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(6, 14, 24, 0.98) 0%, rgba(14, 25, 42, 0.96) 100%);
  color: #f8fafc;
  box-shadow: 0 34px 70px rgba(7, 17, 27, 0.22);
}

.cta-panel p {
  color: rgba(226, 232, 240, 0.78);
}

.footer {
  padding: 40px 0 58px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.brand-footer {
  margin-bottom: 12px;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.footer-links a {
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.copy-status {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(7, 17, 27, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 44px rgba(7, 17, 27, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.copy-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .proof-grid,
  .install-layout,
  .cta-panel,
  .topology-grid,
  .bento-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .hero-float {
    position: static;
    max-width: none;
  }

  .proof-card-primary,
  .topology-card-wide,
  .bento-wide,
  .install-card-wide {
    grid-column: auto;
  }

  .proof-card-primary {
    grid-template-columns: 1fr;
  }

  .hero-shot-pair {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar::before {
    inset: 8px 10px;
  }

  .topbar-inner {
    min-height: 56px;
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .section {
    padding: 76px 0;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .hero-stats,
  .hero-shot-pair {
    grid-template-columns: 1fr;
  }

  .hero-shot,
  .proof-card,
  .topology-card,
  .bento-card,
  .install-card,
  .cta-panel {
    border-radius: 24px;
  }

  .install-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
