:root {
  color-scheme: dark;
  --bg: #11161c;
  --surface: #171e25;
  --surface-raised: #202933;
  --surface-soft: #1b232b;
  --text: #edf3f1;
  --muted: #a6b3b9;
  --line: #34414a;
  --accent: #8bd8bd;
  --accent-strong: #55d6ff;
  --indigo: #8da8ff;
  --coral: #ff7a78;
  --max-width: 1180px;
  font-family: Inter, Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, #11161c 0, #11161c 50%, #0e1318 100%);
  font-size: 1rem;
}

img,
svg {
  display: block;
}

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

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

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus-visible {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: #102c23;
  background: var(--accent);
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(52 65 74 / 68%);
  background: rgb(17 22 28 / 88%);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-weight: 730;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 9px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

nav a,
.footer-links a,
.text-link {
  transition: color 160ms ease;
}

nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.header-inner > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 720;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button:hover {
  border-color: #536572;
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
}

.button-primary {
  color: #102720;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgb(139 216 189 / 12%);
}

.button-primary:hover {
  color: #091c16;
  background: #a2e6ce;
  border-color: #a2e6ce;
}

.button-quiet {
  background: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image: linear-gradient(rgb(141 168 255 / 9%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(141 168 255 / 9%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, #000, transparent 56%);
}

.hero-glow {
  position: absolute;
  top: -280px;
  right: -180px;
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(85 214 255 / 12%), rgb(141 168 255 / 5%) 42%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(370px, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: 62px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgb(255 122 120 / 10%);
}

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

h1,
h2 {
  letter-spacing: -0.048em;
}

h1 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 6.6vw, 5.65rem);
  font-weight: 760;
  line-height: 0.97;
}

h1 em,
.install-copy h2 em {
  color: var(--indigo);
  font-style: normal;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 31px;
  color: #b8c4c9;
  font-size: 1.125rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 27px;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.75rem;
  list-style: none;
}

.platform-list li {
  position: relative;
  padding-left: 14px;
}

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

.product-stage {
  position: relative;
  padding: 38px 0 42px 18px;
}

.route-strip {
  position: absolute;
  top: 0;
  left: 8%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: #bac5ca;
  background: #151b21;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 24%);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.6875rem;
}

.route-strip i {
  width: 22px;
  height: 1px;
  background: var(--line);
}

.app-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0;
  background: #11171c;
  border: 1px solid #3d4a54;
  border-radius: 13px;
  box-shadow:
    0 44px 90px rgb(0 0 0 / 43%),
    0 0 0 8px rgb(255 255 255 / 1.5%);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  transform-origin: center;
}

.app-window img {
  width: 100%;
  height: auto;
}

.signal-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  padding: 11px 13px;
  background: rgb(28 36 44 / 96%);
  border: 1px solid #43525e;
  border-radius: 7px;
  box-shadow: 0 18px 42px rgb(0 0 0 / 38%);
  color: #e6eeec;
  font-size: 0.75rem;
  font-weight: 700;
}

.signal-card small {
  display: block;
  color: #8e9da4;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: none;
  color: #112a23;
  background: var(--accent);
  border-radius: 5px;
}

.signal-card-player {
  right: -25px;
  bottom: 7px;
}

.signal-card-secure {
  bottom: -5px;
  left: -12px;
}

.signal-card-secure .signal-icon {
  color: #17234c;
  background: var(--indigo);
}

.workflow-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(560px, 1.2fr);
  align-items: center;
  gap: 60px;
  padding-block: 54px;
}

.workflow-intro .eyebrow {
  margin-bottom: 10px;
}

.workflow-intro h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.2;
}

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

.workflow-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 4px 20px;
  border-left: 1px solid var(--line);
}

.workflow-steps li > span {
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.7rem;
}

.workflow-steps strong,
.workflow-steps small {
  display: block;
}

.workflow-steps strong {
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.workflow-steps small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.section {
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 52px;
}

.section-heading h2,
.install-copy h2,
.open-source h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  line-height: 1.06;
}

.section-heading > p,
.open-source-grid > div > p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feature-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  padding: 31px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgb(141 168 255 / 8%), transparent 68%);
  pointer-events: none;
}

.feature-card-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  align-items: center;
  gap: 42px;
  grid-column: 1 / -1;
  min-height: 270px;
}

.feature-card-accent {
  background:
    linear-gradient(145deg, rgb(141 168 255 / 11%), transparent 55%),
    var(--surface);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 48px;
  color: var(--accent);
  background: rgb(139 216 189 / 8%);
  border: 1px solid rgb(139 216 189 / 28%);
  border-radius: 7px;
}

.feature-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.feature-card-wide .feature-icon,
.feature-card-themes .feature-icon {
  margin-bottom: 26px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.feature-card p {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.mini-nav {
  display: grid;
  gap: 7px;
  padding: 15px;
  background: #11171c;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mini-nav span {
  padding: 8px 11px;
  color: #9eabb1;
  border-radius: 4px;
  font-size: 0.72rem;
}

.mini-nav .active {
  color: var(--accent);
  background: #222c34;
  box-shadow: inset 3px 0 var(--accent);
  font-weight: 700;
}

.quality-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
}

.quality-row span {
  padding: 6px 8px;
  color: #aebbc0;
  background: #12181e;
  border: 1px solid #34414a;
  border-radius: 4px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.67rem;
}

.feature-card-themes {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.theme-swatches {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #11171c;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.theme-swatches span {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.theme-swatches span::before {
  content: "";
  width: 36px;
  height: 10px;
  flex: none;
  background: var(--swatch);
  border-radius: 99px;
}

.install {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 16%, rgb(85 214 255 / 10%), transparent 30%),
    radial-gradient(circle at 88% 82%, rgb(141 168 255 / 10%), transparent 32%),
    #131a20;
}

.install-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(440px, 1.17fr);
  gap: 90px;
  align-items: center;
}

.install-copy h2 {
  margin-bottom: 23px;
}

.install-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.75;
}

.install-copy .button {
  margin-right: 18px;
}

.text-link {
  display: inline-block;
  padding: 12px 0;
  color: #c4cfcc;
  font-size: 0.875rem;
  font-weight: 700;
}

.platform-cards {
  display: grid;
  gap: 9px;
}

.platform-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 15px 18px;
  background: rgb(27 35 43 / 88%);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.platform-card:hover {
  background: #222c34;
  border-color: #596c78;
  transform: translateX(3px);
}

.platform-card > span:nth-child(2),
.platform-card strong,
.platform-card small {
  display: block;
}

.platform-card strong {
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.platform-card small {
  color: var(--muted);
  font-size: 0.74rem;
}

.platform-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--accent);
  background: #12181e;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.platform-card svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #78878f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.requirements {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 15px 18px 0;
  color: #829098;
  font-size: 0.7rem;
}

.requirements > span:first-child {
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requirements strong {
  color: #aebbc0;
  font-weight: 620;
}

.open-source {
  background: #0e1318;
}

.open-source-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(210px, 0.35fr);
  align-items: center;
  gap: 48px;
}

.source-mark {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 1.25rem;
  font-weight: 760;
  box-shadow: inset 0 -5px 0 rgb(85 214 255 / 12%);
}

.open-source h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
}

.source-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.source-links a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  color: #c3cecc;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 680;
  transition: color 160ms ease;
}

.source-links a:hover {
  color: var(--accent);
}

.site-footer {
  background: #0a0e12;
  border-top: 1px solid #28323a;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 105px;
}

.footer-inner > p {
  margin: 0;
  color: #748188;
  font-size: 0.75rem;
}

.footer-brand {
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  color: #87949a;
  font-size: 0.75rem;
}

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 36px;
  }

  .product-stage {
    padding-left: 0;
  }

  .signal-card-player {
    right: -8px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .install-panel {
    gap: 50px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .product-stage {
    width: min(94%, 720px);
    margin: 0 auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p {
    max-width: 650px;
  }

  .install-panel {
    grid-template-columns: 1fr;
  }

  .open-source-grid {
    grid-template-columns: auto 1fr;
  }

  .source-links {
    grid-column: 1 / -1;
  }
}

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

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .header-inner > .button {
    min-height: 38px;
    padding-inline: 13px;
  }

  .header-inner > .button svg {
    display: none;
  }

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

  .hero::before {
    mask-image: linear-gradient(to bottom, #000, transparent 42%);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.2rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .product-stage {
    width: 100%;
    padding-bottom: 76px;
  }

  .route-strip {
    left: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    white-space: nowrap;
  }

  .route-strip i {
    width: 10px;
  }

  .app-window {
    transform: none;
  }

  .signal-card {
    min-width: 0;
  }

  .signal-card-player {
    right: 0;
    bottom: 14px;
  }

  .signal-card-secure {
    bottom: 2px;
    left: 0;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .workflow-steps li {
    border-left-color: #4b5b65;
  }

  .section {
    padding: 82px 0;
  }

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

  .feature-card,
  .feature-card-wide,
  .feature-card-themes {
    display: block;
    grid-column: auto;
    min-height: 0;
    padding: 25px;
  }

  .feature-icon {
    margin-bottom: 32px;
  }

  .mini-nav,
  .theme-swatches {
    margin-top: 28px;
  }

  .install-copy .button {
    margin-right: 8px;
  }

  .platform-card {
    gap: 12px;
    padding-inline: 13px;
  }

  .platform-card small {
    line-height: 1.45;
  }

  .requirements .separator {
    display: none;
  }

  .requirements strong {
    width: 100%;
    padding-left: 2px;
  }

  .open-source-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .source-mark {
    width: 88px;
    height: 88px;
    font-size: 1rem;
  }

  .source-links {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 30px;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  .brand span {
    font-size: 0.84rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .platform-list {
    display: grid;
  }

  .signal-card {
    padding: 8px 9px;
    font-size: 0.65rem;
  }

  .signal-card small {
    font-size: 0.53rem;
  }

  .signal-icon {
    width: 26px;
    height: 26px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
