/* =============================================================
   APEX DIGITAL
   Design system: design-system/apex-digital/MASTER.md
   Dark glassmorphism · emerald light · selective 3D
   ============================================================= */

/* ---- Fonts (self-hosted in /fonts: Space Grotesk + DM Sans, SIL Open Font License) ---- */
/* DM Sans, latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans, latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DM Sans, latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans, latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk, latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk, latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk, latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk, latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk, latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk, latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- Color (green is the only accent) ---- */
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --glass: rgba(22, 22, 22, .55);
  --glass-strong: rgba(18, 18, 18, .78);
  --glass-border: rgba(52, 211, 153, .16);
  --glass-border-hover: rgba(52, 211, 153, .45);
  --line: rgba(255, 255, 255, .08);
  --green: #10B981;
  --green-deep: #047857;
  --glow: #34D399;
  --glow-soft: #6EE7B7;
  --on-green: #03140D;
  --text: #FFFFFF;
  --text-body: #B4B8BF;
  --text-muted: #8B9099;
  --danger: #F87171;
  --input-border: #6B7280;

  /* ---- Glow & depth ---- */
  --glow-sm: 0 0 12px rgba(52, 211, 153, .35);
  --glow-md: 0 0 32px rgba(16, 185, 129, .35);
  --glow-lg: 0 0 80px rgba(16, 185, 129, .28);
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, .8);

  /* ---- Type ---- */
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Space (density 4/10) ---- */
  --space-sm: 8px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 56px;
  --space-2xl: 96px;
  --space-3xl: 140px;

  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, .8, .36, 1);
  --dur: 220ms;

  --nav-h: 72px;
  --hero-scroll: 70vh;      /* set from js/3d-settings.js */
}

/* =============================================================
   Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text-body);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--glow); }
h1, h2, h3 { font-family: var(--font-head); color: var(--text); margin: 0 0 .45em; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.4vw, 7.25rem); line-height: .95; font-weight: 700; letter-spacing: -.055em; }
h2 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1; font-weight: 700; }
h3 { font-size: 1.35rem; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: normal; }

.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { --pad: 20px; width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300; padding: 12px 18px; border-radius: 999px;
  background: var(--green); color: var(--on-green); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

.glow-word {
  color: var(--glow);
  text-shadow: 0 0 18px rgba(52, 211, 153, .55), 0 0 60px rgba(16, 185, 129, .45);
}

/* Small uppercase section labels:  01 — SERVICES */
.label {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 500; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--glow);
}
.label-index { color: var(--text-muted); letter-spacing: .08em; }
.label-index::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: .6; }
.lead { font-size: 1.15rem; color: var(--text-body); max-width: 52ch; }

/* =============================================================
   Glass + spotlight
   ============================================================= */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)), var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-card);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.spotlight { overflow: hidden; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(52, 211, 153, .13), transparent 45%);
  transition: opacity var(--dur);
}
@media (hover: hover) {
  .spotlight:hover::before { opacity: 1; }
  .glass.spotlight:hover, .glass.trust-card:hover { border-color: var(--glass-border-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-card), 0 0 40px -12px rgba(16, 185, 129, .45); }
}

.icon-tile {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px; color: var(--glow);
  background: radial-gradient(circle at 50% 0%, rgba(52, 211, 153, .22), rgba(16, 185, 129, .06) 70%);
  border: 1px solid rgba(52, 211, 153, .3);
  box-shadow: inset 0 0 12px rgba(52, 211, 153, .15), var(--glow-sm);
}
.icon-tile .ic { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(52, 211, 153, .6)); }

/* =============================================================
   Buttons (pill)
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur), border-color var(--dur), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn .ic { width: 18px; height: 18px; stroke-width: 2.2; transition: transform var(--dur) var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: var(--on-green); box-shadow: 0 0 0 1px rgba(52, 211, 153, .5) inset, var(--glow-md); }
.btn-primary:hover { background: var(--glow); box-shadow: 0 0 0 1px rgba(110, 231, 183, .7) inset, 0 0 44px rgba(52, 211, 153, .55); }
.btn-outline { background: rgba(16, 185, 129, .04); color: var(--text); border-color: var(--green); }
.btn-outline:hover { background: rgba(16, 185, 129, .14); border-color: var(--glow); box-shadow: var(--glow-sm); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* =============================================================
   Logo
   ============================================================= */
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--text); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; overflow: visible; } /* glow comes from the #logo-glow SVG filter */
.logo-word { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: .14em; white-space: nowrap; }
.logo-word span { font-weight: 500; color: var(--text-body); }

/* =============================================================
   Navigation
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: background-color var(--dur), border-color var(--dur), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.menu-open {
  background: rgba(10, 10, 10, .72); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }

.lang-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 3px; gap: 2px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .06em; cursor: pointer;
}
.lang-toggle span { display: grid; place-items: center; min-width: 38px; height: 36px; padding: 0 10px; border-radius: 999px; color: var(--text-muted); transition: background-color var(--dur), color var(--dur), box-shadow var(--dur); }
html[lang="en"] .lang-toggle [data-lang="en"],
html[lang="es"] .lang-toggle [data-lang="es"] { background: var(--green); color: var(--on-green); box-shadow: var(--glow-sm); }

.menu-toggle { width: 48px; height: 48px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.menu-toggle .bar { width: 24px; height: 2px; border-radius: 2px; background: var(--text); transition: transform var(--dur) var(--ease); }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-links {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  display: flex; flex-direction: column; padding: 8px 20px 28px;
  background: rgba(10, 10, 10, .96); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.nav-links.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-links a:not(.btn) {
  display: flex; align-items: center; min-height: 56px; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav-cta-mobile { margin-top: 20px; }

/* =============================================================
   2. Hero (sticky while the triangle explodes)
   ============================================================= */
.hero-wrap { position: relative; height: calc(100svh + var(--hero-scroll)); }
.hero {
  position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
}
.no-pin .hero-wrap { height: auto; }
.no-pin .hero { position: relative; min-height: 100svh; height: auto; padding: calc(var(--nav-h) + 40px) 0 80px; }

.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 55% at 72% 48%, rgba(16, 185, 129, .20), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(16, 185, 129, .08), transparent 70%),
    var(--bg);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 70% 50%, #000 20%, transparent 75%);
}

.hero-visual {
  position: absolute; z-index: -2; pointer-events: none;
  left: 50%; top: 46%; width: min(150vw, 680px); aspect-ratio: 1; transform: translate(-50%, -50%);
  opacity: .5;
}
.hero-visual::after { /* keeps text readable over the 3D on phones */
  content: ""; position: absolute; inset: -10%;
  background: radial-gradient(closest-side, rgba(10, 10, 10, .15), rgba(10, 10, 10, .55));
}
.hero-canvas, .hero-static { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-canvas { opacity: 0; transition: opacity 900ms var(--ease); }
.has-hero-3d .hero-canvas { opacity: 1; }
.has-hero-3d .hero-static { opacity: 0; transition: opacity 600ms var(--ease); }
.hero-static { padding: 6%; overflow: visible; }
.hs-layer { transform-box: fill-box; transform-origin: center; }
.hs-particles { animation: hs-twinkle 4s ease-in-out infinite alternate; }
@keyframes hs-twinkle { from { opacity: .45; } to { opacity: 1; } }
.motion-ok .hero-static { animation: hs-float 7s ease-in-out infinite; }
@keyframes hs-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.hero-content { position: relative; padding-top: var(--nav-h); }
.hero-label { gap: 10px; letter-spacing: .14em; font-size: .72rem; max-width: 100%; line-height: 1.5; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 12px var(--glow); flex-shrink: 0; }
.hero h1 { max-width: 10.5ch; margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.08rem, 2vw, 1.3rem); color: #C9CDD3; max-width: 34ch; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 32px 0 26px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .95rem; color: var(--text-muted); }
.hero-note .ic { width: 16px; height: 16px; color: var(--glow); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0;
  display: none; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted);
}
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--glow), transparent); }
.motion-ok .scroll-cue i { animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =============================================================
   3. Trust bar
   ============================================================= */
.trust { position: relative; z-index: 2; padding: 24px 0 0; }
/* while the hero is pinned, the trust bar rises over the exploding triangle */
.motion-ok .trust { margin-top: calc(var(--hero-scroll) * -0.45); }
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trust-card { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 18px; }
.trust-card .icon-tile { width: 42px; height: 42px; }
.trust-card strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--text); font-size: .98rem; line-height: 1.25; letter-spacing: -.01em; }
.trust-card span:not(.icon-tile) { display: block; font-size: .85rem; color: var(--text-muted); line-height: 1.35; margin-top: 2px; }

/* =============================================================
   Sections
   ============================================================= */
.section { position: relative; z-index: 1; padding: var(--space-2xl) 0; overflow: hidden; background: var(--bg); }
.section-alt { background: linear-gradient(180deg, var(--bg), var(--surface) 12%, var(--surface) 88%, var(--bg)); }
.section-head { margin-bottom: var(--space-xl); }
.section-head.center { text-align: center; margin-inline: auto; max-width: 820px; }
.section-head.center .lead { margin-inline: auto; }
.section-head.split { display: grid; gap: 20px; align-items: end; }

.ambient { position: absolute; z-index: 0; width: 720px; height: 720px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(16, 185, 129, .12), transparent); }
.ambient-left { left: -360px; top: 10%; }
.ambient-right { right: -360px; top: 20%; }
.ambient-center { left: 50%; top: 30%; transform: translateX(-50%); }
.section > .container { position: relative; z-index: 1; }

/* ---------- Stats (editorial) ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; margin: 0 0 var(--space-xl); padding: 28px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats div { margin: 0; }
.stats dt { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.05em; color: var(--text); }
.stats dd { margin: 8px 0 0; font-size: .95rem; color: var(--text-muted); }

/* ---------- 4. Services ---------- */
.service-grid { display: grid; gap: 16px; }
.service-grid > * { min-width: 0; }
.service-card { padding: 28px 26px 30px; display: flex; flex-direction: column; }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.num { font-family: var(--font-head); font-weight: 500; font-size: .95rem; letter-spacing: .1em; color: var(--text-muted); }
.service-card h3 { margin-bottom: 10px; }
.outcome { font-family: var(--font-head); font-weight: 500; color: var(--glow); font-size: 1.05rem; line-height: 1.4; margin-bottom: 12px; }
.service-card p:last-child { margin: 0; color: var(--text-muted); font-size: .98rem; }
.service-cta {
  border-radius: var(--radius); padding: 28px 26px 30px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(52, 211, 153, .32), transparent 60%), linear-gradient(160deg, #0F2A20, #0C1A15);
  border: 1px solid rgba(52, 211, 153, .45); box-shadow: var(--glow-lg);
}
.service-cta .label { margin-bottom: 26px; }
.service-cta h3 { font-size: 1.7rem; letter-spacing: -.03em; }
.service-cta p { color: #CFE9DE !important; margin-bottom: 22px !important; }
.service-cta .btn { align-self: flex-start; margin-top: auto; }

/* ---------- 5. Connect your tools ---------- */
.orb-stage { --rx: 41%; --ry: 41%; position: relative; width: 100%; max-width: 980px; margin: 0 auto var(--space-xl); aspect-ratio: 1; }
.orb-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orb-lines .ol-base { fill: none; stroke: rgba(52, 211, 153, .34); stroke-width: 1.3; }
.orb-lines .ol-glow { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; opacity: 0; stroke-dasharray: 26 600; }
.orb-lines .ol-pulse { fill: none; stroke: #D1FAE5; stroke-width: 2; stroke-linecap: round; opacity: 0; stroke-dasharray: 26 600; }
.tools.is-live .ol-glow { opacity: .28; animation: flow 2.8s linear infinite; animation-delay: var(--delay, 0s); }
.tools.is-live .ol-pulse { opacity: 1; animation: flow 2.8s linear infinite; animation-delay: var(--delay, 0s); }
@keyframes flow { from { stroke-dashoffset: 26; } to { stroke-dashoffset: -600; } }

.orb-core { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.orb-canvas, .orb-static { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb-canvas { opacity: 0; transition: opacity 900ms var(--ease); }
.has-orb-3d .orb-canvas { opacity: 1; }
.has-orb-3d .orb-static { opacity: 0; transition: opacity 600ms; }
.orb-static {
  border-radius: 50%; margin: auto; inset: 22%;
  width: auto; height: auto;
  background:
    radial-gradient(circle at 38% 32%, rgba(209, 250, 229, .9), rgba(52, 211, 153, .65) 18%, rgba(16, 185, 129, .35) 42%, rgba(4, 120, 87, .25) 62%, rgba(10, 10, 10, 0) 72%),
    radial-gradient(circle, rgba(16, 185, 129, .25), transparent 70%);
  box-shadow: 0 0 60px rgba(52, 211, 153, .45), 0 0 140px rgba(16, 185, 129, .35), inset 0 0 40px rgba(52, 211, 153, .5);
}
.orb-static::before, .orb-static::after {
  content: ""; position: absolute; inset: -22%; border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, .35); transform: rotateX(70deg) rotateZ(20deg);
}
.orb-static::after { inset: -34%; border-color: rgba(52, 211, 153, .18); transform: rotateX(70deg) rotateZ(-30deg); }
.motion-ok .orb-static { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 80px rgba(52, 211, 153, .6), 0 0 180px rgba(16, 185, 129, .45), inset 0 0 50px rgba(52, 211, 153, .6); } }

.tool-list { list-style: none; margin: 0; padding: 0; }
.tool {
  position: absolute; z-index: 2;
  left: calc(50% + var(--rx) * cos(var(--a)));
  top: calc(50% + var(--ry) * sin(var(--a)));
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tool-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01)), var(--glass-strong);
  border: 1px solid rgba(52, 211, 153, .35); color: var(--text);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 24px -6px rgba(16, 185, 129, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: border-color 400ms, box-shadow 400ms, color 400ms;
}
.tool-icon .ic { width: 24px; height: 24px; }
.tools.is-live .tool-icon { border-color: rgba(52, 211, 153, .7); color: var(--glow); box-shadow: 0 0 34px -4px rgba(52, 211, 153, .75), inset 0 1px 0 rgba(255, 255, 255, .1); }
.motion-ok .tools.is-live .tool-icon { animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s); }
@keyframes bob { 50% { translate: 0 -6px; } }
.tool-name { font-family: var(--font-head); font-size: .8rem; font-weight: 500; color: var(--text-body); white-space: nowrap; letter-spacing: .02em; }

.flow-grid { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
.flow-card { padding: 20px 22px; }
.flow-when { margin: 0 0 6px; font-family: var(--font-head); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.flow-then { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--text); font-weight: 500; line-height: 1.45; }
.flow-then .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--glow); }

/* ---------- 6. Industries ---------- */
.industry-grid { display: grid; gap: 14px; }
.industry-grid > * { min-width: 0; }
.tile {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 11; border-radius: var(--radius); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; cursor: pointer; background: var(--surface);
  transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease), filter 400ms; filter: saturate(.9) brightness(.92); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, .05) 30%, rgba(10, 10, 10, .55) 60%, rgba(10, 10, 10, .94) 100%);
}
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 22px; }
.tile-body h3 { font-size: 1.45rem; margin-bottom: 6px; }
.tile-body p { margin: 0; color: #D4D7DC; font-size: .97rem; line-height: 1.45; max-width: 30ch; }
.tile-arrow {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10, 10, 10, .55); border: 1px solid rgba(255, 255, 255, .18); color: var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 300ms, color 300ms, border-color 300ms, transform 300ms var(--ease);
}
.tile-arrow .ic { width: 18px; height: 18px; }
@media (hover: hover) {
  .tile:hover { border-color: rgba(52, 211, 153, .6); box-shadow: 0 0 0 1px rgba(52, 211, 153, .35), 0 0 50px -10px rgba(16, 185, 129, .55); }
  .tile:hover img { transform: scale(1.06); filter: saturate(1) brightness(1); }
  .tile:hover .tile-arrow { background: var(--green); color: var(--on-green); border-color: var(--glow); transform: rotate(45deg); }
}
.tile:focus-visible { border-color: var(--glow); }

/* ---------- 7. How it works: light path ---------- */
.path-wrap { position: relative; max-width: 1100px; margin: 0 auto; }
.light-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.lp-base { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 2; }
.lp-glow { fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round; opacity: .28; }
.lp-line { fill: none; stroke: var(--glow); stroke-width: 2.5; stroke-linecap: round; }
.lp-spark-halo { fill: rgba(52, 211, 153, .28); }
.lp-spark { fill: #ECFDF5; }
.steps { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; }
.node {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--text-muted);
  transition: background-color 450ms var(--ease), border-color 450ms, color 450ms, box-shadow 450ms;
}
.node.is-lit { background: radial-gradient(circle at 50% 35%, #6EE7B7, var(--green) 60%); border-color: var(--glow); color: var(--on-green); box-shadow: 0 0 0 6px rgba(16, 185, 129, .15), 0 0 40px rgba(52, 211, 153, .7); }
.step-card { padding: 24px 24px 26px; }
.step-card h3 { font-size: 1.5rem; }
.step-card p { margin: 0; color: var(--text-muted); }
.step-card.is-lit { border-color: rgba(52, 211, 153, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-card), 0 0 40px -14px rgba(16, 185, 129, .6); }

/* ---------- 8. Before & after ---------- */
.ba-grid { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
.gbp { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: #121212; border: 1px solid var(--line); }
.gbp-before { filter: grayscale(1); opacity: .82; }
.gbp-after { border-color: rgba(52, 211, 153, .55); box-shadow: 0 0 0 1px rgba(52, 211, 153, .2), 0 0 70px -10px rgba(16, 185, 129, .5); }
.ba-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .82rem;
}
.ba-tag .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.ba-tag-before { background: #2A2A2A; color: #D4D4D4; border: 1px solid #3A3A3A; }
.ba-tag-after { background: var(--green); color: var(--on-green); box-shadow: var(--glow-sm); }
.gbp-photos-empty {
  height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(135deg, #171717 0 12px, #1B1B1B 12px 24px); color: #8A8A8A; font-size: .92rem;
}
.gbp-photos-empty .ic { width: 30px; height: 30px; }
.gbp-photos { height: 180px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 3px; overflow: hidden; }
.gbp-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.gbp-photos img:first-child { grid-row: span 2; }
.gbp-body { padding: 22px 24px 24px; }
.gbp-name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--text); margin: 0 0 4px; }
.gbp-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; color: var(--text-muted); font-size: .95rem; }
.gbp-score { color: var(--text); font-weight: 500; }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 16px; height: 16px; fill: #FBBF24; stroke: none; }
.gbp-after .stars svg { fill: var(--glow); filter: drop-shadow(0 0 4px rgba(52, 211, 153, .6)); }
.stars svg.off { fill: #3A3A3A; }
.stars-sm svg { width: 13px; height: 13px; }
.gbp-rows { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; font-size: .97rem; color: #A3A3A3; }
.gbp-rows li { display: flex; align-items: center; gap: 10px; }
.gbp-rows .ic { width: 18px; height: 18px; }
.gbp-rows .ok { color: var(--text-body); }
.gbp-rows .ok .ic { color: var(--glow); }
.gbp-rows .ok strong { color: var(--glow); font-weight: 600; }
.gbp-review { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: rgba(16, 185, 129, .07); border: 1px solid rgba(52, 211, 153, .2); }
.gbp-review p { margin: 4px 0 0; font-size: .95rem; color: var(--text); }
.gbp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gbp-actions > span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--text-body); }
.gbp-after .gbp-actions > span { border-color: rgba(52, 211, 153, .35); color: var(--glow); }
.gbp-actions .ic { width: 16px; height: 16px; }
.ba-note { text-align: center; margin: 22px 0 0; font-size: .9rem; color: var(--text-muted); }

/* ---------- 9. Pricing ---------- */
.price-grid { display: grid; gap: 18px; max-width: 1120px; margin: 0 auto; align-items: stretch; }
.price-grid > * { min-width: 0; }
.plan { display: flex; flex-direction: column; padding: 34px 28px 28px; overflow: visible; }
.plan h3 { font-size: 1.5rem; margin-bottom: 6px; }
.plan-desc { color: var(--text-muted); min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan-price .amount { font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; letter-spacing: -.05em; line-height: 1; color: var(--text); }
.plan-price .per { color: var(--text-muted); }
.plan-price .cents { font-size: .42em; letter-spacing: -.02em; vertical-align: .95em; margin-left: 2px; }
.plan-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; color: var(--text-body); }
.plan-list .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--glow); stroke-width: 2.4; }
.plan-featured {
  border-color: rgba(52, 211, 153, .75);
  background: radial-gradient(120% 70% at 50% 0%, rgba(16, 185, 129, .18), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)), var(--glass-strong);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, .35), 0 0 90px -10px rgba(16, 185, 129, .55), var(--shadow-card);
}
.plan-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; white-space: nowrap;
  padding: 7px 16px; border-radius: 999px; background: var(--green); color: var(--on-green); box-shadow: var(--glow-md);
  font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
}
.price-note { text-align: center; margin: 30px 0 0; color: var(--text-muted); }

/* ---------- 10. FAQ ---------- */
.faq-layout { display: grid; gap: 8px; }
.faq-list { display: grid; gap: 12px; }
.faq {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--glass);
  border: 1px solid var(--line); border-radius: 18px; transition: border-color var(--dur), box-shadow var(--dur);
}
.faq[open] { border-color: rgba(52, 211, 153, .45); box-shadow: 0 0 40px -16px rgba(16, 185, 129, .55); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 22px;
  list-style: none; cursor: pointer; border-radius: 18px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid rgba(52, 211, 153, .35); color: var(--glow);
  transition: transform var(--dur) var(--ease), background-color var(--dur), color var(--dur);
}
.faq[open] summary .ic { transform: rotate(45deg); background: var(--green); color: var(--on-green); border-color: var(--green); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; color: var(--text-body); }
.faq[open] .faq-a { animation: faq-in 260ms var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- 11. Contact ---------- */
.contact { padding-bottom: var(--space-3xl); }
.contact-glow {
  position: absolute; left: 50%; bottom: -380px; width: 1300px; height: 760px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(16, 185, 129, .28), rgba(16, 185, 129, .08) 55%, transparent);
}
.contact-grid { display: grid; gap: var(--space-xl); }
.contact-grid > * { min-width: 0; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.contact-lines { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-lines a, .contact-place { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--text); text-decoration: none; font-weight: 500; word-break: break-word; }
.contact-lines a:hover { color: var(--glow); }
.contact-lines .icon-tile { width: 44px; height: 44px; }
.contact-multi { display: flex; align-items: center; gap: 14px; }
.contact-stack { display: flex; flex-wrap: wrap; column-gap: 20px; min-width: 0; }
.contact-lines .contact-stack a { min-height: 44px; gap: 0; }

.contact-form { padding: 28px 22px; display: grid; gap: 18px; align-self: start; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)), var(--glass-strong); }
.contact-form h3 { font-size: 1.6rem; margin: 0; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 500; font-size: .95rem; color: var(--text); }
.optional { color: var(--text-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--input-border); border-radius: 14px;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field input { min-height: 52px; }
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder, .field textarea::placeholder { color: #7D828A; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(52, 211, 153, .25), var(--glow-sm); }
.field-error { display: none; margin: 0; font-size: .9rem; color: var(--danger); }
.field.has-error input { border-color: var(--danger); }
.field.has-error .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-status { margin: 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--glow); }
.form-status.is-error { color: var(--danger); }
.form-privacy { margin: 0; font-size: .86rem; color: var(--text-muted); }
.form-thanks { display: none; text-align: center; justify-items: center; gap: 14px; padding: 36px 8px 28px; }
.contact-form.is-sent > :not(.form-thanks) { display: none; }
.contact-form.is-sent .form-thanks { display: grid; animation: faq-in 400ms var(--ease); }
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; box-shadow: inset 0 0 16px rgba(52, 211, 153, .25), var(--glow-md); }
.thanks-icon .ic { width: 32px; height: 32px; stroke-width: 2.4; }
.form-thanks h3 { font-size: 1.7rem; margin: 6px 0 0; outline: none; }
.form-thanks p { margin: 0 0 10px; color: var(--text-body); max-width: 34ch; }

/* ---------- 12. Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: 64px 0 24px; background: #070707; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand p { margin: 16px 0 20px; max-width: 30ch; color: var(--text-muted); }
.footer-h { margin: 0 0 12px; font-family: var(--font-head); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-col > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-body); text-decoration: none; transition: color var(--dur); }
.footer-col > a:hover { color: var(--glow); }
.footer-col .ic { width: 18px; height: 18px; color: var(--glow); }
.footer-place { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; color: var(--text); font-weight: 500; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(52, 211, 153, .3); color: var(--glow); transition: background-color var(--dur), box-shadow var(--dur); }
.socials a:hover { background: rgba(16, 185, 129, .15); box-shadow: var(--glow-sm); }
.socials .ic { width: 18px; height: 18px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; font-size: .88rem; color: var(--text-muted); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--line); }
.footer-bottom p { margin: 0; }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, .85); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: translateY(110%); transition: transform var(--dur) var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 50px; }

/* =============================================================
   Reveal on scroll (content is visible without JS)
   ============================================================= */
.js.motion-ok .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js.motion-ok .reveal.is-in { opacity: 1; transform: none; }

/* =============================================================
   Breakpoints
   ============================================================= */
@media (max-width: 379px) {
  .logo-word { font-size: .98rem; letter-spacing: .1em; }
  .logo { gap: 9px; }
  .lang-toggle span { min-width: 34px; padding: 0 8px; }
  .nav-actions { gap: 4px; }
  .btn { white-space: normal; text-align: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .tool-name { font-size: .72rem; }
}

@media (max-width: 767px) {
  body { padding-bottom: 72px; }
  .orb-stage { --rx: 40%; --ry: 40%; }
  .tool-icon { width: 48px; height: 48px; border-radius: 14px; }
  .tool-icon .ic { width: 21px; height: 21px; }
}

@media (min-width: 640px) {
  .container { --pad: 32px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .service-grid, .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { aspect-ratio: 4 / 5; }
  .contact-form { padding: 36px 32px; }
}

@media (min-width: 768px) {
  .section { padding: var(--space-3xl) 0; }
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .section-head.split { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .section-head.split .lead { margin-bottom: 10px; }
  .orb-stage { aspect-ratio: 16 / 10; --rx: 40%; --ry: 39%; }
  .orb-core { width: 38%; }
  .flow-grid { grid-template-columns: repeat(3, 1fr); }
  .ba-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .gbp-photos-empty, .gbp-photos { height: 200px; }
  .scroll-cue { display: flex; }

  /* Light path runs horizontally */
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; align-items: stretch; gap: 26px; }
  .step-card { width: 100%; }
  .node { width: 72px; height: 72px; font-size: 1.15rem; }
  .step-card { text-align: center; }
}

@media (min-width: 1024px) {
  :root { --nav-h: 84px; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .container { --pad: 48px; }
  .menu-toggle, .nav-cta-mobile { display: none; }
  .nav-cta { display: inline-flex; }
  .nav-links {
    position: static; flex-direction: row; gap: 2px; padding: 0; background: none; border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none; visibility: visible; opacity: 1; transform: none;
  }
  .nav-links a:not(.btn) {
    position: relative; min-height: 44px; padding: 0 14px; border: 0; font-size: .96rem; font-weight: 500; letter-spacing: 0; color: var(--text-body);
    transition: color var(--dur);
  }
  .nav-links a:not(.btn):hover { color: var(--text); }
  .nav-links a:not(.btn)::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--glow);
    box-shadow: 0 0 8px var(--glow); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
  }
  .nav-links a:not(.btn):hover::after { transform: scaleX(1); }

  /* Hero: triangle on the right */
  /* canvas covers the whole hero so exploding layers can fly anywhere; the triangle is placed on the right in 3D */
  .hero-visual { inset: 0; left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; opacity: 1; }
  .hero-visual::after { display: none; }
  .hero-static { left: auto; bottom: auto; right: -2vw; top: 50%; width: min(58vw, 860px); height: auto; aspect-ratio: 1; transform: translateY(-48%); }
  .hero-label { max-width: none; }
  .hero h1 { max-width: 9.5ch; }

  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-featured { transform: translateY(-14px); }
  .faq-layout { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .faq-layout .section-head { position: sticky; top: calc(var(--nav-h) + 32px); }
  .contact-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.2fr; }
}

@media (min-width: 1440px) {
  .container { max-width: 1320px; }
}

/* =============================================================
   Reduced motion: no pinning, no floating, final states shown
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .tile:hover img { transform: none; }
}
