/* ==========================================================================
   Universal DM — website stylesheet
   Dark, colorful, dependency-free. Mobile-first with progressive enhancement.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #05080f;
  --bg-soft: #080e1a;
  --surface: rgba(255, 255, 255, 0.038);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #0d1526;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eaf1ff;
  --text-soft: #c3cfe6;
  --muted: #93a4c4;
  --muted-dim: #6d7e9e;

  /* Brand accents */
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --magenta: #ec4899;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #fb7185;
  --red: #ef4444;

  --brand-gradient: linear-gradient(100deg, #22d3ee 0%, #3b82f6 42%, #8b5cf6 72%, #ec4899 100%);
  --brand-gradient-soft: linear-gradient(100deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.16));

  /* Shape + depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 10px rgba(2, 6, 18, 0.5);
  --shadow: 0 18px 50px -18px rgba(2, 6, 18, 0.85);
  --shadow-glow: 0 24px 70px -28px rgba(59, 130, 246, 0.55);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 70px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);
  --speed: 0.32s;

  --font-sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", Menlo, monospace;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 0.35vw + 0.92rem, 1.06rem);
  line-height: 1.68;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient color wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58rem 40rem at 12% -8%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(50rem 38rem at 88% 4%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(46rem 34rem at 62% 58%, rgba(236, 72, 153, 0.09), transparent 65%),
    radial-gradient(40rem 30rem at 6% 88%, rgba(16, 185, 129, 0.09), transparent 62%),
    var(--bg);
}

/* Fine grid texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 100% 65% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 65% at 50% 0%, #000 20%, transparent 78%);
}

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

/* Icons default to the current font size; every context below overrides this. */
svg {
  width: 1em;
  height: 1em;
  flex: none;
}

/* Icon sprite container — symbols are referenced with <use href="#i-*"> */
.sprite {
  display: none;
}

img {
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

::selection {
  background: rgba(59, 130, 246, 0.4);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: #070c16;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #26374f, #1a2436);
  border-radius: 99px;
  border: 2px solid #070c16;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #35506f, #23324a);
}

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

.section-head--center .eyebrow::before {
  display: none;
}

.eyebrow--pill {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: var(--surface);
}

.eyebrow--pill::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

h1,
h2,
h3,
h4 {
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 750;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
}

h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  letter-spacing: -0.012em;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 0.6vw + 0.94rem, 1.14rem);
  margin-top: 1rem;
  text-wrap: pretty;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallback for engines without background-clip:text */
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--cyan); }
.text-blue { color: #7cb0ff; }
.text-violet { color: #b79bff; }
.text-magenta { color: #ff8ac4; }
.text-emerald { color: #4ade9f; }
.text-amber { color: #ffc766; }
.text-rose { color: #ff9aa8; }

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

/* Keep the hidden attribute authoritative over component display rules. */
[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.82rem 1.45rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 0.96rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
    background-color var(--speed) var(--ease), border-color var(--speed) var(--ease),
    opacity var(--speed) var(--ease);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  border-color: transparent;
  color: #fff;
  background-image: var(--brand-gradient);
  background-size: 180% 100%;
  background-position: 0% 50%;
  box-shadow: 0 14px 34px -14px rgba(59, 130, 246, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
    background-position 0.6s var(--ease);
}

.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 20px 46px -16px rgba(139, 92, 246, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-soft);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--lg {
  padding: 1.02rem 1.9rem;
  font-size: 1.03rem;
}

.btn--sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.88rem;
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled="true"],
.btn.is-pending {
  cursor: progress;
  opacity: 0.75;
}

/* Chips ------------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.chip--tag {
  border-color: var(--accent, var(--cyan));
  background: rgba(7, 11, 21, 0.72);
  color: var(--text-soft);
}

.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--cyan));
  flex: none;
}

/* Cards ------------------------------------------------------------------ */
.card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018) 55%),
    rgba(8, 14, 26, 0.72);
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.card--hover:hover {
  transform: translateY(-5px);
  border-color: var(--accent, var(--border-strong));
  box-shadow: var(--shadow);
}

/* Reveal on scroll (JS adds .is-visible) --------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease),
    backdrop-filter var(--speed) var(--ease);
}

.site-header.is-stuck {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  font-weight: 750;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  flex: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.9);
}

.brand__name {
  white-space: nowrap;
}

.brand__name b {
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline: auto;
}

.nav__links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav__toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: background-color 0.2s var(--ease);
}

.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}

.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-bars {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 89;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem var(--gutter) 1.6rem;
  background: rgba(6, 10, 19, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.nav__drawer.is-open {
  display: flex;
  animation: drawer-in 0.28s var(--ease);
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.nav__drawer a {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 600;
  border: 1px solid transparent;
}

.nav__drawer a:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.nav__drawer .btn {
  margin-top: 0.7rem;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(2.6rem, 5vw, 4.2rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1.14fr);
  gap: clamp(1.8rem, 3.4vw, 3rem);
  align-items: center;
}

.hero__badge {
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* Line break that only applies once the hero sits in two columns. */
.br-lg {
  display: none;
}

@media (min-width: 961px) {
  .br-lg {
    display: inline;
  }
}

.hero__sub {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 0.55vw + 0.96rem, 1.18rem);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.3rem;
  margin-top: 1.4rem;
  color: var(--muted-dim);
  font-size: 0.87rem;
}

.hero__note span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.hero__note svg {
  width: 15px;
  height: 15px;
  color: var(--emerald);
  flex: none;
}

/* Hero visual ------------------------------------------------------------ */
.hero__visual {
  position: relative;
  perspective: 1400px;
}

.hero__glow {
  position: absolute;
  inset: -10% 0 -6%;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 30% 25%, rgba(34, 211, 238, 0.4), transparent 70%),
    radial-gradient(55% 55% at 78% 65%, rgba(139, 92, 246, 0.42), transparent 70%);
  filter: blur(52px);
  opacity: 0.75;
  pointer-events: none;
}

.hero__shot {
  position: relative;
  z-index: 1;
}

.hero__chips {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(10, 16, 29, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.83rem;
  font-weight: 650;
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}

.float-chip__icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  flex: none;
  color: #fff;
}

.float-chip__icon svg {
  width: 13px;
  height: 13px;
}

.float-chip--speed {
  top: 2%;
  left: -6.5%;
  animation-delay: -0.4s;
}

.float-chip--speed .float-chip__icon {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 16px -2px rgba(34, 211, 238, 0.7);
}

.float-chip--resume {
  bottom: 20%;
  left: -7%;
  animation-delay: -2.6s;
}

.float-chip--resume .float-chip__icon {
  background: linear-gradient(135deg, var(--emerald), #059669);
  box-shadow: 0 0 16px -2px rgba(16, 185, 129, 0.7);
}

.float-chip--quality {
  right: -3%;
  top: 24%;
  animation-delay: -4.4s;
}

.float-chip--quality .float-chip__icon {
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  box-shadow: 0 0 16px -2px rgba(139, 92, 246, 0.7);
}

.float-chip--torrent {
  right: -5%;
  bottom: 12%;
  animation-delay: -1.5s;
}

.float-chip--torrent .float-chip__icon {
  background: linear-gradient(135deg, var(--amber), #ea580c);
  box-shadow: 0 0 16px -2px rgba(245, 158, 11, 0.7);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* App window frame ------------------------------------------------------- */
.app-frame {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #121b2e, #0a1120);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.app-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border-bottom: 1px solid var(--border);
}

.app-frame__dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.app-frame__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.app-frame__dots i:nth-child(2) { background: #febc2e; }
.app-frame__dots i:nth-child(3) { background: #28c840; }

.app-frame__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-frame__body {
  position: relative;
  background: #060b16;
}

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

.app-frame__body--zoom {
  cursor: zoom-in;
}

.app-frame__zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(6, 10, 19, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 650;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
  pointer-events: none;
}

.app-frame__body--zoom:hover .app-frame__zoom,
.app-frame__body--zoom:focus-visible .app-frame__zoom {
  opacity: 1;
  transform: none;
}

.app-frame__zoom svg {
  width: 13px;
  height: 13px;
}

.hero__shot .app-frame {
  transform: rotateY(-7deg) rotateX(2.5deg) scale(1.005);
  transition: transform 0.6s var(--ease);
}

.hero__shot .app-frame:hover {
  transform: rotateY(-2deg) rotateX(0deg) scale(1.01);
}

/* --------------------------------------------------------------------------
   6. Protocol marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.1rem, 2vw, 1.6rem);
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.05), rgba(139, 92, 246, 0.06), rgba(236, 72, 153, 0.05));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 14, 26, 0.7);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
}

.marquee__label svg {
  width: 14px;
  height: 14px;
  color: var(--cyan);
  flex: none;
}

/* --------------------------------------------------------------------------
   7. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
}

.stat {
  position: relative;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, var(--cyan)), transparent 70%);
  filter: blur(22px);
  opacity: 0.22;
  pointer-events: none;
}

.stat__value {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(120deg, var(--accent, var(--cyan)), #ffffff 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat__label {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. Features
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: clamp(1.35rem, 2.2vw, 1.8rem);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 85%);
  opacity: 0.9;
}

.feature::after {
  content: "";
  position: absolute;
  inset: -40% 55% 55% -20%;
  background: radial-gradient(circle at 35% 35%, var(--accent), transparent 70%);
  filter: blur(28px);
  opacity: 0.16;
  pointer-events: none;
  transition: opacity var(--speed) var(--ease);
}

.feature:hover::after {
  opacity: 0.3;
}

.feature__icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background-color: var(--accent);
  background-image: linear-gradient(140deg, var(--accent), rgba(9, 14, 26, 0.92));
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.feature__icon svg {
  width: 23px;
  height: 23px;
}

.feature__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.feature__num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent, var(--cyan));
  letter-spacing: 0.1em;
}

.feature h3 {
  position: relative;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
  text-wrap: pretty;
}

.feature__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.feature__list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(0.85);
  border-radius: 1px;
}

/* A lone trailing card (7 items in 3 or 2 columns) is centred, not left hanging. */
@media (min-width: 721px) {
  .features > :last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

/* Extras list ------------------------------------------------------------ */
.extras {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(10, 16, 29, 0.5);
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}

.extras h3 {
  margin-bottom: 0.5rem;
}

.extras p {
  color: var(--muted);
  font-size: 0.94rem;
}

.extras__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* --------------------------------------------------------------------------
   9. Deep dives
   -------------------------------------------------------------------------- */
.dive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.dive + .dive {
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
}

.dive--reverse .dive__media {
  order: -1;
}

.dive__media {
  position: relative;
}

.dive__media::before {
  content: "";
  position: absolute;
  inset: 6% 4% -6% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, var(--cyan)), transparent 68%);
  filter: blur(46px);
  opacity: 0.3;
  z-index: 0;
}

.dive__media .app-frame {
  position: relative;
  z-index: 1;
}

.dive h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
}

.dive__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.dive__list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.dive__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.22rem;
  color: var(--accent, var(--cyan));
}

.dive__list strong {
  display: block;
  font-weight: 650;
  font-size: 0.98rem;
}

.dive__list span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.dive__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

/* --------------------------------------------------------------------------
   10. Steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}

.step__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  margin-bottom: 1.1rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background-color: var(--accent, var(--cyan));
  background-image: linear-gradient(140deg, var(--accent, var(--cyan)), rgba(9, 14, 26, 0.9));
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
}

.step h3 {
  margin-bottom: 0.55rem;
}

.step p {
  color: var(--muted);
  font-size: 0.94rem;
}

.step__connector {
  position: absolute;
  top: 3.1rem;
  right: -0.9rem;
  width: 1.8rem;
  height: 2px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  display: block;
}

.steps .step:last-child .step__connector {
  display: none;
}

/* --------------------------------------------------------------------------
   11. Comparison table
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(9, 14, 26, 0.66);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.compare caption {
  caption-side: bottom;
  padding: 1rem 1.2rem;
  color: var(--muted-dim);
  font-size: 0.84rem;
  text-align: left;
}

.compare th,
.compare td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.compare thead th {
  position: relative;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.028);
  white-space: nowrap;
}

.compare thead th:first-child {
  color: var(--muted-dim);
}

.compare thead th.is-ours {
  color: #fff;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.24), rgba(139, 92, 246, 0.1));
}

.compare thead th.is-ours::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--brand-gradient);
}

.compare tbody th {
  font-weight: 600;
  color: var(--text-soft);
  width: 30%;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare tbody tr:hover td,
.compare tbody tr:hover th {
  background: rgba(255, 255, 255, 0.022);
}

.compare td.is-ours {
  background: rgba(59, 130, 246, 0.07);
  color: var(--text);
}

.cell-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.cell-flag svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.cell-flag--yes { color: #5ee9b0; }
.cell-flag--no { color: #ff8b8b; }
.cell-flag--mid { color: #ffc766; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.2rem);
  align-items: start;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.faq__item[open] {
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.07), rgba(255, 255, 255, 0.012));
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.45;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
  border-color: var(--cyan);
}

.faq__item summary:hover::after {
  border-color: var(--text);
}

.faq__body {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.68;
}

.faq__body p + p {
  margin-top: 0.7rem;
}

.faq__body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__body ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.faq__body li {
  position: relative;
  padding-left: 1.1rem;
}

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

/* --------------------------------------------------------------------------
   13. Download CTA
   -------------------------------------------------------------------------- */
.download {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.download__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(110% 130% at 92% 100%, rgba(139, 92, 246, 0.2), transparent 58%),
    rgba(9, 14, 26, 0.9);
  box-shadow: var(--shadow), var(--shadow-glow);
  padding: clamp(1.8rem, 4vw, 3.4rem);
}

.download__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 3.4rem);
  align-items: center;
}

.download h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.download__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.2rem;
  color: var(--muted-dim);
  font-size: 0.85rem;
}

.download__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.download__meta svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--cyan);
}

.download__note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.09);
  color: #ffd9a0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.download__note[hidden] {
  display: none;
}

.spec {
  padding: clamp(1.3rem, 2.6vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(5, 9, 17, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.spec h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.spec__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec__row:last-of-type {
  border-bottom: 0;
}

.spec__row dt {
  color: var(--muted-dim);
}

.spec__row dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
  color: var(--text-soft);
}

.spec__row dd code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--text-soft);
}

.spec__checks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.spec__checks li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.55;
}

.spec__checks svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.2rem;
  color: var(--emerald);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(6, 10, 19, 0.4), rgba(4, 7, 13, 0.9));
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 3rem);
  padding-block: clamp(2.6rem, 5vw, 3.8rem);
}

.footer__brand p {
  margin-top: 1rem;
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.footer__col a {
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: color var(--speed) var(--ease);
}

.footer__col a:hover {
  color: var(--cyan);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted-dim);
  font-size: 0.84rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.footer__legal a:hover {
  color: var(--cyan);
}

.footer__disclaimer {
  padding-bottom: 2rem;
  max-width: 62rem;
  color: var(--muted-dim);
  font-size: 0.79rem;
  line-height: 1.65;
}

/* Back to top ------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(10, 16, 29, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease),
    border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   15. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  width: min(1180px, 94vw);
  max-width: none;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #060b16;
  color: var(--text);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(2, 5, 12, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.lightbox__title {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text-soft);
}

.lightbox__tools {
  display: flex;
  gap: 0.4rem;
}

.lightbox__btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

.lightbox__btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.lightbox__btn svg {
  width: 17px;
  height: 17px;
}

.lightbox__stage {
  display: grid;
  place-items: center;
  padding: clamp(0.6rem, 2vw, 1.2rem);
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(59, 130, 246, 0.12), transparent 70%),
    #05080f;
  max-height: min(78vh, 900px);
  overflow: auto;
}

.lightbox__stage img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   16. Sub-pages (legal, 404)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero .lede {
  max-width: 46rem;
}

.page-meta {
  margin-top: 1.2rem;
  color: var(--muted-dim);
  font-size: 0.86rem;
}

.prose {
  max-width: 62rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
}

.prose h3 {
  font-size: 1.08rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.96rem;
  text-wrap: pretty;
}

.prose p + p {
  margin-top: 0.9rem;
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding-left: 1.3rem;
}

.prose ul li {
  list-style: disc;
  list-style-position: outside;
}

.prose ol li {
  list-style: decimal;
  list-style-position: outside;
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text-soft);
}

.prose .callout {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.06);
  color: var(--text-soft);
  font-size: 0.93rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--muted);
}

.prose th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-weight: 650;
}

/* 404 ------------------------------------------------------------------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 120px);
  text-align: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.error-page__code {
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.error-page h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.error-page p {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 34rem;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.error-page__links a {
  color: var(--muted);
}

.error-page__links a:hover {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__sub {
    max-width: none;
  }

  .hero__shot .app-frame {
    transform: none;
  }

  .hero__chips {
    display: none;
  }

  .dive,
  .download__grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .dive--reverse .dive__media {
    order: 0;
  }

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

  .step__connector {
    display: none;
  }

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

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .stat {
    padding: 1.2rem 1.1rem;
  }

  .hero__cta .btn,
  .download__actions .btn {
    width: 100%;
  }

  .marquee__track {
    animation-duration: 26s;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .brand__name {
    font-size: 1rem;
  }

  /* The drawer carries the download button at this width. */
  .nav__actions .btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   18. Motion + print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}

@media print {
  body::before,
  body::after,
  .site-header,
  .to-top,
  .marquee,
  .hero__chips {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }
}
