@font-face {
  font-family: "Nunito";
  src: url("./assets/nunito-v16-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Inter", "Segoe UI", "Nunito", Arial, sans-serif;
  --page: #07090d;
  --panel: #0d1219;
  --panel-2: #111923;
  --panel-3: #172231;
  --ink: #f6f8fb;
  --ink-2: #d7dfeb;
  --muted: #8d9aad;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --acid: #61ffb5;
  --acid-2: #12c987;
  --blue: #66a3ff;
  --red: #ff6262;
  --amber: #f3b84a;
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #090c12 0%, #07090d 58%, #0a0d12 100%);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100% - var(--container)) / 2));
  color: var(--ink);
  background: rgba(7, 9, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar.is-scrolled {
  background: rgba(7, 9, 13, 0.95);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.brand-logo {
    width: 36px;
    height: 36px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.brand span {
    line-height: 1;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

/* .brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
} */

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
  outline: none;
}

.nav .nav-download {
  color: #06100c;
  background: var(--acid);
  border-color: transparent;
}

.nav .nav-download:hover,
.nav .nav-download:focus-visible {
  background: #8affc8;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(70svh - 68px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.62;
  filter: saturate(1.06) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.97) 0%, rgba(7, 9, 13, 0.85) 39%, rgba(7, 9, 13, 0.32) 100%),
    linear-gradient(0deg, rgba(7, 9, 13, 1) 0%, rgba(7, 9, 13, 0.72) 25%, rgba(7, 9, 13, 0.12) 80%);
}

.hero-inner {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 108px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: 82px;
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button:focus-visible {
  outline: 3px solid rgba(97, 255, 181, 0.26);
  outline-offset: 2px;
}

.button.primary {
  color: #06100c;
  background: var(--acid);
  border-color: transparent;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #8affc8;
}

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

.button.ghost:hover,
.button.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.feature-index {
  width: min(var(--container), calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: -54px auto 0;
  position: relative;
  z-index: 3;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 86px;
}

.index-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  padding: 20px;
  background: rgba(13, 18, 25, 0.92);
  backdrop-filter: blur(18px);
}

.index-item:hover,
.index-item:focus-visible {
  background: var(--panel-2);
  outline: none;
}

.index-item span {
  grid-row: span 2;
  color: var(--acid);
  font-size: 13px;
  font-weight: 950;
}

.index-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.16;
}

.index-item small {
  color: var(--muted);
  font-size: 14px;
}

.spotlight {
  width: min(var(--container), calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: center;
  margin: 0 auto;
  padding: 122px 0 0;
  scroll-margin-top: 86px;
}

.spotlight.alt {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
}

.spotlight.alt .spotlight-copy {
  order: 2;
}

.spotlight-copy h2,
.section-head h2,
.download h2 {
  margin: 0;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

.spotlight-copy p:not(.eyebrow),
.download p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.spotlight-media,
.showcase-figure {
  margin: 0;
  overflow: hidden;
  background: #090d13;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.spotlight-media img {
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: #090d13;
}

.screens {
  width: 100%;
  margin-top: 118px;
  padding: 96px max(24px, calc((100% - var(--container)) / 2));
  background:
    linear-gradient(180deg, rgba(102, 163, 255, 0.12), rgba(255, 98, 98, 0.07)),
    #0a0e14;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 86px;
}

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

.showcase-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.showcase-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
}

.showcase-tab {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
}

.showcase-tab:hover,
.showcase-tab:focus-visible,
.showcase-tab.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  outline: none;
}

.showcase-tab.active {
  box-shadow: inset 3px 0 0 var(--acid);
}

.showcase-figure img {
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: #090d13;
}

.showcase-figure figcaption {
  display: grid;
  gap: 5px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
}

.showcase-figure figcaption span {
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.showcase-figure figcaption strong {
  font-size: 24px;
  line-height: 1.18;
}

.showcase-figure figcaption p {
  margin: 0;
  color: var(--muted);
}

.download {
  width: min(var(--container), calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 auto;
  padding: 98px 0;
  scroll-margin-top: 86px;
}

.footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px max(24px, calc((100% - var(--container)) / 2));
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .hero h1 {
    font-size: 66px;
  }

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

  .spotlight,
  .spotlight.alt,
  .showcase-shell {
    grid-template-columns: 1fr;
  }

  .spotlight.alt .spotlight-copy {
    order: 0;
  }

  .showcase-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .showcase-tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .topbar {
    height: 62px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: 62px;
    right: 0;
    left: 0;
    max-height: calc(100svh - 62px);
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 16px 18px;
    overflow: auto;
    background: rgba(7, 9, 13, 0.98);
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .nav {
    display: grid;
  }

  .nav a {
    justify-content: flex-start;
    min-height: 44px;
  }

  .hero {
    min-height: calc(100svh - 62px);
  }

  .hero-bg {
    object-position: 45% top;
    opacity: 0.44;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 9, 13, 0.97), rgba(7, 9, 13, 0.88)),
      linear-gradient(0deg, rgba(7, 9, 13, 1), rgba(7, 9, 13, 0.22));
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 64px 0 92px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .feature-index,
  .spotlight,
  .download {
    width: auto;
    margin-right: 16px;
    margin-left: 16px;
  }

  .feature-index {
    margin-top: -42px;
  }

  .index-item {
    padding: 17px;
  }

  .spotlight {
    gap: 20px;
    padding-top: 72px;
    scroll-margin-top: 76px;
  }

  .spotlight-copy h2,
  .section-head h2,
  .download h2 {
    font-size: 34px;
  }

  .spotlight-copy p:not(.eyebrow),
  .download p {
    font-size: 17px;
  }

  .screens {
    margin-top: 74px;
    padding: 64px 16px;
    scroll-margin-top: 76px;
  }

  .showcase-figure figcaption strong {
    font-size: 21px;
  }

  .download {
    grid-template-columns: 1fr;
    padding: 72px 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 16px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 42px;
  }

  .spotlight-copy h2,
  .section-head h2,
  .download h2 {
    font-size: 30px;
  }
}
