:root {
  --bg: #05070f;
  --bg-soft: #080c17;
  --card: #0e1526;
  --line: rgba(148, 163, 208, 0.14);
  --line-strong: rgba(148, 163, 208, 0.26);
  --ink: #e9eefb;
  --ink-soft: #aab6cf;
  --muted: #7d8aa8;
  --cyan: #4fd8f5;
  --cyan-soft: rgba(79, 216, 245, 0.14);
  --violet: #8b7bf7;
  --violet-soft: rgba(139, 123, 247, 0.16);
  --accent-grad: linear-gradient(100deg, #4fd8f5 0%, #8b7bf7 100%);
  --success: #34d399;
  --danger: #fb7185;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-3d: 0 30px 70px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 46px rgba(79, 216, 245, 0.18);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-height: 74px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 0.55em;
  color: var(--ink);
  letter-spacing: -0.022em;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.15rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  font-weight: 700;
}

h3 {
  font-size: 1.14rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #04121a;
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: var(--font-head);
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 0;
}

.btn-primary {
  position: relative;
  background: var(--accent-grad);
  color: #050b14;
  box-shadow: 0 8px 30px rgba(79, 216, 245, 0.3);
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.55) 50%, transparent 75%);
  transform: translateX(-120%);
  animation: sheen 4.5s ease-in-out infinite;
}

@keyframes sheen {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

.btn-primary:hover {
  box-shadow: 0 16px 46px rgba(79, 216, 245, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(79, 216, 245, 0.07);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(79, 216, 245, 0.5);
}

.btn-outline:hover {
  background: var(--cyan-soft);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

.text-link {
  font-weight: 600;
  display: inline-block;
  margin-top: 0.4rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(5, 7, 15, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 7, 15, 0.9);
  border-bottom-color: var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79, 216, 245, 0.16), rgba(139, 123, 247, 0.16));
  border: 1px solid var(--line);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-n-base { stroke: var(--ink); stroke-width: 3.4; }
.brand-n-accent { stroke: var(--cyan); stroke-width: 2.2; }
.brand-n-node { fill: var(--cyan); stroke: none; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.brand-name strong {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.brand-word { font-weight: 600; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.main-nav > a:not(.btn) {
  position: relative;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.main-nav > a:not(.btn):hover {
  color: var(--ink);
}

.main-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.hero {
  position: relative;
  padding: calc(var(--header-height) + 5rem) 0 6rem;
  overflow: hidden;
  min-height: min(100vh, 880px);
  display: flex;
  align-items: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-one {
  width: 540px;
  height: 540px;
  top: -120px;
  right: 2%;
  background: rgba(139, 123, 247, 0.24);
}

.hero-glow-two {
  width: 440px;
  height: 440px;
  bottom: -180px;
  left: -120px;
  background: rgba(79, 216, 245, 0.15);
}

.hero-glow-contact {
  width: 500px;
  height: 500px;
  top: -160px;
  right: -120px;
  background: rgba(79, 216, 245, 0.09);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(79, 216, 245, 0.08);
  border: 1px solid rgba(79, 216, 245, 0.22);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 10px rgba(79, 216, 245, 0.9);
}

.hero h1 {
  text-shadow: 0 4px 40px rgba(5, 7, 15, 0.85);
}

/* Rotating phrase inside the H1 */
.rotator {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* room for descenders without shifting the line box */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.rotator-item {
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.42s var(--ease-out), opacity 0.42s var(--ease-out);
}

.rotator-item.out {
  transform: translateY(-0.95em);
  opacity: 0;
}

.rotator-item.in {
  transform: translateY(0.95em);
  opacity: 0;
  transition: none;
}

/* Word-by-word heading reveal */
.js .split .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(8px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), filter 0.75s var(--ease-out);
  transition-delay: calc(var(--w, 0) * 55ms);
}

.js .split.visible .word {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Hero copy staggered entrance */
.js .hero-step {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.25s + var(--d, 0) * 0.12s);
}

@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

.hero-lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.hero-proof div { display: flex; flex-direction: column; }

.hero-proof strong {
  font-family: var(--font-head);
  font-size: 1.28rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-proof span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.orb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(11, 17, 32, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.05rem;
  box-shadow: var(--shadow-3d);
  opacity: 0;
  animation: cardIn 0.8s var(--ease-out) forwards, float 7s ease-in-out infinite 1.2s;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.floating-card small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.floating-card strong {
  font-size: 0.92rem;
  font-family: var(--font-head);
}

.floating-icon { font-size: 1.25rem; }

.floating-card.compact {
  padding: 0.6rem 0.85rem;
  gap: 0.55rem;
}

.floating-card.compact strong { font-size: 0.84rem; }
.floating-card.compact .floating-icon { font-size: 1.05rem; }

/* A descending diagonal along the left edge of the sphere */
.floating-one   { top: 1%;  left: -13%; animation-delay: 0.65s, 1.1s; }
.floating-two   { top: 30%; left: -17%; animation-delay: 0.85s, 3.0s; }
.floating-three { top: 59%; left: -3%;  animation-delay: 1.05s, 4.6s; }
.floating-four  { bottom: 1%; left: 15%; animation-delay: 1.25s, 6.1s; }

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}

/* --px/--py come from the hero pointer parallax, scaled by each card's --depth */
@keyframes float {
  0%, 100% { transform: translate(var(--px, 0px), var(--py, 0px)); }
  50% { transform: translate(var(--px, 0px), calc(var(--py, 0px) - 14px)); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}

.scroll-hint span {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scrolldot 1.9s ease-in-out infinite;
}

@keyframes scrolldot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.25; }
}

/* ---------- Pain band (marquee) ---------- */

.pain-band {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 2.6rem 0 2.8rem;
  overflow: hidden;
}

.pain-lead {
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1rem, 1.9vw, 1.22rem);
  margin-bottom: 1.7rem;
}

.marquee {
  display: grid;
  gap: 0.8rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-row {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee-row.reverse {
  animation-direction: reverse;
  animation-duration: 54s;
}

.marquee:hover .marquee-row {
  animation-play-state: paused;
}

.marquee-track {
  display: flex;
  gap: 0.8rem;
  padding-right: 0.8rem;
}

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

.marquee-track span {
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: border-color 0.25s ease, color 0.25s ease;
}

.marquee-track span:hover {
  border-color: rgba(79, 216, 245, 0.45);
  color: var(--ink);
}

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

.section { padding: 6rem 0; }

.section-panel {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.section-heading p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.section-cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  background: linear-gradient(120deg, rgba(79, 216, 245, 0.07), rgba(139, 123, 247, 0.09));
}

.section-cta p { margin: 0; color: var(--ink-soft); }
.section-cta strong { color: var(--ink); }

/* ---------- 3D tilt ---------- */

[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
}

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 216, 245, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
  border-color: rgba(79, 216, 245, 0.45);
  box-shadow: var(--shadow-3d), var(--shadow-glow);
}

.service-card.featured {
  border-color: rgba(79, 216, 245, 0.42);
  background: linear-gradient(165deg, rgba(79, 216, 245, 0.08), var(--card) 58%);
}

.service-card > * {
  position: relative;
  transform: translateZ(28px);
}

.service-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-soft), var(--violet-soft));
  border: 1px solid var(--line);
  margin-bottom: 1.2rem;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover .service-icon {
  transform: translateZ(45px) scale(1.08);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.service-card > a {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  align-self: flex-start;
}

.service-card > a span { transition: transform 0.2s ease; }
.service-card > a:hover span { transform: translateX(4px); }

.service-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.service-extra > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.service-extra a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.service-extra a:hover {
  border-color: rgba(79, 216, 245, 0.45);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- Compare ---------- */

.compare {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
}

.compare-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 1.8rem;
}

.compare-switch button {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  padding: 0.7rem 1rem;
  font: inherit;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.compare-switch button.active { color: #050b14; }

.compare-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--accent-grad);
  transition: transform 0.4s var(--ease-out);
}

.compare-switch.right .compare-thumb { transform: translateX(100%); }

.compare-panel[hidden] { display: none; }

.compare-steps {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.compare-steps li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink-soft);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-14px);
  animation: stepIn 0.5s var(--ease-out) forwards;
}

.compare-steps li:nth-child(1) { animation-delay: 0.02s; }
.compare-steps li:nth-child(2) { animation-delay: 0.09s; }
.compare-steps li:nth-child(3) { animation-delay: 0.16s; }
.compare-steps li:nth-child(4) { animation-delay: 0.23s; }
.compare-steps li:nth-child(5) { animation-delay: 0.3s; }

@keyframes stepIn {
  to { opacity: 1; transform: none; }
}

.compare-steps i {
  font-style: normal;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-head);
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.3);
  color: var(--danger);
}

.compare-steps.positive i {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--success);
}

.compare-result {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.compare-result div { display: flex; flex-direction: column; }

.compare-result small {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.compare-result strong {
  font-family: var(--font-head);
  font-size: 1.45rem;
}

.compare-result.negative strong { color: var(--danger); }
.compare-result.positive strong { color: var(--success); }

/* ---------- Process ---------- */

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

/* connecting line that draws itself when the section appears */
.process-grid::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(79, 216, 245, 0.55), rgba(139, 123, 247, 0.55));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease-out) 0.25s;
}

.process-grid.visible::before { transform: scaleX(1); }

.process-card {
  position: relative;
  padding: 0 0.6rem;
}

.process-num {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  margin-bottom: 1.2rem;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
}

.section-panel .process-num { background: var(--bg-soft); }

.process-card:hover .process-num {
  transform: translateY(-5px) scale(1.06);
  border-color: var(--cyan);
  box-shadow: 0 0 26px rgba(79, 216, 245, 0.35);
}

.process-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Software ---------- */

.software-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3.5rem;
  align-items: center;
}

.software-intro p {
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.software-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.software-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.software-list li:hover {
  border-color: rgba(79, 216, 245, 0.45);
  box-shadow: var(--shadow-md);
}

.software-list span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(79, 216, 245, 0.28);
  border-radius: 7px;
  padding: 0.28rem 0.5rem;
  min-width: 42px;
  text-align: center;
  flex-shrink: 0;
  transform: translateZ(22px);
}

.software-list div { transform: translateZ(14px); }

.software-list strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 600;
}

.software-list small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

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

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3.5rem;
  align-items: center;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.about-copy strong { color: var(--ink); }

.about-stack {
  font-size: 0.94rem !important;
  color: var(--muted) !important;
  border-left: 2px solid var(--line-strong);
  padding-left: 1rem;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  margin-top: 1.8rem;
}

.about-stats div { display: flex; flex-direction: column; }

.about-stats strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.about-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

.about-panel-inner {
  position: relative;
  background: linear-gradient(150deg, rgba(79, 216, 245, 0.1), rgba(139, 123, 247, 0.12));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow-3d);
}

.about-panel-inner > * { transform: translateZ(30px); }

.about-pin {
  font-size: 2rem;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 0.7rem;
}

.about-panel-inner p { color: var(--ink-soft); }

.about-panel-inner ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.about-panel-inner li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.about-panel-inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-grad);
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
}

.faq-intro p { color: var(--ink-soft); }

.faq-list { display: grid; gap: 0.7rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.faq-item:hover { transform: translateX(4px); }
.faq-item.open { border-color: rgba(79, 216, 245, 0.4); }

.faq-item > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  padding: 1.05rem 1.3rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-item i {
  font-style: normal;
  font-size: 1.3rem;
  color: var(--cyan);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.faq-item.open i { transform: rotate(135deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.faq-answer > p {
  overflow: hidden;
  margin: 0;
  padding: 0 1.3rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  transition: padding 0.35s ease;
}

.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer > p { padding: 0 1.3rem 1.2rem; }

/* ---------- Contact ---------- */

.contact-section {
  position: relative;
  padding: 6rem 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.contact-copy p {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.contact-details > * {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
  transition: transform 0.25s var(--ease-out);
}

.contact-details a:hover { transform: translateX(5px); }

.contact-details span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cyan-soft);
  border: 1px solid rgba(79, 216, 245, 0.28);
  color: var(--cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-details small {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-details strong { font-size: 0.99rem; }

a[href^="tel"]:hover strong,
a[href^="mailto"]:hover strong { color: var(--cyan); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 2.1rem 2rem;
  box-shadow: var(--shadow-3d);
  display: grid;
  gap: 1.05rem;
}

.form-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-header span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}

.form-header small { color: var(--muted); font-size: 0.82rem; }

.contact-form label { display: grid; gap: 0.4rem; }

.contact-form label > span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  padding: 0.75rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d8aa8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 216, 245, 0.15);
}

.contact-form input.invalid,
.contact-form textarea.invalid { border-color: var(--danger); }

.contact-form textarea { resize: vertical; min-height: 108px; }

.form-honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check-label {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem !important;
}

.check-label input {
  margin-top: 0.28rem;
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.check-label span {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
}

.check-label.invalid span { color: var(--danger) !important; }

.privacy-details { font-size: 0.78rem; color: var(--muted); }

.privacy-details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.privacy-details p { margin: 0.7rem 0 0; line-height: 1.6; }

.form-status {
  min-height: 1.2em;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.form-status.error { color: var(--danger); }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 23rem;
}

.footer-brand strong { color: var(--ink-soft); }

.footer-col {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-col strong {
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover { color: var(--cyan); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Legal dialog ---------- */

.legal-dialog {
  max-width: 640px;
  width: min(100% - 2rem, 640px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.legal-dialog::backdrop {
  background: rgba(3, 5, 10, 0.75);
  backdrop-filter: blur(4px);
}

.legal-dialog h2 { font-size: 1.4rem; }
.legal-dialog h3 { font-size: 1.02rem; margin-top: 1.3rem; }
.legal-dialog p { color: var(--ink-soft); font-size: 0.94rem; }

.dialog-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(46px) scale(0.965);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* cards inside a staggered grid come in one after another */
.js [data-stagger] > .reveal {
  transform: translateY(52px) scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal,
  .js .hero-step,
  .js .split .word {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }

  .floating-card,
  .pulse-dot,
  .scroll-hint span,
  .btn-primary::after,
  .compare-steps li,
  .marquee-row,
  .chat-panel,
  .chat-msg,
  .chat-launcher-ping {
    animation: none;
    opacity: 1;
  }

  .compare-steps li { transform: none; }
  .process-grid::before { transform: scaleX(1); }
  [data-tilt] { transform: none !important; }
}

/* ---------- Chat assistant ---------- */

.chat-launcher {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.3rem 0.75rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #050b14;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(79, 216, 245, 0.36);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, opacity 0.3s ease;
}

.chat-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(79, 216, 245, 0.5);
}

.chat-launcher[aria-expanded="true"],
.chat-launcher.tucked {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

.chat-launcher-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #050b14;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.chat-launcher-ping {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(5, 7, 15, 0.5);
  animation: pulse 2.4s infinite;
}

.chat-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 71;
  width: min(390px, calc(100vw - 3rem));
  max-height: min(620px, calc(100vh - 3rem));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatIn 0.4s var(--ease-out);
}

.chat-panel[hidden] { display: none; }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(79, 216, 245, 0.1), rgba(139, 123, 247, 0.12));
}

.chat-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #050b14;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chat-heading { flex: 1; min-width: 0; }

.chat-heading strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
}

.chat-heading small {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.chat-heading small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(5, 7, 15, 0.4);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chat-close:hover { border-color: var(--cyan); color: var(--cyan); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
}

.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 3px;
}

.chat-msg {
  max-width: 88%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  animation: msgIn 0.35s var(--ease-out);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.chat-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: var(--ink-soft);
}

.chat-msg.bot strong { color: var(--ink); }

.chat-msg.user {
  align-self: flex-end;
  background: var(--accent-grad);
  color: #050b14;
  border-bottom-right-radius: 5px;
  font-weight: 500;
}

.chat-msg ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
}

.chat-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(79, 216, 245, 0.45);
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-head);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-jump:hover {
  background: rgba(79, 216, 245, 0.22);
  transform: translateX(3px);
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 5px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.3s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.1rem 0.8rem;
}

.chat-suggestions:empty { display: none; }

.chat-suggestions button {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.chat-suggestions button:hover {
  border-color: rgba(79, 216, 245, 0.5);
  color: var(--cyan);
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem 0.5rem;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.65rem 1rem;
}

.chat-form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 216, 245, 0.15);
}

.chat-form button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #050b14;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chat-form button:hover { transform: scale(1.07); }

.chat-note {
  margin: 0;
  padding: 0 1.1rem 0.9rem;
  font-size: 0.71rem;
  color: var(--muted);
  text-align: center;
}

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

@media (max-width: 1020px) {
  .hero {
    min-height: 0;
    padding-bottom: 4.5rem;
  }

  .hero-grid { grid-template-columns: 1fr; }

  /* The sphere is centred inside this block by the canvas, and the two cards
     hug its opposite corners so there is no dead space between them. */
  .hero-visual,
  .orb-stage { min-height: 320px; }

  .floating-card { max-width: min(260px, 72%); }

  .floating-one   { top: 0; left: 0; bottom: auto; right: auto; }
  .floating-two   { display: none; }
  .floating-three { top: auto; bottom: 0; left: auto; right: 0; }
  .floating-four  { display: none; }

  .scroll-hint { display: none; }

  .service-grid,
  .process-grid { grid-template-columns: repeat(2, 1fr); }

  .process-grid::before { display: none; }

  .software-layout,
  .about-grid,
  .faq-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  /* Scroll reveals use transforms on desktop. On touch layouts those
     transforms can paint outside the element's grid row while the next card
     is already visible, which caused the overlaps seen across the site. */
  .js .reveal,
  .js [data-stagger] > .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .split .word {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 7, 15, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

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

  .main-nav > a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }

  .main-nav .btn { margin-top: 1rem; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  /* ---- Phone layout ---- */

  :root { --header-height: 66px; }

  html { scroll-padding-top: 78px; }

  .section { padding: 3.25rem 0; }

  .container { width: min(100% - 1.5rem, var(--container)); }

  .nav-wrap { gap: 0.75rem; }

  .brand { gap: 0.5rem; }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand-name { font-size: 1.12rem; }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: -0.5rem;
  }

  .main-nav {
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding-inline: 0.75rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .main-nav > a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 48px;
  }

  .btn { min-height: 48px; }

  h2 { font-size: clamp(1.62rem, 6.6vw, 2rem); }

  .section-heading { margin-bottom: 2rem; }

  .hero {
    padding: calc(var(--header-height) + 1.7rem) 0 2.75rem;
  }

  .hero-grid { gap: 2rem; }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 0.36rem 0.8rem;
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.75rem);
    overflow-wrap: anywhere;
  }

  .hero-lead {
    font-size: 1.02rem;
    margin-bottom: 1.6rem;
  }

  .hero-actions {
    gap: 0.7rem;
    margin-bottom: 1.9rem;
  }

  .hero-actions .btn { flex: 1 1 100%; }

  /* three stats share one tidy row instead of wrapping awkwardly */
  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    padding-top: 1.1rem;
  }

  .hero-proof div { min-width: 0; }

  .hero-proof strong { font-size: 1.06rem; }

  /* 0.74rem lands at ~11.8px on a phone, too small to skim comfortably */
  .hero-proof span {
    font-size: 0.8rem;
    line-height: 1.32;
    color: var(--ink-soft);
  }

  .hero-visual,
  .orb-stage { min-height: 290px; }

  .floating-card {
    max-width: 74%;
    padding: 0.6rem 0.8rem;
  }

  .floating-card strong { font-size: 0.84rem; }
  .floating-card small { font-size: 0.72rem; letter-spacing: 0.04em; }

  .pain-band { padding: 2rem 0 2.2rem; }
  .pain-lead { margin-bottom: 1.2rem; }
  .marquee-track span { font-size: 0.85rem; padding: 0.45rem 1rem; }

  .service-grid,
  .software-list { grid-template-columns: 1fr; }

  .service-card {
    padding: 1.45rem 1.25rem 1.3rem;
    border-radius: 16px;
  }
  .service-icon { width: 44px; height: 44px; margin-bottom: 0.9rem; }
  .service-card h3 { font-size: 1.08rem; }
  .service-card p { font-size: 0.94rem; }

  .service-extra {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    gap: 0.5rem;
  }

  .service-extra a { font-size: 0.86rem; padding: 0.4rem 0.85rem; }

  /* the steps become a vertical timeline with a real connecting line */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0.4rem;
  }

  .process-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 1rem;
    padding: 0 0 1.6rem 0;
  }

  .process-card:last-child { padding-bottom: 0; }

  .process-card::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 46px;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(180deg, rgba(79, 216, 245, 0.5), rgba(139, 123, 247, 0.12));
  }

  .process-card:last-child::before { display: none; }

  .process-num {
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
    font-size: 0.92rem;
    margin-bottom: 0;
  }

  .process-card h3 { margin: 0.5rem 0 0.3rem; align-self: center; }
  .process-card p { grid-column: 2; }

  .compare { padding: 1.1rem; border-radius: var(--radius); }

  .compare-switch { margin-bottom: 1.4rem; }

  .compare-switch button {
    font-size: 0.82rem;
    padding: 0.62rem 0.4rem;
  }

  .compare-steps li {
    align-items: flex-start;
    font-size: 0.94rem;
    gap: 0.7rem;
  }

  .compare-steps i { margin-top: 0.08rem; }
  .compare-steps i { width: 26px; height: 26px; font-size: 0.78rem; }

  .compare-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .compare-result strong { font-size: 1.22rem; }
  .compare-result small { font-size: 0.79rem; color: var(--ink-soft); }

  .section-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 1.3rem;
    text-align: left;
  }

  .section-cta .btn { width: 100%; }

  .software-layout { gap: 1.8rem; }
  .software-intro .btn { width: 100%; }
  .software-list li { padding: 0.8rem 0.9rem; }

  .software-list li > div { min-width: 0; }

  .software-list strong,
  .software-list small {
    overflow-wrap: anywhere;
  }

  .about-grid { gap: 2.4rem; }

  .about-copy p { font-size: 0.99rem; }

  /* the aside reads as a deliberate note instead of dimmed body text */
  .about-stack {
    font-size: 0.91rem !important;
    border-left: 0;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }

  /* Three cramped columns of tiny grey text became three legible rows:
     the figure keeps its own column so the labels never squeeze. */
  .about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    border-top: 0;
    padding-top: 0;
    margin-top: 1.7rem;
  }

  .about-stats div {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
  }

  .about-stats strong {
    font-size: 1.4rem;
    min-width: 4.2rem;
    line-height: 1.1;
  }

  .about-stats span {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.35;
  }

  .about-panel {
    position: relative;
    z-index: 0;
    margin-top: 0.35rem;
  }

  .about-panel-inner { padding: 1.9rem 1.5rem; border-radius: var(--radius); }
  .about-pin { font-size: 1.7rem; margin-bottom: 0.5rem; }
  .about-panel-inner h3 { font-size: 1.2rem; }
  .about-panel-inner li { font-size: 0.94rem; }

  .faq-item > button { padding: 0.95rem 1.05rem; font-size: 0.96rem; }
  .faq-item > button { min-height: 54px; }
  .faq-answer > p { padding: 0 1.05rem; }
  .faq-item.open .faq-answer > p { padding: 0 1.05rem 1.05rem; }

  .contact-section { padding: 3.25rem 0 4rem; }
  .contact-grid { gap: 2.25rem; }
  .contact-form {
    padding: 1.4rem 1rem;
    border-radius: var(--radius);
  }
  .form-row { grid-template-columns: 1fr; }
  .contact-details span:first-child { width: 38px; height: 38px; }

  .contact-details > * { min-width: 0; }

  .contact-details > * > div { min-width: 0; }

  .contact-details strong {
    display: block;
    overflow-wrap: anywhere;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    padding-bottom: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
  }

  .legal-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: 2.8rem 1.1rem 1.25rem;
  }

  /* The standalone legal and 404 documents share this stylesheet but use a
     smaller set of classes than the homepage. Keep them comfortable on a
     phone without changing their desktop rendering. */
  .legal-page .site-header { position: sticky; }

  .legal-page .nav-wrap img {
    display: block;
    width: min(142px, 42vw);
    height: auto;
  }

  .legal-page .small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .legal-main { padding: 1.5rem 0 3rem; }

  .legal-layout { display: block; }

  .legal-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }

  .legal-nav .kicker { display: none; }

  .legal-nav a {
    flex: 0 0 auto;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.84rem;
  }

  .legal-content,
  .legal-content section,
  .legal-content li { overflow-wrap: anywhere; }

  .legal-content h1 { font-size: clamp(1.8rem, 9vw, 2.35rem); }
  .legal-content h2 { margin-top: 2rem; font-size: 1.3rem; }

  .legal-warning {
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--ink-soft);
  }

  .error-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 2rem 0;
  }

  .error-page-inner { text-align: center; }

  .error-page .brand { justify-content: center; }

  .error-page .brand img {
    width: min(190px, 62vw);
    height: auto;
  }

  .error-code {
    margin: 1.5rem 0 0;
    font-family: var(--font-head);
    font-size: clamp(4.5rem, 26vw, 7rem);
    font-weight: 800;
    line-height: 1;
    color: var(--cyan);
  }

  .error-page h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }

  .error-page-inner > p:not(.error-code) {
    max-width: 34rem;
    margin-inline: auto;
    color: var(--ink-soft);
  }

  .chat-launcher {
    right: 1rem;
    bottom: 1rem;
    padding: 0.7rem 1.1rem 0.7rem 0.8rem;
    font-size: 0.9rem;
  }

  .chat-panel {
    right: 0.6rem;
    left: 0.6rem;
    bottom: 0.6rem;
    width: auto;
    max-height: min(80vh, calc(100vh - 1.2rem));
  }

  .chat-log { padding: 0.9rem; }
  .chat-msg { max-width: 92%; font-size: 0.9rem; }
}

@media (max-width: 380px) {
  .container { width: min(100% - 1.25rem, var(--container)); }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero-proof div {
    display: grid;
    grid-template-columns: minmax(4.2rem, auto) 1fr;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
  }

  .hero-proof strong { font-size: 1rem; }

  .compare-result { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-brand { grid-column: auto; }

  .chat-launcher-label { display: none; }

  .chat-launcher {
    padding: 0.8rem;
    border-radius: 50%;
  }
}

/* ---------- Pruebas: tarjetas + visor de pantallas ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.proof-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.6rem;
  overflow: hidden;
}

.proof-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 123, 247, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.proof-card:hover::before { opacity: 1; }

.proof-card:hover {
  border-color: rgba(139, 123, 247, 0.45);
  box-shadow: var(--shadow-3d);
}

.proof-card > * { position: relative; transform: translateZ(26px); }

.proof-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet-soft), var(--cyan-soft));
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}

.proof-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* el flujo del proceso, en el lenguaje visual de la web */
.proof-flow {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
}

.proof-flow li {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.proof-flow li + li::before {
  content: "→";
  color: var(--cyan);
  margin-right: 0.45rem;
  margin-left: -0.15rem;
}

.proof-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  flex: 1;
}

.proof-open {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cyan);
  cursor: pointer;
}

.proof-open span { transition: transform 0.2s ease; }
.proof-open:hover span { transform: translateX(4px); }

/* ---- Visor ---- */

.proof-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.proof-viewer.open { display: flex; }

.proof-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.28s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.proof-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: chatIn 0.34s var(--ease-out);
}

.proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.proof-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}

.proof-head strong {
  font-family: var(--font-head);
  font-size: 1.18rem;
}

.proof-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.proof-close:hover { border-color: var(--cyan); color: var(--cyan); }

.proof-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.9rem 1.4rem 0;
}

.proof-tabs button {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.proof-tabs button:hover { border-color: var(--line-strong); color: var(--ink); }

.proof-tabs button[aria-selected="true"] {
  background: var(--accent-grad);
  border-color: transparent;
  color: #050b14;
  font-weight: 600;
}

.proof-stage {
  padding: 1.1rem 1.4rem 0.4rem;
  overflow-y: auto;
}

/* El marco de ventana: media entre la web y la captura, para que
   una interfaz con otro lenguaje visual no choque con la página. */
.app-window {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #0f1420;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  background: #10182a;
  border-bottom: 1px solid var(--line);
}

.app-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3550;
}

.app-bar span:first-child { background: #fb7185; }
.app-bar span:nth-child(2) { background: #fbbf24; }
.app-bar span:nth-child(3) { background: #34d399; }

.app-bar small {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.app-shot { display: block; background: #0f1420; }

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.proof-caption {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
}

.proof-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1.4rem 1.2rem;
  border-top: 1px solid var(--line);
  margin-top: 0.8rem;
}

.proof-foot p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.proof-foot strong { color: var(--ink-soft); }

body.viewer-open { overflow: hidden; }

@media (max-width: 1020px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { padding: 1.6rem 1.4rem 1.4rem; }

  .proof-viewer { padding: 0; }

  .proof-dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: 0;
  }

  .proof-head { padding: 0.9rem 1rem 0.8rem; }
  .proof-head strong { font-size: 1.02rem; }
  .proof-tabs { padding: 0.7rem 1rem 0; }
  .proof-tabs button { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
  .proof-stage { padding: 0.9rem 1rem 0.3rem; }

  /* en móvil la captura se mira en horizontal con desplazamiento */
  .app-shot {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-shot img { width: 900px; max-width: none; }

  .proof-caption { font-size: 0.85rem; }

  .proof-foot {
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem 1rem 1.1rem;
  }

  .proof-foot .btn { width: 100%; }
}

/* logo oficial (13/09/2026) */
.brand-logo { display: block; height: 46px; width: auto; }
@media (max-width: 720px) { .brand-logo { height: 38px; } }

/* la cabecera fija tapaba el título (13/09/2026) */
.legal-page .site-header { position: sticky; top: 0; }
