/* ═══════════════════════════════════════════════════════════
   O9 MARKET — Design System
   Dimensional glass on deep ink · cobalt light · editorial paper
   Fonts: Sora (display) · Manrope (body) · JetBrains Mono (utility)
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #05070d;
  --ink-2: #0a101d;
  --ink-3: #101a30;
  --cobalt: #1a5cff;
  --azure: #4d8dff;
  --ice: #bcd4ff;
  --paper: #f5f8ff;
  --gold: #e8b64c;
  --t-dark: #f2f6ff;
  --t-dark-dim: rgba(220, 232, 255, 0.62);
  --t-light: #0b1425;
  --t-light-dim: #46536e;
  --glass: rgba(16, 24, 44, 0.55);
  --glass-brd: rgba(188, 212, 255, 0.14);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --shadow-glow: 0 12px 48px -12px rgba(26, 92, 255, 0.35);
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--t-dark);
  color-scheme: dark;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Sora", sans-serif; letter-spacing: -0.02em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(44px, 6.4vw, 92px); }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--cobalt); color: #fff; }

.mono, .kicker, .crumbs, .stat-num, .tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--azure); margin-bottom: 20px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--cobalt), transparent); }
.lead { color: var(--t-dark-dim); font-size: clamp(16px, 1.35vw, 19px); max-width: 58ch; }
.section { position: relative; padding: clamp(84px, 11vh, 140px) 5vw; }
.wrap { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .kicker { justify-content: center; }
.center .kicker::before { display: none; }

/* ── light (paper) sections ── */
.light { background: var(--paper); color: var(--t-light); color-scheme: light; }
.light .lead { color: var(--t-light-dim); }
.light .kicker { color: var(--cobalt); }

/* ── aurora hero backdrop ── */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: radial-gradient(circle, #1a5cff 0%, transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 44vw; height: 44vw; right: -14vw; top: 4vw; background: radial-gradient(circle, #0f2f8a 0%, transparent 62%); animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 32vw; bottom: -16vw; background: radial-gradient(circle, #4d8dff33 0%, transparent 70%); animation: drift1 40s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(7vw, 5vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-6vw, 7vh) scale(0.94); } }
.grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(188,212,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(188,212,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 78%);
}

/* ── header ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: box-shadow 0.35s var(--ease);
}
/* the frosted-glass layer lives on a pseudo-element, NOT on the header itself:
   backdrop-filter on the header would turn it into the containing block for
   position:fixed children — which breaks the full-screen mobile menu. */
#site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
#site-header.solid::before { opacity: 1; }
#site-header.solid { box-shadow: 0 1px 0 rgba(188, 212, 255, 0.08); }

/* top sub-menu bar */
.topbar {
  background: rgba(4, 6, 11, 0.92);
  border-bottom: 1px solid rgba(188, 212, 255, 0.08);
  font-size: 12.5px;
}
.topbar .tb-in {
  max-width: 1380px; margin: 0 auto; padding: 7px 4vw;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.topbar .tb-contacts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: var(--t-dark-dim); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; letter-spacing: 0.02em; transition: color 0.25s; }
.topbar a:hover { color: var(--azure); }
.topbar a svg { color: var(--azure); flex: none; }
.topbar .tb-social { display: flex; align-items: center; gap: 6px; }
.topbar .tb-social a {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(188, 212, 255, 0.14); color: var(--t-dark-dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.topbar .tb-social a:hover { color: #fff; border-color: var(--azure); background: rgba(26, 92, 255, 0.25); transform: translateY(-2px); }
@media (max-width: 700px) {
  .topbar .tb-contacts a.tb-hide-m { display: none; }
  .topbar .tb-in { padding: 6px 4vw; }
}

/* ── logo: the PNG is a 1536×1024 canvas where the artwork occupies only the
   band x:5–92%, y:18–65%. This crop-box shows JUST the artwork, so the logo
   finally renders at its true visual size. ── */
.logo-box {
  height: var(--lh, 68px);
  aspect-ratio: 2.79 / 1;
  position: relative; overflow: hidden; flex: none;
}
.logo-box .logo-img {
  position: absolute; width: 114.7%; height: auto; left: -6%; top: -37.4%;
  margin: 0; display: block;
  mix-blend-mode: screen;
  filter: brightness(1.2) contrast(1.14) saturate(1.15);
  transition: filter 0.3s var(--ease);
}
.logo { filter: drop-shadow(0 4px 20px rgba(26, 92, 255, 0.4)); transition: transform 0.3s var(--ease); }
.logo:hover { transform: scale(1.03); }
.logo:hover .logo-img { filter: brightness(1.3) contrast(1.14) saturate(1.2); }
/* the footer's blanket `a { display:block }` was overriding `.logo { display:flex }`,
   leaving .logo-box inline — height/aspect-ratio/overflow don't apply to inline boxes,
   so the logo collapsed. Restore the flex context and give the box its own display. */
.site-footer .logo { display: flex; margin-bottom: 0; }
.logo-box { display: block; }
.site-footer .logo-box { --lh: 66px; }
@media (max-width: 900px) { .logo-box { --lh: 58px; } }
@media (max-width: 640px) { .logo-box { --lh: 48px; } }
#site-header .bar {
  max-width: 1380px; margin: 0 auto; padding: 10px 4vw;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.logo img { height: 58px; width: auto; border-radius: 8px; }
.logo .mark { height: 54px; width: auto; display: block; flex: none; filter: drop-shadow(0 4px 14px rgba(26, 92, 255, 0.35)); }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt .wm { font-family: "Sora", sans-serif; font-weight: 700; font-size: 23px; letter-spacing: 0.04em; color: var(--t-dark); white-space: nowrap; }
.logo-txt .wm b { background: linear-gradient(120deg, var(--azure), #8db8ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.logo-txt small { margin-top: 5px; font-family: "Manrope", sans-serif; font-size: 8.6px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); opacity: 0.75; white-space: nowrap; }
.light .logo-txt .wm, .logo-light .logo-txt .wm { color: var(--t-light); }
@media (max-width: 640px) { .logo .mark { height: 44px; } .logo-txt .wm { font-size: 19px; } .logo-txt small { font-size: 7.4px; } }

/* ── homepage hero: full-screen, video behind, content centered ── */
.hero-home {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 190px 5vw 90px; overflow: hidden;
}
.hero-home h1 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.08; max-width: 22ch; margin: 0 auto; text-shadow: 0 2px 24px rgba(5, 7, 13, 0.9), 0 1px 4px rgba(5, 7, 13, 0.6); }
.hero-home .lead { font-size: clamp(15px, 1.2vw, 18px); max-width: 58ch; color: rgba(232, 240, 255, 0.78); text-shadow: 0 1px 14px rgba(5, 7, 13, 0.9); }
.hero-home .stat-lbl, .hero-home .kicker { text-shadow: 0 1px 10px rgba(5, 7, 13, 0.8); }
@media (max-width: 900px) { .hero-home { padding-top: 160px; } }
@media (max-width: 640px) { .hero-home { padding-top: 145px; } .hero-home h1 { font-size: clamp(30px, 8.4vw, 38px); } }

/* ── hero media (film layer — the WHOLE layer moves with scroll/mouse) ── */
.hero-media {
  position: absolute; inset: -8%; z-index: 0; overflow: hidden; pointer-events: none;
  background: url("../img/hero-home.png") center/cover no-repeat;
  will-change: transform;
}
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease;
  filter: brightness(0.62) saturate(1.1);
}
.hero-media video.on { opacity: 0.8; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 55% at 50% 46%, rgba(5, 7, 13, 0.62) 0%, rgba(5, 7, 13, 0.3) 55%, transparent 100%),
    radial-gradient(ellipse 85% 75% at 50% 42%, transparent 30%, rgba(5, 7, 13, 0.82) 96%),
    linear-gradient(to bottom, rgba(5, 7, 13, 0.62), rgba(5, 7, 13, 0.18) 32%, rgba(5, 7, 13, 0.22) 60%, var(--ink));
}
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }

/* ── floating hero cubes (logo-world ornaments) ── */
.hero-cubes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-cubes i {
  position: absolute; display: block; border-radius: 18%;
  background: linear-gradient(135deg, rgba(110,163,255,.9), rgba(26,92,255,.6) 55%, rgba(10,47,143,.45));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -6px 14px rgba(5,10,30,.5), 0 22px 52px -18px rgba(26,92,255,.6);
  animation: cubefloat var(--t, 11s) ease-in-out var(--dl, 0s) infinite alternate;
  will-change: transform;
}
.hero-cubes i.dark {
  background: linear-gradient(135deg, rgba(70,83,110,.9), rgba(22,28,43,.85) 55%, rgba(5,7,13,.9));
  box-shadow: inset 0 1px 0 rgba(188,212,255,.25), 0 22px 52px -18px rgba(0,0,0,.8);
}
.hero-cubes i.ring {
  border-radius: 50%; background: none; box-shadow: none;
  border: 1.5px solid rgba(77, 141, 255, 0.35);
}
@keyframes cubefloat {
  from { transform: translateY(0) rotate(var(--r, 8deg)); }
  to { transform: translateY(-30px) rotate(calc(var(--r, 8deg) * -1)); }
}
@media (max-width: 900px) { .hero-cubes { display: none; } }
.logo b { font-family: "Sora", sans-serif; font-size: 19px; letter-spacing: 0.02em; color: var(--t-dark); }
.logo b span { color: var(--azure); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a.nav-item {
  color: var(--t-dark-dim); text-decoration: none; font-size: 14.5px; font-weight: 600;
  padding: 10px 2px; position: relative; transition: color 0.25s; cursor: pointer;
}
.nav-links a.nav-item::after {
  content: ""; position: absolute; left: 0; bottom: 4px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cobalt), var(--azure));
  border-radius: 2px; transition: width 0.3s var(--ease);
}
.nav-links a.nav-item:hover, .nav-links a.nav-item[aria-current="page"] { color: var(--t-dark); }
.nav-links a.nav-item:hover::after, .nav-links a.nav-item[aria-current="page"]::after { width: 100%; }

/* mega menu */
.has-mega > .nav-item { display: inline-flex; align-items: center; gap: 7px; }
.has-mega > .nav-item svg { transition: transform 0.3s var(--ease); }
.has-mega:hover > .nav-item svg, .has-mega:focus-within > .nav-item svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(880px, 92vw); padding: 28px;
  background: rgba(10, 16, 29, 0.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 11px 12px; border-radius: var(--r-sm); color: var(--t-dark-dim);
  font-size: 14px; font-weight: 600; transition: background 0.25s, color 0.25s; cursor: pointer;
}
.mega a:hover { background: rgba(26, 92, 255, 0.12); color: var(--t-dark); }
.mega a svg { flex: none; color: var(--azure); }
.mega .mega-head {
  grid-column: 1 / -1; font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ice); opacity: 0.75; padding: 0 12px 8px;
}

/* burger */
#burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 95;
}
#burger span { display: block; width: 24px; height: 2px; background: var(--t-dark); margin: 5px 0; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
#burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── buttons ── */
.btn {
  --bg1: var(--cobalt); --bg2: #2f6dff;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 100px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 8px 28px -8px rgba(26, 92, 255, 0.55);
  overflow: hidden; will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(26, 92, 255, 0.65); }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn .ripple {
  position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.35);
  transform: scale(0); animation: ripple 0.6s ease-out forwards; pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
.btn-ghost {
  background: transparent; color: var(--t-dark); box-shadow: none;
  border: 1px solid rgba(188, 212, 255, 0.28);
}
.btn-ghost:hover { border-color: var(--azure); box-shadow: 0 0 0 4px rgba(26, 92, 255, 0.12); background: rgba(26, 92, 255, 0.08); }
.light .btn-ghost { color: var(--t-light); border-color: rgba(11, 20, 37, 0.22); }
.light .btn-ghost:hover { border-color: var(--cobalt); background: rgba(26, 92, 255, 0.06); }

/* ── glass card ── */
.card {
  position: relative; padding: 34px 30px; border-radius: var(--r-lg);
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-brd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  will-change: transform;
}
.card:hover { transform: translateY(-6px); border-color: rgba(77, 141, 255, 0.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow-glow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(26,92,255,.25), rgba(77,141,255,.08));
  border: 1px solid rgba(77, 141, 255, 0.3); color: var(--azure); margin-bottom: 22px;
  transition: transform 0.4s var(--ease);
}
.card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--t-dark-dim); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--azure); font-weight: 700; font-size: 14px; text-decoration: none; }
.card .more svg { transition: transform 0.3s var(--ease); }
.card .more:hover svg { transform: translateX(4px); }

/* gradient border variant */
.g-border { position: relative; background: var(--ink-2); border: 1px solid transparent; }
.g-border:hover {
  background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box,
              linear-gradient(135deg, var(--cobalt), var(--azure), transparent 70%) border-box;
  border-color: transparent;
}

/* light card */
.light .card {
  background: #fff; border: 1px solid #e3eaf9; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 4px 24px -10px rgba(11, 20, 37, 0.1);
}
.light .card:hover { box-shadow: 0 20px 48px -16px rgba(26, 92, 255, 0.25); border-color: rgba(26, 92, 255, 0.35); }
.light .card p { color: var(--t-light-dim); }

/* ── grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

/* ── reveals ── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── stats ── */
.stat-num { font-size: clamp(40px, 4.6vw, 68px); font-weight: 700; letter-spacing: -0.03em; background: linear-gradient(135deg, #fff 20%, var(--azure)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-lbl { margin-top: 6px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--t-dark-dim); }
.light .stat-num { background: linear-gradient(135deg, var(--t-light) 30%, var(--cobalt)); -webkit-background-clip: text; background-clip: text; }
.light .stat-lbl { color: var(--t-light-dim); }

/* ── marquee ── */
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee .row { display: flex; gap: 18px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover .row { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: 14.5px;
  background: rgba(16, 24, 44, 0.6); border: 1px solid var(--glass-brd); color: var(--t-dark-dim); white-space: nowrap;
}
.chip svg { color: var(--azure); }

/* ── process timeline ── */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--azure); letter-spacing: 0.2em;
}
.step::after { content: ""; position: absolute; top: 8px; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, rgba(77,141,255,.5), rgba(77,141,255,.08)); }
.step h3 { font-size: 18px; margin: 14px 0 8px; }
.step p { font-size: 14px; color: var(--t-dark-dim); }

/* ── testimonials ── */
.quote-card { display: flex; flex-direction: column; gap: 18px; }
.stars { display: flex; gap: 3px; color: var(--gold); }
.quote-card blockquote { font-size: 16px; line-height: 1.75; color: var(--t-dark); }
.light .quote-card blockquote { color: var(--t-light); }
.quote-who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote-who .ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: "Sora", sans-serif; font-weight: 700; font-size: 16px; color: #fff; background: linear-gradient(135deg, var(--cobalt), #0f2f8a); flex: none; }
.quote-who b { display: block; font-size: 15px; }
.quote-who span { font-size: 13px; color: var(--t-dark-dim); }
.light .quote-who span { color: var(--t-light-dim); }

/* ── FAQ ── */
.faq { border-bottom: 1px solid rgba(188, 212, 255, 0.1); }
.light .faq { border-color: #e3eaf9; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; cursor: pointer; list-style: none;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: clamp(16px, 1.4vw, 19px);
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--azure); }
.light .faq summary:hover { color: var(--cobalt); }
.faq summary .fx { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(188,212,255,.25); display: grid; place-items: center; transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s; }
.light .faq summary .fx { border-color: #cdd9f2; }
.faq[open] summary .fx { transform: rotate(45deg); background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.faq .faq-a { padding: 0 44px 24px 4px; color: var(--t-dark-dim); font-size: 15.5px; }
.light .faq .faq-a { color: var(--t-light-dim); }

/* ── forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ice); }
.light .field label { color: var(--t-light-dim); }
.field input, .field select, .field textarea {
  background: rgba(16, 24, 44, 0.55); border: 1px solid var(--glass-brd); border-radius: var(--r-sm);
  padding: 15px 16px; color: var(--t-dark); font: inherit; font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s; width: 100%;
}
.light .field input, .light .field select, .light .field textarea { background: #fff; border-color: #d6e0f5; color: var(--t-light); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(26, 92, 255, 0.16);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234d8dff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
/* native dropdown lists: dark panel + light text (fixes white-on-white options) */
.field select option { background-color: #0e1730; color: #f2f6ff; }
.light .field select option { background-color: #ffffff; color: #0b1425; }
.form-note { font-size: 13px; color: var(--t-dark-dim); }
.form-success {
  display: none; padding: 28px; border-radius: var(--r-md); text-align: center;
  background: rgba(26, 92, 255, 0.1); border: 1px solid rgba(77, 141, 255, 0.35);
}
.form-success.show { display: block; animation: pop 0.5s var(--ease); }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }

/* ── CTA band ── */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(52px, 7vw, 96px) 6vw; text-align: center; background: linear-gradient(135deg, #0c1c4a, #071130 55%, #0a0f1e); border: 1px solid rgba(77, 141, 255, 0.25); }
.cta-band::before { content: ""; position: absolute; width: 60%; height: 130%; left: 20%; top: -60%; background: radial-gradient(ellipse, rgba(26, 92, 255, 0.4), transparent 65%); pointer-events: none; }
.cta-band h2 { max-width: 22ch; margin: 0 auto 18px; }
.cta-band .lead { margin: 0 auto 34px; }

/* ── footer ── */
footer.site-footer { background: #04060b; border-top: 1px solid rgba(188, 212, 255, 0.08); padding: 80px 5vw 36px; position: relative; }
.site-footer .cols { max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1.5fr 0.92fr 1.18fr 0.92fr 1.45fr; gap: 30px 32px; align-items: start; }
.site-footer h4 { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice);
  opacity: 0.8; margin-bottom: 16px; font-family: "JetBrains Mono", monospace; font-weight: 500; white-space: nowrap; }
.site-footer a { display: block; color: var(--t-dark-dim); text-decoration: none; font-size: 13.5px;
  line-height: 1.5; margin-bottom: 10px; transition: color 0.25s, transform 0.25s; }
.site-footer a:hover { color: var(--azure); transform: translateX(3px); }
.site-footer .about-line { color: var(--t-dark-dim); font-size: 13.5px; line-height: 1.65; max-width: 34ch; margin: 16px 0 22px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; margin-bottom: 0; border-radius: 50%; border: 1px solid var(--glass-brd); display: grid; place-items: center; margin: 0; transition: border-color 0.25s, background 0.25s, transform 0.25s; }
.socials a:hover { border-color: var(--azure); background: rgba(26, 92, 255, 0.14); transform: translateY(-3px); }
.fine { max-width: var(--maxw); margin: 56px auto 0; padding-top: 28px; border-top: 1px solid rgba(188, 212, 255, 0.07); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: rgba(220, 232, 255, 0.4); }
.fine a { color: rgba(220, 232, 255, 0.55); text-decoration: none; margin: 0 0 0 22px; display: inline; }
.fine a:hover { color: var(--azure); }

/* back to top */
#to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(77, 141, 255, 0.4);
  background: rgba(10, 16, 29, 0.85); backdrop-filter: blur(10px); color: var(--azure);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.3s;
}
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { background: var(--cobalt); color: #fff; }

/* WhatsApp float */
#wa-float {
  position: fixed; left: 26px; bottom: 26px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #12b886; color: #fff; box-shadow: 0 10px 30px -8px rgba(18, 184, 134, 0.6);
  transition: transform 0.3s var(--ease);
}
#wa-float:hover { transform: scale(1.1); }

/* ── breadcrumbs ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; letter-spacing: 0.08em; color: var(--t-dark-dim); margin-bottom: 26px; }
.crumbs a { color: var(--azure); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span.sep { opacity: 0.45; }

/* ── page hero (inner pages) ── */
.page-hero { padding: 215px 5vw 90px; position: relative; }
.page-hero h1 { font-size: clamp(38px, 5vw, 72px); max-width: 18ch; }
.page-hero .lead { margin-top: 22px; }

/* ── cursor glow ── */
#cursor-glow {
  position: fixed; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 92, 255, 0.09), transparent 65%);
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%); left: -999px; top: -999px;
  transition: opacity 0.4s;
}

/* ── tags / badges ── */
.tag { display: inline-flex; padding: 6px 14px; border-radius: 100px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(26, 92, 255, 0.14); border: 1px solid rgba(77, 141, 255, 0.3); color: var(--azure); }
.light .tag { background: rgba(26, 92, 255, 0.08); }

/* ── portfolio tiles ── */
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--glass-brd); background: var(--ink-2); text-decoration: none; display: block; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.tile .thumb { aspect-ratio: 16/11; display: grid; place-items: center; position: relative; overflow: hidden; }
.tile .thumb svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.tile:hover .thumb svg { transform: scale(1.05); }
.tile .meta { padding: 22px 24px 26px; }
.tile .meta h3 { font-size: 19px; margin: 8px 0 6px; color: var(--t-dark); }
.tile .meta p { font-size: 14px; color: var(--t-dark-dim); }

/* ── blog cards ── */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card .thumb svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.post-card:hover .thumb svg { transform: scale(1.06); }
.post-card .body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card .date { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--azure); letter-spacing: 0.14em; }
.post-card h3 { font-size: 19px; }
.post-card h3 a { text-decoration: none; color: inherit; }
.post-card h3 a:hover { color: var(--azure); }

/* ── accessibility ── */
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 4px; }

/* ── custom cursor: single crisp dot, zero lag (no trailing ring) ── */
@media (pointer: fine) {
  body.cursor-on, body.cursor-on a, body.cursor-on button, body.cursor-on summary,
  body.cursor-on input, body.cursor-on select, body.cursor-on textarea, body.cursor-on label { cursor: none; }
  #cur-dot {
    position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999;
    width: 14px; height: 14px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(26, 92, 255, 0.55), 0 0 14px rgba(77, 141, 255, 0.5);
    will-change: transform;
    transition: width 0.18s var(--ease), height 0.18s var(--ease), background 0.18s, box-shadow 0.18s, opacity 0.18s;
  }
  body.cur-hover #cur-dot {
    width: 22px; height: 22px;
    background: rgba(77, 141, 255, 0.25);
    box-shadow: 0 0 0 2px var(--azure), 0 0 18px rgba(77, 141, 255, 0.7);
  }
  body.cur-down #cur-dot { width: 10px; height: 10px; }
}
@media (pointer: coarse) { #cur-dot { display: none !important; } }

/* ── proposal popup modal (compact — fits without inner scrolling) ── */
#modal-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(3, 5, 10, 0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center; padding: clamp(10px, 3vw, 28px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
#modal-overlay.open { opacity: 1; visibility: visible; }
#modal-box {
  position: relative;
  width: min(560px, 100%);
  background: linear-gradient(165deg, #0e1730 0%, #0a101f 55%, #080d18 100%);
  border: 1px solid rgba(77, 141, 255, 0.28);
  border-radius: 24px; padding: 0; overflow: hidden;
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.85), var(--shadow-glow);
  transform: translateY(28px) scale(0.97); transition: transform 0.4s var(--ease);
}
#modal-overlay.open #modal-box { transform: none; }
.modal-head {
  position: relative; overflow: hidden;
  padding: 20px 26px 16px;
  background: linear-gradient(135deg, rgba(26, 92, 255, 0.2), rgba(15, 47, 138, 0.1) 60%, transparent);
  border-bottom: 1px solid rgba(77, 141, 255, 0.16);
}
.modal-head .m-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "JetBrains Mono", monospace; font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--azure);
  padding: 5px 11px; border-radius: 100px;
  background: rgba(26, 92, 255, 0.14); border: 1px solid rgba(77, 141, 255, 0.35);
  margin-bottom: 9px;
}
.modal-head .m-badge i { width: 6px; height: 6px; border-radius: 50%; background: #4dd08a; box-shadow: 0 0 8px #4dd08a; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.4; } }
.modal-head h3 { font-size: clamp(18px, 2.2vw, 22px); letter-spacing: -0.02em; margin: 0; }
.modal-head p { display: none; }
.modal-body { padding: 16px 26px 22px; }
#modal-box .form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
#modal-box .field { gap: 4px; }
#modal-box .field input, #modal-box .field select, #modal-box .field textarea {
  background: rgba(255, 255, 255, 0.04); border: 1.5px solid rgba(188, 212, 255, 0.14);
  border-radius: 11px; padding: 10px 13px; font-size: 14px;
}
#modal-box .field textarea { min-height: 58px; }
#modal-box .field input:focus, #modal-box .field select:focus, #modal-box .field textarea:focus {
  background: rgba(26, 92, 255, 0.07); border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.18);
}
#modal-box .field label { font-size: 9.5px; letter-spacing: 0.18em; margin-left: 2px; }
#modal-box .btn { border-radius: 13px; padding: 13px 28px; font-size: 14.5px; }
.modal-trust {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 10px; font-size: 11px; color: var(--t-dark-dim);
}
.modal-trust span { display: inline-flex; align-items: center; gap: 5px; }
.modal-trust svg { color: #4dd08a; flex: none; }
#modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid rgba(188, 212, 255, 0.16);
  background: rgba(8, 13, 26, 0.6);
  color: var(--t-dark); display: grid; place-items: center; cursor: pointer;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
#modal-close:hover { background: var(--cobalt); border-color: var(--cobalt); transform: rotate(90deg); }
/* short screens: trim further instead of scrolling */
@media (max-height: 720px) {
  .modal-head { padding: 14px 24px 11px; }
  .modal-head .m-badge { display: none; }
  .modal-body { padding: 12px 24px 16px; }
  .modal-trust { display: none; }
  #modal-box .field textarea { min-height: 44px; }
}
@media (max-width: 560px) {
  #modal-overlay { padding: 10px; }
  #modal-box { width: 100%; border-radius: 20px; }
  #modal-box .form-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  #modal-box .form-grid .field.full { grid-column: 1 / -1; }
  .modal-trust { gap: 10px; }
}
@media (max-width: 400px) {
  #modal-box .form-grid { grid-template-columns: 1fr; }
}
body.modal-open { overflow: hidden; }

/* ── hero extra graphics: orbits, particles, beams ── */
.hero-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.orbit {
  position: absolute; left: 50%; top: 46%; border-radius: 50%;
  border: 1px dashed rgba(77, 141, 255, 0.22);
  transform: translate(-50%, -50%);
  animation: orbit-spin var(--os, 40s) linear infinite;
}
.orbit i {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--azure); box-shadow: 0 0 16px 4px rgba(77, 141, 255, 0.55);
  left: 50%; top: -5px; transform: translateX(-50%);
}
.orbit.o2 i { background: #8db8ff; width: 7px; height: 7px; }
.orbit.o3 i { background: var(--cobalt); width: 12px; height: 12px; }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.spark {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(141, 184, 255, 0.9); box-shadow: 0 0 8px 2px rgba(77, 141, 255, 0.5);
  animation: spark-rise var(--st, 9s) linear var(--sd, 0s) infinite;
  opacity: 0;
}
@keyframes spark-rise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.9; }
  85% { opacity: 0.5; }
  100% { transform: translateY(-72vh); opacity: 0; }
}
.beam {
  position: absolute; width: 1px; height: 34vh;
  background: linear-gradient(to bottom, transparent, rgba(77, 141, 255, 0.5), transparent);
  animation: beam-fall var(--bt, 7s) linear var(--bd, 0s) infinite;
  opacity: 0;
}
@keyframes beam-fall {
  0% { transform: translateY(-40vh); opacity: 0; }
  15% { opacity: 0.8; }
  70% { opacity: 0.4; }
  100% { transform: translateY(110vh); opacity: 0; }
}
.code-tag {
  position: absolute; font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: rgba(141, 184, 255, 0.4); letter-spacing: 0.06em; white-space: nowrap;
  animation: tag-float var(--ct, 14s) ease-in-out var(--cd, 0s) infinite alternate;
  text-shadow: 0 0 12px rgba(26, 92, 255, 0.5);
}
@keyframes tag-float { from { transform: translateY(0) rotate(-2deg); opacity: .35; } to { transform: translateY(-26px) rotate(2deg); opacity: .7; } }
@media (max-width: 900px) { .orbit, .beam, .code-tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .orbit, .spark, .beam, .code-tag { animation: none; opacity: .25; } }

/* ── scroll progress bar ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 95;
  background: linear-gradient(90deg, var(--cobalt), var(--azure), #8db8ff);
  box-shadow: 0 0 12px rgba(26, 92, 255, 0.7);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── card cursor spotlight (follows mouse) ── */
.card { --mx: 50%; --my: 50%; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(77, 141, 255, 0.14), transparent 65%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.card:hover::after { opacity: 1; }
.light .card::after { background: radial-gradient(340px circle at var(--mx) var(--my), rgba(26, 92, 255, 0.08), transparent 65%); }

/* ── image zoom-on-hover (media frames) ── */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.7s var(--ease); will-change: transform; }
.img-zoom:hover img { transform: scale(1.05); }

/* ── hero content parallax (scroll) ── */
.hero-parallax { will-change: transform, opacity; }

/* ── icon wobble + chip lift ── */
.chip { transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s; }
.chip:hover { transform: translateY(-3px); border-color: rgba(77, 141, 255, 0.5); color: var(--t-dark); }
.step { transition: transform 0.35s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step:hover::before { color: #8db8ff; }
.stat-num { transition: filter 0.3s; }
div:hover > .stat-num { filter: drop-shadow(0 0 18px rgba(77, 141, 255, 0.55)); }

/* ── nav link glow ── */
.nav-links a.nav-item:hover { text-shadow: 0 0 18px rgba(77, 141, 255, 0.5); }

/* ── tile shine sweep on hover ── */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(188, 212, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-120%);
}
.tile:hover::before { transition: transform 0.9s var(--ease); transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  #scroll-progress { display: none; }
  .img-zoom:hover img, .chip:hover, .step:hover { transform: none; }
  .tile::before { display: none; }
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--cobalt); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; text-decoration: none; font-weight: 700; }
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee .row { animation: none; transform: none; }
}

/* ── sitemap page: grouped link cards ── */
.sm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.sm-card { padding: 28px 26px 22px; }
.sm-h { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(11,20,37,.09); }
.sm-i { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--cobalt); background: rgba(26,92,255,.09); border: 1px solid rgba(26,92,255,.16); }
.sm-h h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.sm-h p { font-size: 13px; color: var(--t-light-dim); margin-top: 4px; line-height: 1.45; }
.sm-h > span:nth-child(2) { flex: 1; min-width: 0; }
.sm-n { flex: none; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--cobalt); background: rgba(26,92,255,.09); border-radius: 999px; padding: 4px 10px; margin-top: 2px; }
.sm-list { list-style: none; margin: 0; padding: 0; }
.sm-list li + li { border-top: 1px solid rgba(11,20,37,.06); }
.sm-list a { display: flex; align-items: center; gap: 10px; padding: 11px 2px; text-decoration: none; color: var(--t-light); transition: color .2s var(--ease), padding-left .2s var(--ease); }
.sm-list a:hover { color: var(--cobalt); padding-left: 8px; }
.sm-t { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.sm-d { font-size: 12.5px; color: var(--t-light-dim); margin-left: auto; text-align: right; flex: none; max-width: 47%; line-height: 1.35; }
.sm-a { flex: none; opacity: 0; transform: translateX(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease); color: var(--cobalt); display: flex; }
.sm-list a:hover .sm-a { opacity: 1; transform: translateX(0); }
.sm-list a:hover .sm-d { opacity: .6; }
@media (max-width: 560px) {
  .sm-grid { grid-template-columns: 1fr; }
  .sm-card { padding: 24px 20px 18px; }
  .sm-d { display: none; }
}

/* ── responsive ── */
@media (max-width: 1240px) {
  .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; gap: 34px 30px; }
  .site-footer .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
}
@media (max-width: 820px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 0; z-index: 92;
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 2px;
    padding: 120px 6vw 40px;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    background: rgba(4, 6, 12, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links > li { width: 100%; }
  .nav-links a.nav-item {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; font-size: 19px; padding: 16px 6px;
    border-bottom: 1px solid rgba(188, 212, 255, 0.08);
  }
  .nav-links a.nav-item::after { display: none; }
  .has-mega > .nav-item svg { transform: none; transition: transform 0.3s var(--ease); }
  .has-mega.open-sub > .nav-item svg { transform: rotate(180deg); }
  .mega {
    position: static; transform: none; width: 100%;
    display: block; max-height: 0; overflow: hidden;
    opacity: 1; visibility: visible;
    padding: 0; border: 0; box-shadow: none; background: transparent;
    transition: max-height 0.45s var(--ease);
  }
  /* beat the desktop hover/focus rule's specificity — it re-applies
     translateX(-50%) on tap and shoves the submenu off-screen */
  .has-mega:hover .mega,
  .has-mega:focus-within .mega,
  .has-mega.open-sub .mega { transform: none; left: auto; }
  .has-mega.open-sub .mega { max-height: 900px; padding: 6px 0 12px; }
  .mega .mega-head { padding: 12px 10px 6px; }
  .mega a { font-size: 15px; padding: 11px 10px; }
  #burger { display: block; position: relative; z-index: 96; }
  .header-cta { display: none; }
  .topbar .tb-in { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 6vw; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 36px; }
  .fine { flex-direction: column; }
  .fine a { margin: 0 16px 0 0; }
  .btn { padding: 16px 30px; width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; }
  #wa-float { left: 18px; bottom: 18px; }
  #to-top { right: 18px; bottom: 18px; }
}
