/* ---------- Theme tokens ---------- */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d14;
  --bg-2: #11141e;
  --card: #151926;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .3);
  --tint: rgba(255, 255, 255, .04);
  --tint-2: rgba(255, 255, 255, .07);
  --text: #eef0f7;
  --muted: #9aa1b5;
  --violet: #7a63e6;
  --cyan: #12b3e6;
  --accent-text: #2cc0ee;
  --nav-bg: rgba(11, 13, 20, .78);
  --menu-bg: rgba(11, 13, 20, .97);
  --float-bg: rgba(17, 20, 30, .84);
  --shadow: rgba(0, 0, 0, .75);
  --num: rgba(255, 255, 255, .06);
  --glow: rgba(98,72,200, .16);
  --shade: linear-gradient(90deg, rgba(11,13,20,.96) 0%, rgba(11,13,20,.86) 42%, rgba(11,13,20,.6) 100%);
  --shade-bottom: linear-gradient(180deg, transparent 60%, var(--bg));
  --slide-filter: saturate(.9) brightness(.9);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-2: #edf1f8;
  --card: #ffffff;
  --line: rgba(15, 27, 61, .1);
  --line-strong: rgba(15, 27, 61, .3);
  --tint: rgba(15, 27, 61, .03);
  --tint-2: rgba(15, 27, 61, .06);
  --text: #0f1b3d;
  --muted: #56607a;
  --violet: #47308f;
  --cyan: #0098cf;
  --accent-text: #007aa8;
  --nav-bg: rgba(255, 255, 255, .82);
  --menu-bg: rgba(246, 248, 252, .97);
  --float-bg: rgba(255, 255, 255, .9);
  --shadow: rgba(15, 27, 61, .22);
  --num: rgba(15, 27, 61, .06);
  --glow: rgba(71,48,143, .1);
  --shade: linear-gradient(90deg, rgba(246,248,252,.97) 0%, rgba(246,248,252,.88) 42%, rgba(246,248,252,.45) 100%);
  --shade-bottom: linear-gradient(180deg, transparent 60%, var(--bg));
  --slide-filter: saturate(1) brightness(1.02);
}
:root {
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* Logos and icons swap per theme */
[data-theme="dark"] .on-light, [data-theme="light"] .on-dark { display: none !important; }

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
}
body.loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p { color: var(--muted); }
.container { width: min(1280px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; max-width: 56ch; margin-bottom: 1.8rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 1rem; font-weight: 600;
}
.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
/* Same-background neighbours share one gap instead of stacking two */
.section:not(.ai) + .section:not(.ai) { padding-top: 0; }
.head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head .lead { margin: 1rem 0 0; color: var(--muted); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: .6rem 1rem; border-radius: 10px; background: var(--card); color: var(--text); border: 1px solid var(--line); }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --x: 0px; --y: 0px;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem 'Inter', sans-serif; color: #fff;
  background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 10px 30px -10px rgba(98,72,200, .7);
  transform: translate(var(--x), var(--y));
  transition: transform .25s var(--ease), background-position .5s, box-shadow .3s;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 14px 40px -10px rgba(18,179,230, .7); }
.btn .arr { font-style: normal; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn-ghost { background: var(--tint); color: var(--text); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--line-strong); box-shadow: none; }
.btn-light { background: #fff; color: #0b0d14; box-shadow: 0 10px 30px -10px rgba(255,255,255,.4); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 22px;
  transition: opacity .6s, visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { animation: pulse 1.2s var(--ease) infinite; }
.loader-mark .brand-plate { padding: 10px; border-radius: 20px; }
.loader-mark img { width: 72px; }
.loader-bar { width: 160px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--grad); animation: load 1s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes pulse { 50% { transform: scale(.9) rotate(-6deg); } }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 60; }
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  transform: translate(-50%, -50%); left: -500px; top: -500px;
}

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
/* Glass layer lives on ::before: a backdrop-filter on .nav itself would trap the fixed mobile menu inside the header */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity .3s; pointer-events: none; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px var(--shadow); }
.nav.scrolled::before { opacity: 1; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 88px; }
.brand { display: flex; align-items: center; }
.brand img { height: 68px; width: auto; }
/* Logo is kept exactly as supplied; in dark mode it sits on a white plate like the business card */
.brand-plate { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 14px; transition: background .4s, box-shadow .4s, transform .3s var(--ease); }
[data-theme="dark"] .brand-plate { background: #fff; box-shadow: 0 10px 30px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.5); }
.brand:hover .brand-plate { transform: translateY(-2px); }
[data-theme="dark"] .brand:hover .brand-plate { box-shadow: 0 14px 34px -12px rgba(18,179,230,.45), 0 0 0 1px #fff; }
.foot-grid .brand img { height: 86px; }
.foot-grid .brand-plate { margin-left: -12px; }
[data-theme="dark"] .foot-grid .brand-plate { margin-left: 0; }
.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2rem); font-size: .95rem; margin-left: auto; }
.nav-links a:not(.btn) { color: var(--muted); position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-tools { display: flex; align-items: center; gap: .4rem; position: relative; z-index: 2; }

.theme-toggle {
  position: relative; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; overflow: hidden;
  background: var(--tint); border: 1px solid var(--line); display: grid; place-items: center;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--line-strong); transform: rotate(15deg); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; transition: transform .6s var(--ease), opacity .4s; }
[data-theme="dark"] .theme-toggle .sun { transform: translateY(0) rotate(0); opacity: 1; color: #fbbf24; }
[data-theme="dark"] .theme-toggle .moon { transform: translateY(150%) rotate(90deg); opacity: 0; }
[data-theme="light"] .theme-toggle .sun { transform: translateY(-150%) rotate(-90deg); opacity: 0; }
[data-theme="light"] .theme-toggle .moon { transform: translateY(0) rotate(0); opacity: 1; color: var(--violet); }

.burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; position: relative; }
/* Close: un-rotate first, then slide apart. Open (below): meet in the middle, then rotate */
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--text); transition: top .2s ease .2s, transform .2s ease; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger.open span { transition: top .2s ease, transform .25s var(--ease) .2s; }
.burger.open span:first-child { top: 20px; transform: rotate(45deg); }
.burger.open span:last-child { top: 20px; transform: rotate(-45deg); }

/* Theme switch reveal (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal-theme .7s var(--ease); }
@keyframes reveal-theme { from { clip-path: circle(0 at var(--tx, 100%) var(--ty, 0)); } to { clip-path: circle(150vmax at var(--tx, 100%) var(--ty, 0)); } }

/* ---------- Hero banner ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 120px 0 80px; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -3; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--slide-filter);
  opacity: 0; transform: scale(1.18); transition: opacity 1.4s ease, transform 8s linear;
}
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: var(--shade-bottom), var(--shade); transition: background .4s; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: var(--violet); top: -160px; left: -140px; }
.b2 { width: 420px; height: 420px; background: var(--cyan); bottom: -160px; right: -80px; animation-delay: -6s; opacity: .25; }
[data-theme="light"] .blob { opacity: .14; }
@keyframes drift { 50% { transform: translate(60px, 40px) scale(1.1); } 100% { transform: translate(-40px, 70px) scale(.95); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--text); background: var(--tint); backdrop-filter: blur(6px); margin-bottom: 1.6rem; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); margin-bottom: 1.5rem; }
.hero .lead { color: var(--text); opacity: .82; }
.rotator { display: inline-grid; vertical-align: bottom; height: 1.15em; overflow: hidden; }
.rotator > span { grid-area: 1 / 1; transform: translateY(110%); opacity: 0; transition: transform .7s var(--ease), opacity .7s; white-space: nowrap; padding-bottom: .08em; }
.rotator > span.on { transform: none; opacity: 1; }
.rotator > span.off { transform: translateY(-110%); opacity: 0; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.hero-meta { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-meta li { display: flex; align-items: center; gap: .7rem; }
.hero-meta b { font: 700 2.1rem var(--head); }
.hero-meta span { font-size: .82rem; color: var(--muted); line-height: 1.35; }

.hero-visual { perspective: 1200px; }
.frame { position: relative; border-radius: 26px; transform-style: preserve-3d; transition: transform .2s ease-out; }
.frame::before { content: ''; position: absolute; inset: -2px; border-radius: 28px; background: var(--grad); z-index: -1; opacity: .5; filter: blur(24px); }
.frame-view { position: relative; aspect-ratio: 4 / 3.4; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px var(--shadow); background: var(--card); }
.frame-view img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 0 0 100%); transform: scale(1.2);
  transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease);
}
.frame-view img.on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.frame-view img.off { clip-path: inset(0 100% 0 0); transform: scale(1.05); }
.frame-tag {
  position: absolute; left: 14px; top: 14px; z-index: 3; display: inline-flex; gap: .5rem; align-items: center;
  padding: .4rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.82); color: #1e1b4b; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 6px 18px -8px rgba(30,27,75,.35);
}
.frame-tag b { font-family: var(--head); color: #4f46e5; }
.frame-tag.swap { animation: tag-in .6s var(--ease); }
@keyframes tag-in { from { opacity: 0; transform: translateY(-8px); } }

.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem;
  background: var(--float-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px; font-size: .88rem; color: var(--text);
  box-shadow: 0 20px 40px -15px var(--shadow); transform: translateZ(50px);
  animation: bob 5s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: .76rem; }
.float-card .ico { font-size: 1.3rem; }
.fc1 { top: 12%; left: -9%; }
.fc2 { bottom: 14%; right: -7%; animation-delay: -2s; }
.fc3 { bottom: -6%; left: 10%; flex-direction: column; align-items: flex-start; animation-delay: -3.5s; }
@keyframes bob { 50% { translate: 0 -12px; } }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; }
.bars i { width: 10px; border-radius: 3px; background: var(--grad); animation: grow 2.4s var(--ease) infinite alternate; }
.bars i:nth-child(1) { height: 40%; } .bars i:nth-child(2) { height: 65%; animation-delay: .2s; }
.bars i:nth-child(3) { height: 50%; animation-delay: .4s; } .bars i:nth-child(4) { height: 80%; animation-delay: .6s; }
.bars i:nth-child(5) { height: 100%; animation-delay: .8s; }
@keyframes grow { from { transform: scaleY(.35); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.slide-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 2.6rem; }
.slide-dots button { width: 38px; height: 22px; background: none; border: 0; cursor: pointer; display: grid; align-items: center; }
.slide-dots i { display: block; height: 4px; border-radius: 4px; background: var(--line-strong); overflow: hidden; position: relative; transition: background .3s; }
.slide-dots i::after { content: ''; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.slide-dots button.on i::after { animation: fill var(--slide-ms, 4200ms) linear forwards; }
.slide-dots button:hover i { background: var(--muted); }
@keyframes fill { to { transform: scaleX(1); } }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 1.3rem 0; overflow: hidden; background: var(--bg-2); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 3.2rem; width: max-content; animation: scroll 40s linear infinite; }
.track span { font: 600 1.15rem var(--head); color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 3.2rem; }
.track span::after { content: '✦'; color: var(--violet); font-size: .8rem; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.svc {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; overflow: hidden; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.svc::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 45%);
}
.svc:hover { border-color: rgba(98,72,200,.4); box-shadow: 0 24px 50px -30px var(--shadow); }
.svc:hover::before { opacity: 1; }
.svc p { font-size: .95rem; }
.svc.big { grid-column: span 2; padding: 0; display: flex; flex-direction: column; }
.svc.big img { height: 220px; width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc.big:hover img { transform: scale(1.06); }
.svc-body { padding: 1.8rem; position: relative; }
.svc .num { position: absolute; top: 1.2rem; right: 1.5rem; font: 700 2.6rem var(--head); color: var(--num); }
.svc.big h3 { font-size: 1.6rem; }
.ico-lg { display: inline-grid; place-items: center; width: 52px; height: 52px; font-size: 1.5rem; border-radius: 14px; background: rgba(98,72,200,.1); border: 1px solid rgba(98,72,200,.22); margin-bottom: 1.2rem; transition: transform .4s var(--ease); }
.svc:hover .ico-lg { transform: rotate(-8deg) scale(1.08); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tags li { font-size: .78rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- AI ---------- */
.ai { background: radial-gradient(800px 500px at 85% 50%, rgba(18,179,230,.08), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.checks { margin: 0 0 2rem; display: grid; gap: .9rem; }
.checks li { padding-left: 2rem; position: relative; color: var(--muted); }
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: .75rem; background: var(--grad); color: #fff; }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(18,179,230,.35); }
.chat-top { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.chat-top b { display: block; font-size: .95rem; }
.chat-top small { color: var(--muted); font-size: .78rem; display: flex; align-items: center; gap: .35rem; }
.av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 700 .8rem var(--head); background: var(--grad); color: #fff; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #34d399; display: inline-block; }
.chat-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; height: 400px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 82%; padding: .75rem 1rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: pop .45s var(--ease) both; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--tint-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.tool { align-self: flex-start; font-size: .78rem; color: var(--accent-text); background: rgba(18,179,230,.08); border: 1px dashed rgba(18,179,230,.4); font-family: ui-monospace, Consolas, monospace; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 34px; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent); opacity: .5; }
.steps li { position: relative; padding: 1.6rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s; }
.steps li:hover { transform: translateY(-8px); border-color: rgba(18,179,230,.4); box-shadow: 0 24px 50px -30px var(--shadow); }
.steps span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font: 700 .9rem var(--head); background: var(--bg); border: 1px solid var(--violet); color: var(--text); margin-bottom: 1.2rem; }
.steps p { font-size: .95rem; }

/* ---------- Industries ---------- */
.inds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ind { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; isolation: isolate; }
.ind img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.85) brightness(.9); }
.ind::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,13,20,.92)); z-index: 1; }
.ind figcaption { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 2; color: #fff; }
.ind b { font: 600 1.2rem var(--head); display: block; }
.ind span { font-size: .85rem; color: rgba(255,255,255,.75); display: block; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .4s; }
.ind:hover img { transform: scale(1.08); filter: saturate(1.1) brightness(1); }
.ind:hover span { max-height: 3em; opacity: 1; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.about-grid p { margin-bottom: 1rem; }
.about-pics { position: relative; height: clamp(320px, 40vw, 500px); }
.about-pics img { position: absolute; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px var(--shadow); }
.p1 { width: 72%; height: 70%; top: 0; left: 0; }
.p2 { width: 58%; height: 56%; bottom: 0; right: 0; }
.badge-spin { position: absolute; width: 130px; height: 130px; left: 50%; top: 55%; translate: -60% -50%; background: var(--bg); border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.badge-spin svg { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.badge-spin text { font: 600 9.4px 'Inter'; letter-spacing: .2em; fill: var(--muted); }
.badge-spin span { font-size: 1.6rem; color: var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem; }
.values div { padding: 1.1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.values b { display: block; font-weight: 600; margin-bottom: .2rem; }
.values span { font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; font: 600 1.08rem var(--head); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: transform .3s var(--ease), background .3s; font-weight: 400; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--violet); border-color: var(--violet); color: #fff; }
.faq details p { padding: 0 2.5rem 1.3rem 0; animation: pop .4s var(--ease); }

/* ---------- CTA (stays dark in both themes) ---------- */
.cta-band { padding: 0 0 clamp(48px, 6vw, 80px); }
.cta-inner {
  position: relative; overflow: hidden; text-align: center; padding: clamp(50px, 8vw, 90px) 24px; border-radius: 30px;
  background: linear-gradient(120deg, #2a1d5e, #0b4a66); border: 1px solid rgba(255,255,255,.12); color: #fff;
}
.cta-inner::before { content: ''; position: absolute; width: 600px; height: 600px; left: 50%; top: 50%; translate: -50% -50%; background: conic-gradient(from 0deg, transparent, rgba(98,72,200,.5), transparent 30%); animation: spin 8s linear infinite; z-index: 0; }
.cta-inner::after { content: ''; position: absolute; inset: 2px; border-radius: 28px; background: linear-gradient(120deg, #1d1446, #0a3448); z-index: 0; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { margin-bottom: 2rem; }
.cta-inner .grad { background: linear-gradient(120deg, #cbbcff, #7deaf8); -webkit-background-clip: text; background-clip: text; }

/* ---------- Contact ---------- */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.contact { overflow: hidden; }
.contact .container { position: relative; }
.contact-bg span { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .25; pointer-events: none; animation: drift 20s ease-in-out infinite alternate; }
[data-theme="light"] .contact-bg span { opacity: .12; }
.contact-bg span:first-child { width: 520px; height: 520px; background: var(--violet); top: 0; left: -200px; }
.contact-bg span:last-child { width: 460px; height: 460px; background: var(--cyan); bottom: 0; right: -180px; animation-delay: -8s; }
.contact-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.contact-head .lead { margin-inline: auto; }

.reach { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 1.4rem; }
.reach-card {
  --ang: 0deg; --accent: var(--cyan);
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: 26px; background: var(--card); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.reach-card::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ang), transparent 0 60%, var(--accent), var(--violet), transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s; animation: orbit 4s linear infinite;
}
.reach-card:hover, .reach-card.featured { box-shadow: 0 30px 60px -30px rgba(18,179,230,.45); }
.reach-card:hover::before, .reach-card.featured::before { opacity: 1; }
.reach-card.reveal.in:hover { transform: translateY(-8px); }
.reach-card.wa { --accent: #25d366; }
.reach-card.wa.featured { background: linear-gradient(160deg, rgba(37,211,102,.12), rgba(18,179,230,.05)), var(--card); box-shadow: 0 30px 60px -30px rgba(37,211,102,.4); }
@keyframes orbit { to { --ang: 360deg; } }

.reach-ico {
  position: relative; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 1.6rem; box-shadow: 0 12px 30px -10px rgba(98,72,200,.7);
}
.wa .reach-ico { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 12px 30px -10px rgba(37,211,102,.6); }
.reach-ico svg { width: 28px; height: 28px; }
.reach-ico::before, .reach-ico::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; animation: ring 2.8s var(--ease) infinite; }
.reach-ico::after { animation-delay: 1.4s; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.reach-card:hover .reach-ico svg { animation: wiggle .6s ease; }
@keyframes wiggle { 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }

.reach-label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: .5rem; }
.wa .reach-label { color: #16a34a; }
[data-theme="dark"] .wa .reach-label { color: #25d366; }
[data-theme="light"] .reach-card:not(.wa) .reach-label { color: var(--accent-text); }
.reach-big { font: 700 clamp(1.4rem, 2.6vw, 2rem) var(--head); letter-spacing: -.01em; line-height: 1.2; overflow-wrap: break-word; background: linear-gradient(90deg, var(--text) 50%, var(--accent) 50%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .5s var(--ease); }
.reach-big:hover { background-position: -100% 0; }
.reach-sub { font-size: .95rem; color: var(--muted); margin: .5rem 0 1.8rem; flex: 1; max-width: 42ch; }
.reach-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.reach-btn { white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px; cursor: pointer;
  font: 600 .92rem 'Inter', sans-serif; color: var(--text); background: var(--tint-2); border: 1px solid var(--line);
  transition: background .3s, border-color .3s, color .3s;
}
.reach-btn i { font-style: normal; transition: transform .3s var(--ease); }
.reach-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .reach-btn:hover { color: #0b0d14; }
.reach-btn:hover i { transform: translateX(4px); }
.reach-btn.ghost { background: transparent; }

.places { display: grid; grid-template-columns: 1fr minmax(90px, 180px) 1fr; align-items: stretch; gap: 1.4rem; }
.route { align-self: center; }
.place { padding: 1.6rem 1.8rem; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.place:hover { border-color: rgba(18,179,230,.4); }
.place-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.place-top b { display: block; font: 700 clamp(1.35rem, 2.2vw, 1.7rem) var(--head); letter-spacing: -.01em; line-height: 1.15; }
.place-top small { display: block; margin-top: .15rem; color: var(--muted); font-size: .9rem; font-weight: 500; }
.place-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--cyan); background: rgba(18,179,230,.1); border: 1px solid rgba(18,179,230,.25); }
.place-ico svg { width: 22px; height: 22px; }
.clock { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); font: 600 .85rem var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: ping 2s infinite; }
.place p { font-size: .95rem; }

/* Animated flight path between the two cities */
.route { position: relative; height: 40px; }
.route-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; translate: 0 -50%;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 16px); background-size: 32px 2px;
  animation: dash 1s linear infinite; opacity: .7; }
.route::before, .route::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; translate: 0 -50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(18,179,230,.2); }
.route::before { left: -5px; } .route::after { right: -5px; }
.route-plane { position: absolute; top: 50%; left: 0; translate: -50% -55%; font-size: 1.2rem; color: var(--violet); animation: fly 4s ease-in-out infinite alternate; }
@keyframes dash { to { background-position: 32px 0; } }
@keyframes fly { from { left: 8%; } to { left: 92%; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 3rem; }
.foot-grid .brand { margin-bottom: 1rem; }
.foot-grid h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-family: 'Inter'; }
.foot-grid > div > a:not(.brand) { display: block; padding: .25rem 0; transition: color .2s, transform .2s; }
.foot-grid > div > a:not(.brand):hover { color: var(--accent-text); transform: translateX(4px); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.to-top:hover { color: var(--text); }
.locs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.locs span { font-size: .8rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); display: inline-flex; align-items: center; gap: .45rem; }
.locs span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.svc.reveal.in:hover { transform: translateY(-6px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding: 100px 24px 40px;
    flex-direction: column; justify-content: center; gap: 1.8rem; font-size: 1.4rem; margin: 0; visibility: hidden;
    background: var(--menu-bg); will-change: clip-path; contain: paint;
    clip-path: circle(0 at calc(100% - 36px) 44px); transition: clip-path .6s var(--ease), visibility 0s .6s;
  }
  .nav-links.open { clip-path: circle(150% at calc(100% - 36px) 44px); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
  .nav-links .btn { margin-top: .4rem; }
  .brand { position: relative; z-index: 2; }
}
@media (max-height: 520px) and (max-width: 1080px) { .nav-links { justify-content: flex-start; gap: .75rem; font-size: 1.05rem; padding-top: 84px; padding-bottom: 24px; } }
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc.big { grid-column: auto; }
  .ind { aspect-ratio: 3/4; }
  .inds { gap: .8rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 110px 0 70px; }
  .hero-grid, .ai-grid, .about-grid, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  [data-theme="dark"] .hero-shade { background: linear-gradient(180deg, rgba(11,13,20,.88), rgba(11,13,20,.8) 50%, var(--bg)); }
  [data-theme="light"] .hero-shade { background: linear-gradient(180deg, rgba(246,248,252,.92), rgba(246,248,252,.85) 50%, var(--bg)); }
  .hero-visual { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .fc1 { left: -2%; } .fc2 { right: -2%; }
  .scroll-hint { display: none; }
  .about-pics { max-width: 560px; width: 100%; margin-inline: auto; }
  .faq-wrap .head { margin-bottom: 0; }
  .places { grid-template-columns: 1fr; gap: 0; }
  .route { height: 56px; width: 2px; margin-inline: auto; }
  .route-line { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; translate: -50% 0;
    background: repeating-linear-gradient(180deg, var(--cyan) 0 8px, transparent 8px 16px); background-size: 2px 32px; animation-name: dash-v; }
  .route::before, .route::after { left: 50%; right: auto; translate: -50% 0; }
  .route::before { top: -5px; } .route::after { top: auto; bottom: -5px; }
  .route-plane { left: 50%; translate: -50% -50%; animation-name: fly-v; rotate: 90deg; }
  @keyframes dash-v { to { background-position: 0 32px; } }
  @keyframes fly-v { from { top: 10%; } to { top: 90%; } }
}
@media (max-width: 760px) {
  .inds { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .reach { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .reach-big { font-size: clamp(1.05rem, 5.4vw, 1.4rem); }
  .brand img { height: 54px; }
  .brand-plate { padding: 4px 10px; border-radius: 12px; }
  .services, .steps, .values { grid-template-columns: 1fr; }
  .ind { aspect-ratio: 1; }
  .ind span { max-height: 3em; opacity: 1; font-size: .75rem; }
  .hero-meta { gap: 1.4rem; }
  .hero-meta b { font-size: 1.7rem; }
  .float-card { font-size: .78rem; padding: .6rem .75rem; }
  .fc3 { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .badge-spin { width: 100px; height: 100px; }
  .chat-body { height: 360px; padding: 1rem; }
  .msg { max-width: 90%; }
  .cursor-glow { display: none; }
  .svc { padding: 1.5rem; }
  .svc-body { padding: 1.5rem; }
  .svc.big img { height: 180px; }
  .steps li { padding: 1.4rem; }
  .faq summary { font-size: 1rem; }
  .cta-inner { border-radius: 22px; }
  .foot-bottom { flex-direction: column; }
  .place { padding: 1.4rem; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 2rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .reach-actions .reach-btn { flex: 1; justify-content: center; }
  .place-top { flex-wrap: wrap; }
  .clock { margin-left: 0; }
}
@media (max-width: 340px) {
  .inds { grid-template-columns: 1fr; }
  .ind { aspect-ratio: 16/10; }
}

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