/* =============================================================
   0. Fonts — self-hosted (Excon + General Sans via Fontshare,
      JetBrains Mono variable via Google Fonts). No external
      requests at runtime.
   ============================================================= */
@font-face {
  font-family: "Excon";
  src: url("assets/fonts/excon-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Excon";
  src: url("assets/fonts/excon-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("assets/fonts/general-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("assets/fonts/general-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("assets/fonts/general-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-variable.woff2") format("woff2-variations");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Dirección de marca "Cobalt HUD" — base fija, no modificar sin pasar
     de nuevo por el proceso de dirección de arte. */
  --bg:         #05070f;
  --bg-2:       #080b18;
  --surface:    #0c1122;
  --surface-2:  #121a30;
  --surface-3:  #182248;

  --ink:        #eaf1ff;
  --ink-soft:   #c3d0ea;
  --mute:       #93a5c9;
  --mute-2:     #6c7ba3;

  --line:       rgba(234, 241, 255, 0.10);
  --line-strong: rgba(234, 241, 255, 0.18);

  --accent:     #2b78ff;
  --accent-2:   #52d4ff;
  --silver:     #aebbdc;

  --gradient-1: #2b78ff;
  --gradient-2: #52d4ff;
  --gradient-3: #aebbdc;
  --gradient-4: #163a99;

  --font-display: "Excon", "General Sans", sans-serif;
  --font-body:    "General Sans", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --mx: 50%;
  --my: 42%;
}

@property --mx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: false; initial-value: 42%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--font-display); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }

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

.mono { font-family: var(--font-mono); }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-kicker {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  max-width: 18ch;
  margin-bottom: 2.5rem;
}

/* Progressive enhancement: only hide reveals once JS is confirmed running,
   so a no-JS / failed-script visitor still sees all content. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   3b. Loader — brand node construction, not a generic spinner.
   Start states are plain CSS so a JS/GSAP failure still resolves
   to something inert; the boot fallback timeout removes the
   overlay outright if animation never runs.
   ============================================================= */
.loader {
  position: fixed; inset: 0; z-index: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  background: var(--bg);
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { filter: drop-shadow(0 0 18px rgba(82, 212, 255, 0.35)); overflow: visible; }
.loader-ring { fill: none; stroke: var(--accent-2); stroke-width: 1; opacity: 0.55; }
.loader-ring-outer { stroke-dasharray: 290; stroke-dashoffset: 290; }
.loader-ring-inner { stroke-dasharray: 189; stroke-dashoffset: 189; }
.loader-spoke { stroke: var(--accent); stroke-width: 1; opacity: 0; }
.loader-node { fill: var(--accent-2); opacity: 0; }
.loader-core { fill: var(--accent); opacity: 0; }
.loader-word {
  font-size: 0.8rem; letter-spacing: 0.32em; color: var(--ink-soft);
  opacity: 0; transform: translateY(6px);
}
html.is-loading { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .loader { transition: none; }
}

/* =============================================================
   3c. Cursor custom — HUD dot + trailing ring, states for CTAs
   and cards. Only engaged by JS on fine-pointer devices; the
   media query below is a second gate so nothing shows on touch
   even if JS misfires.
   ============================================================= */
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor [role="button"] {
    cursor: none;
  }
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.cursor.is-active { opacity: 1; }
.cursor-dot, .cursor-ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent-2);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(82, 212, 255, 0.45);
  transition: width .3s var(--ease-soft), height .3s var(--ease-soft),
              border-color .3s var(--ease-out), background-color .3s var(--ease-out),
              border-radius .3s var(--ease-soft);
}
.cursor-ring.is-link {
  width: 58px; height: 58px;
  background: rgba(82, 212, 255, 0.08);
  border-color: var(--accent-2);
}
.cursor-ring.is-card {
  width: 76px; height: 76px;
  border-color: var(--accent);
  border-style: dashed;
  border-radius: 16px;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(43, 120, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -10px rgba(43, 120, 255, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  width: 100%;
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }
.btn-nav {
  padding: 0.6rem 1.3rem;
  font-size: 0.86rem;
  display: none;
}
@media (min-width: 720px) { .btn-nav { display: inline-flex; } }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.nav-logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px 2px var(--accent-2);
}
.nav-logo-mark {
  width: 26px; height: 26px; flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(111, 211, 255, 0.35));
}
.nav-links { display: none; gap: 2rem; margin-inline: auto; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.25rem 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--accent-2);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-burger {
  display: grid; gap: 5px; padding: 0.5rem;
  width: 40px; height: 40px; place-items: center;
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease-soft), opacity .35s var(--ease-soft);
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 76px 0 0 0; z-index: 90;
  background: rgba(5, 7, 13, 0.98);
  display: grid; place-items: center; gap: 1.75rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
  pointer-events: none;
}
.nav-mobile.is-open { clip-path: inset(0); pointer-events: auto; }
.nav-mobile-link { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(76px + 3rem) 4rem;
  overflow: clip;
  isolation: isolate;
}

.hero-gradient {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(circle 620px at var(--mx) var(--my), rgba(43, 120, 255, 0.42) 0%, transparent 60%),
    radial-gradient(circle 760px at calc(var(--mx) + 16%) calc(var(--my) - 14%), rgba(82, 212, 255, 0.28) 0%, transparent 62%),
    radial-gradient(circle 680px at calc(var(--mx) - 18%) calc(var(--my) + 16%), rgba(185, 196, 214, 0.18) 0%, transparent 60%),
    var(--bg);
  filter: blur(60px) saturate(130%);
}

.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 78%);
  opacity: 0.5;
}

.hero-network { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

/* Sitewide film-grain — cinematic depth, keeps flat dark sections from looking plasticky */
.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.hero-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-layout { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
}

.kicker {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero-title-accent {
  background: linear-gradient(100deg, var(--ink) 0%, var(--accent-2) 55%, var(--silver) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.split-line { overflow: clip; white-space: nowrap; }
.split-word-unit { will-change: transform, opacity; }

.hero-sub {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.4rem;
}

.hero-scroll-cue {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.hero-scroll-cue span {
  display: block; width: 4px; height: 8px; border-radius: 999px;
  background: var(--accent-2);
  margin: 6px auto 0;
  animation: scrollCue 2s var(--ease-soft) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { opacity: 0.2; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* HUD frame around the device mock — corner brackets + telemetry readout.
   Reinforces "AI system" without adding a real 3D/WebGL dependency.
   (Scan-line sweep removed — disliked visually and animated `top`,
   which forces layout/paint every frame instead of compositing.) */
.hud-frame { position: relative; padding: 1.6rem 0.4rem; }
.hud-corner {
  position: absolute; width: 22px; height: 22px;
  border: 1.5px solid var(--accent-2); opacity: 0.6;
}
.hud-corner-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-corner-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud-label {
  position: absolute; top: 0; left: 2rem;
  font-size: 0.64rem; letter-spacing: 0.1em; color: var(--accent-2); opacity: 0.75;
}
.hud-readout {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin-top: 1.1rem; padding: 0 0.3rem;
  font-size: 0.64rem; letter-spacing: 0.03em; color: var(--mute);
}
.hud-readout b { color: var(--accent-2); font-weight: 500; }

/* Device mockup — WhatsApp AI demo, pure CSS/HTML, no image needed.
   3D: gentle idle float on the wrapper + cursor-driven tilt on the device
   (set via --rx/--ry from JS; both gated to fine-pointer, no-reduced-motion). */
.hero-visual { display: flex; justify-content: center; perspective: 1200px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual { animation: heroFloat 8s ease-in-out infinite; }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
/* Secret gem — hidden reward beneath the draggable mockup. Sits at a lower
   z-index so the card fully covers the crisp icon at rest; only the glow
   and ping rings (deliberately larger than the card) bleed past its edges
   as a hint. Bigger, brighter and idly floating so it reads as "come get
   me" once the mockup is dragged aside, instead of blending into the bg. */
.hero-gem {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  width: 116px; height: 116px;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-gem { animation: gemFloat 3.2s ease-in-out infinite; }
  .hero-gem.is-activated { animation-play-state: paused; }
}
@keyframes gemFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(-5deg); }
  50%      { transform: translate(-50%, -50%) translateY(-12px) rotate(5deg); }
}
.hero-gem-glow {
  position: absolute; top: 50%; left: 50%;
  width: 520px; height: 520px;
  transform: translate(-50%, -50%) scale(0.94);
  background: radial-gradient(circle, rgba(111, 211, 255, 0.42) 0%, rgba(43, 120, 255, 0.2) 42%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.65;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-gem-glow { animation: gemBreathe 2.6s ease-in-out infinite; }
}
@keyframes gemBreathe {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.08); }
}
/* Radar-ping rings — the clearest "click me" cue, staggered so a new
   ring launches before the last one fades. */
.hero-gem-ring {
  position: absolute; top: 50%; left: 50%;
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 1.5px solid rgba(111, 211, 255, 0.55);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-gem-ring { animation: gemRingPulse 2.8s ease-out infinite; }
  .hero-gem-ring-2 { animation-delay: 1.4s; }
}
@keyframes gemRingPulse {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.8; }
  80%  { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
}
.hero-gem-icon {
  position: relative;
  filter: drop-shadow(0 8px 22px rgba(43, 120, 255, 0.6));
  transition: transform .3s var(--ease-soft);
}
.hero-gem:hover .hero-gem-icon { transform: scale(1.12) rotate(-5deg); }
.hero-gem.is-activated .hero-gem-icon { animation: gemPop .6s var(--ease-soft); }
@keyframes gemPop {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.4) rotate(10deg); filter: drop-shadow(0 0 32px rgba(111, 211, 255, 0.95)); }
  100% { transform: scale(1.15) rotate(-3deg); }
}

.gem-reveal {
  position: absolute; z-index: 8;
  left: 50%; bottom: -0.5rem;
  transform: translate(-50%, 100%) scale(0.92);
  width: min(260px, 78vw);
  display: block;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-soft), transform .35s var(--ease-soft);
}
.gem-reveal.is-visible { opacity: 1; transform: translate(-50%, 100%) scale(1); pointer-events: auto; }
.gem-reveal-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.gem-reveal-text { display: block; font-size: 0.78rem; color: var(--mute); line-height: 1.4; margin-bottom: 0.8rem; }
.gem-reveal-cta { display: flex; width: 100%; justify-content: center; font-size: 0.8rem; padding: 0.6rem 1rem; }

.device-mock {
  --rx: 0deg; --ry: 0deg; --dx: 0px; --dy: 0px;
  position: relative; z-index: 6;
  width: min(360px, 100%);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(185, 196, 214, 0.06);
  overflow: hidden;
  transform: translate3d(var(--dx), var(--dy), 0) perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.device-mock.is-tilting { transition: transform .12s linear, box-shadow .5s var(--ease-soft); }
/* Draggable on desktop — grab the chat mockup and park it anywhere on
   its side of the hero. Dragging skips the transition entirely so the
   card tracks the pointer 1:1 instead of trailing behind it. */
.device-mock.is-draggable { cursor: grab; touch-action: none; }
.device-mock.is-dragging { cursor: grabbing; transition: none; box-shadow: 0 50px 110px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(185, 196, 214, 0.1); }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual:has(.device-mock.is-dragging) { animation-play-state: paused; }
}
.device-mock-head {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.device-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mute-2); }
.device-mock-title {
  margin-left: 0.5rem;
  font-size: 0.68rem;
  color: var(--mute);
  letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.device-mock-body {
  padding: 1.2rem 1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  min-height: 280px;
}
.chat-bubble {
  max-width: 82%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft);
}
.chat-bubble.is-shown { opacity: 1; transform: none; }
.chat-in {
  align-self: flex-start;
  background: var(--surface-3);
  color: var(--ink-soft);
  border-bottom-left-radius: 4px;
}
.chat-out {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #2451dd);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.device-mock-typing {
  align-self: flex-start;
  margin: 0 1rem 1rem;
  display: flex; gap: 4px;
  opacity: 0;
  transition: opacity .3s;
}
.device-mock-typing.is-active { opacity: 1; }
.device-mock-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mute);
  animation: typingBounce 1s ease-in-out infinite;
}
.device-mock-typing span:nth-child(2) { animation-delay: .15s; }
.device-mock-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* =============================================================
   7. Sectors marquee
   ============================================================= */
.sectors-strip {
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  background: var(--bg-2);
}
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track {
  display: inline-flex; gap: 0.9rem; white-space: nowrap; will-change: transform;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--mute);
  animation: marqueeScroll 32s linear infinite;
}
.marquee-track .dot { color: var(--accent-2); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   8. Manifesto
   ============================================================= */
.manifesto { position: relative; overflow: clip; isolation: isolate; padding-block: clamp(4rem, 9vw, 7rem); }
.manifesto-network { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0.55; }
.manifesto::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 7, 13, 0.25) 45%, var(--bg) 100%);
}
.manifesto-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 960px) {
  .manifesto-grid { grid-template-columns: 0.8fr 2fr; gap: 3rem; align-items: start; }
}

.manifesto-label {
  display: flex; flex-direction: row; align-items: center; gap: 1rem;
  color: var(--accent-2);
}
@media (min-width: 960px) {
  .manifesto-label {
    flex-direction: column; align-items: flex-start; gap: 1.5rem;
    position: sticky; top: 7rem;
  }
}
.manifesto-label .section-kicker { margin-bottom: 0; max-width: 22ch; }
.manifesto-mark {
  font-size: 3.5rem;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  line-height: 1;
  order: -1;
}
@media (min-width: 960px) { .manifesto-mark { order: 0; font-size: 5rem; } }

.manifesto-body { max-width: 46rem; }

.manifesto-line {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin-bottom: 0.9rem;
}
.manifesto-line-lg { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.manifesto-line-md {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: normal;
  line-height: 1.55;
  margin-bottom: 1.6rem;
}
.manifesto-mute { color: var(--mute); }
.manifesto-accent {
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent-2) 55%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.manifesto-support {
  margin-top: 1.6rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
}

.manifesto-tags {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 1.8rem;
}
.manifesto-tags li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  border: 1px solid rgba(82, 212, 255, 0.3);
  background: rgba(82, 212, 255, 0.06);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}

/* =============================================================
   9. Services — pinned "focus stage" on desktop: one service owns
   the full screen at a time, crossfading into the next against an
   animated canvas energy field, with its number rendered huge and
   ghosted behind the copy. A plain, fully-readable stacked list
   everywhere else (mobile, reduced-motion, no-JS) — the pinned
   choreography is JS-gated progressive enhancement on top of it,
   never a requirement to read the content.
   ============================================================= */
.services-scroll { padding-block: clamp(3rem, 8vw, 6rem) 0; }
.services-scroll .container { padding-bottom: 1rem; }

.services-stage {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2rem, 6vw, 4rem);
}

.services-field { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0; }
.services-scroll.is-pinned-mode .services-field { opacity: 1; }

.services-rail { display: none; }

.services-focus { position: relative; z-index: 1; }

.service-panel { position: relative; padding-block: 2.5rem; }
.service-panel + .service-panel { border-top: 1px solid var(--line); }

.service-panel-ghost {
  position: absolute; top: 50%; right: 0; z-index: 0;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(6rem, 22vw, 11rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(111, 211, 255, 0.16);
  pointer-events: none; user-select: none;
}

.service-panel-content { position: relative; z-index: 1; max-width: 46ch; }
.service-panel-icon {
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--accent-2);
  filter: drop-shadow(0 0 14px rgba(82, 212, 255, 0.45));
}
.service-panel-icon svg {
  width: 40px; height: 40px;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-panel-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.9rem;
}
.service-panel-desc { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin-bottom: 1.2rem; }
.service-panel-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.service-panel-tags li {
  font-size: 0.76rem; font-family: var(--font-mono); color: var(--mute);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.3rem 0.75rem;
}

.services-rail-num { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.7; }

@media (min-width: 960px) {
  /* Focus-stage mode — only ever applied once initServicesScroll() confirms
     GSAP + ScrollTrigger are ready and reduced-motion isn't requested.
     Panels stack absolutely and crossfade; the first stays the resting
     state until JS takes over, so a slow connection just shows service 01
     centered and readable rather than a layout jump. */
  .services-scroll.is-pinned-mode .services-stage { min-height: 100svh; }
  .services-scroll.is-pinned-mode .services-rail {
    display: flex; flex-direction: column; gap: 2rem;
    position: absolute; left: clamp(2rem, 5vw, 4rem); top: 50%; transform: translateY(-50%); z-index: 2;
  }
  .services-scroll.is-pinned-mode .services-rail-step {
    display: flex; align-items: center; gap: 0.8rem;
    font-family: var(--font-display); font-weight: 600;
    font-size: 0.9rem; letter-spacing: 0.01em;
    color: var(--mute); opacity: 0.4;
    transition: opacity .5s var(--ease-soft), color .5s var(--ease-soft);
  }
  .services-scroll.is-pinned-mode .services-rail-step::before {
    content: ""; width: 18px; height: 1px; background: currentColor;
    transition: width .5s var(--ease-soft), background-color .5s var(--ease-soft);
  }
  .services-scroll.is-pinned-mode .services-rail-step.is-active { color: var(--ink); opacity: 1; }
  .services-scroll.is-pinned-mode .services-rail-step.is-active::before { width: 34px; background: var(--accent-2); }
  .services-scroll.is-pinned-mode .services-rail-step.is-active .services-rail-num { color: var(--accent-2); opacity: 1; }

  .services-scroll.is-pinned-mode .services-focus { position: absolute; inset: 0; }
  .services-scroll.is-pinned-mode .service-panel {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 0 2rem 0 clamp(6rem, 9vw, 8rem); border: none; opacity: 0; pointer-events: none;
    box-sizing: border-box;
  }
  .services-scroll.is-pinned-mode .service-panel + .service-panel { border-top: none; }
  .services-scroll.is-pinned-mode .service-panel.is-active { opacity: 1; pointer-events: auto; }
  .services-scroll.is-pinned-mode .service-panel-inner {
    position: relative; display: flex; align-items: center;
    max-width: 62rem;
  }
  .services-scroll.is-pinned-mode .service-panel-ghost {
    position: absolute; top: 50%; left: 100%; right: auto;
    transform: translate(-32%, -50%);
    font-size: clamp(11rem, 17vw, 17rem);
    -webkit-text-stroke: 1.5px rgba(111, 211, 255, 0.22);
    background: linear-gradient(200deg, rgba(111, 211, 255, 0.1), transparent 65%);
    -webkit-background-clip: text; background-clip: text;
  }
  .services-scroll.is-pinned-mode .service-panel-content {
    max-width: 34rem;
    padding: 3rem 3.2rem;
    border-radius: 28px;
    background: rgba(14, 20, 38, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 60px 130px -40px rgba(0, 0, 0, 0.8);
  }
  .services-scroll.is-pinned-mode .service-panel-content::before {
    content: "";
    position: absolute; top: 0; left: 3.2rem; right: 3.2rem; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(82, 212, 255, 0.55), transparent);
  }
  .services-scroll.is-pinned-mode .service-panel-icon { margin-bottom: 1.6rem; }
  .services-scroll.is-pinned-mode .service-panel-icon svg { width: 52px; height: 52px; }
  .services-scroll.is-pinned-mode .service-panel-name { font-size: clamp(2rem, 3.4vw, 2.6rem); }
  .services-scroll.is-pinned-mode .service-panel-desc { font-size: 1.05rem; }
}

/* =============================================================
   10. Packages
   ============================================================= */
.packages { position: relative; overflow: clip; isolation: isolate; padding-block: clamp(4rem, 9vw, 7rem); }
.packages-network { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.45; }
.packages-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .packages-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}
.package-card {
  --rx: 0deg; --ry: 0deg; --lift: 0px; --scl: 1;
  position: relative;
  isolation: isolate;
  padding: 2.2rem 1.9rem 2.4rem;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  /* No backdrop-filter here on purpose: with --hx/--hy repainting every
     mousemove frame for the hover glow, a blurred backdrop layer had to
     recomposite constantly and was the single biggest contributor to
     input lag (measured ~58ms frame spikes vs. ~25ms without it). A
     near-opaque gradient gives the same "premium card" read for free. */
  background: linear-gradient(165deg, rgba(18, 26, 48, 0.9), rgba(5, 7, 15, 0.9));
  box-shadow: 0 24px 60px -36px rgba(43, 120, 255, 0.3);
  display: flex; flex-direction: column;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)) scale(var(--scl));
  transition: transform .4s var(--ease-soft), border-color .4s, box-shadow .4s var(--ease-soft);
}
.package-card.is-tilting { transition: transform .12s linear, border-color .4s; }
.package-card:hover { box-shadow: 0 30px 74px -30px rgba(43, 120, 255, 0.42); }
.package-card::before, .testimonial-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(280px circle at var(--hx, 50%) var(--hy, 50%), rgba(82, 212, 255, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.package-card:hover::before, .testimonial-card:hover::before { opacity: 1; }
.package-card:hover { --lift: -6px; border-color: var(--accent-2); }
.package-card.is-featured {
  border-color: var(--accent);
  background: linear-gradient(165deg, rgba(24, 34, 72, 0.92), rgba(12, 17, 34, 0.92));
  box-shadow: 0 30px 70px -24px rgba(43, 120, 255, 0.45);
}
.package-card.is-featured:hover { box-shadow: 0 36px 84px -22px rgba(43, 120, 255, 0.6); }
@media (min-width: 960px) { .package-card.is-featured { --scl: 1.04; } }
.package-badge {
  position: absolute; top: -0.8rem; left: 1.9rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.package-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.package-desc { color: var(--mute); font-size: 0.94rem; margin-bottom: 1.6rem; }
.package-price { margin-bottom: 1.7rem; display: flex; align-items: baseline; gap: 0.35rem; }
.price-value { font-size: 1.7rem; font-weight: 600; color: var(--accent-2); letter-spacing: -0.01em; }
.price-period { font-size: 0.85rem; color: var(--mute); }
.package-features { flex: 1; margin-bottom: 2rem; }
.package-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.package-features li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 1px; background: var(--accent-2);
}
.packages-note {
  margin-top: 2.2rem;
  color: var(--mute);
  font-size: 0.88rem;
  text-align: center;
}

/* =============================================================
   12. Testimonials
   ============================================================= */
.testimonials { padding-block: clamp(4rem, 9vw, 7rem); background: var(--bg-2); border-block: 1px solid var(--line); }
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative;
  isolation: isolate;
  padding: 1.9rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  /* No backdrop-filter — same input-lag tradeoff as .package-card. */
  background: rgba(13, 18, 34, 0.9);
  display: flex; flex-direction: column; gap: 1.1rem;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform .4s var(--ease-soft), border-color .4s, box-shadow .4s var(--ease-soft);
}
.testimonial-card.is-tilting { transition: transform .12s linear, border-color .4s; }
.testimonial-card:hover {
  --lift: -4px;
  border-color: rgba(82, 212, 255, 0.35);
  box-shadow: 0 26px 56px -30px rgba(82, 212, 255, 0.35);
}

/* Reconcile scroll-reveal with the 3D tilt: both target `transform` on the
   same card, so reveal keeps the opacity fade while the tilt owns the
   transform (higher specificity than the generic [data-reveal] rules). */
.js .package-card[data-reveal],
.js .package-card[data-reveal].is-revealed,
.js .testimonial-card[data-reveal],
.js .testimonial-card[data-reveal].is-revealed {
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)) scale(var(--scl, 1));
  transition: transform .4s var(--ease-soft), opacity .8s var(--ease-soft), border-color .4s;
}
.js .package-card[data-reveal].is-tilting,
.js .testimonial-card[data-reveal].is-tilting {
  transition: transform .12s linear, opacity .8s var(--ease-soft), border-color .4s;
}
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent-2), var(--silver));
}
.testimonial-card blockquote {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.testimonial-card figcaption { display: flex; flex-direction: column; font-size: 0.85rem; }
.testimonial-card figcaption strong { color: var(--ink); }
.testimonial-card figcaption span { color: var(--mute); }
.testimonials-disclaimer {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  color: var(--mute-2);
  text-align: center;
}

/* =============================================================
   13. Contact
   ============================================================= */
.contact { position: relative; overflow: clip; isolation: isolate; padding-block: clamp(4rem, 9vw, 7rem); }
.contact-network { position: absolute; inset: 0; z-index: -1; opacity: 0.5; width: 100%; height: 100%; }
.contact-grid {
  display: grid; gap: 3rem;
  position: relative;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }

.contact-title { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-bottom: 0.9rem; }
.contact-sub { color: var(--ink-soft); max-width: 42ch; margin-bottom: 1.8rem; }

.contact-channels { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2.2rem; }
.contact-channel {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--accent-2);
  width: fit-content;
  position: relative;
  padding-bottom: 2px;
}
.contact-channel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.contact-channel:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-channel-soon { color: var(--mute); pointer-events: none; }

.contact-founder { display: flex; align-items: center; gap: 1.1rem; }
.contact-founder p { color: var(--mute); font-size: 0.88rem; max-width: 28ch; }

.contact-founder-photo {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 3px rgba(43, 120, 255, 0.15);
}

.contact-form-wrap { position: relative; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, var(--surface), var(--bg));
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft);
}
.contact-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.field-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}
.field { position: relative; grid-column: span 2; }
.field:nth-child(1), .field:nth-child(3) { grid-column: span 1; }
@media (max-width: 539px) { .field { grid-column: span 2 !important; } }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 1.35rem 1rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 90px; padding-top: 1.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-2); outline: none; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--mute); font-size: 0.92rem;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.42rem; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.field-select select { padding-top: 0.9rem; color: var(--ink-soft); }
.field-select select:invalid { color: var(--mute); }
/* The dropdown popup is browser-chrome, not styleable via the select's own
   (semi-transparent) background — without this it renders on the OS default
   white, with our light dark-mode text color on top, unreadable. */
.field-select select option {
  background-color: var(--surface);
  color: var(--ink);
}
.field-textarea { grid-column: span 2; }

/* Secret-gem reward badge — collapsed and invisible to assistive tech until
   the Easter egg activates it (see initSecretGem in main.js). */
.field-gem {
  grid-column: span 2;
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height .4s var(--ease-soft), opacity .3s var(--ease-soft);
}
.field-gem.is-visible { max-height: 72px; opacity: 1; }
.gem-badge-check {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(82, 212, 255, 0.1);
  border: 1px solid rgba(82, 212, 255, 0.35);
  font-size: 0.82rem; color: var(--accent-2);
  cursor: pointer;
}
.gem-badge-check input { width: 16px; height: 16px; accent-color: var(--accent-2); }

.contact-form.is-gem-highlight {
  animation: gemFormHighlight 2.2s var(--ease-soft);
}
@keyframes gemFormHighlight {
  0%, 100% { box-shadow: none; }
  30%      { box-shadow: 0 0 0 3px rgba(82, 212, 255, 0.4), 0 30px 70px -30px rgba(43, 120, 255, 0.6); }
}

.cta-submit {
  grid-column: span 2;
  position: relative;
  margin-top: 0.4rem;
}
.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none;
}
.contact-form.is-sending .cta-form-label { opacity: 0; }
.contact-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cta-success {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -40%);
  width: 100%; max-width: 420px;
  text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .8s var(--ease-out) .2s, transform .9s var(--ease-soft) .2s;
}
.cta-success.is-visible { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.cta-success h3 { font-size: 1.6rem; margin-bottom: 0.6rem; color: var(--accent-2); }
.cta-success p { color: var(--ink-soft); }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { padding-block: 2.6rem; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.footer-brand {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.footer-brand-mark {
  width: 22px; height: 22px; flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(111, 211, 255, 0.3));
}
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: var(--mute); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--accent-2); }
.footer-legal { color: var(--mute-2); font-size: 0.8rem; width: 100%; }
.footer-legal a { color: var(--mute-2); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--accent-2); }
@media (min-width: 720px) { .footer-legal { width: auto; } }

/* =============================================================
   15. AI Chat widget — live showcase of the WhatsApp receptionist
   ============================================================= */
.ai-chat { position: fixed; right: clamp(1rem, 4vw, 1.75rem); bottom: clamp(1rem, 4vw, 1.75rem); z-index: 200; }

.ai-chat-toggle {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.3rem 0.9rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #2451dd);
  color: #fff;
  box-shadow: 0 16px 40px -12px rgba(43, 120, 255, 0.65);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft);
}
.ai-chat-toggle:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -12px rgba(43, 120, 255, 0.8); }
.ai-chat.is-open .ai-chat-toggle { transform: scale(0); width: 0; height: 0; padding: 0; opacity: 0; pointer-events: none; position: absolute; }

.ai-chat-toggle-icon {
  position: relative; width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}
.ai-chat-toggle-icon img { width: 100%; height: 100%; object-fit: cover; }
.ai-chat-toggle-label { font-size: 0.88rem; font-weight: 600; white-space: nowrap; }

.ai-chat-panel {
  position: absolute; right: 0; bottom: 0;
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 6rem));
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, var(--surface-2), var(--bg));
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.65);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.85) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease-soft), opacity .35s var(--ease-out);
}
.ai-chat.is-open .ai-chat-panel { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

.ai-chat-head {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.ai-chat-head > div { flex: 1; }
.ai-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(43, 120, 255, 0.25);
}
.ai-chat-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.ai-chat-title .mono { color: var(--mute); font-weight: 400; font-size: 0.85em; }
.ai-chat-subtitle { color: var(--accent-2); font-size: 0.68rem; letter-spacing: 0.04em; margin-top: 0.25rem; }
.ai-chat-close {
  position: relative; width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--line-strong);
}
.ai-chat-close span {
  position: absolute; top: 50%; left: 50%; width: 11px; height: 1px; background: var(--ink-soft);
}
.ai-chat-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.ai-chat-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.ai-chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1.1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.ai-chat-messages .chat-bubble { opacity: 1; transform: none; max-width: 88%; }
.ai-chat-messages .chat-bubble.is-error { background: var(--surface-3); color: var(--mute); }

.ai-chat-typing {
  display: none;
  align-items: center; gap: 4px;
  padding: 0 1.1rem 0.6rem;
}
.ai-chat-typing.is-active { display: flex; }
.ai-chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mute);
  animation: typingBounce 1s ease-in-out infinite;
}
.ai-chat-typing span:nth-child(2) { animation-delay: .15s; }
.ai-chat-typing span:nth-child(3) { animation-delay: .3s; }

.ai-chat-form {
  display: flex; gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
}
.ai-chat-form input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font-size: 0.88rem;
}
.ai-chat-form input:focus { outline: none; border-color: var(--accent-2); }
.ai-chat-send {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  transition: transform .3s var(--ease-soft);
}
.ai-chat-send:hover { transform: scale(1.06); }
.ai-chat-send svg { width: 16px; height: 16px; fill: #fff; }
.ai-chat-form.is-disabled { opacity: 0.6; pointer-events: none; }

.ai-chat-disclaimer {
  padding: 0 1.1rem 0.9rem;
  font-size: 0.68rem;
  color: var(--mute-2);
  text-align: center;
}
.ai-chat-disclaimer a { color: var(--accent-2); }

@media (max-width: 899px) {
  .ai-chat-toggle-label { display: none; }
  .ai-chat-toggle { padding: 0.9rem; }
}

/* =============================================================
   16. Blog — listing + article pages
   ============================================================= */
.page-header {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding-block: calc(76px + 3.5rem) 3rem;
  border-bottom: 1px solid var(--line);
}
.page-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle 520px at 15% 0%, rgba(43, 120, 255, 0.28) 0%, transparent 60%),
    radial-gradient(circle 480px at 85% 40%, rgba(82, 212, 255, 0.16) 0%, transparent 60%),
    var(--bg);
}
.page-header-title { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20ch; }
.page-header-sub { margin-top: 1rem; color: var(--ink-soft); max-width: 52ch; font-size: 1.05rem; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mute);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--accent-2); }
.breadcrumb span { color: var(--mute-2); }

.blog-section { padding-block: clamp(3rem, 7vw, 5rem); }
.blog-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: flex; flex-direction: column;
  padding: 1.8rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface), var(--bg));
  transition: transform .45s var(--ease-soft), border-color .4s;
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(82, 212, 255, 0.35); }
.blog-card-meta {
  display: flex; gap: 0.6rem; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-card-meta .dot { color: var(--mute-2); }
.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  line-height: 1.25;
}
.blog-card-excerpt { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.55; flex: 1; }
.blog-card-link {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.blog-card-link::after { content: "→"; transition: transform .3s var(--ease-soft); }
.blog-card:hover .blog-card-link::after { transform: translateX(4px); }

/* Article page */
.article { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem); }
.article-container { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mute);
  margin-bottom: 1.4rem;
}
.article-meta .dot { color: var(--mute-2); }
.article-title {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  max-width: 22ch;
  margin-bottom: 1.6rem;
}
.article-body { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.article-body p { margin-bottom: 1.4rem; }
.article-body h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  color: var(--ink);
  margin: 2.4rem 0 1.1rem;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.8rem 0 0.9rem;
}
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.3rem; }
.article-body li { margin-bottom: 0.6rem; }
.article-body li::marker { color: var(--accent-2); }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  border-left: 2px solid var(--accent-2);
  padding-left: 1.2rem;
  margin: 1.8rem 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-style: normal;
}

.article-cta {
  margin-top: 2.8rem;
  padding: 1.8rem;
  border-radius: 18px;
  border: 1px solid rgba(82, 212, 255, 0.25);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.article-cta p { color: var(--ink-soft); font-size: 0.98rem; max-width: 34ch; }
.article-cta strong { color: var(--ink); display: block; margin-bottom: 0.3rem; font-size: 1.05rem; }

.article-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.article-back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-2);
  position: relative;
  padding-bottom: 2px;
}
.article-back-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.article-back-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* =============================================================
   17. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll-cue span { animation: none; }
  .device-mock-typing span { animation: none; }
  /* Show scroll-revealed content immediately — no translate/fade for users
     who asked for less motion (JS also skips the split-text stagger). */
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
