/* sightpad — landing page styles
 *
 * Visual direction: Native Glass on graphite, with the logo's radiant
 * aperture translated into optic-white highlights and restrained blue
 * focus accents.
 */

:root {
  /* Canvas */
  --bg: #07090d;
  --bg-elevated: #111722;
  --bg-card: rgba(17, 23, 34, 0.68);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);

  /* Type */
  --text: #f7fbff;
  --text-muted: #b8c2cf;
  --text-dim: #788594;

  /* Native Glass palette */
  --p-lilac: #0a84ff;
  --p-peach: #f7fbff;
  --p-mint:  #30d158;
  --p-sky:   #35c8ff;
  --p-rose:  #9fdcff;

  /* Accents derived from the palette */
  --accent: var(--p-lilac);
  --accent-warm: var(--p-sky);
  --accent-glow: rgba(10, 132, 255, 0.44);
  --accent-glow-warm: rgba(53, 200, 255, 0.30);

  /* Body copy & small type placed directly on the mesh (not inside glass cards) */
  --text-on-mesh: #eef6ff;
  --text-on-mesh-soft: #cdd7e4;
  --shadow-on-mesh: 0 1px 2px rgba(7, 9, 13, 0.85), 0 0 20px rgba(7, 9, 13, 0.35);
  --shadow-on-mesh-soft: 0 1px 2px rgba(7, 9, 13, 0.72), 0 0 18px rgba(7, 9, 13, 0.28);
  --shadow-on-mesh-nav: 0 1px 2px rgba(7, 9, 13, 0.68), 0 0 14px rgba(7, 9, 13, 0.32);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--p-sky); }

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

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

/* ---------- Native Glass field ---------- */

/* Four blurred radial fields create glass-like depth without competing
 * with the app icon's high-contrast aperture mark. */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
  mix-blend-mode: screen;
  will-change: transform;
}

.blob-1 {
  background: var(--p-lilac);
  top: -28%;
  left: -18%;
  animation: drift-1 26s ease-in-out infinite alternate;
}

.blob-2 {
  background: var(--p-peach);
  top: -12%;
  right: -22%;
  opacity: 0.16;
  animation: drift-2 32s ease-in-out infinite alternate;
}

.blob-3 {
  background: var(--p-mint);
  bottom: -28%;
  left: 8%;
  opacity: 0.20;
  animation: drift-3 38s ease-in-out infinite alternate;
}

.blob-4 {
  background: var(--p-sky);
  bottom: -22%;
  right: -8%;
  opacity: 0.28;
  animation: drift-4 30s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(12vw, 8vh, 0) scale(1.15); }
  100% { transform: translate3d(-6vw, 14vh, 0) scale(0.95); }
}
@keyframes drift-2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-14vw, 10vh, 0) scale(1.1); }
  100% { transform: translate3d(-4vw, -6vh, 0) scale(1.2); }
}
@keyframes drift-3 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(10vw, -12vh, 0) scale(1.18); }
  100% { transform: translate3d(-8vw, -4vh, 0) scale(1); }
}
@keyframes drift-4 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-10vw, -14vh, 0) scale(1.1); }
  100% { transform: translate3d(8vw, 4vh, 0) scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* Subtle film grain overlays the mesh so the dark areas don't band. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  /* Above the custom cursor (.cursor-blob) so magnet morphs never paint over the bar */
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: linear-gradient(180deg, rgba(12, 10, 24, 0.78) 0%, rgba(12, 10, 24, 0.4) 70%, transparent 100%);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px -10px rgba(0, 0, 0, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-on-mesh-soft);
}

.nav-links a { transition: color 120ms ease; }

.nav-links a:not(.nav-cta) {
  color: var(--text-on-mesh-soft);
  text-shadow: var(--shadow-on-mesh-nav);
}

.brand-name {
  font-size: 16px;
  text-shadow: var(--shadow-on-mesh-nav);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  background: rgba(196, 181, 253, 0.08);
  text-shadow: var(--shadow-on-mesh-nav);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, box-shadow 200ms ease;
}

.nav-cta:hover {
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(196, 181, 253, 0.16);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px var(--accent-glow);
}

.nav-manage-license {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 500;
  color: var(--text-on-mesh-soft);
  text-shadow: var(--shadow-on-mesh-nav);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.nav-manage-license:hover {
  border-color: rgba(53, 200, 255, 0.38);
  background: rgba(10, 132, 255, 0.1);
  color: var(--text);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta):not(.nav-manage-license) {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(72px, 14vw, 160px) var(--pad) clamp(80px, 12vw, 160px);
  isolation: isolate;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-on-mesh-soft);
  text-shadow: var(--shadow-on-mesh-soft);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--p-lilac);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.hero-title {
  margin: 28px auto 18px;
  max-width: 14ch;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text);
}

.grad {
  background: linear-gradient(120deg, var(--p-peach) 0%, var(--p-sky) 42%, var(--p-lilac) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 14s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .grad { animation: none; }
}

.hero-sub {
  margin: 0 auto;
  max-width: 56ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-on-mesh);
  text-shadow: var(--shadow-on-mesh);
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px 0 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 200ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, #075fd4 0%, #087cbf 100%);
  color: #f7fbff;
  box-shadow: 0 14px 30px -14px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.btn-primary:hover {
  color: #f7fbff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -14px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(53, 200, 255, 0.42);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-cta .btn-ghost {
  text-shadow: var(--shadow-on-mesh-soft);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  text-align: center;
  transition: border-color 200ms ease, transform 200ms ease;
}

.hero-meta strong {
  display: block;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hero-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-on-mesh-soft);
  text-shadow: var(--shadow-on-mesh-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

@media (max-width: 560px) {
  .hero-meta { grid-template-columns: 1fr; }
}

/* ---------- Hero · minimal macOS desktop demo (ring aligns to desk %) ---------- */

.hero-visual {
  max-width: 920px;
  margin: clamp(36px, 6vw, 56px) auto clamp(28px, 5vw, 44px);
}

.gaze-demo {
  position: relative;
  border-radius: calc(var(--radius-lg) + 6px);
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(53, 200, 255, 0.15) 100%
  );
  box-shadow:
    0 4px 3px rgba(7, 9, 13, 0.45),
    0 28px 56px -24px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.gaze-demo-desk {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #0b0d14;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.gaze-demo-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  min-height: 38px;
  background: rgba(10, 12, 20, 0.46);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gaze-demo-menubar-start {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gaze-demo-apple {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(247, 251, 255, 0.34);
  flex-shrink: 0;
}

.gaze-demo-hit-mbar {
  width: clamp(48px, 10vw, 72px);
  height: 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
}

.gaze-demo-menubar-trail {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 10px);
  margin: 0 12px;
  min-height: 10px;
}

.gaze-demo-menubar-trail span {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.gaze-demo-menubar-trail span:nth-child(1) {
  width: clamp(22px, 5vw, 34px);
}

.gaze-demo-menubar-trail span:nth-child(2) {
  width: clamp(18px, 4vw, 26px);
}

.gaze-demo-menubar-trail span:nth-child(3) {
  width: clamp(28px, 6vw, 40px);
}

.gaze-demo-menubar-trail span:nth-child(4) {
  width: clamp(16px, 3.5vw, 22px);
}

.gaze-demo-menubar-trail span:nth-child(5) {
  width: clamp(20px, 4.5vw, 30px);
}

.gaze-demo-menubar-status {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.gaze-demo-menubar-status span {
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.42);
}

.gaze-demo-menubar-status span:nth-child(1) {
  width: 8px;
  height: 8px;
}

.gaze-demo-menubar-status span:nth-child(2),
.gaze-demo-menubar-status span:nth-child(3) {
  width: 6px;
  height: 6px;
  opacity: 0.85;
}

.gaze-demo-menubar-status span:nth-child(4) {
  width: 22px;
  height: 7px;
  border-radius: 4px;
  opacity: 0.65;
}

.gaze-demo-stage {
  position: relative;
  isolation: isolate;
  background-color: #07090d;
  background-image:
    linear-gradient(180deg, rgba(5, 7, 12, 0.5) 0%, rgba(5, 7, 12, 0.12) 38%, rgba(5, 7, 12, 0.68) 100%),
    linear-gradient(110deg, rgba(12, 14, 22, 0.52) 0%, transparent 46%),
    url("assets/hero-desktop-wallpaper.avif");
  background-size: cover;
  background-position: 52% 38%;
  background-repeat: no-repeat;
}

.gaze-demo-widgets {
  position: absolute;
  z-index: 2;
  left: clamp(12px, 3.6vw, 22px);
  top: clamp(12px, 3.5vw, 22px);
  width: clamp(124px, 27vw, 190px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vw, 12px);
}

.gaze-demo-hit-wide {
  width: 100%;
  aspect-ratio: 2.35 / 1;
  border-radius: 14px;
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 14, 22, 0.48);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 14px 36px rgba(5, 7, 12, 0.45);
}

.gaze-demo-w-wide-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.gaze-demo-w-wide-place {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 251, 255, 0.72);
}

.gaze-demo-w-wide-temp {
  font-size: clamp(17px, 4vmin, 21px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(247, 251, 255, 0.96);
}

.gaze-demo-w-wide-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 34px;
  margin-top: 9px;
}

.gaze-demo-w-wide-chart span {
  flex: 1;
  min-width: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(159, 220, 255, 0.65), rgba(10, 132, 255, 0.38));
  opacity: 0.88;
}

.gaze-demo-w-wide-chart span:nth-child(1) {
  height: 42%;
}

.gaze-demo-w-wide-chart span:nth-child(2) {
  height: 62%;
}

.gaze-demo-w-wide-chart span:nth-child(3) {
  height: 48%;
}

.gaze-demo-w-wide-chart span:nth-child(4) {
  height: 88%;
}

.gaze-demo-w-wide-chart span:nth-child(5) {
  height: 54%;
}

.gaze-demo-w-wide-chart span:nth-child(6) {
  height: 72%;
}

.gaze-demo-widget-row {
  display: flex;
  gap: clamp(7px, 1.8vw, 11px);
}

.gaze-demo-hit-cal {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 14px;
  padding: 9px 9px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(12, 14, 22, 0.48);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 14px 36px rgba(5, 7, 12, 0.45);
}

.gaze-demo-cal-month {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 251, 255, 0.46);
}

.gaze-demo-cal-grid {
  flex: 1;
  margin-top: 8px;
  border-radius: 8px;
  background-image: radial-gradient(circle, rgba(247, 251, 255, 0.38) 1.5px, transparent 1.5px);
  background-size: 13px 11px;
  background-position: 2px 2px;
  opacity: 0.78;
}

.gaze-demo-widget-pips {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 22, 0.42);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  box-shadow: 0 14px 36px rgba(5, 7, 12, 0.42);
}

.gaze-demo-pip-ring {
  width: clamp(22px, 5vmin, 28px);
  height: clamp(22px, 5vmin, 28px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(159, 220, 255, 0.82);
  transform: rotate(-24deg);
  opacity: 0.92;
}

.gaze-demo-pip-ring-dim {
  opacity: 0.45;
  transform: rotate(18deg);
}

.gaze-demo-pip-ring-accent {
  border-top-color: rgba(48, 209, 88, 0.85);
  transform: rotate(-8deg);
}

.gaze-demo-dock-area {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(11px, 3vw, 20px);
  display: flex;
  justify-content: center;
}

.gaze-demo-dock {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1.7vw, 12px);
  padding: clamp(9px, 2vw, 12px) clamp(13px, 2.8vw, 22px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 16px 44px rgba(7, 9, 13, 0.42);
}

.gaze-demo-dock-ico {
  position: relative;
  flex-shrink: 0;
  width: clamp(27px, 6.2vmin, 40px);
  height: clamp(27px, 6.2vmin, 40px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(5, 7, 12, 0.35);
}

.gaze-demo-dock-ico-mail {
  background: linear-gradient(155deg, rgba(218, 232, 255, 0.58), rgba(88, 138, 232, 0.42));
}

.gaze-demo-dock-ico-notes {
  background: linear-gradient(155deg, rgba(255, 248, 215, 0.58), rgba(228, 182, 78, 0.42));
}

.gaze-demo-dock-ico-msg {
  background: linear-gradient(155deg, rgba(186, 245, 205, 0.52), rgba(52, 178, 104, 0.42));
}

.gaze-demo-dock-ico-settings {
  background: linear-gradient(155deg, rgba(230, 230, 236, 0.52), rgba(128, 128, 146, 0.38));
}

.gaze-demo-dock-ico-files {
  background: linear-gradient(155deg, rgba(186, 216, 255, 0.52), rgba(66, 118, 210, 0.42));
}

.gaze-demo-dock-ico-browser {
  background: linear-gradient(155deg, rgba(255, 214, 196, 0.52), rgba(224, 118, 82, 0.38));
}

.gaze-demo-dock-ico-trash {
  background: linear-gradient(155deg, rgba(220, 222, 232, 0.42), rgba(110, 114, 132, 0.34));
}

.gaze-demo-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #ff6565 0%, #df1c1c 100%);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.gaze-demo-hit {
  transform-origin: center;
}

/* Ring root is a 0×0 anchor; `.gaze-ring-disk` draws the marker. Horizontal position comes from gaze-demo-ring.js (measured tap centers vs `.gaze-demo-desk`). */
.gaze-demo-ring-root {
  position: absolute;
  width: 0;
  height: 0;
  left: 50%;
  top: 45%;
  z-index: 6;
  pointer-events: none;
}

.gaze-ring-disk {
  position: absolute;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 999px;
  border: 2px solid rgba(159, 220, 255, 0.68);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(10, 132, 255, 0.22) 0%,
    rgba(10, 132, 255, 0.06) 55%,
    transparent 72%
  );
  box-shadow:
    0 0 22px rgba(53, 200, 255, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
}

.gaze-ring-disk::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.96);
  box-shadow: 0 0 12px rgba(53, 200, 255, 0.9);
}

/* Tap / focus highlights from gaze-demo-ring.js: data-gaze-phase focus | tap (same timeline as ring). */

.gaze-demo-hit-mbar,
.gaze-demo-hit-wide,
.gaze-demo-hit-cal,
.gaze-demo-hit-dock-a,
.gaze-demo-hit-dock-b {
  transition:
    transform 0.16s cubic-bezier(0.33, 1, 0.68, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.2s ease;
}

.gaze-demo-hit-mbar[data-gaze-phase="focus"] {
  background: rgba(10, 132, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(53, 200, 255, 0.4),
    0 12px 28px -14px rgba(10, 132, 255, 0.35);
}

.gaze-demo-hit-mbar[data-gaze-phase="tap"] {
  background: rgba(10, 132, 255, 0.18);
  transform: scale(0.92);
  box-shadow:
    0 0 0 1px rgba(53, 200, 255, 0.45),
    0 12px 28px -14px rgba(10, 132, 255, 0.38);
}

.gaze-demo-hit-wide[data-gaze-phase="focus"] {
  border-color: rgba(159, 220, 255, 0.52);
  box-shadow:
    0 14px 36px rgba(5, 7, 12, 0.45),
    0 0 38px -10px rgba(53, 200, 255, 0.48);
  background: rgba(22, 30, 46, 0.62);
}

.gaze-demo-hit-wide[data-gaze-phase="tap"] {
  border-color: rgba(159, 220, 255, 0.48);
  box-shadow:
    0 14px 36px rgba(5, 7, 12, 0.45),
    0 0 32px -10px rgba(53, 200, 255, 0.38);
  background: rgba(18, 24, 38, 0.56);
  transform: scale(0.96);
}

.gaze-demo-hit-cal[data-gaze-phase="focus"] {
  border-color: rgba(159, 220, 255, 0.5);
  box-shadow:
    0 14px 36px rgba(5, 7, 12, 0.45),
    0 0 32px -10px rgba(53, 200, 255, 0.42);
  background: rgba(22, 30, 46, 0.58);
}

.gaze-demo-hit-cal[data-gaze-phase="tap"] {
  border-color: rgba(159, 220, 255, 0.46);
  box-shadow:
    0 14px 36px rgba(5, 7, 12, 0.45),
    0 0 28px -10px rgba(53, 200, 255, 0.35);
  background: rgba(18, 24, 38, 0.54);
  transform: scale(0.94);
}

.gaze-demo-hit-dock-a[data-gaze-phase="focus"],
.gaze-demo-hit-dock-b[data-gaze-phase="focus"] {
  filter: brightness(1.14);
  box-shadow:
    0 4px 14px rgba(5, 7, 12, 0.35),
    0 0 20px rgba(53, 200, 255, 0.42);
}

.gaze-demo-hit-dock-a[data-gaze-phase="tap"],
.gaze-demo-hit-dock-b[data-gaze-phase="tap"] {
  filter: brightness(1.06);
  transform: scale(0.9);
  box-shadow:
    0 4px 14px rgba(5, 7, 12, 0.35),
    0 0 14px rgba(53, 200, 255, 0.28);
}

@media (max-width: 560px) {
  .gaze-demo-desk {
    aspect-ratio: 16 / 11;
  }

  .gaze-demo-menubar {
    padding: 5px 8px;
    min-height: 30px;
    gap: 6px;
  }

  .gaze-demo-apple {
    width: 11px;
    height: 11px;
  }

  .gaze-demo-hit-mbar {
    height: 9px;
    border-radius: 5px;
  }

  .gaze-demo-menubar-trail {
    margin: 0 6px;
    gap: 4px;
    min-height: 6px;
  }

  .gaze-demo-menubar-trail span {
    height: 5px;
  }

  .gaze-demo-menubar-trail span:nth-child(4),
  .gaze-demo-menubar-trail span:nth-child(5) {
    display: none;
  }

  .gaze-demo-menubar-status span:nth-child(4) {
    width: 16px;
    height: 6px;
  }

  .gaze-demo-widgets {
    width: min(46%, 168px);
    left: clamp(5px, 2vw, 12px);
    top: clamp(5px, 2vw, 12px);
    gap: clamp(4px, 1.8vw, 8px);
  }

  .gaze-demo-hit-wide {
    padding: 6px 7px 7px;
    border-radius: 10px;
  }

  .gaze-demo-w-wide-place {
    font-size: 8px;
  }

  .gaze-demo-w-wide-temp {
    font-size: clamp(13px, 3.8vmin, 17px);
  }

  .gaze-demo-w-wide-chart {
    height: clamp(18px, 5vmin, 26px);
    margin-top: 5px;
    gap: 3px;
  }

  .gaze-demo-hit-cal {
    padding: 5px 5px 6px;
    border-radius: 10px;
  }

  .gaze-demo-cal-month {
    font-size: 8px;
  }

  .gaze-demo-cal-grid {
    margin-top: 5px;
    background-size: 10px 9px;
  }

  .gaze-demo-widget-pips {
    gap: 5px;
    padding: 6px 5px;
    border-radius: 10px;
  }

  .gaze-demo-pip-ring {
    width: clamp(14px, 4.2vmin, 22px);
    height: clamp(14px, 4.2vmin, 22px);
    border-width: 1.5px;
  }

  .gaze-demo-dock-area {
    bottom: clamp(5px, 2vw, 14px);
    padding-inline: 4px;
  }

  .gaze-demo-dock {
    max-width: 100%;
    gap: clamp(3px, 1.2vmin, 8px);
    padding: clamp(5px, 1.6vmin, 9px) clamp(7px, 2vmin, 14px);
    border-radius: 18px;
    flex-wrap: nowrap;
  }

  .gaze-demo-dock-ico {
    width: clamp(17px, 5vmin, 30px);
    height: clamp(17px, 5vmin, 30px);
  }

  .gaze-demo-badge {
    top: -4px;
    right: -4px;
    min-width: 13px;
    height: 13px;
    font-size: 8px;
    line-height: 13px;
  }

  .gaze-demo-ring-root {
    --gaze-ring-disk-size: clamp(28px, 8vmin, 38px);
  }

  .gaze-ring-disk {
    width: var(--gaze-ring-disk-size);
    height: var(--gaze-ring-disk-size);
    margin-left: calc(-0.5 * var(--gaze-ring-disk-size));
    margin-top: calc(-0.5 * var(--gaze-ring-disk-size));
  }

  .gaze-ring-disk::after {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
  }
}

@media (max-width: 380px) {
  .gaze-demo-dock-ico:nth-child(n + 6) {
    display: none;
  }

  .gaze-demo-dock {
    gap: 4px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gaze-ring-disk {
    opacity: 0.95;
  }

  .gaze-demo-hit-mbar,
  .gaze-demo-hit-wide,
  .gaze-demo-hit-cal,
  .gaze-demo-hit-dock-a,
  .gaze-demo-hit-dock-b {
    transition: none;
  }

  .gaze-demo-hit-dock-a {
    filter: brightness(1.12);
    box-shadow:
      0 4px 14px rgba(5, 7, 12, 0.35),
      0 0 18px rgba(53, 200, 255, 0.35);
  }
}
/* ---------- Section scaffolding ---------- */

.section {
  padding: clamp(72px, 10vw, 120px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  text-shadow: var(--shadow-on-mesh-soft);
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-lilac);
}

/* Kickers that sit on the open mesh (section intros) pick up a soft edge. */
.section-head .kicker {
  text-shadow: var(--shadow-on-mesh-soft);
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.lede {
  color: var(--text-muted);
  font-size: clamp(16px, 1.8vw, 18px);
  margin: 0;
}

.section-head .lede {
  color: var(--text-on-mesh);
  text-shadow: var(--shadow-on-mesh);
}

.section-head .lede a {
  color: var(--p-sky);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-head .lede a:hover {
  color: #fff;
}

.access-head .lede {
  color: var(--text-muted);
  text-shadow: none;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
  position: relative;
  padding: 28px 26px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.step:hover {
  border-color: rgba(53, 200, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -28px var(--accent-glow);
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--p-sky);
  margin-bottom: 18px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

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

/* ---------- Backends ---------- */

.backends {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backends-single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}

/* Companion: card + device screenshot */
.companion-layout {
  display: grid;
  gap: clamp(28px, 5vw, 44px);
  grid-template-columns: minmax(0, 1fr) minmax(200px, min(30vw, 300px));
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
}

.companion-backend {
  max-width: none;
}

.companion-device {
  margin: 0;
  justify-self: center;
}

.companion-device img {
  display: block;
  width: 100%;
  max-width: min(290px, 78vw);
  height: auto;
  margin-inline: auto;
  border-radius: clamp(28px, 7vmin, 42px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 28px 56px -22px rgba(0, 0, 0, 0.65),
    0 12px 36px -18px rgba(10, 132, 255, 0.25);
}

@media (max-width: 900px) {
  .companion-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .companion-device {
    order: -1;
  }

  .companion-device img {
    max-width: min(260px, 72vw);
  }
}

.backend {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

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

.backend-primary {
  border-color: rgba(53, 200, 255, 0.34);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(10, 132, 255, 0.20) 0%, transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(53, 200, 255, 0.12) 0%, transparent 55%),
    var(--bg-card);
  box-shadow: 0 30px 80px -40px var(--accent-glow);
}

.backend-head h3 {
  margin: 10px 0 4px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.backend-tag {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.badge-primary {
  color: #f7fbff;
  border-color: rgba(53, 200, 255, 0.55);
  background: linear-gradient(135deg, #075fd4, #087cbf);
}

.backend-stats {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.backend-stats strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.backend-stats span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.backend-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.backend-copy code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(10, 132, 255, 0.14);
  color: var(--p-sky);
}

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

@media (max-width: 560px) {
  .backend-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }
}

/* ---------- Privacy ---------- */

.privacy-card {
  position: relative;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(48, 209, 88, 0.10) 0%, transparent 50%),
    radial-gradient(80% 120% at 100% 100%, rgba(53, 200, 255, 0.12) 0%, transparent 50%),
    var(--bg-card);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
}

.privacy-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.privacy-head h2 { margin: 0; }

.privacy-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  max-width: 880px;
}

.privacy-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
}

.privacy-list .check {
  flex-shrink: 0;
  margin-top: 7px;
  font-size: 10px;
  color: var(--p-mint);
  text-shadow: 0 0 12px rgba(167, 243, 208, 0.6);
}

.privacy-list strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 15.5px;
}

.privacy-list div {
  color: var(--text-muted);
  font-size: 14.5px;
}

.privacy-list a {
  color: var(--p-sky);
  font-weight: 500;
  text-underline-offset: 3px;
}

.privacy-list a:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .privacy-list { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Pricing / license ---------- */

.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-card {
  position: relative;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

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

.pricing-card-featured {
  border-color: rgba(53, 200, 255, 0.34);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(10, 132, 255, 0.20) 0%, transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(53, 200, 255, 0.12) 0%, transparent 55%),
    var(--bg-card);
  box-shadow: 0 30px 80px -40px var(--accent-glow);
}

.pricing-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-head .badge {
  align-self: flex-start;
}

.pricing-name {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pricing-tag {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.pricing-price {
  margin: 8px 0 0;
  padding: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.pricing-currency {
  font-size: clamp(22px, 3vw, 28px);
  vertical-align: top;
  line-height: 1.35;
}

.pricing-amount {
  font-size: clamp(40px, 6vw, 52px);
  line-height: 1;
}

.pricing-period {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing-features {
  margin: 0;
  padding: 18px 0 4px;
  list-style: none;
  border-top: 1px solid var(--line);
  flex: 1 1 auto;
}

.pricing-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-features li:last-child {
  margin-bottom: 0;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--p-mint);
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.45);
}

.pricing-cta {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.pricing-card .btn-primary:hover {
  color: #f7fbff;
}

.pricing-card .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
}

.pricing-foot {
  margin: 40px auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: 14px;
  color: var(--text-on-mesh-soft);
  text-shadow: var(--shadow-on-mesh-soft);
}

.pricing-foot a {
  color: var(--p-sky);
}

.pricing-foot a:hover {
  color: var(--p-peach);
}

.pricing-foot code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9em;
  color: var(--text-muted);
  word-break: break-all;
}

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

/* ---------- DMG download (hosted by deploy pipeline) ---------- */

.section-download {
  padding-bottom: clamp(72px, 10vw, 128px);
}

.section-download .section-head {
  max-width: 720px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.download-notes {
  margin: 24px auto 0;
  max-width: 48ch;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.download-notes code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.94em;
  color: var(--text-muted);
}

/* ---------- Early access ---------- */

.section-access { padding-bottom: clamp(96px, 12vw, 160px); }

.access-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(196, 181, 253, 0.18) 0%, transparent 55%),
    radial-gradient(120% 80% at 50% 100%, rgba(254, 215, 170, 0.10) 0%, transparent 55%),
    var(--bg-card);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px var(--accent-glow);
}

.access-head { margin-bottom: 32px; }
.access-head h2 { margin-bottom: 14px; }

.access-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  max-width: 480px;
  margin: 0 auto;
}

.access-form input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 200ms ease;
}

.access-form input::placeholder { color: var(--text-dim); }

.access-form input:focus {
  border-color: rgba(196, 181, 253, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.18);
}

.access-form input.is-invalid {
  border-color: rgba(251, 207, 232, 0.7);
  box-shadow: 0 0 0 4px rgba(251, 207, 232, 0.18);
}

.access-form .btn { flex-shrink: 0; }

.access-foot {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

.access-foot.is-success { color: var(--p-mint); }
.access-foot.is-error   { color: var(--p-rose); }

@media (max-width: 560px) {
  .access-form { flex-direction: column; }
  .access-form input,
  .access-form .btn { width: 100%; }
}

/* ---------- Footer ---------- */

/* ---------- Documentation page (how-it-works.html) ---------- */

.doc-page {
  padding: clamp(48px, 8vw, 88px) var(--pad) clamp(72px, 10vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.doc-inner {
  max-width: 720px;
  margin: 0 auto;
}

.doc-head {
  margin-bottom: clamp(36px, 5vw, 52px);
}

.doc-head h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.doc-prose {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.doc-prose h2 {
  margin: clamp(28px, 4vw, 36px) 0 12px;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-on-mesh);
  text-shadow: var(--shadow-on-mesh-soft);
}

.doc-prose h2:first-child {
  margin-top: 0;
}

.doc-prose p {
  margin: 0 0 14px;
}

.doc-prose ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.doc-prose li {
  margin-bottom: 8px;
}

.doc-prose strong {
  color: rgba(247, 251, 255, 0.92);
  font-weight: 600;
}

.doc-prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 0.15em 0.42em;
  border-radius: 4px;
  background: rgba(10, 132, 255, 0.12);
  color: var(--p-sky);
}

.doc-prose a {
  color: var(--p-sky);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-prose a:hover {
  color: #fff;
}

.doc-back {
  margin-top: clamp(36px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--pad) 56px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-brand span {
  text-shadow: var(--shadow-on-mesh-nav);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 0 1px var(--line);
}

.footer-copy {
  margin: 0;
  color: var(--text-on-mesh-soft);
  text-shadow: var(--shadow-on-mesh-nav);
  font-size: 13.5px;
  max-width: 60ch;
}

.footer-links {
  display: inline-flex;
  gap: 18px;
  font-size: 14px;
  color: var(--text-on-mesh-soft);
}

.footer-links a {
  color: inherit;
  text-shadow: var(--shadow-on-mesh-nav);
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { justify-content: center; }
}

/* ---------- Selection / focus ---------- */

::selection {
  background: var(--p-lilac);
  color: #1a1530;
}

a:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible,
input:focus-visible {
  outline: 2px solid var(--p-lilac);
  outline-offset: 3px;
  border-radius: 999px;
}

/* ===========================================================
 * Custom cursor
 *
 * Frosted-glass disc: backdrop blur only while free-floating. When
 * morphed onto `[data-magnet]` targets, blur is off so the control
 * underneath stays sharp; the overlay is tint only (no stroke).
 * Position, size, and radius come from spotlight.js.
 *
 * Hidden by default; spotlight.js adds `.spotlight-on` to <html>
 * only on hover-capable, fine-pointer, motion-friendly devices.
 * =========================================================== */

.cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  pointer-events: none;
  /* Below .nav (100); above page sections (≤1) */
  z-index: 50;
  backface-visibility: hidden;
  isolation: isolate;

  /* Glass: tint + frosted blur — no border or inset lines */
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.14) 38%,
    rgba(196, 181, 253, 0.18) 100%
  );
  backdrop-filter: blur(16px) saturate(185%);
  -webkit-backdrop-filter: blur(16px) saturate(185%);
  border: none;
  box-shadow: none;

  opacity: 0;
  transition:
    opacity 120ms ease,
    background 160ms ease;
  will-change: transform, width, height, border-radius;
}

html.spotlight-on .cursor-blob {
  opacity: 0.96;
}

/* Hugging a magnet: no backdrop blur — otherwise the frosted layer
 * would fuzz the button/card/input under the cursor. Gloss is gradient
 * only; no stroke so the target stays sharp and unframed. */
html.spotlight-on .cursor-blob.is-morphed {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(186, 230, 253, 0.12) 100%
  );
  border: none;
  box-shadow: none;
}

/* Mousedown / tap feedback: quick dip + pop so the hit reads even without sound */
html.spotlight-on .cursor-blob.is-click-flash {
  transition: none;
  animation: cursor-blob-click 200ms ease-out;
}

@keyframes cursor-blob-click {
  0% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(0.72);
  }
  70% {
    filter: brightness(1.18);
  }
  100% {
    filter: brightness(1);
  }
}

/* Interactive elements tagged [data-magnet]: brief luminance pulse on press */
[data-magnet].magnet-flash {
  animation: magnet-click-flicker 220ms ease-out;
}

@keyframes magnet-click-flicker {
  0% {
    filter: brightness(1);
  }
  30% {
    filter: brightness(1.5);
  }
  55% {
    filter: brightness(0.88);
  }
  100% {
    filter: brightness(1);
  }
}

/* Hide the native cursor wherever the disc is active. We only do
 * this once the script has positively opted the page in, so users
 * on touch / coarse-pointer / reduced-motion devices keep their
 * normal cursor. The selector covers every descendant so the I-beam
 * over inputs and the pointer hand over links also vanish — the
 * morphing disc is the one cursor on the page. */
html.spotlight-on,
html.spotlight-on * {
  cursor: none !important;
}

/* Primary nav — standard cursor; hide glass follower so links read like normal web chrome. */
html.spotlight-on.spotlight-nav-hover .cursor-blob {
  opacity: 0 !important;
  visibility: hidden;
}
html.spotlight-on.spotlight-nav-hover header.nav,
html.spotlight-on.spotlight-nav-hover header.nav * {
  cursor: pointer !important;
}

/* Touch devices, coarse pointers, and reduced-motion users opt out. */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-blob { display: none !important; }
}
