:root {
  color-scheme: dark;
  --bg: #0a0b10;
  --bg-raised: #11131c;
  --panel: #161926;
  --panel-soft: #1b1e2d;
  --line: #272c41;
  --line-bright: #39415f;
  --text: #f0f1f8;
  --muted: #9ca2b7;
  --violet: #9b6cff;
  --blue: #5b86ff;
  --green: #70d6a0;
  --gradient: linear-gradient(125deg, var(--violet), var(--blue));
  --shadow: 0 30px 90px -36px rgba(0, 0, 0, 0.9);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #090a0e;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.brand span {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a,
footer nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 92px;
}

.hero-glow {
  position: absolute;
  inset: -360px -20% auto;
  height: 920px;
  background:
    radial-gradient(circle at 30% 50%, rgba(155, 108, 255, 0.3), transparent 40%),
    radial-gradient(circle at 70% 35%, rgba(91, 134, 255, 0.25), transparent 38%);
  filter: blur(16px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.3fr);
  align-items: center;
  gap: 64px;
}

.eyebrow,
.kicker,
.platform {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #c6cad9;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(112, 214, 160, 0.12);
}

h1 {
  max-width: 720px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-lede {
  max-width: 650px;
  margin-top: 28px;
  color: #d1d4e1;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.58;
}

.hero-detail {
  max-width: 620px;
  margin-top: 15px;
  color: var(--muted);
}

.hero-actions,
.final-cta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 11px 20px;
  border: 1px solid var(--line-bright);
  border-radius: 11px;
  background: rgba(22, 25, 38, 0.86);
  color: var(--text);
  font-weight: 670;
  line-height: 1.2;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hero-actions .button {
  min-width: 210px;
  flex-direction: column;
}

.button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 450;
}

.button:hover,
.button:focus-visible {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.button-primary {
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 18px 38px -22px rgba(155, 108, 255, 1);
}

.button-primary small {
  color: rgba(255, 255, 255, 0.76);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: transparent;
  box-shadow: 0 22px 48px -20px rgba(155, 108, 255, 1);
}

.hero-note {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

.hero-note a,
.install-note a {
  color: #c6b1ff;
  text-decoration: underline;
  text-decoration-color: rgba(198, 177, 255, 0.38);
  text-underline-offset: 4px;
}

.app-preview {
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  background: #0c0e14;
  box-shadow: var(--shadow);
  transform: perspective(1600px) rotateY(-3deg) rotateX(1deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #151824;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555c74;
}

.window-bar span:first-child {
  background: #f07178;
}

.window-bar span:nth-child(2) {
  background: #e2ad58;
}

.window-bar span:nth-child(3) {
  background: #67c587;
}

.window-bar b {
  margin-left: auto;
  color: #858ba0;
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats {
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-grid div {
  padding: 34px 20px;
  text-align: center;
}

.stat-grid div + div {
  border-left: 1px solid var(--line);
}

.stat-grid b {
  display: block;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 760;
  letter-spacing: -0.04em;
}

.stat-grid span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  scroll-margin-top: 30px;
  padding-block: 110px;
}

.section-dark {
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
}

.section-heading {
  max-width: 720px;
}

.kicker,
.platform {
  color: #ae8cff;
}

h2 {
  margin-top: 10px;
  font-size: clamp(2.15rem, 4.2vw, 3.65rem);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-heading > p:last-child,
.final-cta > p:not(.kicker) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.download-card,
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.download-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.download-card.featured {
  border-color: #5f4b92;
  background: linear-gradient(150deg, rgba(73, 49, 126, 0.42), var(--panel) 60%);
}

.download-card h3,
.install-note h3,
.feature-grid h3 {
  margin-top: 8px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.download-card > p:not(.platform) {
  margin-top: 9px;
  color: var(--muted);
}

.download-card .button {
  width: 100%;
  margin-top: auto;
}

.install-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  margin-top: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 19, 28, 0.7);
}

.install-note h3 {
  margin-top: 0;
}

.install-note p {
  max-width: 800px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.install-note > a {
  white-space: nowrap;
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.feature-grid article {
  min-height: 280px;
  padding: 28px;
}

.feature-grid article > span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  color: #bca4ff;
  font-size: 12px;
  font-weight: 700;
}

.feature-grid p {
  margin-top: 11px;
  color: var(--muted);
}

.final-cta {
  text-align: center;
}

.final-cta h2,
.final-cta > p:not(.kicker) {
  max-width: 780px;
  margin-inline: auto;
}

.final-cta > div {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 38px;
}

.footer-brand b,
.footer-brand span {
  display: block;
}

.footer-brand b {
  font-size: 14px;
}

.footer-brand span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 54px;
  }

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

  .hero-copy {
    max-width: 780px;
    text-align: center;
    margin-inline: auto;
  }

  .hero-lede,
  .hero-detail {
    margin-inline: auto;
  }

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

  .app-preview {
    max-width: 860px;
    margin-inline: auto;
    transform: none;
  }

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

  .download-card,
  .feature-grid article {
    min-height: 0;
  }

  .download-card .button {
    margin-top: 30px;
  }
}

@media (max-width: 700px) {
  .shell,
  .site-header {
    width: min(100% - 32px, 1180px);
  }

  .site-header nav a:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 46px 0 68px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero-actions {
    display: grid;
  }

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

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

  .stat-grid div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stat-grid div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding-block: 78px;
  }

  .install-note {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .install-note > a {
    white-space: normal;
  }

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

  footer nav {
    flex-wrap: wrap;
    gap: 12px 22px;
  }
}

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

  .button {
    transition: none;
  }
}
