/* kometfy.com. The app's own palette: cool graphite, lime for the one button (here: download), ice blue for what is
   chosen, amber for what needs attention, the spectrum only in the light. Geologica throughout, JetBrains Mono only
   for real code and checksums. */

@font-face {
  font-family: 'Geologica';
  src: url('/fonts/geologica-latin-full-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geologica';
  src: url('/fonts/geologica-cyrillic-full-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c1118;
  --bg-deep: #090d13;
  --surface: #121922;
  --line: rgba(255, 255, 255, 0.07);
  --text: #e9eef5;
  --text-2: #a3b1bf;
  --text-3: #7f8d9c;
  --lime: #c4ff4d;
  --on-lime: #0a1206;
  --ice: #bfe3ff;
  --ice-2: #5ab4ff;
  --amber: #f5913a;
  --violet: #8f74ff;
  --spectrum: linear-gradient(180deg, #ff2a3c, #ffa64d, #ffd84d, #5fd38d, #46c6e8, #4f86ff, #8f74ff);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}
/* `hidden` wins over any display set below (the form's "sent" panel, the Telegram row until it has a name) */
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Geologica', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #fff;
}
:focus-visible {
  /* the text colour: light on the dark page, dark on the pearl one, seen on the blue selected tab too */
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  font-variation-settings: 'SHRP' 40;
}
h3 {
  font-size: 21px;
  font-weight: 450;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 14px;
  max-width: 62ch;
  text-wrap: pretty;
}
/* the parts of the browser the page did not draw, in its own colours */
::selection {
  background: rgba(196, 255, 77, 0.3);
  color: #fff;
}
html {
  scrollbar-color: #2b3644 var(--bg);
  accent-color: var(--lime);
}
input,
textarea {
  caret-color: var(--lime);
}
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* the bar: the mark and the sections, quiet, glass over the page */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  border-radius: 23%;
}
.top nav {
  display: flex;
  gap: 4px;
}
.top nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
}
.top nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* the hero: the copy on the left, the app on a phone on the right; its light runs off the page's edge */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: min(760px, calc(100svh - 60px));
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
}
.copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-variation-settings: 'SHRP' 60;
  margin-bottom: 26px;
  text-wrap: balance;
}
.lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 48ch;
  margin-bottom: 34px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.get {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4ff59, #a3e635);
  color: var(--on-lime);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.get:hover {
  color: var(--on-lime);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.8);
}
.get .ic {
  stroke-width: 2.2;
}
.get-meta {
  margin: 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.4;
}
.also {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 15px;
}

/* the stage: site.js places the beam and the fans from where the phone's own light enters and leaves its screen */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.hwrap {
  position: relative;
  z-index: 2;
  animation: rise 1s var(--ease) 0.2s both;
}
.hphone {
  position: relative;
  width: clamp(250px, 22vw, 312px);
  margin: 0;
  border-radius: 42px;
  border: 7px solid #1b232e;
  background: #0d131b;
  overflow: hidden;
  box-shadow: 0 50px 110px -36px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.hphone img {
  display: block;
  width: 100%;
  height: auto;
}
.beam,
.fan,
.specks {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.stage.ready .beam,
.stage.ready .specks {
  opacity: 1;
}
.specks {
  z-index: 1;
  mix-blend-mode: plus-lighter;
}
/* the beam turns about its right end, where it meets the screen; its inner part draws in from the left */
.beam {
  z-index: 3;
  height: 2px;
  transform-origin: 100% 50%;
}
.beam b {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  transform-origin: left;
}
/* drawn once the phone has risen into place (rise: 0.2s + 1s), so the beam meets the screen where the screen's beam is */
.stage.ready .beam b {
  animation: draw 0.7s var(--ease) 1s both;
}
/* each fan is blurred on the outside and cut to a wedge inside, so its edges are soft */
.fan {
  z-index: 1;
  mix-blend-mode: plus-lighter;
  transform-origin: left center;
}
.fan b {
  position: absolute;
  inset: 0;
  /* by angle from the light's entry (site.js aim()) */
  background: conic-gradient(
    from var(--from, 70deg) at var(--ax, 0px) var(--ay, 50%),
    #ff2a3c 0deg,
    #ff2a3c calc(var(--span, 40deg) * 0.07),
    #ffa64d calc(var(--span, 40deg) * 0.22),
    #ffd84d calc(var(--span, 40deg) * 0.36),
    #5fd38d calc(var(--span, 40deg) * 0.5),
    #46c6e8 calc(var(--span, 40deg) * 0.64),
    #4f86ff calc(var(--span, 40deg) * 0.79),
    #8f74ff calc(var(--span, 40deg) * 0.93),
    #8f74ff var(--span, 40deg),
    transparent 0
  );
  clip-path: var(--wedge);
  /* a little softer where it leaves the phone, so it carries on the screen's fan instead of jumping in brightness */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55), #000 14%, #000 24%, transparent 97%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55), #000 14%, #000 24%, transparent 97%);
}
.fan.wide {
  filter: blur(30px);
}
.fan.core {
  filter: blur(8px);
}
.stage.ready .fan.wide {
  animation: fan 1.4s var(--ease) 1.55s both;
  opacity: 0.4;
}
.stage.ready .fan.core {
  animation: fan 1.1s var(--ease) 1.6s both;
  opacity: 0.66;
}
.hero:has(.get:hover, .get:focus-visible) .stage.ready .fan.core {
  opacity: 0.85;
}
@keyframes draw {
  from {
    transform: scaleX(0);
  }
}
@keyframes fan {
  from {
    transform: scaleX(0.1);
    opacity: 0;
  }
}
/* what is on, said on glass beside the phone */
.chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 16px;
  background: rgba(22, 30, 41, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-2);
  white-space: nowrap;
  animation: rise 0.9s var(--ease) both, float 7s ease-in-out infinite;
}
.chip b {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
}
.chip .ic {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(191, 227, 255, 0.12);
  color: var(--ice);
}
.c1 {
  left: -46%;
  top: 14%;
  animation-delay: 1.5s, 0s;
}
.c2 {
  right: -42%;
  top: 56%;
  animation-delay: 1.7s, -2.5s;
}
.c3 {
  left: -40%;
  bottom: 24%;
  animation-delay: 1.9s, -5s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
  }
}

/* the sections below the hero: one column of text with its own visual, separated by a hairline */
/* no isolation here: each section's light (z-index -1) then sits under every section's content, not over its neighbour's */
.band {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}
/* each section has its own colour of the light, off to one side, so the page is not one flat blue */
.band::before {
  content: '';
  position: absolute;
  /* reaching past the section, and fading out well inside this box, so the light never stops at a straight line */
  inset: -22% 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(42% 36% at var(--gx, 90%) var(--gy, 50%), color-mix(in srgb, var(--glow, #4f86ff) 15%, transparent), transparent 72%);
}
#modes {
  --glow: #5fd38d;
  --gx: 94%;
  --gy: 50%;
}
#inside {
  --glow: #46c6e8;
  --gx: 4%;
  --gy: 58%;
}
#features {
  --glow: #ffd84d;
  --gx: 96%;
  --gy: 62%;
}
#code {
  --glow: #4f86ff;
  --gx: 6%;
  --gy: 42%;
}
#privacy {
  --glow: #ffa64d;
  --gx: 94%;
  --gy: 50%;
}
.contact {
  --glow: #ff5a7a;
  --gx: 4%;
  --gy: 62%;
}
.sub {
  color: var(--text-2);
  font-size: 19px;
  margin: 18px 0 38px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split h2 {
  margin-bottom: 22px;
}
.split p {
  color: var(--text-2);
}
.link {
  font-weight: 500;
}

/* modes: the segmented control from the app, then where each kind of traffic goes */
.seg {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.seg button {
  font: inherit;
  font-size: 15px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.seg button[aria-selected='true'] {
  background: linear-gradient(135deg, #a6dbff, #4fa9ff);
  color: #04121f;
  font-weight: 550;
}
/* the router: kinds of apps on the left, wired to where their traffic ends up on the right */
.router {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(90px, 0.9fr) minmax(220px, 0.85fr);
  max-width: 1040px;
}
.r-src,
.r-dst {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.r-src li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 8px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 450;
  line-height: 1.3;
}
.r-src li::after,
.r-dst li::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 24%, transparent);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.r-src li::after {
  right: -5px;
}
.r-dst li::before {
  left: -5px;
}
.r-src .to {
  display: none;
}
.r-wires {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.r-wires .w {
  fill: none;
  stroke: var(--c);
  stroke-width: 2;
  opacity: 0.6;
  transition: stroke 0.4s var(--ease);
}
.r-wires .spark {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 9 191;
  animation: spark 2.8s linear infinite;
}
.r-wires [data-to='direct'] .w,
.r-wires [data-to='locked'] .w {
  stroke-dasharray: 4 7;
  opacity: 0.5;
}
.r-wires [data-to='direct'] .spark {
  stroke: var(--c);
  animation-duration: 4.4s;
}
.r-wires [data-to='locked'] .spark {
  display: none;
}
@keyframes spark {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.r-dst li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 36%, transparent);
  font-size: 15px;
  line-height: 1.25;
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease);
}
.r-dst li .ic {
  color: var(--c);
}
.r-dst li.off {
  opacity: 0.45;
  filter: grayscale(1);
}
@media (max-width: 760px) {
  .router {
    grid-template-columns: minmax(0, 1fr);
  }
  .r-wires,
  .r-dst {
    display: none;
  }
  .r-src li {
    min-height: 0;
    padding: 12px 16px;
  }
  .r-src li::after {
    display: none;
  }
  .r-src .to {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--c);
    font-size: 14px;
    font-weight: 400;
  }
  .r-src .to .ic {
    width: 16px;
    height: 16px;
  }
}
.mode-note {
  margin: 18px 0 26px;
  color: var(--text-2);
  min-height: 3.2em;
}

/* downloads: three platforms in a row; the visitor's own one is marked */
.platforms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.platforms li {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 30px 0;
}
.platforms li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.pf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.pf-head .ic {
  color: var(--text-2);
  width: 22px;
  height: 22px;
}
.yours {
  display: none;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(191, 227, 255, 0.12);
  color: var(--ice);
  font-size: 13px;
}
.platforms li.mine .yours {
  display: inline-block;
}
.platforms p {
  color: var(--text-2);
  font-size: 15px;
}
.platforms .note {
  color: var(--text-3);
  font-size: 14px;
  padding-left: 12px;
  border-left: 2px solid color-mix(in srgb, var(--amber) 60%, transparent);
}
.pf-get {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}
.platforms li.mine .btn {
  background: linear-gradient(135deg, #a6dbff, #4fa9ff);
  color: #04121f;
}
.size {
  color: var(--text-3);
  font-size: 14px;
}
.sum {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}
.sum summary {
  cursor: pointer;
}
.sum code {
  display: block;
  margin-top: 8px;
  font: 12px/1.5 'JetBrains Mono', ui-monospace, monospace;
  word-break: break-all;
  color: var(--text-2);
}
.after {
  margin-top: 26px;
  color: var(--text-3);
  font-size: 15px;
}

/* open code: a terminal with the commands that really build and test the core */
.term {
  margin: 0;
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  overflow-x: auto;
  font: 14px/1.9 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text);
}
.term .pr {
  color: var(--text-3);
  user-select: none;
}
.term .out {
  color: #9be27a;
}

/* privacy: the switches as the app shows them, all off */
.consents {
  list-style: none;
  margin: 0;
  padding: 0;
}
.consents li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.consents b {
  display: block;
  font-weight: 450;
}
.consents span {
  display: block;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.45;
}
.consents em {
  color: var(--text-3);
  font-size: 13px;
  font-style: normal;
}
.sw {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.sw::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-3);
}
.never {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text) !important;
}

.foot {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--text-3);
  font-size: 14px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.foot p {
  margin: 0;
  flex: 1 1 320px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.foot nav a {
  color: var(--text-2);
}

/* ---- effects shared by the whole page ---- */

/* film grain over everything: keeps the big dark areas from looking flat */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Sections no longer rise in as they scroll into view: the same entrance on every block read as a template. The
   `in` class still marks what has been seen, for the closing light that draws itself once. */

/* ---- hero additions ---- */
h1 span {
  display: inline-block;
  animation: rise 0.9s var(--ease) both;
}
h1 span:nth-child(2) {
  animation-delay: 0.08s;
}
h1 span:nth-child(3) {
  animation-delay: 0.16s;
}
.lead,
.cta,
.pills {
  animation: rise 0.9s var(--ease) both;
}
.lead {
  animation-delay: 0.28s;
}
.cta {
  animation-delay: 0.38s;
}
.pills {
  animation-delay: 0.48s;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}
.pills .ic {
  width: 16px;
  height: 16px;
  color: var(--ice);
}
/* ---- the app on show: the window, with the tray menu beside it ---- */
.show {
  position: relative;
  padding: 0 var(--gutter) clamp(72px, 10vw, 128px);
  perspective: 1600px;
}
.show-stage {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt, 16deg)) scale(var(--grow, 0.92));
  transform-origin: 50% 100%;
  will-change: transform;
}
.aura {
  position: absolute;
  inset: 8% 6% -4%;
  border-radius: 40px;
  background: conic-gradient(from 200deg, #ff2a3c, #ffa64d, #ffd84d, #5fd38d, #46c6e8, #4f86ff, #8f74ff, #ff2a3c);
  filter: blur(70px);
  opacity: var(--aura, 0.18);
  transition: opacity 0.9s var(--ease);
}
.win {
  position: relative;
  margin: 0;
  border-radius: 18px;
  background: #0d131b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.win-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.win-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.win-view {
  position: relative;
  aspect-ratio: 1600 / 1084;
}
.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.7s var(--ease);
}
.shot.on {
  opacity: 0;
}
.lit .shot.on {
  opacity: 1;
}
/* the power button in the screenshot answers a press */
/* centre and size measured on home-off.webp: the lime disc spans 390-645 x 399-651 of 1600 x 1084 */
.hot {
  position: absolute;
  left: 32.34%;
  top: 48.43%;
  width: 16%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.hot span {
  position: absolute;
  inset: -5%;
  border-radius: 50%;
  border: 2px solid rgba(196, 255, 77, 0.7);
  animation: ping 2.2s var(--ease) 3 both;
}
.lit .hot span {
  border-color: rgba(255, 255, 255, 0.55);
}
.hot:hover span,
.hot:focus-visible span {
  animation: ping 1.1s var(--ease) infinite;
}
@keyframes ping {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
.tray {
  position: absolute;
  left: -4%;
  bottom: -6%;
  width: 17%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 34px 80px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(40px);
  animation: float 8s ease-in-out -3s infinite;
}
.tray img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes float {
  50% {
    translate: 0 -10px;
  }
}
.show-cap {
  max-width: none;
  margin: clamp(48px, 7vw, 84px) auto 0;
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
}

/* ---- inside: real screens, one at a time ---- */
.gallery {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.g-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.g-list button {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 16px 16px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--text-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.g-list button b {
  display: block;
  font-weight: 500;
  color: var(--text);
}
.g-list button span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-3);
}
.g-list button[aria-selected='true'] {
  background: var(--surface);
}
.g-list button i {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  opacity: 0;
}
.g-list button[aria-selected='true'] i {
  opacity: 1;
}
.g-list button i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #a6dbff, #4fa9ff);
  transform-origin: left;
  transform: scaleX(0);
}
.g-list button.run i::after {
  animation: fill var(--dwell, 6s) linear forwards;
}
@keyframes fill {
  to {
    transform: scaleX(1);
  }
}
.g-view .shot {
  opacity: 0;
  object-fit: contain;
  transform: scale(1.015);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.g-view .shot.now {
  opacity: 1;
  transform: none;
}

/* ---- the free boosters: tiles of different sizes, lit under the pointer ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), rgba(191, 227, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.tile:hover::before {
  opacity: 1;
}
.tile.big {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}
/* the video comparison sits at the bottom, over a little of the light */
.tile.big .play-viz {
  margin-top: auto;
  padding-top: 22px;
}
.tile.big::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -60px;
  height: 160px;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(95, 180, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.tile.wide {
  grid-column: span 3;
}
.tile .ic {
  width: 26px;
  height: 26px;
  color: var(--ice);
  margin-bottom: 18px;
}
.tile h3 {
  margin-bottom: 10px;
}
.tile p {
  color: var(--text-2);
  font-size: 15px;
}
.tile.big h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 350;
}
.tile.big p {
  font-size: 17px;
  max-width: 46ch;
}
/* the same video twice: stalling without the bypass, playing with it */
.play-viz {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.pv {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-3);
}
.pv.fast span {
  color: var(--text);
}
.pv .bar {
  position: relative;
  height: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.pv .bar b {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}
.pv.slow .bar b {
  background: var(--text-3);
  animation: stall 7s var(--ease) infinite;
}
.pv.fast .bar b {
  background: linear-gradient(90deg, #ff2a3c, #ffa64d, #ffd84d, #5fd38d, #46c6e8, #4f86ff, #8f74ff);
  animation: play 7s linear infinite;
}
.spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--text-2);
  animation: spin 0.9s linear infinite;
}
@keyframes play {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes stall {
  0% {
    width: 0;
  }
  12% {
    width: 9%;
  }
  40% {
    width: 13%;
  }
  70%,
  100% {
    width: 15%;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* a paper plane along its trail */
.plane-viz {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  overflow: visible;
}
.plane-viz .trail {
  fill: none;
  stroke: var(--ice-2);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
  opacity: 0.55;
}
.plane-viz .plane {
  fill: var(--ice);
  offset-path: path('M6 62 C 90 62, 150 10, 290 14');
  offset-rotate: auto;
  animation: fly 3.8s var(--ease) infinite;
}
@keyframes fly {
  from {
    offset-distance: 0%;
    opacity: 0;
  }
  12%,
  85% {
    opacity: 1;
  }
  to {
    offset-distance: 100%;
    opacity: 0;
  }
}
.ai-viz,
.ads-viz {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
}
.ai-viz li {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 13px;
  color: #ffe48a;
  background: rgba(255, 216, 77, 0.09);
  border: 1px solid rgba(255, 216, 77, 0.22);
}
.ads-viz li {
  position: relative;
  padding: 3px 9px;
  border-radius: 8px;
  font: 12.5px/1.6 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
}
.ads-viz li::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  top: 52%;
  height: 1.5px;
  background: #ff6b6b;
  transform-origin: left;
  animation: strike 3.6s var(--ease) infinite;
}
.ads-viz li:nth-child(2)::after {
  animation-delay: 0.25s;
}
.ads-viz li:nth-child(3)::after {
  animation-delay: 0.5s;
}
@keyframes strike {
  0% {
    transform: scaleX(0);
  }
  25%,
  100% {
    transform: scaleX(1);
  }
}
.formats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}
.formats li {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 14px;
  white-space: nowrap;
}

/* ---- the terminal types itself once it shows ---- */
.term .ln {
  display: inline;
}
.term.typing .ln {
  visibility: hidden;
}
.term.typing .ln.on {
  visibility: visible;
}
.term .caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--text-2);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---- contact ---- */
.split.top {
  align-items: start;
}
.ways {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.ways li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ways .ic {
  width: 22px;
  height: 22px;
  color: var(--ice);
}
.ways b {
  display: block;
  font-weight: 450;
}
.ways a {
  font-size: 15px;
}
.form {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -50px rgba(79, 169, 255, 0.35);
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.topics legend {
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 14px;
}
.topics label {
  cursor: pointer;
}
.topics input {
  position: absolute;
  opacity: 0;
}
.topics span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.topics input:checked + span {
  background: linear-gradient(135deg, #a6dbff, #4fa9ff);
  border-color: transparent;
  color: #04121f;
  font-weight: 550;
}
.topics input:focus-visible + span {
  outline: 2px solid var(--ice-2);
  outline-offset: 2px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 14px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ice-2);
  box-shadow: 0 0 0 3px rgba(90, 180, 255, 0.18);
}
.field input::placeholder {
  color: var(--text-3);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 6px;
}
.get.small {
  height: 48px;
  padding: 0 22px 0 18px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.get.small:disabled {
  opacity: 0.6;
  cursor: progress;
}
.form-note {
  margin: 0;
  flex: 1 1 200px;
  color: var(--text-3);
  font-size: 13px;
}
.form-note.err {
  color: #ff8a80;
}
.sent {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  border-radius: inherit;
  background: var(--surface);
  text-align: center;
  animation: rise 0.6s var(--ease) both;
}
.sent .ic {
  width: 54px;
  height: 54px;
  padding: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4ff59, #a3e635);
  color: var(--on-lime);
  stroke-width: 2.4;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
}
.sent p {
  color: var(--text-2);
}

@media (max-width: 900px) {
  .top nav a:not(:nth-child(3)):not(:nth-child(5)) {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 28px;
  }
  .stage {
    min-height: 0;
    padding: 24px 0 8px;
  }
  .hphone {
    width: min(64vw, 270px);
  }
  .c1 {
    left: -34%;
  }
  .c2 {
    right: -30%;
  }
  .c3 {
    display: none;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .g-list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .g-list button {
    flex: 0 0 auto;
    width: auto;
    padding: 10px 14px 14px;
  }
  .g-list button span {
    display: none;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .tile.big,
  .tile.wide {
    grid-column: span 2;
    grid-row: auto;
  }
  .tray {
    display: none;
  }
  .platforms li,
  .platforms li + li {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .lead {
    font-size: 17px;
  }
  .get {
    width: 100%;
    justify-content: center;
  }
  .seg button {
    padding: 9px 14px;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile.big,
  .tile.wide {
    grid-column: auto;
  }
  .two {
    grid-template-columns: minmax(0, 1fr);
  }
  .chip {
    padding: 8px 10px 8px 8px;
    font-size: 12px;
  }
  .chip b {
    font-size: 13px;
  }
  .chip .ic {
    width: 26px;
    height: 26px;
  }
  /* the phone a little left of centre, so the spectrum has room to leave it; the chips on the screen's empty parts */
  .stage {
    justify-items: start;
  }
  .hphone {
    width: 58vw;
  }
  .hwrap {
    margin-left: calc(42% - 29vw);
  }
  .c1 {
    left: -14%;
    top: 17%;
  }
  .c2 {
    right: -16%;
  }
  /* less air between sections on a phone screen */
  .band {
    padding: 56px 0;
  }
  .show {
    padding-bottom: 56px;
  }
  .show-cap {
    margin-top: 32px;
  }
  /* the window shows its left part, the button card, big enough to read and press */
  .show .win-view {
    aspect-ratio: 1000 / 1084;
    overflow: hidden;
  }
  .show .shot {
    width: 160%;
  }
  .hot {
    left: 51.74%;
    width: 25.6%;
  }
  /* the screen tabs run on past the edge, faded, so it is plain they scroll */
  .g-list {
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }
  /* the commands wrap instead of running out of the box */
  .term {
    padding: 18px;
    font-size: 12.5px;
  }
  .term code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* downloads on pearl: the one light section, so the page has a turn in it */
#download {
  --text: #101722;
  --text-2: #475360;
  --text-3: #5b6673;
  --line: rgba(16, 23, 34, 0.1);
  --surface: #fff;
  --ice: #1d5ca8;
  color: var(--text);
  background: linear-gradient(180deg, #f5f7fa, #e7ebf1);
}
#download::before {
  display: none;
}
#download .platforms {
  gap: 16px;
  border-top: 0;
}
#download .platforms li,
#download .platforms li + li {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(16, 23, 34, 0.06);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 60px -42px rgba(16, 23, 34, 0.45);
}
#download .platforms li.mine {
  border-color: rgba(29, 92, 168, 0.35);
  box-shadow: 0 30px 70px -36px rgba(29, 92, 168, 0.55);
}
#download .btn {
  background: #101722;
  color: #fff;
}
#download .btn:hover {
  background: #26303d;
  color: #fff;
}
#download .platforms li.mine .btn {
  background: linear-gradient(135deg, #d4ff59, #a3e635);
  color: var(--on-lime);
}
#download .yours {
  background: rgba(29, 92, 168, 0.1);
}
#download .pf-head .ic {
  color: var(--ice);
}
@media (max-width: 860px) {
  #download .platforms li,
  #download .platforms li + li {
    padding: 22px;
  }
}

/* the closing word: the hero's light once more, through the download button as through the prism */
.finale {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(96px, 13vw, 176px) 0;
  text-align: center;
  background: radial-gradient(50% 60% at 50% 60%, rgba(90, 130, 200, 0.16), transparent 70%), var(--bg-deep);
}
.finale h2 {
  max-width: 15ch;
  margin: 0 auto 20px;
  font-size: clamp(38px, 5.8vw, 76px);
  text-wrap: balance;
}
.finale p {
  margin: 0 auto 40px;
  color: var(--text-2);
  font-size: 19px;
}
.f-cta {
  position: relative;
  display: inline-block;
}
.f-cta .get {
  position: relative;
  z-index: 2;
}
.f-beam {
  position: absolute;
  right: 100%;
  top: calc(50% - 1px);
  width: 50vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92));
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
  transform-origin: right;
}
.f-fan {
  position: absolute;
  left: calc(100% - 8px);
  top: 50%;
  width: 50vw;
  height: 460px;
  margin-top: -230px;
  filter: blur(12px);
  mix-blend-mode: plus-lighter;
  opacity: 0.85;
  transform-origin: left;
  pointer-events: none;
}
.f-fan b {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from var(--from, 70deg) at var(--ax, 0px) var(--ay, 50%),
    #ff2a3c 0deg,
    #ff2a3c calc(var(--span, 40deg) * 0.07),
    #ffa64d calc(var(--span, 40deg) * 0.22),
    #ffd84d calc(var(--span, 40deg) * 0.36),
    #5fd38d calc(var(--span, 40deg) * 0.5),
    #46c6e8 calc(var(--span, 40deg) * 0.64),
    #4f86ff calc(var(--span, 40deg) * 0.79),
    #8f74ff calc(var(--span, 40deg) * 0.93),
    #8f74ff var(--span, 40deg),
    transparent 0
  );
  clip-path: polygon(0 calc(50% - 16px), 100% 0, 100% 100%, 0 calc(50% + 16px));
  -webkit-mask-image: linear-gradient(90deg, #000 15%, transparent 90%);
  mask-image: linear-gradient(90deg, #000 15%, transparent 90%);
}
.f-cta.in .f-beam {
  animation: draw 0.9s var(--ease) 0.2s both;
}
.f-cta.in .f-fan {
  animation: fan 1.2s var(--ease) 0.8s both;
}
@media (prefers-reduced-motion: reduce) {
  .pv .bar b,
  .spin,
  .plane-viz .plane,
  .ads-viz li::after,
  .r-wires .spark,
  .f-cta.in .f-beam,
  .f-cta.in .f-fan {
    animation: none;
  }
  .pv.fast .bar b {
    width: 100%;
  }
  .pv.slow .bar b {
    width: 15%;
  }
}
