/* ------------------------------------------------------------------
   Tomia by Helix: the landing page at helixtshub.co.uk.
   Helix Brand Guidelines v1.0: Inter, Ink #101C28 fields, Paper text,
   Deep teal #006B73 behind white action labels, logo colours for the
   logo and product accents only.

   The page floats over a fixed WebGL particle field (fx/helix-field.js).
   Panels are frosted glass so the field glows through them. Without
   WebGL, a static gradient and the Helix flow motif stand in.
   ------------------------------------------------------------------ */

@font-face {
  font-family: Inter;
  src: url("/assets/hub/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --ink: #101c28;
  --ink-2: #0a131c;
  --deep: #06384a;
  --paper: #f5f5f0;
  --text: #f5f5f0;
  --text-2: #c9d3d8;
  --muted: #9fb0b8;
  --line: rgba(245, 245, 240, 0.1);
  --line-2: rgba(245, 245, 240, 0.2);
  --action: #006b73;
  --action-hi: #00838c;

  --teal: #0096a1;
  --orange: #e78222;
  --magenta: #b03a8d;
  --lime: #a1c633;
  --yellow: #ffcc03;

  --flow: var(--teal);
  --pulse: var(--orange);
  --docs: var(--magenta);
  --bill: var(--lime);

  --spectrum: linear-gradient(90deg, var(--teal), var(--magenta) 30%, var(--orange) 55%, var(--yellow) 75%, var(--lime) 90%, var(--teal));

  --glass: rgba(16, 28, 40, 0.52);
  --glass-strong: rgba(13, 23, 33, 0.78);
  --blur: blur(18px) saturate(150%);

  --font: Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 28px;
  --radius-sm: 16px;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1280px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

::selection {
  background: var(--teal);
  color: var(--paper);
}

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

.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

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

.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip:focus {
  transform: none;
}

/* ---------- The 3D field and its fallback ---------- */

.field,
.field-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.field {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.is-ready .field {
  opacity: 1;
}

.field-fallback {
  display: none;
  background:
    radial-gradient(60% 60% at 75% 35%, rgba(6, 56, 74, 0.9), transparent 70%),
    radial-gradient(40% 40% at 15% 85%, rgba(0, 150, 161, 0.18), transparent 70%),
    var(--ink);
}

.field-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/hub/brand/helix-flow-dark.svg") 70% 30% / cover no-repeat;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.no-webgl .field {
  display: none;
}

.no-webgl .field-fallback,
.no-js .field-fallback {
  display: block;
}

/* ---------- Glass ---------- */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
}

.fx-lite .glass,
.fx-lite .nav.is-scrolled {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--glass-strong);
}

/* ---------- Cursor follower (fine pointers only) ---------- */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.cursor.is-on {
  opacity: 1;
}

.cursor-ring {
  position: absolute;
  left: -18px;
  top: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 240, 0.55);
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
}

.cursor-label {
  position: absolute;
  left: 22px;
  top: 14px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}

.cursor.is-link .cursor-ring {
  transform: scale(1.7);
  background: rgba(245, 245, 240, 0.08);
  border-color: rgba(245, 245, 240, 0.25);
}

.cursor.has-label .cursor-label {
  opacity: 1;
  transform: none;
}

.cursor.has-label .cursor-ring {
  transform: scale(0.45);
  background: var(--paper);
}

.is-dragging .cursor-ring {
  transform: scale(0.3);
}

.is-dragging,
.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}

/* ---------- Buttons ---------- */

.btn {
  --mag-x: 0px;
  --mag-y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 16px/1 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: var(--action);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 150, 161, 0.5) inset, 0 14px 40px -16px rgba(0, 150, 161, 0.9);
}

/* A slow band of light that sweeps across on hover. */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}

.btn-primary:hover {
  background: var(--action-hi);
  box-shadow: 0 0 0 1px rgba(0, 150, 161, 0.8) inset, 0 18px 50px -14px rgba(0, 150, 161, 1);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(245, 245, 240, 0.04);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(245, 245, 240, 0.5);
  background: rgba(245, 245, 240, 0.1);
}

.btn-sm {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 14.5px;
}

.btn-sm svg {
  width: 15px;
  height: 15px;
}

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(16, 28, 40, 0.6);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-color: var(--line);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--spectrum);
  transform-origin: left;
  transform: scaleX(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand svg {
  height: 34px;
  width: auto;
}

.brand-sub {
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--spectrum);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links .btn-group {
  display: flex;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(245, 245, 240, 0.04);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  touch-action: pan-y;
  cursor: grab;
}

.hero a,
.hero button {
  cursor: pointer;
}

/* A soft scrim keeps the headline readable over the brightest strands. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 28, 40, 0.7) 0%, rgba(16, 28, 40, 0.35) 42%, transparent 70%);
}

.hero-inner {
  max-width: 780px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
}

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

.hero h1 {
  font-size: clamp(54px, 8.6vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 30px;
  perspective: 900px;
}

.hero h1 .w {
  display: inline-block;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  transform-style: preserve-3d;
}

.hero h1 .w > span,
.hero h1 .ch {
  display: inline-block;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
}

.hero h1 .accent {
  background: var(--spectrum);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}

@keyframes shimmer {
  to { background-position: 300% 0; }
}

.hero p.lede {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.launchers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 28, 40, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.25s, color 0.25s, transform 0.4s var(--spring), background 0.25s, box-shadow 0.4s;
}

.launcher i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent), 0 0 14px var(--c);
}

.launcher:hover {
  color: var(--text);
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, rgba(16, 28, 40, 0.5));
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px var(--c);
}

.hero-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  display: flex;
  gap: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero-hint span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-hint svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.scroll-hint span {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--teal), transparent);
  animation: hint 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes hint {
  0% { transform: scaleY(0); opacity: 0; }
  30% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(30px); opacity: 0; }
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  padding: 34px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(10, 19, 28, 0.55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-row {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-row + .marquee-row {
  margin-top: 10px;
}

.marquee-row span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--text);
}

.marquee-row.outline span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 240, 0.4);
}

.marquee-row span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--dot, var(--teal));
  box-shadow: 0 0 18px var(--dot, var(--teal));
}

.marquee-row span:nth-child(5n + 2) { --dot: var(--orange); }
.marquee-row span:nth-child(5n + 3) { --dot: var(--magenta); }
.marquee-row span:nth-child(5n + 4) { --dot: var(--lime); }
.marquee-row span:nth-child(5n + 5) { --dot: var(--yellow); }

.marquee-css .marquee-row {
  animation: marquee 40s linear infinite;
}

.marquee-css .marquee-row.outline {
  animation-direction: reverse;
}

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

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(90px, 11vw, 160px) 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

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

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: clamp(40px, 5.6vw, 78px);
  margin-bottom: 22px;
}

.section-head p {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
  max-width: 640px;
}

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

/* Split headings: each line is a mask the words rise through. */
[data-split] .line-mask {
  overflow: clip;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

/* ---------- Products ---------- */

.products {
  padding-top: clamp(90px, 10vw, 140px);
}

.stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.product {
  --c: var(--teal);
  --dim: 0;
  position: relative;
  border-radius: var(--radius);
  transform-origin: 50% 0%;
  isolation: isolate;
}

/* An animated light that runs around the card's edge. */
.product::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0deg, var(--c) 40deg, transparent 110deg, transparent 220deg, color-mix(in srgb, var(--c) 60%, #fff) 260deg, transparent 320deg);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.55;
  animation: orbit 8s linear infinite;
  pointer-events: none;
}

@keyframes orbit {
  to { --angle: 360deg; }
}

/* Dims a card as the next one slides over it. */
.product::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: var(--ink-2);
  opacity: var(--dim);
  pointer-events: none;
}

.product-panel {
  position: relative;
  border-radius: inherit;
  overflow: hidden;
}

.product-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 88% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%),
    radial-gradient(40% 45% at 0% 100%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%);
}

.product-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 245, 240, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.product:hover .product-panel::after {
  opacity: 1;
}

.product-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 60px);
}

.product:nth-child(even) .product-inner {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.product:nth-child(even) .product-copy {
  order: 2;
}

.product-copy .num {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 24px;
}

.product-copy .num b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
  letter-spacing: 0;
  color: #fff;
  background: color-mix(in srgb, var(--c) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: 0 0 24px -6px var(--c);
}

.product-copy h3 {
  font-size: clamp(30px, 3.5vw, 50px);
  margin-bottom: 14px;
}

.product-copy .tag {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.35;
}

.product-copy .desc {
  color: var(--text-2);
  margin-bottom: 26px;
}

.features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.45;
}

.features li::before {
  content: "";
  flex: none;
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

.product-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.product-cta .url {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* The mockup lives in real 3D: the frame, floating chips above it and a glare. */
.shot {
  position: relative;
  perspective: 1500px;
  perspective-origin: 50% 40%;
}

.shot-enter,
.shot-tilt {
  position: relative;
  transform-style: preserve-3d;
}

.shot-tilt {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}

.frame {
  position: relative;
  border-radius: 16px;
  background: #0b141d;
  border: 1px solid rgba(245, 245, 240, 0.14);
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 140px -40px color-mix(in srgb, var(--c) 70%, transparent);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: #142230;
  border-bottom: 1px solid rgba(245, 245, 240, 0.08);
}

.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2c3a46;
}

.frame-bar i:nth-child(1) { background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; }
.frame-bar i:nth-child(3) { background: #28c840; }

.frame-bar .url {
  margin-left: 12px;
  flex: 1;
  max-width: 320px;
  height: 22px;
  border-radius: 6px;
  background: #0b141d;
  border: 1px solid rgba(245, 245, 240, 0.08);
  font: 11.5px/22px var(--mono);
  color: #8fa0a9;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-bar .url b {
  color: #d3dbdf;
  font-weight: 500;
}

.frame svg.mock {
  width: 100%;
  height: auto;
  display: block;
}

.glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(70% 70% at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.32), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.5s;
}

.shot:hover .glare {
  opacity: 1;
}

.chip {
  position: absolute;
  z-index: 3;
  transform: translateZ(var(--z, 60px));
  pointer-events: none;
}

.chip-a { top: 9%; right: -5%; }
.chip-b { bottom: 9%; left: -6%; --z: 100px; }

.chip-in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: rgba(16, 28, 40, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(245, 245, 240, 0.16);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.8), 0 0 30px -12px var(--c);
  animation: bob 7s ease-in-out infinite;
  white-space: nowrap;
}

.chip-b .chip-in {
  animation-delay: -3.5s;
}

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

.chip-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--k, var(--c)) 22%, transparent);
  color: var(--k, var(--c));
}

.chip-ico svg {
  width: 18px;
  height: 18px;
}

.chip b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.25;
}

.chip small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.chip .live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: live 2s infinite;
}

@keyframes live {
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.avatars {
  display: flex;
}

.avatars i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #142230;
  display: grid;
  place-items: center;
  font: 700 10px/1 var(--font);
  font-style: normal;
  color: #142230;
}

.avatars i + i {
  margin-left: -8px;
}

/* Mockup typography */
.mock text {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  fill: #323338;
}

.mock .t-bold { font-weight: 700; }
.mock .t-sm { font-size: 9.5px; }
.mock .t-xs { font-size: 8.5px; }
.mock .t-mute { fill: #7c7f8a; }
.mock .t-white { fill: #fff; }
.mock .t-mono { font-family: ui-monospace, Menlo, monospace; }

/* Mockup motion (started by .is-live on the product card) */
.mock .grow {
  transform: scaleX(0);
  transform-origin: left center;
  transform-box: fill-box;
  transition: transform 1.1s var(--ease);
}

.product.is-live .mock .grow {
  transform: scaleX(1);
}

.mock .rise {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.product.is-live .mock .rise {
  opacity: 1;
  transform: translateY(0);
}

.mock .draw {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 2.2s var(--ease) 0.5s;
}

.product.is-live .mock .draw {
  stroke-dashoffset: 0;
}

.mock .blink {
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.mock .pulse-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseDot 2.4s var(--ease) infinite;
}

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

.mock .d1 { transition-delay: 0.1s; }
.mock .d2 { transition-delay: 0.25s; }
.mock .d3 { transition-delay: 0.4s; }
.mock .d4 { transition-delay: 0.55s; }
.mock .d5 { transition-delay: 0.7s; }
.mock .d6 { transition-delay: 0.85s; }
.mock .d7 { transition-delay: 1s; }
.mock .d8 { transition-delay: 1.15s; }

/* ---------- How it fits together ---------- */

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.journey-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 75px;
  height: 4px;
  z-index: 0;
  pointer-events: none;
}

.journey-line .track {
  stroke: var(--line-2);
}

.journey-line .beam {
  stroke: url(#beamGrad);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.comet {
  position: absolute;
  top: 77px;
  left: 12.5%;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.8), 0 0 40px 12px var(--comet, var(--teal));
  opacity: 0;
  pointer-events: none;
}

.step {
  --c: var(--teal);
  position: relative;
  z-index: 2;
  display: block;
  padding: 28px 24px 30px;
  border-radius: 22px;
  text-align: center;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.3s, background 0.3s;
}

.step:hover {
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
}

.step .node {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  color: var(--c);
  transform: translateZ(40px);
  transition: background 0.6s var(--ease), color 0.4s, box-shadow 0.6s var(--ease), transform 0.6s var(--spring);
}

.step.is-lit .node {
  background: color-mix(in srgb, var(--c) 30%, var(--ink-2));
  color: #fff;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 14%, transparent), 0 0 60px -6px var(--c);
}

.step:hover .node {
  transform: translateZ(70px) rotateY(360deg);
  transition: transform 1.1s var(--ease), background 0.6s, box-shadow 0.6s;
}

.step .node svg {
  width: 38px;
  height: 38px;
}

.step h4 {
  font-size: 22px;
  margin-bottom: 8px;
  transform: translateZ(24px);
}

.step .verb {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 10px;
  transform: translateZ(24px);
}

.step p {
  font-size: 14.5px;
  color: var(--text-2);
  transform: translateZ(12px);
}

/* ---------- Principles grid ---------- */

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

.tile {
  --c: var(--teal);
  position: relative;
  padding: 32px 30px;
  border-radius: 22px;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.3s;
}

.tile:nth-child(6n + 2) { --c: var(--orange); }
.tile:nth-child(6n + 3) { --c: var(--magenta); }
.tile:nth-child(6n + 4) { --c: var(--lime); }
.tile:nth-child(6n + 5) { --c: var(--yellow); }
.tile:nth-child(6n + 6) { --c: var(--teal); }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.tile:hover {
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
}

.tile:hover::after {
  opacity: 1;
}

.tile .ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  color: var(--c);
  margin-bottom: 22px;
  transition: transform 0.6s var(--spring), box-shadow 0.4s;
}

.tile:hover .ico {
  transform: translateZ(40px) scale(1.06);
  box-shadow: 0 0 30px -6px var(--c);
}

.tile .ico svg {
  width: 22px;
  height: 22px;
}

.tile h4 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tile p {
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- Stats band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #fff 30%, rgba(245, 245, 240, 0.45));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat b small {
  font-size: 0.5em;
  margin-left: 2px;
}

.stat > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- CTA ---------- */

.cta {
  padding: clamp(90px, 11vw, 160px) 0;
}

.cta-card {
  position: relative;
  border-radius: 36px;
  padding: clamp(56px, 8vw, 120px) clamp(28px, 6vw, 96px);
  text-align: center;
  overflow: hidden;
  background: rgba(16, 28, 40, 0.36);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(0, 150, 161, 0.35), transparent 70%),
    radial-gradient(30% 40% at 0% 0%, rgba(176, 58, 141, 0.18), transparent 70%),
    radial-gradient(30% 40% at 100% 0%, rgba(231, 130, 34, 0.16), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(40px, 6.4vw, 92px);
  max-width: 980px;
  margin: 0 auto 22px;
}

.cta-card p {
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: clamp(17px, 1.4vw, 19px);
}

.cta-card .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cta-mark {
  width: auto;
  height: 84px;
  margin: 0 auto 30px;
}

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

.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 56px 0 84px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(10, 19, 28, 0.82);
}

.footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer .brand svg {
  height: 40px;
  margin-bottom: 18px;
}

.footer p {
  max-width: 380px;
}

.footer h5 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer a:hover {
  color: var(--paper);
}

.footer .legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* ---------- Motion toggle ---------- */

.motion-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(16, 28, 40, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-2);
  font: 500 13px/1 var(--font);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.motion-toggle:hover {
  color: var(--paper);
  border-color: rgba(245, 245, 240, 0.45);
}

.motion-toggle svg {
  width: 14px;
  height: 14px;
}

.motion-toggle .play,
.motion-paused .motion-toggle .pause {
  display: none;
}

.motion-paused .motion-toggle .play {
  display: block;
}

.no-webgl .motion-toggle {
  display: none;
}

.motion-paused .chip-in,
.motion-paused .product::before,
.motion-paused .hero h1 .accent,
.motion-paused .scroll-hint span,
.motion-paused .marquee-row {
  animation-play-state: paused !important;
}

/* ---------- Reveals (only hidden once JavaScript is running) ---------- */

.js [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
}

.js [data-reveal].in {
  opacity: 1;
  translate: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .product-inner,
  .product:nth-child(even) .product-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .product:nth-child(even) .product-copy {
    order: 0;
  }

  .chip-a { right: -2%; }
  .chip-b { left: -2%; }

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

  .journey-line,
  .comet {
    display: none;
  }

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

  .hero::before {
    background: linear-gradient(90deg, rgba(16, 28, 40, 0.75), rgba(16, 28, 40, 0.3));
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  :root {
    --nav-h: 64px;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 19, 28, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    border: 0;
    padding-top: 20px;
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .brand svg {
    height: 30px;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    padding-bottom: 110px;
    cursor: auto;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(16, 28, 40, 0.2), rgba(16, 28, 40, 0.65) 45%, rgba(16, 28, 40, 0.75));
  }

  .hero-hint {
    display: none;
  }

  .chip {
    display: none;
  }

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

  .footer .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .journey,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .motion-toggle .label {
    display: none;
  }

  .motion-toggle {
    padding: 0;
    width: 40px;
    justify-content: center;
  }
}

@media (hover: none) {
  .cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint span,
  .mock .pulse-dot,
  .mock .blink,
  .chip-in,
  .chip .live,
  .product::before,
  .hero h1 .accent,
  .marquee-row {
    animation: none !important;
  }

  .js [data-reveal] {
    transition: none !important;
    opacity: 1 !important;
    translate: none !important;
  }

  .mock .grow,
  .mock .rise,
  .mock .draw {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }

  .field {
    transition: none;
  }

  .cursor,
  .hero-hint {
    display: none;
  }

  .hero {
    cursor: auto;
  }
}
