:root {
  color-scheme: dark;
  --demo-cycle: 9s;
  --canvas: #06090d;
  --canvas-raised: #0c1219;
  --surface: rgba(17, 25, 35, 0.76);
  --surface-strong: rgba(23, 32, 44, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f5f8fc;
  --text-soft: #b5c0ce;
  --text-faint: #788598;
  --blue: #70aaff;
  --blue-strong: #398cff;
  --cyan: #62d9e9;
  --green: #72d5aa;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 7%, rgba(43, 116, 218, 0.14), transparent 34rem),
    radial-gradient(circle at 8% 48%, rgba(29, 165, 183, 0.07), transparent 30rem),
    var(--canvas);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 48%);
  pointer-events: none;
}

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

a:focus-visible,
.demo-motion-control:has(+ .demo-window):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 7px;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.page-glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  opacity: 0.17;
  filter: blur(90px);
  pointer-events: none;
}

.page-glow--top {
  top: -24rem;
  right: 10%;
  background: #2869d9;
}

.page-glow--bottom {
  top: 72rem;
  left: -24rem;
  background: #167b97;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-soft);
  font-size: 13px;
  transition: color 180ms ease;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--small {
  min-height: 36px;
  padding-inline: 15px;
  font-size: 12px;
}

.button--light {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.button--light:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.13);
}

.button--primary {
  background: var(--text);
  color: #10141a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.button--primary:hover {
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 104px;
  text-align: center;
}

.hero-copy {
  max-width: 800px;
  animation: hero-rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  justify-content: center;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(98, 217, 233, 0.72);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(58px, 8vw, 98px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

h1 em,
h2 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
  transition: color 180ms ease;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  padding: 0;
  margin: 28px 0 0;
  color: var(--text-faint);
  font-size: 12px;
  list-style: none;
}

.trust-row li {
  position: relative;
  padding-left: 15px;
}

.trust-row li::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.demo-reel {
  position: relative;
  width: min(100%, 1040px);
  margin: 54px auto 0;
  animation: hero-rise 700ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.demo-window {
  position: relative;
  aspect-ratio: 1556 / 904;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: var(--canvas-raised);
  box-shadow: var(--shadow);
}

.demo-window::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
  content: "";
  pointer-events: none;
}

.demo-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.demo-frame--overview {
  animation: demo-overview var(--demo-cycle) steps(1, end) infinite;
}

.demo-frame--approval {
  animation: demo-approval var(--demo-cycle) steps(1, end) infinite;
}

.demo-frame--history {
  animation: demo-history var(--demo-cycle) steps(1, end) infinite;
}

.demo-label {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 3;
  min-width: 230px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.84);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.demo-label--overview {
  animation: demo-overview var(--demo-cycle) steps(1, end) infinite;
}

.demo-label--approval {
  animation: demo-approval var(--demo-cycle) steps(1, end) infinite;
}

.demo-label--history {
  animation: demo-history var(--demo-cycle) steps(1, end) infinite;
}

.demo-motion-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.demo-motion-control {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.78);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 11px;
  backdrop-filter: blur(14px);
  transition: color 180ms ease, background 180ms ease;
}

.demo-motion-control:hover {
  background: rgba(7, 9, 13, 0.94);
  color: var(--text);
}

.demo-motion-control__play {
  display: none;
}

.demo-motion-control__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.demo-motion-toggle:focus-visible + .demo-motion-control {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.demo-motion-toggle:checked + .demo-motion-control .demo-motion-control__pause {
  display: none;
}

.demo-motion-toggle:checked + .demo-motion-control .demo-motion-control__play {
  display: inline;
}

.demo-motion-toggle:checked ~ .demo-window .demo-frame,
.demo-motion-toggle:checked ~ .demo-window .demo-label {
  animation-play-state: paused;
}

.demo-reel figcaption {
  max-width: 620px;
  margin: 15px auto 0;
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
}

@keyframes demo-overview {
  0%, 33.332% { opacity: 1; }
  33.333%, 100% { opacity: 0; }
}

@keyframes demo-approval {
  0%, 33.332% { opacity: 0; }
  33.333%, 66.665% { opacity: 1; }
  66.666%, 100% { opacity: 0; }
}

@keyframes demo-history {
  0%, 66.665% { opacity: 0; }
  66.666%, 100% { opacity: 1; }
}

.source-cta {
  padding-bottom: 104px;
}

.source-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(39, 81, 145, 0.2), transparent 56%),
    var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.source-cta h2,
.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.source-cta p,
.section-intro {
  color: var(--text-soft);
}

.source-cta__inner > div > p:last-child,
.section-intro {
  margin-bottom: 0;
}

.install-options {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.source-cta__inner > *,
.install-option {
  min-width: 0;
}

.install-option__label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.source-command {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(3, 5, 8, 0.76);
  color: #c9d6e8;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.source-command__prompt {
  color: var(--cyan);
}

.install-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-soft);
  font-size: 12px;
}

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

.install-links a:hover {
  color: var(--text);
}

.how-it-works,
.features {
  padding-bottom: 116px;
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 48px;
  align-items: end;
}

.section-intro {
  padding-bottom: 2px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.step {
  min-height: 220px;
  padding: 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent);
}

.step-number {
  color: var(--cyan);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.step h3 {
  margin: 38px 0 10px;
  font-size: 24px;
}

.step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.step-connector {
  color: var(--text-faint);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  min-height: 280px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  transition: background 180ms ease, transform 180ms ease;
}

.feature:hover {
  background: rgba(112, 170, 255, 0.055);
  transform: translateY(-2px);
}

.feature-kicker {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature h3 {
  max-width: 420px;
  margin: 54px 0 12px;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.feature > p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-faint);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

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

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    padding-top: 20px;
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 76px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .trust-row {
    gap: 12px 18px;
  }

  .demo-reel {
    margin-top: 42px;
  }

  .source-cta__inner,
  .section-heading--split {
    grid-template-columns: 1fr;
  }

  .source-cta__inner {
    gap: 34px;
    padding: 34px;
  }

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

  .step {
    min-height: 0;
  }

  .step h3 {
    margin-top: 24px;
  }

  .step-connector {
    justify-self: center;
    transform: rotate(90deg);
  }

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

@media (max-width: 520px) {
  .demo-window {
    aspect-ratio: 4 / 5;
  }

  .demo-frame {
    object-position: center;
  }

  .demo-label {
    width: calc(100% - 32px);
    min-width: 0;
  }

  .source-cta__inner {
    padding: 28px 22px;
  }
}

@media (max-width: 420px) {
  .header-nav .nav-link {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .text-link {
    justify-content: center;
  }

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

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

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

  .demo-frame,
  .demo-label {
    animation: none !important;
    opacity: 0;
  }

  .demo-frame--poster,
  .demo-label--overview {
    opacity: 1;
  }

  .demo-motion-control {
    display: none;
  }
}
