/* ==========================================================================
   DropWave — design system
   ========================================================================== */

:root {
  /* Palette — dark (default) */
  --abyss: #05070E;
  --surface: #0C1220;
  --surface-hi: #141C2E;
  --line: rgba(146, 162, 200, 0.16);
  --line-soft: rgba(146, 162, 200, 0.09);
  --signal: #4DE1C1;
  --signal-2: #61C8FF;
  --signal-dim: rgba(77, 225, 193, 0.12);
  --beacon: #FFB86B;
  --beacon-dim: rgba(255, 184, 107, 0.12);
  --text: #F0F5FF;
  --text-dim: #97A2BE;
  --text-faint: #626D8A;

  --ground: var(--abyss);
  --card: var(--surface);
  --accent: var(--signal);
  --accent-ink: #04211B;

  /* Glass */
  --glass: rgba(20, 28, 46, 0.62);
  --glass-strong: rgba(12, 18, 32, 0.86);
  --edge-hi: rgba(255, 255, 255, 0.14);
  --edge-lo: rgba(255, 255, 255, 0.02);

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 40px 90px -28px rgba(0, 0, 0, 0.8), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --glow-accent: 0 14px 40px -14px color-mix(in srgb, var(--accent) 70%, transparent);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Typographic gradient for display text */
  --head-grad: linear-gradient(174deg,
    var(--text) 32%,
    color-mix(in srgb, var(--text) 88%, transparent) 76%,
    color-mix(in srgb, var(--text) 72%, transparent) 100%);
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #F6F8FB;
    --card: #FFFFFF;
    --surface-hi: #EDF2F7;
    --line: rgba(20, 38, 56, 0.13);
    --line-soft: rgba(20, 38, 56, 0.07);
    --signal: #0B7C68;
    --signal-2: #1F6FB8;
    --signal-dim: rgba(11, 124, 104, 0.10);
    --beacon: #A85B10;
    --beacon-dim: rgba(168, 91, 16, 0.10);
    --text: #101A24;
    --text-dim: #4B5C6C;
    --text-faint: #7A8898;
    --accent: var(--signal);
    --accent-ink: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-strong: rgba(255, 255, 255, 0.92);
    --edge-hi: rgba(255, 255, 255, 0.9);
    --edge-lo: rgba(20, 38, 56, 0.04);
    --shadow-sm: 0 2px 8px rgba(23, 43, 58, 0.07);
    --shadow: 0 18px 50px rgba(23, 43, 58, 0.12);
    --shadow-lg: 0 34px 70px -26px rgba(23, 43, 58, 0.3), 0 6px 18px -10px rgba(23, 43, 58, 0.16);
  }
}

:root[data-theme="dark"] {
  --ground: #05070E;
  --card: #0C1220;
  --surface-hi: #141C2E;
  --line: rgba(146, 162, 200, 0.16);
  --line-soft: rgba(146, 162, 200, 0.09);
  --signal: #4DE1C1;
  --signal-2: #61C8FF;
  --signal-dim: rgba(77, 225, 193, 0.12);
  --beacon: #FFB86B;
  --beacon-dim: rgba(255, 184, 107, 0.12);
  --text: #F0F5FF;
  --text-dim: #97A2BE;
  --text-faint: #626D8A;
  --accent: #4DE1C1;
  --accent-ink: #04211B;
  --glass: rgba(20, 28, 46, 0.62);
  --glass-strong: rgba(12, 18, 32, 0.86);
  --edge-hi: rgba(255, 255, 255, 0.14);
  --edge-lo: rgba(255, 255, 255, 0.02);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 40px 90px -28px rgba(0, 0, 0, 0.8), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] {
  --ground: #F6F8FB;
  --card: #FFFFFF;
  --surface-hi: #EDF2F7;
  --line: rgba(20, 38, 56, 0.13);
  --line-soft: rgba(20, 38, 56, 0.07);
  --signal: #0B7C68;
  --signal-2: #1F6FB8;
  --signal-dim: rgba(11, 124, 104, 0.10);
  --beacon: #A85B10;
  --beacon-dim: rgba(168, 91, 16, 0.10);
  --text: #101A24;
  --text-dim: #4B5C6C;
  --text-faint: #7A8898;
  --accent: #0B7C68;
  --accent-ink: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --edge-hi: rgba(255, 255, 255, 0.9);
  --edge-lo: rgba(20, 38, 56, 0.04);
  --shadow-sm: 0 2px 8px rgba(23, 43, 58, 0.07);
  --shadow: 0 18px 50px rgba(23, 43, 58, 0.12);
  --shadow-lg: 0 34px 70px -26px rgba(23, 43, 58, 0.3), 0 6px 18px -10px rgba(23, 43, 58, 0.16);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

nav, main, section, footer { position: relative; z-index: 1; }

.mono { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text);
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 100;
  padding: 11px 20px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; text-decoration: none; }

/* --------------------------------------------------------------------------
   Ambient background: aurora + grain + orbs
   -------------------------------------------------------------------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 40% at 82% -4%, color-mix(in srgb, var(--signal) 24%, transparent), transparent 66%),
    radial-gradient(44% 36% at 2% 2%, color-mix(in srgb, var(--beacon) 14%, transparent), transparent 68%),
    radial-gradient(38% 30% at 62% 18%, color-mix(in srgb, var(--signal-2) 14%, transparent), transparent 70%),
    radial-gradient(70% 44% at 50% 104%, color-mix(in srgb, var(--signal) 8%, transparent), transparent 72%);
}

/* fine grid, fading downward */
.aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(76% 58% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(76% 58% at 50% 0%, #000 0%, transparent 78%);
}

/* film grain */
.aurora::after {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
}

/* --------------------------------------------------------------------------
   Navigation — floating glass capsule
   -------------------------------------------------------------------------- */

nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0 0;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--edge-hi) inset, var(--shadow-sm);
  transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
nav.is-stuck .nav-inner {
  background: var(--glass-strong);
  box-shadow: 0 1px 0 var(--edge-hi) inset, var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--accent); }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: block;
  flex: none;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--edge-lo);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, transparent);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent) inset;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* light sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.btn:hover::after { animation: sweepShine 0.75s ease-out; }
@keyframes sweepShine {
  0% { left: -60%; opacity: 0.9; }
  100% { left: 130%; opacity: 0; }
}

.btn-primary {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 82%, #FFFFFF) 0%,
    var(--accent) 55%,
    color-mix(in srgb, var(--accent) 88%, #000000) 100%);
  color: var(--accent-ink);
  box-shadow: var(--glow-accent), 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}
.btn-primary:hover {
  box-shadow: 0 20px 46px -14px color-mix(in srgb, var(--accent) 85%, transparent),
              0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.btn-primary svg { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.btn-primary:hover svg { transform: translateY(3px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--edge-hi) inset;
}
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  background: var(--surface-hi);
}
.btn-ghost svg { color: var(--accent); }

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

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
  padding: 72px 28px 32px;
}

.hero-copy > * { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.02s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.09s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.30s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.37s; }
.hero-copy > *:nth-child(7) { animation-delay: 0.44s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* App identity chip with animated sheen edge */
.app-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--edge-hi) inset, var(--shadow-sm);
  margin-bottom: 26px;
  isolation: isolate;
}
.app-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg),
    transparent 0deg,
    color-mix(in srgb, var(--accent) 70%, transparent) 40deg,
    transparent 90deg,
    transparent 360deg),
    linear-gradient(var(--line), var(--line));
  -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;
  animation: spinEdge 6s linear infinite;
  pointer-events: none;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes spinEdge { to { --angle: 360deg; } }

.chip-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: block;
  flex: none;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
}
.chip-text { display: flex; flex-direction: column; line-height: 1.32; }
.chip-text strong { font-size: 14.5px; letter-spacing: -0.2px; }
.chip-text span { font-size: 12px; color: var(--text-dim); letter-spacing: 0.2px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 90%, transparent);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: ping 2.6s cubic-bezier(0, 0.4, 0.4, 1) infinite;
}
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 24px;
  text-wrap: balance;
  background-image: var(--head-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
h1 em {
  position: relative;
  font-style: normal;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  white-space: nowrap;
}
h1 em::after {
  content: "";
  position: absolute;
  left: -0.12em;
  right: -0.12em;
  top: 0.1em;
  bottom: 0.04em;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(60% 100% at 50% 55%,
    color-mix(in srgb, var(--accent) 30%, transparent),
    transparent 72%);
  filter: blur(10px);
}

.hero p.lead {
  color: var(--text-dim);
  font-size: 18.5px;
  line-height: 1.62;
  max-width: 31em;
  margin: 0 0 34px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 13px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.trust-row li:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }
.trust-row svg { color: var(--accent); flex: none; }

.hero-note {
  margin-top: 20px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.6px;
}

.scroll-cue {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 40px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.scroll-cue:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-decoration: none;
  transform: translateY(2px);
}
.scroll-cue svg { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* --------------------------------------------------------------------------
   Device mock
   -------------------------------------------------------------------------- */

.phone-zone {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1600px;
}

.phone-glow {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--signal) 30%, transparent), transparent 60%),
    radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--signal-2) 22%, transparent), transparent 62%);
  filter: blur(54px);
  pointer-events: none;
}

.phone {
  position: relative;
  width: 306px;
  height: 630px;
  border-radius: 50px;
  padding: 10px;
  flex: none;
  background:
    linear-gradient(150deg, #3A4460 0%, #1A2236 22%, #0A0F1C 58%, #232D45 100%);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(200, 214, 245, 0.16),
    0 1px 1px rgba(255, 255, 255, 0.28) inset,
    0 -1px 1px rgba(0, 0, 0, 0.5) inset;
  transform: rotateY(-9deg) rotateX(3deg) translateZ(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.phone-zone:hover .phone { transform: rotateY(-2deg) rotateX(0deg) translateY(-8px); }

/* side buttons */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 2.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #4A5670, #222B40);
}
.phone::before { left: -2.5px; top: 148px; height: 46px; box-shadow: 0 68px 0 #2B3448; }
.phone::after  { right: -2.5px; top: 186px; height: 74px; }

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 41px;
  overflow: hidden;
  padding: 15px 17px 19px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(130% 62% at 50% -6%, #16213A 0%, #080D18 58%, #05080F 100%);
}
/* glass sheen over the screen */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.035) 22%,
    transparent 40%,
    transparent 100%);
  pointer-events: none;
}

.island {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 23px;
  border-radius: 999px;
  background: #01030A;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.p-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  height: 23px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.4px;
  color: #8A94B0;
  padding: 0 3px;
}
.p-statusbar span { white-space: nowrap; }
.p-signal { color: #4DE1C1; }

.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 3px;
}
.phone .p-title {
  color: #F0F5FF;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.6px;
}
.phone .p-title span { color: #4DE1C1; }

.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(77, 225, 193, 0.12);
  border: 1px solid rgba(77, 225, 193, 0.3);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #4DE1C1;
}
.p-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4DE1C1;
  box-shadow: 0 0 8px #4DE1C1;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.phone .p-sub {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 8.5px;
  letter-spacing: 2px;
  color: #66708C;
  padding-left: 3px;
  margin-top: 6px;
}

.sonar {
  position: relative;
  width: 218px;
  height: 218px;
  margin: 24px auto 0;
  flex: none;
}
.sonar .orbit {
  position: absolute;
  border: 1px solid rgba(146, 162, 200, 0.14);
  border-radius: 50%;
}
.sonar .o1 { inset: 32%; }
.sonar .o2 { inset: 16%; }
.sonar .o3 { inset: 0; box-shadow: 0 0 40px rgba(77, 225, 193, 0.08) inset; }

.sonar .sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    transparent 296deg,
    rgba(77, 225, 193, 0.06) 320deg,
    rgba(77, 225, 193, 0.22) 352deg,
    rgba(77, 225, 193, 0.42) 360deg);
  animation: sweep 4.4s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.sonar .pulse {
  position: absolute;
  inset: 0;
  border: 1.5px solid #4DE1C1;
  border-radius: 50%;
  animation: pulse 3.4s ease-out infinite;
  opacity: 0;
}
.sonar .pulse.d2 { animation-delay: 1.13s; }
.sonar .pulse.d3 { animation-delay: 2.26s; }
@keyframes pulse {
  0%   { transform: scale(0.2); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0; }
}

.sonar .self {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  background: linear-gradient(150deg, #9BFBE7 0%, #4DE1C1 45%, #23AF92 100%);
  color: #04211B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 46px rgba(77, 225, 193, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.sonar .dev {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(160deg, #1D2740, #121A2B);
  border: 1px solid rgba(255, 184, 107, 0.45);
  box-shadow: 0 0 20px rgba(255, 184, 107, 0.16), 0 4px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #FFB86B;
}
.dev.a { left: 0;   top: 19%; animation: bob 4.6s 0.4s ease-in-out infinite; }
.dev.b { right: 2%; top: 37%; animation: bob 4s ease-in-out infinite; }
.dev.c { left: 21%; bottom: 1%; animation: bob 5.2s 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.p-status {
  text-align: center;
  margin-top: 22px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 8.5px;
  letter-spacing: 2.4px;
  color: #4DE1C1;
}

.p-transfer {
  margin: 16px 3px 0;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(29, 39, 64, 0.9), rgba(16, 22, 38, 0.9));
  border: 1px solid rgba(146, 162, 200, 0.13);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.p-transfer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #CBD4E8;
  margin-bottom: 9px;
}
.p-file {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-file svg { color: #4DE1C1; flex: none; }
.p-pct { color: #4DE1C1; font-weight: 700; flex: none; }
.p-meta { color: #66708C; flex: none; font-size: 10px; letter-spacing: 0.5px; }
.p-transfer.done { margin-top: 8px; opacity: 0.6; }
.p-transfer.done .p-transfer-row { margin-bottom: 0; }

.p-progress {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(146, 162, 200, 0.16);
  overflow: hidden;
}
.p-progress i {
  display: block;
  height: 100%;
  width: 82%;
  border-radius: 999px;
  background: linear-gradient(90deg, #23AF92, #4DE1C1 60%, #9BFBE7);
  box-shadow: 0 0 12px rgba(77, 225, 193, 0.6);
  animation: fill 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes fill {
  0%   { width: 16%; }
  72%  { width: 82%; }
  100% { width: 82%; }
}

.p-btns { display: flex; gap: 9px; margin-top: auto; padding: 16px 3px 0; }
.p-btn {
  flex: 1.35;
  height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #6FEDD3, #35C9AA);
  color: #04211B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: 0 10px 24px -10px rgba(77, 225, 193, 0.9), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.p-btn.alt {
  flex: 1;
  background: rgba(255, 184, 107, 0.1);
  border: 1px solid rgba(255, 184, 107, 0.4);
  color: #FFB86B;
  box-shadow: none;
}

/* Floating glass chips around the device */
.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--glass-strong);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow), 0 1px 0 var(--edge-hi) inset;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.float-chip svg { flex: none; }
.float-chip .fc-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
}
/* anchored to the device centre line so they always hug the bezel */
.fc-1 {
  top: 27%;
  right: calc(50% + 126px);
  animation: floatY 6s ease-in-out infinite;
}
.fc-1 .fc-ico { background: var(--signal-dim); color: var(--accent); }
.fc-2 {
  bottom: 21%;
  left: calc(50% + 126px);
  animation: floatY 7s 0.8s ease-in-out infinite;
}
.fc-2 .fc-ico { background: var(--beacon-dim); color: var(--beacon); }
@keyframes floatY {
  50% { transform: translateY(-10px); }
}

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

section {
  padding: 92px 0;
  border-top: 1px solid var(--line-soft);
}
section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 80%);
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--accent) 55%, transparent),
    transparent);
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.sec-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h2 {
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 800;
  margin: 0 0 16px;
  text-wrap: balance;
  background-image: var(--head-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.sec-intro {
  color: var(--text-dim);
  max-width: 44em;
  font-size: 17px;
  margin: 0 0 44px;
}

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

/* Scroll reveal — uses `translate` so element transforms stay free */
.reveal {
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.reveal.in { opacity: 1; translate: none; }

.card {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--card) 92%, transparent),
      color-mix(in srgb, var(--card) 62%, transparent));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
/* gradient hairline */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--edge-hi), var(--line) 30%, var(--line-soft) 70%);
  -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;
  pointer-events: none;
  z-index: 2;
}
/* cursor spotlight */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent) 15%, transparent),
    transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card:hover::after { opacity: 1; }

.card .glyph {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent) 22%, transparent),
    color-mix(in srgb, var(--accent) 8%, transparent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent) inset;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:nth-child(even) .glyph {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--beacon) 22%, transparent),
    color-mix(in srgb, var(--beacon) 8%, transparent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--beacon) 22%, transparent) inset;
  color: var(--beacon);
}
.card:hover .glyph { transform: translateY(-2px) scale(1.06) rotate(-4deg); }

.card h3 {
  margin: 0 0 7px;
  font-size: 17.5px;
  letter-spacing: -0.022em;
}
.card p { margin: 0; font-size: 14.5px; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-copy p { color: var(--text-dim); max-width: 62ch; }
.about-copy p strong { color: var(--text); font-weight: 700; }

.fact-box {
  position: relative;
  border-radius: var(--r-lg);
  padding: 10px 24px;
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--card) 92%, transparent),
    color-mix(in srgb, var(--card) 62%, transparent));
  box-shadow: var(--shadow-sm);
}
.fact-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--edge-hi), var(--line) 30%, var(--line-soft) 70%);
  -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;
  pointer-events: none;
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--text-dim); margin: 0; }
.fact dd { margin: 0; font-weight: 700; text-align: right; }
.fact dd.mono { font-weight: 600; font-size: 13px; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal { max-width: 74ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.pill {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.legal h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 19.5px;
  letter-spacing: -0.024em;
  margin: 42px 0 12px;
}
.legal h3 .n {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.legal p, .legal li { color: var(--text-dim); }
.legal li { margin-bottom: 7px; }
.legal ul { padding-left: 22px; }

.callout {
  position: relative;
  border-radius: var(--r-lg);
  padding: 18px 22px;
  color: var(--text);
  font-size: 15px;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent) 14%, transparent),
    color-mix(in srgb, var(--accent) 5%, transparent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent) inset;
}

.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.legal th, .legal td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.legal th {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: color-mix(in srgb, var(--surface-hi) 60%, transparent);
  white-space: nowrap;
}
.legal td { color: var(--text-dim); }
.legal td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.legal tr:last-child td { border-bottom: 0; }

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

footer {
  position: relative;
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 56px;
  color: var(--text-faint);
  font-size: 14px;
}
footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot-inner .spacer { flex: 1; }
.foot-inner a { color: var(--text-dim); font-weight: 600; }
.foot-inner a:hover { color: var(--accent); text-decoration: none; }
.foot-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 0 0 1px var(--edge-lo);
}

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

/* the chips need clear space either side of the device — below this they
   would collide with the copy column, so they step out entirely */
@media (max-width: 1180px) {
  .float-chip { display: none; }
}

@media (max-width: 980px) {
  .hero { gap: 36px; }
  .phone { transform: none; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 28px 28px;
    gap: 48px;
  }
  .phone-zone { order: 2; }
  .about-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .scroll-cue { display: none; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px;
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    background: var(--glass-strong);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: var(--shadow-lg), 0 1px 0 var(--edge-hi) inset;
    display: none;
    animation: menuIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; border-radius: var(--r-md); font-size: 15px; }
  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .nav-inner { padding-left: 14px; }
  .cta-row .btn { flex: 1 1 100%; }
  .phone { width: 282px; height: 596px; }
  .sonar { width: 202px; height: 202px; }
  .p-signal { display: none; }
  section { padding: 56px 0; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sonar .pulse,
  .sonar .sweep,
  .dev.a, .dev.b, .dev.c,
  .p-progress i,
  .p-chip i,
  .live-dot::after,
  .scroll-cue svg,
  .float-chip,
  .app-chip::before,
  .hero-copy > *,
  .nav-links {
    animation: none;
  }
  .hero-copy > * { opacity: 1; transform: none; filter: none; }
  .reveal { opacity: 1; translate: none; }
  .btn:hover,
  .card:hover,
  .phone-zone:hover .phone,
  .brand:hover .brand-mark,
  .card:hover .glyph { transform: none; }
  .btn:hover::after { animation: none; }
}
