@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #0b0c0e;
  --surface: #121418;
  --surface-2: #171a1f;
  --text: #e9ebef;
  --muted: #9aa0ab;
  --faint: #6b717c;
  --accent: #5cc8f0;
  --accent-hover: #7dd4f4;
  --on-accent: #06141b;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --teal: #10b981;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}

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

::selection {
  background: rgba(92, 200, 240, 0.4);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}
h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
code {
  font: 0.88em var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: calc(760px + var(--gutter) * 2);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* Section labels: small caps with a summit marker, as in the app. */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: '';
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--accent);
}

/* Buttons: one solid accent, dark text, no glow. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14.5px;
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--stroke-strong);
}
.btn-ghost:hover {
  background: #1d2128;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.link {
  color: var(--text);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}
.link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.fine {
  font-size: 14px;
  color: var(--faint);
}

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.92);
  border-bottom: 1px solid var(--stroke);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .wordmark {
  height: 18px;
  width: auto;
}
.top nav {
  margin-left: auto;
}
.top nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.top nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
@media (max-width: 820px) {
  .top nav {
    display: none;
  }
  .top .btn-small {
    margin-left: auto;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-top: clamp(64px, 10vw, 128px);
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0 0 auto;
  height: min(880px, 110vw);
  z-index: -1;
  background:
    url('/img/contours.svg') center / cover no-repeat,
    linear-gradient(180deg, rgba(11, 12, 14, 0.55) 0%, rgba(11, 12, 14, 0.2) 30%, rgba(11, 12, 14, 0.75) 70%, var(--bg) 100%),
    url('/img/hero.jpg') center 30% / cover no-repeat;
}
.hero-inner {
  max-width: calc(760px + var(--gutter) * 2);
  margin-left: max(0px, calc((100% - var(--wrap) - var(--gutter) * 2) / 2));
}
.hero h1 {
  margin-bottom: 22px;
}
.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: #c7cbd3;
  max-width: 600px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin: 32px 0 14px;
}
.shot-hero {
  margin-top: clamp(48px, 7vw, 88px);
}

/* Screenshots */
.shot {
  margin: 0;
}
.shot img {
  border-radius: var(--radius);
  border: 1px solid var(--stroke-strong);
  background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.shot figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- features */

.feature {
  padding: clamp(80px, 11vw, 150px) 0 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split + .split {
  margin-top: clamp(80px, 10vw, 130px);
}
.split.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.split.flip .copy {
  order: 2;
}
.shot-dialog img {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}
.copy h2 {
  margin-bottom: 22px;
}
.copy p,
.copy li {
  color: #c2c7cf;
}
.note {
  font-size: 15px;
  color: var(--muted) !important;
}
@media (max-width: 900px) {
  .split,
  .split.flip {
    grid-template-columns: 1fr;
  }
  .split.flip .copy {
    order: 0;
  }
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 26px 0;
}
.sources li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 10px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 550;
  color: var(--text) !important;
}
.sources img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.plain {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.plain li {
  position: relative;
  padding: 7px 0 7px 22px;
  border-bottom: 1px solid var(--stroke);
}
.plain li:last-child {
  border-bottom: 0;
}
.plain li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  margin-top: -3px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid var(--accent);
}

/* Spec-sheet style facts, separated by rules rather than boxed. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: clamp(64px, 8vw, 104px);
}
.fact {
  border-top: 1px solid var(--stroke-strong);
  padding-top: 22px;
}
.fact h3 {
  margin-bottom: 10px;
}
.fact p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}
@media (max-width: 820px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------------------------------------------------------------- gallery */

.gallery {
  padding: clamp(80px, 11vw, 150px) 0 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- download */

.download {
  position: relative;
  margin-top: clamp(96px, 12vw, 170px);
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(600px 320px at 12% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(560px 300px at 88% 100%, rgba(34, 211, 238, 0.12), transparent 70%),
    var(--bg);
}
.download .contours {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/img/contours.svg') center / cover no-repeat;
  opacity: 0.8;
}
.download h2 {
  margin-bottom: 14px;
}
.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 40px 0 24px;
}
.platforms li {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.platforms p {
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 22px;
}
.platforms .btn {
  margin-top: auto;
  justify-content: center;
}
.platforms li.current {
  border-color: rgba(92, 200, 240, 0.55);
}
.platforms li.current .btn {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}
.platforms li.current h3::after {
  content: 'Your system';
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(92, 200, 240, 0.14);
  color: var(--accent);
  font: 600 12px/1.6 var(--body);
  letter-spacing: 0;
  vertical-align: middle;
}
@media (max-width: 820px) {
  .platforms {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- faq */

.faq {
  padding: clamp(80px, 11vw, 140px) 0;
}
.faq h2 {
  margin-bottom: 28px;
}
.faq details {
  border-top: 1px solid var(--stroke);
}
.faq details:last-child {
  border-bottom: 1px solid var(--stroke);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 17.5px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.15s;
}
.faq details[open] summary::after {
  transform: rotate(225deg);
}
.faq summary:hover {
  color: var(--accent);
}
.faq details p {
  color: #c2c7cf;
  padding-bottom: 8px;
}

/* ---------------------------------------------------------------- footer */

.foot {
  padding: 48px 0 56px;
  border-top: 1px solid var(--stroke);
  background: #08090b;
  font-size: 14.5px;
  color: var(--muted);
}
.foot-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.foot-brand p {
  margin: 0;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot a {
  color: var(--text);
}
.foot a:hover {
  color: var(--accent);
}
.legal {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  color: var(--faint);
  font-size: 13.5px;
}
@media (max-width: 720px) {
  .foot-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------- 404 */

.lost {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('/img/contours.svg') center / cover no-repeat;
}
.lost h1 {
  margin-bottom: 18px;
}
.lost .lede {
  margin-bottom: 32px;
}
