/* ============================================================
   Self-hosted web fonts — Inter + Space Grotesk (Latin + Latin-ext)
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-latin-ext-34b9c504ca.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-latin-3100e775e8.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter-latin-ext-34b9c504ca.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter-latin-3100e775e8.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter-latin-ext-34b9c504ca.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter-latin-3100e775e8.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Inter-latin-ext-34b9c504ca.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Inter-latin-3100e775e8.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Space-Grotesk-latin-ext-952dddb45d.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Space-Grotesk-latin-0640890476.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Space-Grotesk-latin-ext-952dddb45d.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Space-Grotesk-latin-0640890476.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Space-Grotesk-latin-ext-952dddb45d.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Space-Grotesk-latin-0640890476.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   MSAI Systems — Launching Soon
   Ultra-modern, glassmorphic dark/light theme
   ============================================================ */

:root {
  /* palette */
  --bg-0: #05060a;
  --bg-1: #0a0c14;
  --bg-2: #0f1220;
  --fg:   #e7ecff;
  --fg-dim: #9aa3c4;
  --fg-mute: #6c7594;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);

  /* accents */
  --c-cyan:   #00e0ff;
  --c-blue:   #4d8bff;
  --c-violet: #7b5cff;
  --c-magenta:#c77dff;

  --grad-primary: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-blue) 40%, var(--c-violet) 100%);
  --grad-soft:    linear-gradient(135deg, rgba(0,224,255,.18), rgba(123,92,255,.18));
  --grad-text:    linear-gradient(90deg, #8ef0ff 0%, #79a9ff 45%, #c2a8ff 100%);

  /* layout */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1180px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-smooth: cubic-bezier(.6, 0, .2, 1);
}

/* Light theme overrides */
html[data-theme="light"] {
  --bg-0: #f4f6ff;
  --bg-1: #eef1fb;
  --bg-2: #e4e8f6;
  --fg:   #10142a;
  --fg-dim: #4a5173;
  --fg-mute: #72799a;
  --line: rgba(10, 12, 40, 0.08);
  --line-strong: rgba(10, 12, 40, 0.16);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --grad-text: linear-gradient(90deg, #0a7bb5 0%, #4a5bff 45%, #7b3dff 100%);
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* sticky nav height */
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .6s var(--ease);
}

/* Lock body scroll when mobile nav is open */
html.nav-open, html.nav-open body { overflow: hidden; }

/* Remove tap highlight on touch devices */
a, button, [role="button"], input, label, .card, .product, .vision-points li {
  -webkit-tap-highlight-color: transparent;
}

/* Keyboard focus ring (doesn't show on mouse click thanks to :focus-visible) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid rgba(0, 224, 255, .7);
  outline-offset: 3px;
  border-radius: 6px;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
}

/* Ambient background layering */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(0, 224, 255, 0.18), transparent 70%),
    radial-gradient(55% 45% at 85% 20%, rgba(123, 92, 255, 0.20), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(77, 139, 255, 0.14), transparent 70%),
    var(--bg-0);
  z-index: -3;
  pointer-events: none;
  transition: opacity .6s var(--ease);
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(0, 160, 220, 0.18), transparent 70%),
    radial-gradient(55% 45% at 85% 20%, rgba(123, 92, 255, 0.14), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(77, 139, 255, 0.10), transparent 70%),
    var(--bg-0);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

::selection { background: rgba(123, 92, 255, 0.4); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip to content — keyboard-only */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
  transform: translateY(-140%);
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ------------------------------------------------------------
   3D canvas + vignette
   ------------------------------------------------------------ */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
  pointer-events: none;
}

.scene-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 50%, rgba(0,0,0,.35) 100%),
    radial-gradient(120% 80% at 50% 100%, transparent 50%, rgba(0,0,0,.45) 100%);
  transition: opacity .6s var(--ease);
}
html[data-theme="light"] .scene-vignette {
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 50%, rgba(20,24,60,.05) 100%),
    radial-gradient(120% 80% at 50% 100%, transparent 50%, rgba(20,24,60,.08) 100%);
}

/* ------------------------------------------------------------
   Cursor glow
   ------------------------------------------------------------ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.18), rgba(123, 92, 255, 0.10) 35%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  filter: blur(12px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow { opacity: 1; }
}
html[data-theme="light"] .cursor-glow {
  mix-blend-mode: multiply;
  opacity: .65;
  background: radial-gradient(circle, rgba(77,139,255,.25), rgba(123,92,255,.12) 35%, transparent 65%);
}

/* ------------------------------------------------------------
   Scroll progress
   ------------------------------------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--grad-primary);
  z-index: 60;
  transition: width .08s linear;
  box-shadow: 0 0 12px rgba(0, 224, 255, .5);
}

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  padding-left:  max(clamp(16px, 4vw, 48px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(5,6,10,.6), rgba(5,6,10,.2));
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
html[data-theme="light"] .nav {
  background: linear-gradient(to bottom, rgba(244,246,255,.75), rgba(244,246,255,.35));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 600;
  letter-spacing: .2px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset, 0 8px 24px rgba(0,224,255,.15);
}
.brand-text em {
  font-style: normal;
  color: var(--fg-dim);
  font-weight: 500;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--fg-dim);
  border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--fg);
    background: var(--glass);
  }
}

.nav-tools { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  width: 42px; height: 42px;       /* touch-friendly */
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--fg-dim);
  background: var(--glass);
  border: 1px solid var(--line-strong);
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    color: var(--fg);
    background: var(--glass-strong);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 224, 255, .15);
  }
  .icon-btn:hover svg { transform: scale(1.1); }
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { transition: transform .3s var(--ease); }

/* toggle icon states */
#themeToggle .i-sun,
#soundToggle .i-on { display: none; }
html[data-theme="light"] #themeToggle .i-moon { display: none; }
html[data-theme="light"] #themeToggle .i-sun  { display: block; }
body.sound-on #soundToggle .i-off { display: none; }
body.sound-on #soundToggle .i-on  { display: block; }

/* Burger button — only visible on narrow screens */
.nav-burger { display: none; position: relative; z-index: 60; }
.nav-burger .i-close { display: none; }
.nav-burger[aria-expanded="true"] .i-open  { display: none; }
.nav-burger[aria-expanded="true"] .i-close { display: block; }
.nav-burger:focus-visible {
  outline: 2px solid rgba(0, 224, 255, .8);
  outline-offset: 3px;
}

/* Earlier collapse — nav has 5 links + 2 tools + burger space */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  /* Sound toggle is desktop-only; mobile users don't want ambient audio
     on a tap and it crowds the nav next to the burger + theme icons */
  #soundToggle { display: none; }
}
@media (max-width: 520px) {
  .nav-links a { padding: 6px 10px; font-size: 13px; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  visibility: hidden;
  transition: visibility .45s step-end;
}
.mobile-nav[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 7, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.mobile-nav[aria-hidden="false"] .mobile-nav-backdrop { opacity: 1; }

.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(88vw, 360px);
  height: 100vh;
  height: 100dvh;
  padding: calc(env(safe-area-inset-top, 0px) + 80px) 24px 32px;
  padding-right: max(24px, env(safe-area-inset-right));
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(123, 92, 255, .18), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(0, 224, 255, .14), transparent 70%),
    var(--bg-1);
  border-left: 1px solid var(--line-strong);
  box-shadow: -24px 0 60px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav[aria-hidden="false"] .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.mobile-nav-links a:active {
  background: var(--glass-strong);
  border-color: var(--line-strong);
  transform: scale(.98);
}
.mobile-nav-cta { justify-content: center; margin-top: 8px; }
.mobile-nav-foot {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: .3px;
  text-align: center;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 32px);
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 6vw, 64px);
}

.eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.12;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--fg-dim);
  font-size: clamp(15px, 1.6vw, 17px);
  margin: 0;
}

/* Gradient animated text */
.gradient-text {
  background: var(--grad-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .1px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  isolation: isolate;
}

.btn-primary {
  color: #ffffff;
  background: var(--grad-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  box-shadow:
    0 10px 30px rgba(0, 224, 255, .25),
    0 4px 12px rgba(123, 92, 255, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-primary);
  filter: blur(14px);
  opacity: .5;
  z-index: -1;
  transition: opacity .3s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 42px rgba(0, 224, 255, .32),
    0 6px 18px rgba(123, 92, 255, .32),
    inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.btn-primary:hover::after { opacity: .85; }

.btn-ghost {
  color: var(--fg);
  background: var(--glass);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--glass-strong);
  border-color: rgba(255,255,255,.26);
}

.btn-glow::after { opacity: .7; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 4vw, 32px) 0;
}
.hero-inner {
  width: 100%;
  max-width: 920px;
  text-align: center;
  position: relative;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fg-dim);
  background: var(--glass);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  letter-spacing: .3px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 0 rgba(0, 224, 255, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 224, 255, .6); }
  70%  { box-shadow: 0 0 0 12px rgba(0, 224, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 224, 255, 0); }
}

.headline {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 22px 0 18px;
}
.headline-sub {
  display: block;
  color: var(--fg-dim);
  font-size: .55em;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 6px;
}

.sublead {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--fg-dim);
}
.sublead strong { color: var(--fg); font-weight: 600; }

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ------------------------------------------------------------
   Cards (What we're building)
   ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.cards > .card { grid-column: span 2; }                 /* row 1: 3 cards */
.cards > .card.card-future { grid-column: span 3; }     /* row 2: 2 'future' cards */

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > .card, .cards > .card.card-future { grid-column: auto; }
  /* center the 5th card alone on its row */
  .cards > .card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    justify-self: center;
    width: 100%;
  }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .cards > .card:nth-child(5) {
    grid-column: auto;
    max-width: none;
    width: auto;
  }
}

.card {
  position: relative;
  padding: 26px 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .3s var(--ease), background .4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 224, 255, .35), rgba(123, 92, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  top: var(--mx, 50%);
  left: var(--my, 50%);
  width: 280px; height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 224, 255, .18), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: transparent; }
  .card:hover::before { opacity: 1; }
  .card:hover::after  { opacity: 1; }
}
/* touch feedback */
.card:active { border-color: var(--line-strong); }

.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--c-cyan);
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 224, 255, .12);
}
html[data-theme="light"] .card-icon { color: #1a6fb8; }

.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.card p {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.card-tag {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
}
.card-tag-soon {
  color: var(--c-cyan);
  border-color: rgba(0, 224, 255, .25);
  background: rgba(0, 224, 255, .08);
}

/* ------------------------------------------------------------
   Products (Ecosystem)
   ------------------------------------------------------------ */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }

.product {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transition: transform .5s var(--ease), border-color .3s var(--ease), background .4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .product:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: var(--glass-strong);
  }
}

.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.product-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  color: #0a0b12;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--a) 40%, transparent);
}
.product h3 { font-size: 18px; }
.product-role {
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.product p {
  margin: 0 0 18px;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
}
.product-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-tags li {
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--fg-dim);
  background: var(--glass);
  border: 1px solid var(--line);
}

/* ------------------------------------------------------------
   Vision
   ------------------------------------------------------------ */
.section-vision { padding-top: clamp(60px, 9vw, 120px); }
.vision-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .vision-grid { grid-template-columns: 1fr; } }

.vision-copy h2 {
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.vision-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.vision-points li {
  position: relative;
  padding: 22px 22px 22px 70px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .vision-points li:hover {
    transform: translateX(4px);
    border-color: var(--line-strong);
  }
}
.vp-num {
  position: absolute;
  top: 20px; left: 22px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--c-cyan);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 224, 255, .08);
  border: 1px solid rgba(0, 224, 255, .25);
}
.vision-points h4 {
  font-size: 17px;
  margin-bottom: 4px;
}
.vision-points p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------------
   Notify
   ------------------------------------------------------------ */
.section-notify { padding-top: clamp(40px, 6vw, 80px); }

.notify-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(0, 224, 255, .12), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(123, 92, 255, .14), transparent 55%),
    var(--glass);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.notify-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,224,255,.35), transparent 45%, rgba(123,92,255,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@media (max-width: 820px) { .notify-card { grid-template-columns: 1fr; } }

.notify-copy h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 10px;
}
.notify-copy p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 15px;
}

.notify-form {
  display: grid;
  gap: 12px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap svg {
  position: absolute;
  left: 18px;
  color: var(--fg-mute);
  pointer-events: none;
}
.notify-form input {
  width: 100%;
  padding: 16px 18px 16px 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--fg);
  font-size: 16px;  /* prevents iOS zoom on focus */
  letter-spacing: .2px;
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.notify-form input::placeholder { color: var(--fg-mute); }
.notify-form input:focus {
  border-color: rgba(0, 224, 255, .5);
  background: var(--glass-strong);
  box-shadow: 0 0 0 4px rgba(0, 224, 255, .12);
}

.notify-form .btn { justify-content: center; padding: 15px 22px; }

.notify-status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  color: var(--fg-mute);
  text-align: center;
}
.notify-status.is-ok    { color: #6beeae; }
.notify-status.is-error { color: #ff8aa8; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 4vw, 32px);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 600;
}
.footer-copy { color: var(--fg-mute); font-size: 12.5px; letter-spacing: .3px; }

/* ------------------------------------------------------------
   Contact CTA band
   ------------------------------------------------------------ */
.section-contact {
  padding-top: clamp(60px, 9vw, 100px);
  padding-bottom: clamp(60px, 9vw, 100px);
}
.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 5vw, 52px);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(0, 224, 255, .14), transparent 60%),
    radial-gradient(70% 100% at 0% 100%, rgba(123, 92, 255, .18), transparent 60%),
    var(--glass);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.contact-band::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,224,255,.4), rgba(123,92,255,.1) 50%, rgba(123,92,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.contact-band {
  align-items: flex-start;
}
.contact-copy { max-width: 520px; flex: 1 1 320px; }
.contact-copy h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  margin-bottom: 10px;
}
.contact-copy p {
  margin: 0 0 18px;
  color: var(--fg-dim);
  font-size: 15px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-dim);
  background: var(--glass);
  border: 1px solid var(--line-strong);
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .contact-email:hover {
    color: var(--fg);
    background: var(--glass-strong);
    border-color: rgba(0, 224, 255, .35);
  }
}

/* ----- Inline contact form ----- */
.contact-form {
  flex: 1 1 380px;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
  pointer-events: none;
  left: -9999px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }

.cf-field {
  display: grid;
  gap: 6px;
}
.cf-label {
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--fg-mute);
  padding-left: 2px;
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;     /* prevents iOS zoom */
  letter-spacing: .1px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  resize: vertical;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--fg-mute); }
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: rgba(0, 224, 255, .55);
  background: var(--glass-strong);
  box-shadow: 0 0 0 4px rgba(0, 224, 255, .10);
}
.cf-field input.is-error,
.cf-field textarea.is-error {
  border-color: rgba(255, 120, 140, .6);
  box-shadow: 0 0 0 4px rgba(255, 120, 140, .10);
}

.cf-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.contact-send {
  justify-content: center;
  min-height: 48px;
  min-width: 180px;
}
.cf-spinner { display: none; animation: cf-spin 0.9s linear infinite; }
.contact-form.is-sending .contact-send { pointer-events: none; opacity: .85; }
.contact-form.is-sending .cf-arrow    { display: none; }
.contact-form.is-sending .cf-spinner  { display: inline-block; }
@keyframes cf-spin { to { transform: rotate(360deg); } }

.cf-status { margin: 0; font-size: 13px; color: var(--fg-mute); flex: 1 1 auto; }
.cf-status.is-ok    { color: #14b56a; }
.cf-status.is-error { color: #e04b6b; }
html[data-theme="dark"] .cf-status.is-ok    { color: #6beeae; }
html[data-theme="dark"] .cf-status.is-error { color: #ff8aa8; }

.cf-disclaimer {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cf-disclaimer svg { color: var(--c-cyan); flex-shrink: 0; }
.cf-disclaimer a {
  color: var(--fg-dim);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .cf-disclaimer a:hover { color: var(--fg); text-decoration-color: var(--c-cyan); }
}

/* Success flash when message is sent */
.contact-form.is-sent { position: relative; }
.contact-form.is-sent::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 20px;
  box-shadow: 0 0 0 0 rgba(20, 181, 106, .0);
  animation: cf-flash .9s ease-out;
  pointer-events: none;
}
@keyframes cf-flash {
  0%   { box-shadow: 0 0 0 0  rgba(0, 224, 180, .35); }
  100% { box-shadow: 0 0 0 24px rgba(0, 224, 180, 0); }
}

@media (max-width: 780px) {
  .contact-band { flex-direction: column; align-items: stretch; }
  .contact-copy { max-width: none; }
  .contact-send { width: 100%; min-height: 52px; }
  .cf-actions { flex-direction: column; align-items: stretch; }
  .cf-status { text-align: center; }
}

/* ------------------------------------------------------------
   Footer privacy pill
   ------------------------------------------------------------ */
.footer-privacy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-dim);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-privacy svg { color: var(--c-cyan); flex-shrink: 0; }
.footer-privacy span { color: var(--fg); font-weight: 500; }
.footer-privacy a {
  color: var(--fg-dim);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  transition: color .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .footer-privacy a:hover { color: var(--fg); }
}

/* ------------------------------------------------------------
   Magnetic buttons — keep other transforms composable via JS direct
   (JS sets inline transform; hover lift is sacrificed by design — magnetic motion IS the hover effect)
   ------------------------------------------------------------ */
[data-magnetic] { transition: transform .5s var(--ease), box-shadow .3s var(--ease); }

/* ------------------------------------------------------------
   Product icon mark — support svg children
   ------------------------------------------------------------ */
.product-mark { color: rgba(10,11,18,.92); }
.product-mark svg { display: block; }

/* ------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease-smooth), transform .9s var(--ease-smooth);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Premium accents — per-card top gradient bar + future card tint
   ------------------------------------------------------------ */
.cards > .card {
  transition: transform .5s var(--ease), border-color .3s var(--ease), background .4s var(--ease), box-shadow .3s var(--ease);
  box-shadow: inset 0 2px 0 0 transparent;
}
.cards > .card:nth-child(1) { box-shadow: inset 0 2px 0 0 rgba(0, 224, 255, .55); }
.cards > .card:nth-child(2) { box-shadow: inset 0 2px 0 0 rgba(77, 139, 255, .55); }
.cards > .card:nth-child(3) { box-shadow: inset 0 2px 0 0 rgba(123, 92, 255, .55); }
.cards > .card:nth-child(4) { box-shadow: inset 0 2px 0 0 rgba(199, 125, 255, .45); }
.cards > .card:nth-child(5) { box-shadow: inset 0 2px 0 0 rgba(23, 230, 176, .55); }

.card-future {
  background: linear-gradient(180deg, rgba(0,224,255,.04), rgba(123,92,255,.04)), var(--glass);
}
html[data-theme="light"] .card-future {
  background: linear-gradient(180deg, rgba(0,160,220,.05), rgba(123,92,255,.05)), var(--glass);
}

/* ------------------------------------------------------------
   Section dividers — subtle gradient rhythm between sections
   ------------------------------------------------------------ */
.section + .section::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  opacity: .7;
}

/* ------------------------------------------------------------
   Back-to-top floating button (mobile-first, appears on scroll)
   ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 45;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--fg);
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,224,255,.5), rgba(123,92,255,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.back-to-top:active { transform: scale(.92); }

/* ------------------------------------------------------------
   Mobile visual boost — bigger hero glow, bigger icons, punchier rhythm
   ------------------------------------------------------------ */
@media (max-width: 860px) {
  /* Bigger glow behind hero headline on mobile */
  .hero-inner::before {
    content: "";
    position: absolute;
    top: 35%;
    left: 50%;
    width: 120vw;
    height: 80vw;
    max-width: 700px;
    max-height: 460px;
    transform: translate(-50%, -50%);
    background:
      radial-gradient(ellipse at center, rgba(0, 224, 255, .22), transparent 55%),
      radial-gradient(ellipse at 30% 40%, rgba(123, 92, 255, .22), transparent 55%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
  }
  html[data-theme="light"] .hero-inner::before {
    background:
      radial-gradient(ellipse at center, rgba(77, 139, 255, .28), transparent 55%),
      radial-gradient(ellipse at 30% 40%, rgba(123, 92, 255, .22), transparent 55%);
  }
  .hero-inner { position: relative; }

  /* Bigger card icons on mobile for visual weight */
  .card-icon { width: 52px; height: 52px; }

  /* Tighter card accent bar — make it thicker for visibility on mobile */
  .cards > .card:nth-child(1) { box-shadow: inset 0 3px 0 0 rgba(0, 224, 255, .6); }
  .cards > .card:nth-child(2) { box-shadow: inset 0 3px 0 0 rgba(77, 139, 255, .6); }
  .cards > .card:nth-child(3) { box-shadow: inset 0 3px 0 0 rgba(123, 92, 255, .6); }
  .cards > .card:nth-child(4) { box-shadow: inset 0 3px 0 0 rgba(199, 125, 255, .55); }
  .cards > .card:nth-child(5) { box-shadow: inset 0 3px 0 0 rgba(23, 230, 176, .6); }

  /* Bigger product mark on mobile */
  .product-mark { width: 52px; height: 52px; }

  /* Bigger vision numbers */
  .vp-num { font-size: 12.5px; padding: 5px 10px; }

  /* Contact email chip becomes taller touch target */
  .contact-email { padding: 12px 16px; font-size: 13.5px; }
}

/* Hide back-to-top on desktop (only meaningful on mobile/short viewports) */
@media (min-width: 941px) {
  .back-to-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gradient-text { animation: none; }
  .pulse { animation: none; }
  .back-to-top { transition: opacity .2s; }
  html, body { scroll-behavior: auto; }
}

/* Disable the continuously-rotating conic gradient on small screens — expensive repaints */
@media (max-width: 780px) {
  .gradient-text { animation-duration: 14s; } /* slower shimmer = less work */
}

/* content-visibility: let the browser skip paint of offscreen sections */
.section:not(.hero):not(#notify):not(#contact) {
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

/* ------------------------------------------------------------
   Mobile breakpoints — compact refinements
   ------------------------------------------------------------ */
@media (max-width: 860px) {
  :root { --maxw: 100%; }

  .section { padding: clamp(64px, 14vw, 120px) 18px; }

  /* Hero — tighter vertical, more readable */
  .hero { min-height: calc(100svh - 72px); padding: 24px 18px 0; }
  .headline { font-size: clamp(36px, 11vw, 64px); margin: 18px 0 14px; }
  .sublead { font-size: 15.5px; }
  .hero-actions { gap: 10px; margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }


  /* Section heads wrap nicely */
  h2 { text-wrap: balance; }
  .section-head p { text-wrap: pretty; }

  /* Cards / products — slightly tighter */
  .card { padding: 22px 20px 20px; border-radius: 20px; }
  .card h3 { font-size: 18px; }
  .card-tag { top: 18px; right: 18px; }
  .product { padding: 22px 20px; border-radius: 20px; }

  /* Vision */
  .vision-points li { padding: 20px 18px 18px 66px; }
  .vp-num { top: 18px; left: 18px; }

  /* Notify */
  .notify-card { padding: 28px 20px; border-radius: 24px; }
  .notify-form .btn { min-height: 52px; width: 100%; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .brand-text { display: none; }      /* keep only the mark icon on very small */
  .pill { font-size: 11.5px; padding: 6px 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .headline { font-size: clamp(34px, 12vw, 54px); }
  .section { padding-left: 16px; padding-right: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: 2.5px; }
  h2 { font-size: clamp(26px, 7.5vw, 36px); }
  .notify-card { padding: 24px 18px; }
  .product { padding: 20px 18px; }
  .vision-points li { padding: 18px 16px 16px 58px; }
  .vp-num { left: 14px; top: 16px; font-size: 11px; }
}

/* Very narrow — iPhone SE 1st gen etc */
@media (max-width: 360px) {
  .nav { padding: 10px 12px; gap: 12px; }
  .icon-btn { width: 38px; height: 38px; }
  .headline { font-size: clamp(30px, 11vw, 46px); }
  .sublead { font-size: 15px; }
}

/* Tablet mid-range — catch awkward 500-780px sizes */
@media (min-width: 500px) and (max-width: 780px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .products > .product:nth-child(3) { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
}

/* Footer safe-area */
.footer {
  padding-left:  max(clamp(20px, 4vw, 32px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 4vw, 32px), env(safe-area-inset-right));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

/* Buttons — solid tactile press feedback on touch */
.btn:active { transform: translateY(0) scale(.98); }
