/* ================================================================
   KNOTCH — light "liquid glass" site
   Shared by every page. Sections:
     1. Tokens & base      5. Glass components (button, key, badge,
     2. Type                  panel, chip)
     3. Nav (notch bar)    6. Layout: hero, showcase, sections, footer
     4. Mobile menu        7. Page-specific widgets & motion prefs
   ================================================================ */

@property --a1 { syntax: "<angle>"; inherits: false; initial-value: -75deg; }
@property --a2 { syntax: "<angle>"; inherits: false; initial-value: -45deg; }
@property --pa { syntax: "<angle>"; inherits: false; initial-value: -75deg; }
@property --liq { syntax: "<angle>"; inherits: false; initial-value: -75deg; }

/* ---------- 1. Tokens & base ---------- */

:root {
  --ink: #0b1220;
  --dim: #8d95a3;
  --ink-2: #323a49;
  --mute: #6b7383;
  --faint: #8b93a1;
  --canvas: #ffffff;
  --blue: #2e6be8;
  --blue-bright: #3380ff;
  --blue-soft: #6fa0ff;
  --edge: rgba(200, 230, 255, 0.35);
  --nav-tint-a: rgba(246, 249, 255, 0.4);
  --nav-tint-b: rgba(240, 245, 255, 0.26);
  --nav-sheen-a: rgba(255, 255, 255, 0.55);
  --nav-sheen-b: rgba(255, 255, 255, 0.1);
  --nav-shadow-c: rgba(0, 58, 116, 0.16);
  --nb0: rgba(11, 26, 51, 0.13); --nb1: rgba(11, 26, 51, 0.03); --nb2: rgba(255, 255, 255, 0.07); --nb3: rgba(255, 255, 255, 0.6);
  --nr0: rgba(143, 169, 200, 0.16); --nr1: rgba(110, 140, 178, 0.2); --nr2: rgba(74, 106, 156, 0.28); --nr3: rgba(61, 92, 140, 0.34);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.35);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
  padding: 14px 18px 26px;
}

::selection { background: rgba(51, 128, 255, 0.28); }

img { max-width: 100%; }

a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(46, 107, 232, 0.75);
  outline-offset: 3px;
}

/* ---------- 2. Type ---------- */

.display {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.headline {
  font-size: clamp(2.1rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.subhead {
  font-size: clamp(1.15rem, 2.6vw, 2.1rem);
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #7a8393;
}
.subhead b, .subhead strong { color: #5b6473; font-weight: 600; }

.lead {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--mute);
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.tone { color: #8d95a3; }
.grad-text {
  background: linear-gradient(96deg, #4c8dff 0%, #2e6be8 55%, #1e4fc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 3. Nav: a bar that hangs from the top like the notch ---------- */

.nav-root {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 130;
  padding-top: env(safe-area-inset-top);
  pointer-events: none;
}

.nav-shell {
  --ear: 20px;
  --nav-r: 30px;
  position: relative;
  width: min(44rem, calc(100% - 2 * var(--ear) - 24px));
  margin-inline: auto;
  pointer-events: auto;
}

/* One notch-shaped outline (bar + concave ears) drives every layer.
   site.js measures the bar and writes it to --nav-clip as a path(), and into
   the SVG rim/shadow, so glass, tint, sheen, rim and shadow all share the
   exact same silhouette. Fallback below is a plain rounded bar. */
.nav-glass, .nav-tint, .nav-sheen, .nav-rim-svg, .nav-shadow {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(-1 * var(--ear));
  right: calc(-1 * var(--ear));
  pointer-events: none;
}
.nav-glass, .nav-tint, .nav-sheen, .nav-rim-svg {
  -webkit-clip-path: var(--nav-clip, inset(0 var(--ear) 0 var(--ear) round 0 0 var(--nav-r) var(--nav-r)));
  clip-path: var(--nav-clip, inset(0 var(--ear) 0 var(--ear) round 0 0 var(--nav-r) var(--nav-r)));
}
.nav-rim-svg, .nav-shadow { width: auto; height: 100%; overflow: visible; }

/* refraction layer (Chromium bends the backdrop through #nav-lens) */
.nav-glass {
  -webkit-backdrop-filter: blur(3px) saturate(180%);
  backdrop-filter: blur(3px) saturate(180%);
  filter: url(#nav-lens);
  -webkit-mask-image: var(--nav-mask, none);
  mask-image: var(--nav-mask, none);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.nav-tint  { background: linear-gradient(var(--nav-tint-a), var(--nav-tint-b)); }
.nav-sheen {
  background: linear-gradient(var(--nav-sheen-a), var(--nav-sheen-b) 50%, transparent);
}
.nav-shadow-fill { fill: var(--nav-shadow-c); }

.nav-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0.85rem 1.5rem 0.9rem;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: opacity 0.25s var(--ease-out);
}
.nav-mark:hover { opacity: 0.7; }
.nav-app-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(0, 20, 60, 0.25);
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: #1c2434;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.2s, opacity 0.2s;
}
.nav-links a:not(.nav-cta):hover { color: var(--blue); }
.nav-links a.current { color: var(--blue); }

.gbtn.is-icon { width: 40px; height: 40px; min-width: 0; padding: 0; border: 0; font: inherit; }
.gbtn.is-icon > span { padding: 0; }
.theme-toggle svg { display: block; width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-links .gbtn-wrap { display: inline-flex; }
.mobile-theme { margin-top: 26px; opacity: 0; transition: opacity 0.5s var(--ease-out) 0.36s; }
body.menu-open .mobile-theme { opacity: 1; }
.mobile-theme .gbtn { min-width: 0; }
@media (max-width: 700px) { .nav-links .gbtn-wrap { display: none; } }
@media (min-width: 701px) { .mobile-theme { display: none; } }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff !important;
  background: linear-gradient(-75deg, #23252e, #10121a 55%, #23252e);
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 4px 10px -3px rgba(10, 14, 30, 0.45);
  transition: transform 0.35s var(--ease-out);
}
.nav-cta:hover { transform: scale(0.96); }
.nav-cta-icon { display: block; flex-shrink: 0; margin-top: -1px; }

.nav-burger {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 40px; height: 40px;
  margin-right: -8px;
  position: relative;
  flex-shrink: 0;
}
.nav-burger span {
  position: absolute; left: 11px; right: 11px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.nav-burger span:nth-child(1) { top: 16.5px; }
.nav-burger span:nth-child(2) { top: 23.5px; }
body.menu-open .nav-burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 700px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-burger { display: block; }
  .nav-links { margin-left: auto; }
  .nav-content { padding-inline: 1.1rem 1rem; }
}

/* Safari & Firefox can't bend the backdrop — fall back to a plain frost */
@supports (-webkit-hyphens: none) {
  .nav-glass {
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    filter: none;
  }
}

/* ---------- 4. Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(244, 248, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  backdrop-filter: saturate(180%) blur(26px);
  padding: 104px 9vw 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease-out), visibility 0s;
}
.mobile-menu a {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.06s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.11s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.16s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.21s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.26s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.31s; }
body.menu-open { overflow: hidden; }
@media (min-width: 701px) { .mobile-menu { display: none; } }

/* ---------- 5. Glass components ---------- */

/* 5a. Button — a lit glass pill.
   Layers: body (blur + soft gradient + inset rims) · ::after conic border
   that rotates on hover · span::after diagonal specular sweep · blurred
   shadow sibling that tightens on press/hover. */

.gbtn-wrap {
  position: relative;
  display: inline-block;
  border-radius: 999px;
  max-width: 100%;
  transition: transform 0.4s var(--ease-out);
}

.gbtn {
  --bw: clamp(1px, 0.0625em, 4px);
  --a1: -75deg;
  --a2: -45deg;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-width: 220px;
  max-width: 100%;
  border-radius: 999px;
  color: #2b2f38;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: linear-gradient(-75deg, rgba(230, 245, 255, 0.08), rgba(240, 250, 255, 0.2), rgba(230, 245, 255, 0.08));
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, 0.05),
    inset 0 -2px 2px rgba(255, 255, 255, 0.5),
    0 4px 2px -2px rgba(0, 0, 0, 0.2),
    inset 0 0 1.6px 4px rgba(210, 235, 255, 0.25);
  transition: all 0.4s var(--ease-out);
}
.gbtn:hover {
  --a1: -125deg;
  --a2: 135deg;
  -webkit-backdrop-filter: blur(0.2px);
  backdrop-filter: blur(0.2px);
  transform: scale(0.975);
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, 0.05),
    inset 0 -2px 2px rgba(255, 255, 255, 0.5),
    0 2.4px 0.8px -1.6px rgba(0, 0, 0, 0.25),
    inset 0 0 0.8px 1.6px rgba(255, 255, 255, 0.5);
}
.gbtn:active { transform: scale(0.94); transition-duration: 0.12s; }

/* rotating conic rim */
.gbtn::after,
.gkey::after {
  content: "";
  position: absolute;
  inset: calc(var(--bw) / -2);
  z-index: 1;
  padding: var(--bw);
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from var(--a1) at 50% 50%,
      rgba(20, 60, 120, 0.5), rgba(150, 200, 255, 0.1) 5% 40%,
      rgba(20, 60, 120, 0.5) 50%, rgba(150, 200, 255, 0.1) 60% 95%,
      rgba(20, 60, 120, 0.5)),
    linear-gradient(180deg, rgba(220, 240, 255, 0.5), rgba(240, 250, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: all 0.4s var(--ease-out), --a1 0.5s;
}

.gbtn > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: 100%;
  height: 100%;
  padding-inline: 1.9em;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-shadow: 0 0.05em 0.05em rgba(0, 0, 0, 0.05);
  user-select: none;
  -webkit-user-select: none;
}
/* specular sweep */
.gbtn > span::after,
.gkey > span::after {
  content: "";
  position: absolute;
  inset: var(--bw);
  z-index: 3;
  border-radius: 999px;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(var(--a2), transparent 0, rgba(255, 255, 255, 0.5) 40% 50%, transparent 55%);
  background-size: 200% 200%;
  background-position: 0 0;
  background-repeat: no-repeat;
  transition: background-position 0.5s var(--ease-out), --a2 0.5s var(--ease-out);
}
.gbtn:hover > span::after,
.gkey:hover > span::after { background-position: 30% 30%; }

/* blurred contact shadow */
.gbtn-shadow, .gkey-shadow {
  --cut: 2em;
  position: absolute;
  z-index: 0;
  left: calc(var(--cut) / -2); top: calc(var(--cut) / -2);
  width: calc(100% + var(--cut));
  height: calc(100% + var(--cut));
  filter: blur(clamp(2px, 0.125em, 12px));
  pointer-events: none;
  transition: filter 0.4s var(--ease-out);
}
.gbtn-shadow::after, .gkey-shadow::after {
  content: "";
  position: absolute;
  left: calc(var(--cut) - 0.875em);
  top: calc(var(--cut) - 0.5em);
  width: calc(100% - var(--cut) - 0.25em);
  height: calc(100% - var(--cut) - 0.25em);
  border-radius: inherit;
  padding: 0.125em;
  background: linear-gradient(rgba(0, 50, 100, 0.15), rgba(0, 80, 150, 0.08));
  /* ring only: keeps the shadow out from behind the translucent button body */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: top 0.4s var(--ease-out);
}
.gbtn-shadow { border-radius: 999px; }
.gbtn-wrap:hover .gbtn-shadow { filter: blur(clamp(2px, 0.0625em, 6px)); }
.gbtn-wrap:hover .gbtn-shadow::after { top: calc(var(--cut) - 0.875em); }

/* variants */
.gbtn.is-dark {
  color: #fff;
  background: linear-gradient(-75deg, #23252e, #14161d 55%, #23252e);
}
.gbtn.is-dark > span { text-shadow: none; }

.gbtn.is-onblue {
  color: #fff;
  background: linear-gradient(-75deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14));
  box-shadow:
    inset 0 2px 2px rgba(0, 20, 60, 0.1),
    inset 0 -2px 2px rgba(255, 255, 255, 0.35),
    0 6px 4px -3px rgba(0, 20, 70, 0.35),
    inset 0 0 2px 4px rgba(255, 255, 255, 0.18);
}
.gbtn.is-onblue > span { text-shadow: 0 1px 6px rgba(0, 30, 90, 0.35); }
.gbtn.is-onblue::after {
  background:
    conic-gradient(from var(--a1) at 50% 50%,
      rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.12) 5% 40%,
      rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.12) 60% 95%,
      rgba(255, 255, 255, 0.75)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
}
.gbtn-wrap.on-blue .gbtn-shadow::after { background: linear-gradient(rgba(0, 20, 80, 0.3), rgba(0, 20, 80, 0.12)); }

.gbtn.is-sm { height: 48px; min-width: 0; }
.gbtn.is-sm > span { font-size: 0.98rem; padding-inline: 1.4em; }

/* 5b. Key — the same recipe on a squircle tile, sits inline in headlines */

.gkey-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  border-radius: 24%;
  margin-inline: 0.05em;
  transition: transform 0.4s var(--ease-out);
}
.gkey {
  --bw: 1px;
  --a1: -75deg;
  --a2: -45deg;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.12em; height: 1.12em;
  font-size: inherit;
  border-radius: 24%;
  cursor: default;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: linear-gradient(-75deg, rgba(230, 245, 255, 0.08), rgba(240, 250, 255, 0.2), rgba(230, 245, 255, 0.08));
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, 0.05),
    inset 0 -2px 2px rgba(255, 255, 255, 0.5),
    0 4px 2px -2px rgba(0, 0, 0, 0.2),
    inset 0 0 1.6px 4px rgba(210, 235, 255, 0.25);
  transition: all 0.4s var(--ease-out);
}
.gkey:hover {
  --a1: -125deg;
  --a2: 135deg;
  transform: scale(0.975);
}
.gkey:active { transform: scale(0.9); transition-duration: 0.1s; }
.gkey > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.gkey > span::after { border-radius: 24%; }
.gkey-shadow { border-radius: 24%; }
.gkey-wrap:hover .gkey-shadow { filter: blur(clamp(2px, 0.0625em, 6px)); }
.gkey svg { width: 56%; height: 56%; display: block; position: relative; z-index: 2; }
.gkey img { width: 88%; height: 88%; border-radius: 22%; display: block; position: relative; z-index: 2; box-shadow: 0 3px 8px -2px rgba(0, 20, 60, 0.35); -webkit-user-drag: none; user-select: none; }

/* 5b-2. Static glass — the button recipe without any interaction (tags, check marks) */

.gstat {
  --bw: 1px;
  --a1: -75deg;
  --a2: -45deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: linear-gradient(-75deg, rgba(230, 245, 255, 0.1), rgba(240, 250, 255, 0.3), rgba(230, 245, 255, 0.1));
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, 0.05),
    inset 0 -2px 2px rgba(255, 255, 255, 0.55),
    0 4px 2px -2px rgba(0, 0, 0, 0.2),
    inset 0 0 1.6px 3px rgba(210, 235, 255, 0.3);
}
.gstat::after {
  content: "";
  position: absolute;
  inset: -0.5px;
  z-index: 1;
  padding: var(--bw);
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from var(--a1) at 50% 50%,
      rgba(40, 90, 170, 0.34), rgba(150, 200, 255, 0.16) 5% 40%,
      rgba(40, 90, 170, 0.34) 50%, rgba(150, 200, 255, 0.16) 60% 95%,
      rgba(40, 90, 170, 0.34)),
    linear-gradient(180deg, rgba(220, 240, 255, 0.6), rgba(240, 250, 255, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.gstat > span {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.gstat > span::after {
  content: "";
  position: absolute;
  inset: var(--bw);
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(var(--a2), transparent 0, rgba(255, 255, 255, 0.5) 40% 50%, transparent 55%);
}
.gstat > span > * { position: relative; z-index: 2; }

/* 5c. Badge — small glass tile that holds an icon */

.gbadge {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 30%;
  color: #22262f;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: linear-gradient(-75deg, rgba(230, 245, 255, 0.18), rgba(255, 255, 255, 0.55), rgba(230, 245, 255, 0.18));
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, 0.05),
    inset 0 -2px 2px rgba(255, 255, 255, 0.7),
    0 4px 10px -4px rgba(30, 50, 90, 0.22),
    inset 0 0 1.6px 4px rgba(210, 235, 255, 0.35);
}
.gbadge::after {
  content: "";
  position: absolute;
  inset: -0.5px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from -30deg at 50% 50%,
      rgba(20, 40, 80, 0.28), rgba(150, 200, 255, 0.08) 5% 40%,
      rgba(20, 40, 80, 0.28) 50%, rgba(150, 200, 255, 0.08) 60% 95%,
      rgba(20, 40, 80, 0.28)),
    linear-gradient(180deg, rgba(220, 240, 255, 0.5), rgba(255, 255, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.gbadge::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 28%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(135deg, rgba(245, 250, 255, 0) 0 70%, rgba(230, 245, 255, 0.55) 85% 88%, rgba(245, 250, 255, 0) 96%);
}
.gbadge svg { position: relative; z-index: 2; display: block; }

/* 5d. Panel — frosted card with a top sheen */

.gpanel {
  position: relative;
  border-radius: 2rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0.5) 100%);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.75),
    inset 0 -1px 1px rgba(255, 255, 255, 0.4),
    0 12px 32px -6px rgba(15, 30, 70, 0.1),
    inset 0 0 0 1px rgba(200, 230, 255, 0.36);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.gpanel::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44%;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  border-bottom-left-radius: 50% 12px;
  border-bottom-right-radius: 50% 12px;
  background: linear-gradient(rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 60%, transparent 100%);
}
.gpanel > * { position: relative; z-index: 1; }
/* rim ring: the button's conic border, at card scale; it turns on hover */
.gpanel::before {
  --pa: -75deg;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from var(--pa) at 50% 50%,
      rgba(20, 60, 120, 0.28), rgba(150, 200, 255, 0.12) 5% 40%,
      rgba(20, 60, 120, 0.28) 50%, rgba(150, 200, 255, 0.12) 60% 95%,
      rgba(20, 60, 120, 0.28)),
    linear-gradient(rgba(220, 240, 255, 0.62), rgba(245, 250, 255, 0.38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: --pa 0.6s var(--ease-out);
}
.gpanel:hover::before { --pa: -125deg; }
.gpanel.on-blue::before {
  background:
    conic-gradient(from var(--pa) at 50% 50%,
      rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12) 5% 40%,
      rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.12) 60% 95%,
      rgba(255, 255, 255, 0.7)),
    linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.25));
}
.gpanel:hover {
  transform: translateY(-4px);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.035),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 1px rgba(255, 255, 255, 0.45),
    0 22px 44px -8px rgba(15, 40, 100, 0.16),
    inset 0 0 0 1px rgba(170, 210, 255, 0.5);
}

/* dark-on-blue variant used inside gradient cards */
.gpanel.on-blue {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(255, 255, 255, 0.15),
    0 18px 40px -12px rgba(0, 20, 80, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  color: #fff;
}
.gpanel.on-blue::after { background: linear-gradient(rgba(255, 255, 255, 0.22), transparent 70%); }

/* 5e. Chip */

.gchip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  background: linear-gradient(-75deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 2px 2px rgba(0, 20, 60, 0.08),
    inset 0 -2px 2px rgba(255, 255, 255, 0.35),
    0 4px 10px -2px rgba(0, 20, 70, 0.25),
    inset 0 0 2px 3px rgba(255, 255, 255, 0.12);
}

/* ---------- 6. Layout ---------- */

main, section, header, footer { position: relative; }

.wrap { width: min(1180px, 100%); margin-inline: auto; }

/* soft colour behind glass so it has something to refract */
.aurora {
  position: absolute;
  inset: -8% -4%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.aurora i:nth-child(1) { width: 34vw; height: 34vw; left: 4%;  top: 6%;  background: #b9d6ff; }
.aurora i:nth-child(2) { width: 30vw; height: 30vw; right: 6%; top: 32%; background: #d8e8ff; }
.aurora i:nth-child(3) { width: 26vw; height: 26vw; left: 30%; bottom: 0; background: #c9dcff; }

/* Hero */

.hero {
  padding: 150px 0 0;
  text-align: center;
}
.hero-inner { padding-inline: 4px; }

.hero h1 { max-width: 13em; margin-inline: auto; }
.hero .subhead { max-width: 30em; margin: 1.1em auto 0; }

.hero-cta {
  margin-top: clamp(2rem, 5vw, 3.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.hero-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.link-more:hover { text-decoration: underline; }
.hero-fineprint { font-size: 13px; color: var(--faint); letter-spacing: -0.01em; }

.rise { animation: rise 1s var(--ease-out) both; }
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.2s; }
.rise.d3 { animation-delay: 0.34s; }
.rise.d4 { animation-delay: 0.46s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Hero: the headline wraps the real notch in the photo — "Make the [notch] actually / useful." */

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

.hero.hero-notch { padding-top: 96px; }
.notch-hero {
  position: relative;
  container-type: inline-size;
  width: min(1180px, 100%);
  margin-inline: auto;
}
.notch-frame {
  border-radius: clamp(1.2rem, 3vw, 2.2rem);
  overflow: hidden;
  aspect-ratio: 1400 / 402;
  background: #2a12b8;
  box-shadow: 0 30px 80px -30px rgba(40, 20, 160, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.notch-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero .notch-title {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 2px 24px rgba(10, 0, 80, 0.35);
  pointer-events: none;
}
.notch-title .nt { position: absolute; white-space: nowrap; }
/* notch spans 37.1%–63.4% of the photo, its vertical centre sits at ~17.7% */
.nt-left, .nt-right { color: rgba(255, 255, 255, 0.62); }
.nt-left  { right: calc(62.9% + 1.9cqw); top: 19.6%; transform: translateY(-50%); font-size: 5.3cqw; }
.nt-right { left: calc(63.4% + 1.9cqw); top: 19.6%; transform: translateY(-50%); font-size: 5.3cqw; }
.nt-line2 { color: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 15cqw; letter-spacing: -0.06em; }

@media (max-width: 700px) {
  /* too small to wrap the notch legibly: headline above, photo as a banner below */
  .hero .notch-title { position: static; color: var(--dim); text-shadow: none; font-size: clamp(2.6rem, 12.5vw, 3.6rem); letter-spacing: -0.055em; margin-bottom: 26px; }
  .notch-title .nt { position: static; display: inline; transform: none; font-size: inherit; letter-spacing: inherit; }
  .notch-title .sr-only { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }
  .nt-line2 { display: block !important; }
  .nt-left, .nt-right { color: inherit; }
  .nt-line2 { color: var(--ink); }
  .hero-inner { padding-top: 6px; }
}

/* Showcase card — the big blue sky the gallery lives in */

.showcase { margin: clamp(56px, 9vw, 120px) auto 0; max-width: 1080px; }

.sky {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(1.6rem, 4vw, 3rem);
  color: #fff;
  background:
    radial-gradient(60% 50% at 88% 108%, rgba(255, 236, 200, 0.9), rgba(255, 236, 200, 0) 60%),
    radial-gradient(90% 60% at 10% 30%, rgba(60, 150, 255, 0.55), transparent 65%),
    linear-gradient(180deg, #033f93 0%, #0a5cc8 45%, #4a97ee 100%);
}
.sky::before, .sky::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(22px);
  border-radius: 999px;
  opacity: 0.35;
}
.sky::before { width: 46%; height: 5%; left: -6%; top: 24%; transform: rotate(-12deg); }
.sky::after  { width: 38%; height: 4%; right: -4%; top: 40%; transform: rotate(-14deg); opacity: 0.28; }

.showcase .sky { padding: clamp(18px, 3.4vw, 44px) clamp(14px, 3vw, 44px) clamp(20px, 3vw, 36px); }

/* Gallery (inside the sky) */

.gallery { --gh: clamp(280px, 40vw, 440px); position: relative; }

.gallery-viewport {
  position: relative;
  border-radius: clamp(1.2rem, 2.6vw, 2rem);
  overflow: hidden;
  height: var(--gh);
  outline: none;
  background: linear-gradient(135deg, rgba(4, 12, 34, 0.86), rgba(6, 22, 60, 0.78));
  box-shadow:
    0 30px 80px -20px rgba(0, 20, 80, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.gallery-viewport:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8); }

.gallery-track {
  display: flex;
  height: 100%;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.gallery-track:active { cursor: grabbing; }
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px) clamp(16px, 3vw, 34px) clamp(16px, 2.4vw, 26px);
}
.shot-frame {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-slide img {
  max-width: 100%;
  max-height: calc(var(--gh) - 130px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.gallery-caption {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  max-width: 46ch;
  letter-spacing: -0.01em;
}

.gallery-arrow {
  --bw: 1px;
  --a1: -75deg;
  --a2: -45deg;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 56px; height: 56px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: linear-gradient(-75deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 2px 2px rgba(0, 20, 60, 0.1),
    inset 0 -2px 2px rgba(255, 255, 255, 0.35),
    0 6px 4px -3px rgba(0, 20, 70, 0.4),
    inset 0 0 2px 4px rgba(255, 255, 255, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
/* rotating conic rim */
.gallery-arrow::after {
  content: "";
  position: absolute;
  inset: calc(var(--bw) / -2);
  z-index: 1;
  padding: var(--bw);
  border-radius: 50%;
  pointer-events: none;
  background:
    conic-gradient(from var(--a1) at 50% 50%,
      rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.12) 5% 40%,
      rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.12) 60% 95%,
      rgba(255, 255, 255, 0.8)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: --a1 0.5s var(--ease-out);
}
/* specular sweep (sits behind the chevron) */
.gallery-arrow::before {
  content: "";
  position: absolute;
  inset: var(--bw);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(var(--a2), transparent 0, rgba(255, 255, 255, 0.5) 40% 50%, transparent 55%);
  background-size: 200% 200%;
  background-position: 0 0;
  background-repeat: no-repeat;
  transition: background-position 0.5s var(--ease-out), --a2 0.5s var(--ease-out);
}
.gallery-arrow svg { position: relative; z-index: 2; filter: drop-shadow(0 1px 4px rgba(0, 30, 90, 0.4)); }
.gallery-arrow:hover {
  --a1: -125deg;
  --a2: 135deg;
  transform: translateY(-50%) scale(0.95);
  box-shadow:
    inset 0 2px 2px rgba(0, 20, 60, 0.1),
    inset 0 -2px 2px rgba(255, 255, 255, 0.35),
    0 3px 1px -2px rgba(0, 20, 70, 0.4),
    inset 0 0 1px 2px rgba(255, 255, 255, 0.4);
}
.gallery-arrow:hover::before { background-position: 30% 30%; }
.gallery-arrow:active { transform: translateY(-50%) scale(0.88); transition-duration: 0.12s; }
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }
@media (hover: hover) {
  .gallery:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; pointer-events: auto; }
}
@media (hover: none) {
  .gallery-arrow { opacity: 1; pointer-events: auto; }
}

.gallery-dots {
  margin-top: clamp(14px, 2vw, 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gallery-dots .dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.4s var(--ease-spring), background 0.3s;
}
.gallery-dots .dot.active { width: 26px; background: #fff; }
.gallery-dots .dot:hover { background: rgba(255, 255, 255, 0.7); }

@media (max-width: 640px) {
  .gallery { --gh: 330px; }
  .gallery-arrow { width: 44px; height: 44px; }
  .gallery-arrow.prev { left: 8px; }
  .gallery-arrow.next { right: 8px; }
  .gallery-caption { font-size: 13px; }
}

/* Sections */

.sec { padding: clamp(72px, 11vw, 150px) 0 0; }
.sec-head { text-align: center; max-width: 52rem; margin: 0 auto clamp(36px, 5vw, 64px); }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head .subhead { margin-top: 0.7em; }
.sec-head.left { text-align: left; margin-inline: 0; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* Bento */

.bento {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
@media (max-width: 900px) { .span-4, .span-3, .span-2 { grid-column: span 6; } }

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
}
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.card p {
  font-size: 15.5px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--mute);
  max-width: 48ch;
}
.card-vis { margin-top: auto; padding-top: 28px; }

/* Craft */

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .craft-grid { grid-template-columns: 1fr; } }
.craft-item { padding: 30px 28px 32px; }
.craft-item .gbadge { margin-bottom: 22px; }
.craft-item h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 10px; }
.craft-item p { font-size: 15.5px; line-height: 1.55; letter-spacing: -0.015em; color: var(--mute); }

/* FAQ teaser */

.faq-list { max-width: 50rem; margin-inline: auto; display: grid; gap: 12px; }
.faq-teaser { border-radius: 1.5rem; }
.faq-teaser summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.faq-teaser summary::-webkit-details-marker { display: none; }
.faq-teaser summary::after {
  content: "";
  width: 9px; height: 9px;
  flex-shrink: 0;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.35s var(--ease-out);
}
.faq-teaser[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-teaser .ans { padding: 0 26px 22px; font-size: 15.5px; line-height: 1.55; color: var(--mute); letter-spacing: -0.015em; max-width: 60ch; }
.faq-more { text-align: center; margin-top: 26px; }

/* Download card */

.dl { margin: clamp(72px, 11vw, 150px) auto 0; max-width: 1080px; }
.dl .sky {
  text-align: center;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 60px) clamp(40px, 6vw, 72px);
}
.dl .headline { max-width: 14em; margin-inline: auto; text-shadow: 0 2px 30px rgba(0, 30, 100, 0.3); }
.dl .lead { color: rgba(255, 255, 255, 0.82); max-width: 34em; margin: 1.2em auto 0; }
.dl-actions { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.dl-actions .link-more { color: #fff; opacity: 0.9; }

.dl-note {
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 36rem;
  padding: 22px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 1.6rem;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}
.dl-note-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; }
.dl-note p { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); }
.dl-note code {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: #dff0ff;
  background: rgba(0, 20, 70, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 11px 14px;
  overflow-x: auto;
  white-space: nowrap;
}
.dl-reqs { margin-top: 30px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }

/* Footer */

footer { margin-top: clamp(48px, 7vw, 90px); padding: 8px 4px 0; }
.foot-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mute);
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.03em; margin-bottom: 8px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 7px; }
.foot-fine { max-width: 60ch; color: var(--faint); }
.foot-cols { display: flex; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 2px; }
.foot-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 4px; }
.foot-col a { color: var(--mute); text-decoration: none; transition: color 0.2s; }
.foot-col a:hover { color: var(--blue); }
.foot-copy { width: min(1180px, 100%); margin: 26px auto 0; padding-top: 18px; border-top: 1px solid rgba(11, 18, 32, 0.07); font-size: 12.5px; color: var(--faint); }

/* ---------- 7. Widget demos (dark notch UI on light glass) ---------- */

.hud-demo, .shelf-demo { display: flex; justify-content: center; }
.hud-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0b0b0e;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hud-pill { position: relative; }
.hud-pill::before {
  --liq: -75deg;
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from var(--liq) at 50% 50%,
      rgba(20, 60, 120, 0.55), rgba(130, 190, 255, 0.14) 6% 44%,
      rgba(20, 60, 120, 0.55) 50%, rgba(130, 190, 255, 0.14) 56% 94%,
      rgba(20, 60, 120, 0.55)),
    linear-gradient(180deg, rgba(200, 220, 245, 0.16), rgba(230, 240, 252, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: liquid-turn 14s linear infinite;
}
@keyframes liquid-turn { to { --liq: 285deg; } }
.hud-track { width: 150px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.hud-fill {
  height: 100%; width: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #6fa0ff, #1e5ad6);
  transform: scaleX(0.55);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-spring);
}

.bar { width: 4px; border-radius: 2px; background: #6fa0ff; height: 30%; }
.wave-demo { position: relative; display: flex; justify-content: center; }
.wave-notch {
  width: 216px; height: 58px;
  background: #000;
  border-radius: 0 0 20px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 12px 18px;
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.45);
}
.wave-notch .bar:nth-child(1) { animation: wfB 1.55s ease-in-out infinite; animation-delay: -0.45s; }
.wave-notch .bar:nth-child(2) { animation: wfA 1.25s ease-in-out infinite; animation-delay: -0.8s;  background: #4c86ff; }
.wave-notch .bar:nth-child(3) { animation: wfC 1.75s ease-in-out infinite; animation-delay: -0.2s;  background: #3380ff; }
.wave-notch .bar:nth-child(4) { animation: wfA 1.4s ease-in-out infinite;  animation-delay: -1.05s; background: #4c86ff; }
.wave-notch .bar:nth-child(5) { animation: wfB 1.15s ease-in-out infinite; animation-delay: -0.35s; }
.wave-notch .bar:nth-child(6) { animation: wfC 1.6s ease-in-out infinite;  animation-delay: -0.85s; background: #4c86ff; }
@keyframes wfA { 0%{height:24%} 18%{height:78%} 35%{height:40%} 52%{height:92%} 70%{height:30%} 85%{height:64%} 100%{height:24%} }
@keyframes wfB { 0%{height:58%} 15%{height:26%} 40%{height:88%} 60%{height:36%} 80%{height:70%} 100%{height:58%} }
@keyframes wfC { 0%{height:34%} 20%{height:95%} 45%{height:48%} 65%{height:26%} 82%{height:80%} 100%{height:34%} }

.shelf-demo { gap: 10px; }
.shelf-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; color: #1a2030;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 16px -6px rgba(20, 40, 90, 0.25), inset 0 0 0 1px rgba(190, 215, 250, 0.7);
  animation: floaty 3.4s ease-in-out infinite alternate;
}
.shelf-chip:nth-child(2) { animation-delay: 0.5s; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-6px); } }

.widget-row { display: flex; gap: 10px; flex-wrap: wrap; }
.widget-tile {
  flex: 1 1 100px; min-width: 96px;
  display: flex; flex-direction: column; gap: 7px;
  padding: 13px 14px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--mute);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(190, 215, 250, 0.6), 0 6px 14px -8px rgba(20, 40, 90, 0.2);
}
.widget-tile strong { color: var(--ink); font-size: 13.5px; font-weight: 600; letter-spacing: -0.02em; }
.batt-shell { width: 100%; height: 6px; border-radius: 6px; background: rgba(11, 18, 32, 0.1); overflow: hidden; }
.batt-fill { width: 82%; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4c9dff, #2e6be8); }

.lock-vis {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(90% 140% at 15% 120%, rgba(111, 160, 255, 0.55), transparent 60%),
    linear-gradient(135deg, #0b1a3d, #14306e);
  box-shadow: 0 14px 30px -12px rgba(10, 30, 90, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.lock-art { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, #6fa0ff, #2e6be8); }
.lock-meta { font-size: 12px; color: rgba(255, 255, 255, 0.72); line-height: 1.4; }
.lock-meta strong { display: block; color: #fff; font-size: 13.5px; letter-spacing: -0.01em; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   8. Dark theme (html[data-theme="dark"], set from the system or the toggle) — same glass recipe, lit from behind.
   Rims flip from deep-blue to white, insets swap highlight/shade.
   ================================================================ */



:root[data-theme="dark"] {
  color-scheme: dark;
  --dim: #6b7588;
  --ink: #f4f7fc;
  --ink-2: #c9d1e0;
  --mute: #8f99ac;
  --faint: #6c7689;
  --canvas: #05070c;
  --blue: #6fa0ff;
  --edge: rgba(255, 255, 255, 0.1);
  --nav-tint-a: rgba(24, 30, 46, 0.5);
  --nav-tint-b: rgba(14, 18, 30, 0.38);
  --nav-sheen-a: rgba(255, 255, 255, 0.06);
  --nav-sheen-b: rgba(255, 255, 255, 0.012);
  --nav-shadow-c: rgba(0, 0, 0, 0.6);
  --nb0: rgba(255, 255, 255, 0.06); --nb1: rgba(255, 255, 255, 0.015); --nb2: rgba(255, 255, 255, 0.02); --nb3: rgba(255, 255, 255, 0.1);
  --nr0: rgba(200, 215, 255, 0.16); --nr1: rgba(200, 215, 255, 0.18); --nr2: rgba(200, 215, 255, 0.24); --nr3: rgba(200, 215, 255, 0.3);
}
:root[data-theme="dark"] body { background: var(--canvas);
}
:root[data-theme="dark"] ::selection { background: rgba(111, 160, 255, 0.35);
}
:root[data-theme="dark"] .subhead { color: #7d879a;
}
:root[data-theme="dark"] .subhead b,
:root[data-theme="dark"] .subhead strong { color: #c6cedc;
}
:root[data-theme="dark"] .tone { color: #6b7588;
}
:root[data-theme="dark"] .grad-text { background: linear-gradient(96deg, #8ab4ff 0%, #4c8dff 55%, #2e6be8 100%); -webkit-background-clip: text; background-clip: text;
}
:root[data-theme="dark"] .link-more { color: #7aa8ff;
}
:root[data-theme="dark"] a:focus-visible,
:root[data-theme="dark"] button:focus-visible { outline-color: rgba(138, 180, 255, 0.85);
}
:root[data-theme="dark"] .nav-mark { color: var(--ink);
}
:root[data-theme="dark"] .nav-links a { color: #dfe6f3;
}
:root[data-theme="dark"] .nav-links a:not(.nav-cta):hover,
:root[data-theme="dark"] .nav-links a.current { color: #8ab4ff;
}
:root[data-theme="dark"] .nav-cta {
  color: #0b1220 !important;
  background: linear-gradient(-75deg, #e4e9f4, #ffffff 55%, #e4e9f4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 4px 12px -3px rgba(0, 0, 0, 0.6);
}
:root[data-theme="dark"] .nav-app-icon { box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
:root[data-theme="dark"] .mobile-menu { background: rgba(8, 11, 20, 0.8);
}
:root[data-theme="dark"] .mobile-menu a { border-bottom-color: rgba(255, 255, 255, 0.09);
}
:root[data-theme="dark"] .gbtn {
  color: #f2f5fb;
  background: linear-gradient(-75deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.1),
    inset 0 -2px 2px rgba(0, 0, 0, 0.3),
    0 4px 2px -2px rgba(0, 0, 0, 0.6),
    inset 0 0 1.6px 4px rgba(255, 255, 255, 0.05);
}
:root[data-theme="dark"] .gbtn:hover {
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.1),
    inset 0 -2px 2px rgba(0, 0, 0, 0.3),
    0 2.4px 0.8px -1.6px rgba(0, 0, 0, 0.6),
    inset 0 0 0.8px 1.6px rgba(255, 255, 255, 0.16);
}
:root[data-theme="dark"] .gbtn > span { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
:root[data-theme="dark"] .gbtn::after,
:root[data-theme="dark"] .gkey::after,
:root[data-theme="dark"] .gstat::after,
:root[data-theme="dark"] .gbadge::after {
  background:
    conic-gradient(from var(--a1, -30deg) at 50% 50%,
      rgba(255, 255, 255, 0.5), rgba(180, 210, 255, 0.06) 5% 40%,
      rgba(255, 255, 255, 0.5) 50%, rgba(180, 210, 255, 0.06) 60% 95%,
      rgba(255, 255, 255, 0.5)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
}
:root[data-theme="dark"] .gbtn > span::after,
:root[data-theme="dark"] .gkey > span::after,
:root[data-theme="dark"] .gstat > span::after {
  background: linear-gradient(var(--a2), transparent 0, rgba(255, 255, 255, 0.3) 40% 50%, transparent 55%);
  background-size: 200% 200%;
  background-position: 0 0;
  background-repeat: no-repeat;
}
:root[data-theme="dark"] .gbtn-shadow::after,
:root[data-theme="dark"] .gkey-shadow::after { background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3));
}
:root[data-theme="dark"] .gbtn.is-dark {
  color: #0b1220;
  background: linear-gradient(-75deg, #dfe5f1, #ffffff 55%, #dfe5f1);
}
:root[data-theme="dark"] .gbtn.is-onblue { color: #fff;
}
:root[data-theme="dark"] .gkey {
  background: linear-gradient(-75deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.12),
    inset 0 -2px 2px rgba(0, 0, 0, 0.3),
    0 6px 4px -3px rgba(0, 0, 0, 0.7),
    inset 0 0 1.6px 4px rgba(255, 255, 255, 0.05);
}
:root[data-theme="dark"] .gkey img { box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.6);
}
:root[data-theme="dark"] .gstat {
  background: linear-gradient(-75deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.1),
    inset 0 -2px 2px rgba(0, 0, 0, 0.3),
    0 4px 2px -2px rgba(0, 0, 0, 0.55),
    inset 0 0 1.6px 3px rgba(255, 255, 255, 0.05);
}
:root[data-theme="dark"] .gbadge {
  color: #eaf0fc;
  background: linear-gradient(-75deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.1),
    inset 0 -2px 2px rgba(0, 0, 0, 0.3),
    0 6px 12px -4px rgba(0, 0, 0, 0.6),
    inset 0 0 1.6px 4px rgba(255, 255, 255, 0.05);
}
:root[data-theme="dark"] .gbadge::before { background: linear-gradient(135deg, transparent 0 70%, rgba(255, 255, 255, 0.22) 85% 88%, transparent 96%);
}
:root[data-theme="dark"] .gpanel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.025) 50%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    inset 0 -1px 1px rgba(255, 255, 255, 0.05),
    0 18px 40px -8px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(150, 185, 255, 0.1);
}
:root[data-theme="dark"] .gpanel::after { background: linear-gradient(rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 60%, transparent 100%);
}
:root[data-theme="dark"] .gpanel:hover {
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(255, 255, 255, 0.07),
    0 26px 50px -8px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(150, 190, 255, 0.24);
}
:root[data-theme="dark"] .gpanel.on-blue {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.16));
}
:root[data-theme="dark"] .aurora i { filter: blur(90px); opacity: 0.4;
}
:root[data-theme="dark"] .aurora i:nth-child(1) { background: #163a86;
}
:root[data-theme="dark"] .aurora i:nth-child(2) { background: #0e2a66;
}
:root[data-theme="dark"] .aurora i:nth-child(3) { background: #1a48a0;
}
:root[data-theme="dark"] .sky { box-shadow: 0 30px 80px -30px rgba(20, 90, 220, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
:root[data-theme="dark"] .faq-teaser summary::after { border-color: var(--mute);
}
:root[data-theme="dark"] .foot-copy { border-top-color: rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .foot-col a:hover { color: #8ab4ff;
}
:root[data-theme="dark"] .hud-pill { background: #000; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
:root[data-theme="dark"] .wave-notch { box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
:root[data-theme="dark"] .shelf-chip {
  color: #e8eefb;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
:root[data-theme="dark"] .widget-tile {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 14px -8px rgba(0, 0, 0, 0.6);
}
:root[data-theme="dark"] .batt-shell { background: rgba(255, 255, 255, 0.14);
}
:root[data-theme="dark"] .lock-vis { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .gpanel:not(.on-blue)::before {
  background:
    conic-gradient(from var(--pa) at 50% 50%,
      rgba(255, 255, 255, 0.34), rgba(180, 210, 255, 0.05) 5% 40%,
      rgba(255, 255, 255, 0.34) 50%, rgba(180, 210, 255, 0.05) 60% 95%,
      rgba(255, 255, 255, 0.34)),
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}
:root[data-theme="dark"] .hud-pill::before {
  background:
    conic-gradient(from var(--liq) at 50% 50%,
      rgba(190, 215, 255, 0.5), rgba(130, 190, 255, 0.08) 6% 44%,
      rgba(190, 215, 255, 0.5) 50%, rgba(130, 190, 255, 0.08) 56% 94%,
      rgba(190, 215, 255, 0.5)),
    linear-gradient(180deg, rgba(200, 220, 245, 0.18), rgba(230, 240, 252, 0.1));
}

/* dark nav: keep the glass honest — no extra colour boost on the backdrop */
:root[data-theme="dark"] .nav-glass {
  -webkit-backdrop-filter: blur(3px) saturate(110%);
  backdrop-filter: blur(3px) saturate(110%);
}
