/* ============================================================
   JE TECHNOLOGIES — Design System & Styles
   Dark / Light · Glassmorphism · Fully responsive
   ============================================================ */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x on <html> as well as <body> — iOS Safari ignores it on body
   alone, which lets decorative off-canvas elements pan the page sideways. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- 2. TOKENS ---------- */
:root {
  --brand:   #0066FF;
  --brand-2: #00D9FF;
  --accent:  #6C63FF;
  --grad:    linear-gradient(135deg, #0066FF 0%, #00D9FF 100%);
  --grad-3:  linear-gradient(120deg, #0066FF 0%, #6C63FF 48%, #00D9FF 100%);
  --ok: #22C55E;  --warn: #F59E0B;  --err: #F87171;

  --f-display: "Plus Jakarta Sans", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --wrap: 1240px;
  --pad: clamp(18px, 4vw, 34px);
  --sect: clamp(64px, 8vw, 118px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 74px;
}

/* Dark (default) */
html[data-theme="dark"] {
  --bg: #0B1120;
  --bg-2: #0D1526;
  --bg-3: #101A2E;
  --surface: rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.075);
  --surface-solid: #121C30;
  --border: rgba(255,255,255,.10);
  --border-2: rgba(255,255,255,.18);
  --text: #E8EEF9;
  --text-2: #A6B4CC;
  --text-3: #75859F;
  --glass-blur: blur(18px) saturate(150%);
  --shadow: 0 20px 46px rgba(0,0,0,.42);
  --shadow-lg: 0 34px 80px rgba(0,0,0,.55);
  --glow: 0 0 44px rgba(0,102,255,.35);
  --nav-bg: rgba(11,17,32,.72);
  color-scheme: dark;
}

/* Light */
html[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F4F8FE;
  --bg-3: #EDF3FC;
  --surface: rgba(255,255,255,.72);
  --surface-2: rgba(255,255,255,.92);
  --surface-solid: #FFFFFF;
  --border: rgba(11,17,32,.10);
  --border-2: rgba(11,17,32,.18);
  --text: #0B1120;
  --text-2: #4B5B77;
  --text-3: #6C7C96;
  --glass-blur: blur(16px) saturate(160%);
  --shadow: 0 16px 40px rgba(11,17,32,.10);
  --shadow-lg: 0 30px 70px rgba(11,17,32,.16);
  --glow: 0 0 44px rgba(0,102,255,.18);
  --nav-bg: rgba(255,255,255,.78);
  color-scheme: light;
}

/* ---------- 3. BASE ---------- */
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
body.menu-open, body.modal-open { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.16; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(2.15rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.9vw, 2.85rem); }
h3 { font-size: clamp(1.06rem, 1.7vw, 1.3rem); }
p { color: var(--text-2); }

.container { width: min(100% - (var(--pad) * 2), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sect); position: relative; }
.section--alt { background: var(--bg-2); }
.gradient-text {
  background: var(--grad-3);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 14px; }

.section__head { max-width: 780px; margin: 0 auto clamp(38px, 5vw, 62px); text-align: center; }
.section__title { margin-bottom: 16px; }
.section__lead { font-size: clamp(1rem, 1.4vw, 1.09rem); color: var(--text-2); }
.eyebrow {
  display: inline-block; font-family: var(--f-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px;
}
html[data-theme="light"] .eyebrow { color: var(--brand); }

/* ---------- 4. GLASS / CARDS ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--r-lg);
}
.card { padding: 30px; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 20px; box-shadow: var(--glow);
}

/* ---------- 5. BUTTONS / CHIPS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-display); font-weight: 700; font-size: .93rem;
  padding: 12px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(0,102,255,.34); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,102,255,.48); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35), transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--brand-2); color: var(--brand-2); }
html[data-theme="light"] .btn--ghost:hover { color: var(--brand); border-color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; padding: 7px 15px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border); font-size: .83rem;
  color: var(--text-2); font-weight: 500; transition: .25s;
}
.chip--tech:hover { color: var(--brand-2); border-color: var(--brand-2); transform: translateY(-2px); }
html[data-theme="light"] .chip--tech:hover { color: var(--brand); border-color: var(--brand); }
.chip--sm { padding: 4px 11px; font-size: .76rem; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 12px;
  border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 24px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(0,217,255,.18); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(0,217,255,.20); } 50% { box-shadow: 0 0 0 8px rgba(0,217,255,0); } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(0,102,255,.14); border: 1px solid rgba(0,102,255,.3);
  font-size: .72rem; font-weight: 700; color: var(--brand-2); font-family: var(--f-display);
}
html[data-theme="light"] .badge { color: var(--brand); }
.badge--live i { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; animation: pulse 2s infinite; }
.dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; margin-right: 6px; }

/* ---------- 6. PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--bg); transition: opacity .55s var(--ease), visibility .55s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader[hidden] { display: none; }
.preloader__inner { text-align: center; }
.preloader__mark { position: relative; width: 120px; height: 120px; margin: 0 auto 22px; }
.preloader__mark svg { width: 100%; height: 100%; }
.preloader__ring { stroke-dasharray: 90 210; transform-origin: center; animation: spin 1.25s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.preloader__logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 66px; height: auto;
}
.preloader__label { font-family: var(--f-display); font-size: .8rem; font-weight: 700; letter-spacing: .3em; color: var(--text-2); margin-bottom: 5px; }
.preloader__full { font-size: .76rem; letter-spacing: .08em; color: var(--text-3); margin-bottom: 18px; }
.preloader__bar { width: 190px; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-inline: auto; }
.preloader__bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--grad); animation: load 1.1s var(--ease) infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

/* ---------- 7. SCROLL PROGRESS ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--grad-3); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- 8. NAVIGATION ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, height .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--nav-bg); border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 30px rgba(0,0,0,.14);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(100% - (var(--pad) * 2), var(--wrap)); margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 54px; height: 36px; flex-shrink: 0; display: grid; place-items: center; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }

/* Two logo variants: the artwork is dark navy, which disappears on the dark
   theme, so a lightened version is shown there instead. */
html[data-theme="dark"] .logo-on-light,
html[data-theme="light"] .logo-on-dark { display: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--f-display); font-size: 1.03rem; font-weight: 800; letter-spacing: -.02em; }
.brand__text small { font-size: .73rem; color: var(--text-2); letter-spacing: .03em; font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 3px; }
.nav__link {
  position: relative; padding: 9px 13px; border-radius: var(--r-sm);
  font-size: .89rem; font-weight: 600; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 5px; transition: color .25s, background .25s;
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link.is-active { color: var(--brand-2); }
html[data-theme="light"] .nav__link.is-active { color: var(--brand); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--grad);
}
.nav__more { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-8px);
  min-width: 200px; padding: 8px; border-radius: var(--r);
  background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: .28s var(--ease);
}
.nav__more:hover .nav__dropdown, .nav__more.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dropdown a { display: block; padding: 9px 14px; border-radius: var(--r-xs); font-size: .88rem; font-weight: 500; color: var(--text-2); transition: .2s; }
.nav__dropdown a:hover { background: var(--surface-2); color: var(--brand-2); }
html[data-theme="light"] .nav__dropdown a:hover { color: var(--brand); }

.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); transition: .28s;
}
.icon-btn:hover { color: var(--brand-2); border-color: var(--brand-2); transform: rotate(18deg); }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: none; }
.nav__cta-mobile { display: none; }

.hamburger { display: none; width: 42px; height: 42px; border-radius: var(--r-xs); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { display: block; width: 21px; height: 2px; border-radius: 2px; background: var(--text); transition: .32s var(--ease); }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop { position: fixed; inset: 0; z-index: 998; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nav-backdrop[hidden] { display: none; }

/* ---------- 9. HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 46px) 70px; overflow: hidden; }
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 25%, transparent 100%);
  opacity: .55;
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .5; }
.orb--1 { width: 520px; height: 520px; background: rgba(0,102,255,.42); top: -160px; left: -130px; animation: drift 17s ease-in-out infinite; }
.orb--2 { width: 460px; height: 460px; background: rgba(108,99,255,.36); bottom: -170px; right: -110px; animation: drift 21s ease-in-out infinite reverse; }
.orb--3 { width: 340px; height: 340px; background: rgba(0,217,255,.24); top: 42%; left: 46%; animation: drift 25s ease-in-out infinite; }
html[data-theme="light"] .orb { opacity: .32; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(46px,-40px) scale(1.09); } 66% { transform: translate(-38px,34px) scale(.94); } }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(34px, 5vw, 66px); align-items: center; }
.hero__title { margin-bottom: 22px; }
.hero__sub { font-size: clamp(1rem, 1.5vw, 1.13rem); max-width: 570px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 46px); padding-top: 28px; border-top: 1px solid var(--border); }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__trust span { font-size: .8rem; color: var(--text-3); }

.hero__visual { position: relative; }
.ai-core { padding: 20px; box-shadow: var(--shadow-lg); }
.ai-core__head { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); }
.dots i:first-child { background: #FF5F57; } .dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.ai-core__title { font-family: var(--f-display); font-size: .82rem; font-weight: 700; color: var(--text-2); margin-right: auto; }
.ai-net { width: 100%; height: auto; }
.ai-net__links line { stroke-dasharray: 5 8; animation: flow 2.6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes flow { to { stroke-dashoffset: -26; } }
.ai-net__nodes circle { animation: nodePulse 2.6s var(--ease) infinite; animation-delay: var(--d, 0s); transform-origin: center; }
@keyframes nodePulse { 0%,100% { r: 4.5; opacity: .7; } 50% { r: 6.5; opacity: 1; } }
.ai-core__foot { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .78rem; }
.meter span { color: var(--text-3); }
.meter b { font-family: var(--f-display); color: var(--brand-2); }
html[data-theme="light"] .meter b { color: var(--brand); }
.meter i { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 3px; background: var(--grad); animation: grow 1.6s var(--ease) both; }
@keyframes grow { from { width: 0; } }

.float-chip {
  position: absolute; padding: 9px 16px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 600;
  background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow);
  white-space: nowrap; animation: floaty 5.5s ease-in-out infinite;
}
.float-chip--1 { top: -22px; right: 4%; animation-delay: 0s; }
.float-chip--2 { top: 34%; left: -10%; animation-delay: .9s; }
.float-chip--3 { bottom: 16%; right: -6%; animation-delay: 1.8s; }
.float-chip--4 { bottom: -20px; left: 8%; animation-delay: 2.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 25px; height: 40px; border: 2px solid var(--border-2); border-radius: var(--r-pill); display: grid; justify-items: center; padding-top: 7px; z-index: 2; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 3px; background: var(--brand-2); animation: cue 1.7s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }

/* ---------- 10. MARQUEE ---------- */
.marquee-wrap { padding-block: 30px; border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 46px; padding-right: 46px; animation: scroll-x 42s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee__item { font-family: var(--f-display); font-size: 1.02rem; font-weight: 700; color: var(--text-3); white-space: nowrap; transition: color .25s; }
.marquee__item:hover { color: var(--brand-2); }

/* ---------- 11. ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.about-clients { margin-top: 52px; text-align: center; }
.about-clients__label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-weight: 600; }
.about-clients .chips { justify-content: center; }

/* ---------- 12. FOUNDER ---------- */
.founder { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(34px, 5vw, 66px); align-items: center; }
.founder__media { position: relative; display: grid; place-items: center; }
.founder__photo { position: relative; padding: 16px; width: 100%; max-width: 330px; box-shadow: var(--shadow-lg); }
.founder__photo svg { width: 100%; height: auto; border-radius: var(--r); }
.founder__badge {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  padding: 8px 20px; border-radius: var(--r-pill); background: var(--grad); color: #fff;
  font-family: var(--f-display); font-size: .78rem; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 26px rgba(0,102,255,.4);
}
.founder__ring { position: absolute; inset: -22px; border: 1px dashed var(--border-2); border-radius: 50%; animation: spin 34s linear infinite; pointer-events: none; }
.founder__role { font-family: var(--f-display); font-weight: 700; color: var(--brand-2); margin-bottom: 18px; }
html[data-theme="light"] .founder__role { color: var(--brand); }
.founder__body p { margin-bottom: 15px; }
.founder__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 11px; margin: 24px 0 28px; }
.founder__points li { display: flex; align-items: center; gap: 11px; font-size: .92rem; color: var(--text-2); }
.founder__points i { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.founder__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 13. SERVICES ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.service { padding: 30px; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); position: relative; overflow: hidden; }
.service::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.service:hover { transform: translateY(-7px); border-color: var(--border-2); box-shadow: var(--shadow); }
.service:hover::before { transform: scaleX(1); }
.service__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 20px; box-shadow: var(--glow); }
.service h3 { margin-bottom: 9px; }
.service > p { font-size: .93rem; margin-bottom: 18px; }
.service__list { display: grid; gap: 8px; padding-top: 17px; border-top: 1px solid var(--border); }
.service__list li { display: flex; align-items: flex-start; gap: 9px; font-size: .87rem; color: var(--text-2); }
.service__list svg { color: var(--brand-2); flex-shrink: 0; margin-top: 5px; }
html[data-theme="light"] .service__list svg { color: var(--brand); }

/* ---------- 14. AI SOLUTIONS ---------- */
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ai-card { padding: 30px; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.ai-card:hover { transform: translateY(-7px); border-color: var(--brand); box-shadow: var(--shadow); }
.ai-card__icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(0,102,255,.14); border: 1px solid rgba(0,102,255,.3); color: var(--brand-2); margin-bottom: 19px; }
html[data-theme="light"] .ai-card__icon { color: var(--brand); }
.ai-card h3 { margin-bottom: 9px; }
.ai-card p { font-size: .93rem; margin-bottom: 17px; }
.ai-card__metric { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-display); font-size: .8rem; font-weight: 700; color: var(--brand-2); padding: 6px 13px; border-radius: var(--r-pill); background: rgba(0,217,255,.1); }
html[data-theme="light"] .ai-card__metric { color: var(--brand); background: rgba(0,102,255,.08); }

/* ---------- 15. PROJECTS ⭐ ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 19px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  font-family: var(--f-display); font-size: .87rem; font-weight: 700; transition: .28s var(--ease);
}
.filter span { font-size: .7rem; padding: 1px 8px; border-radius: var(--r-pill); background: var(--border); color: var(--text-3); }
.filter:hover { border-color: var(--brand); color: var(--text); transform: translateY(-2px); }
.filter.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(0,102,255,.34); }
.filter.is-active span { background: rgba(255,255,255,.25); color: #fff; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(325px, 1fr)); gap: 26px; }
.project {
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer; position: relative;
  background: var(--surface); border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.project:hover, .project:focus-visible { transform: translateY(-9px); border-color: var(--brand); box-shadow: var(--shadow-lg); }
.project__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project:hover .project__media img { transform: scale(1.07); }
.project__flag, .project__cat {
  position: absolute; top: 14px; padding: 5px 13px; border-radius: var(--r-pill);
  font-family: var(--f-display); font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.project__flag { left: 14px; background: rgba(255,255,255,.95); color: #0B1120; }
.project__cat { right: 14px; background: rgba(5,10,24,.55); color: #fff; border: 1px solid rgba(255,255,255,.24); }
.project__view {
  position: absolute; inset: auto 0 0 0; padding: 13px 18px; display: flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-size: .84rem; font-weight: 700; color: #fff;
  background: linear-gradient(0deg, rgba(5,10,24,.86), transparent);
  transform: translateY(100%); opacity: 0; transition: .4s var(--ease);
}
.project:hover .project__view, .project:focus-visible .project__view { transform: translateY(0); opacity: 1; }
.project__body { padding: 22px 24px 24px; }
.project__body h3 { margin-bottom: 8px; transition: color .25s; }
.project:hover .project__body h3 { color: var(--brand-2); }
html[data-theme="light"] .project:hover .project__body h3 { color: var(--brand); }
.project__body > p { font-size: .91rem; margin-bottom: 18px; }
.project__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.project__count { font-size: .79rem; font-weight: 600; color: var(--text-3); }
.project__arrow { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--brand-2); transition: .35s var(--ease); }
.project:hover .project__arrow { background: var(--grad); color: #fff; border-color: transparent; transform: translateX(3px); }
.projects__empty { text-align: center; color: var(--text-3); padding: 40px 0; }
.projects__more { display: flex; justify-content: center; margin-top: 44px; }
.projects__more[hidden] { display: none; }
#loadMoreBtn svg { transition: transform .35s var(--ease); }
#loadMoreBtn.is-expanded svg { transform: rotate(180deg); }

/* ---------- 16. PRODUCTS ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 22px; }
.product { padding: 26px; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); display: flex; flex-direction: column; }
.product[data-open-project] { cursor: pointer; }
.product:hover { transform: translateY(-7px); border-color: var(--brand); box-shadow: var(--shadow); }
.product__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 17px; box-shadow: var(--glow); }
.product h3 { font-size: 1.02rem; margin-bottom: 8px; }
.product p { font-size: .88rem; margin-bottom: 17px; flex: 1; }
.product__link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-display); font-size: .82rem; font-weight: 700; color: var(--brand-2); }
html[data-theme="light"] .product__link { color: var(--brand); }
.product__link--muted { color: var(--text-3); }
.product:hover .product__link svg { transform: translateX(3px); }
.product__link svg { transition: transform .3s var(--ease); }

/* ---------- 17. INDUSTRIES ---------- */
.industries { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 18px; }
.industry { padding: 26px 18px; text-align: center; transition: transform .4s var(--ease), border-color .3s, background .3s; }
.industry span { width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--brand-2); transition: .35s var(--ease); }
html[data-theme="light"] .industry span { color: var(--brand); }
.industry h3 { font-size: .93rem; }
.industry:hover { transform: translateY(-6px); border-color: var(--brand); }
.industry:hover span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); transform: rotate(-6deg); }

/* ---------- 18. STATS ---------- */
.stats-band { padding-block: clamp(52px, 6vw, 80px); background: var(--bg-3); border-block: 1px solid var(--border); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(0,102,255,.16), transparent 70%); pointer-events: none; }
.stats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px 20px; text-align: center; }
.stat__icon { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--brand-2); }
html[data-theme="light"] .stat__icon { color: var(--brand); }
.stat strong { display: block; font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1; background: var(--grad-3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { display: block; font-size: .85rem; color: var(--text-2); margin-top: 9px; }

/* ---------- 19. TECHNOLOGIES ---------- */
.tech-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.tech-group { padding: 26px; }
.tech-group h3 { font-size: .94rem; margin-bottom: 16px; color: var(--brand-2); letter-spacing: .04em; text-transform: uppercase; }
html[data-theme="light"] .tech-group h3 { color: var(--brand); }

/* ---------- 20. WHY US ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.why-card { padding: 24px; display: flex; gap: 16px; align-items: flex-start; transition: transform .4s var(--ease), border-color .3s; }
.why-card:hover { transform: translateY(-5px); border-color: var(--brand); }
.why-card__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; box-shadow: var(--glow); }
.why-card h3 { font-size: 1rem; margin-bottom: 6px; }
.why-card p { font-size: .88rem; }

/* ---------- 21. TESTIMONIALS ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.quote { padding: 30px; display: flex; flex-direction: column; gap: 18px; transition: transform .45s var(--ease), border-color .3s; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 4px; right: 24px; font-family: Georgia, serif; font-size: 5.4rem; line-height: 1; color: var(--border-2); }
.quote:hover { transform: translateY(-6px); border-color: var(--brand); }
.quote__stars { color: #FBBF24; display: flex; gap: 2px; }
.quote blockquote { font-size: .95rem; color: var(--text-2); flex: 1; font-style: italic; }
.quote figcaption { display: flex; align-items: center; gap: 13px; padding-top: 17px; border-top: 1px solid var(--border); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.quote figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.quote figcaption strong { font-family: var(--f-display); font-size: .93rem; }
.quote figcaption small { font-size: .78rem; color: var(--text-3); }

/* ---------- 22. RESEARCH ---------- */
.research { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.research-card { padding: 28px; transition: transform .4s var(--ease), border-color .3s; }
.research-card:hover { transform: translateY(-6px); border-color: var(--brand); }
.research-card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(108,99,255,.16); border: 1px solid rgba(108,99,255,.32); color: var(--accent); margin-bottom: 17px; }
.research-card h3 { font-size: 1rem; margin-bottom: 9px; }
.research-card p { font-size: .89rem; }

/* ---------- 23. BLOG ---------- */
.blog { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.post { overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); cursor: pointer; }
.post:hover { transform: translateY(-7px); border-color: var(--brand); box-shadow: var(--shadow); }
.post__cover { height: 150px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; overflow: hidden; }
.post__cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.2px); background-size: 18px 18px; }
.post__cover svg { position: relative; z-index: 1; transition: transform .5s var(--ease); }
.post:hover .post__cover svg { transform: scale(1.15) rotate(-6deg); }
.post__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(0,102,255,.12); color: var(--brand-2); font-size: .72rem; font-weight: 700; font-family: var(--f-display); margin-bottom: 13px; }
html[data-theme="light"] .tag { color: var(--brand); }
.post h3 { font-size: 1.05rem; margin-bottom: 9px; }
.post p { font-size: .89rem; flex: 1; margin-bottom: 17px; }
.post footer { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-3); padding-top: 15px; border-top: 1px solid var(--border); }

/* ---------- 24. FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color .3s; }
.faq__item[open] { border-color: var(--brand); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none; transition: background .25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--surface-2); }
.faq__item summary h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.faq__mark { position: relative; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); }
.faq__mark::before, .faq__mark::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; border-radius: 2px; transition: transform .3s var(--ease);
}
.faq__mark::before { width: 10px; height: 2px; }
.faq__mark::after { width: 2px; height: 10px; }
.faq__item[open] .faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { padding: 0 24px 22px; }
.faq__a p { font-size: .93rem; line-height: 1.72; }

/* ---------- 25. CONTACT ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 26px; align-items: start; }
.contact__info { display: grid; gap: 22px; }
.contact__card { padding: 30px; display: grid; gap: 20px; }
.contact__row { display: flex; gap: 15px; align-items: flex-start; }
.contact__icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; box-shadow: var(--glow); }
.contact__row small { display: block; font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 3px; font-weight: 600; }
.contact__row p { color: var(--text); font-size: .93rem; }
.contact__row em { color: var(--text-3); font-size: .85rem; }
.contact__row a { transition: color .25s; }
.contact__row a:hover { color: var(--brand-2); }
.contact__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.qbtn { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 8px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-2); font-size: .78rem; font-weight: 600; transition: .3s var(--ease); text-align: center; }
.qbtn:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
.qbtn--wa:hover { background: #25D366; }
.qbtn--call:hover { background: var(--brand); }
.qbtn--mail:hover { background: var(--accent); }

.map { position: relative; height: 260px; overflow: hidden; padding: 0; }
.map iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; filter: grayscale(.25); }
html[data-theme="dark"] .map iframe { filter: grayscale(.4) invert(.9) hue-rotate(180deg) brightness(.92) contrast(.95); }
.map__fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; background: var(--bg-3); }
.map__fallback [data-icon] { color: var(--brand-2); }
.map__fallback p { font-size: .9rem; }

.contact__form { padding: 32px; display: grid; gap: 17px; }
.contact__form h3 { margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.field label i { color: var(--err); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-size: .92rem; font-family: var(--f-body); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 118px; }
.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2374839E' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,102,255,.16); }
.field .is-invalid, .field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid { border-color: var(--err); }
.err { font-size: .76rem; color: var(--err); min-height: 0; }
.err:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; color: var(--text-2); cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form__note { font-size: .86rem; padding: 0; }
.form__note.is-ok { color: var(--ok); padding: 12px 15px; border-radius: var(--r-sm); background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.28); }
.form__note.is-error { color: var(--err); padding: 12px 15px; border-radius: var(--r-sm); background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.28); }
.form__note a { text-decoration: underline; }

/* ---------- 26. FOOTER ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 76px) 0; }
.footer__top { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr) 1.5fr; gap: 38px 26px; padding-bottom: 44px; }
.footer__brand p { font-size: .89rem; margin: 18px 0 20px; max-width: 300px; }
.footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__mail {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px;
  border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: .86rem; font-weight: 600; transition: .3s var(--ease);
  max-width: 100%; overflow: hidden;
}
.footer__mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer__mail svg { flex-shrink: 0; }
.footer__mail:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,102,255,.32); }
.footer__col h4 { font-family: var(--f-display); font-size: .92rem; margin-bottom: 17px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: .87rem; color: var(--text-2); transition: color .25s, padding-left .25s; }
.footer__col a:hover { color: var(--brand-2); padding-left: 4px; }
html[data-theme="light"] .footer__col a:hover { color: var(--brand); }
.footer__col--news p { font-size: .86rem; margin-bottom: 15px; }
.news { display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: .86rem; }
.news input:focus { outline: none; border-color: var(--brand); }
.news button { width: 42px; height: 42px; padding: 0; flex-shrink: 0; border-radius: 50%; }
.news__note { font-size: .78rem; margin-top: 9px; }
.news__note.is-ok { color: var(--ok); }
.news__note.is-error { color: var(--err); }
.footer__mini { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; }
.footer__mini a { font-size: .8rem; color: var(--text-3); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid var(--border); font-size: .83rem; color: var(--text-3); }
.footer__bottom a { transition: color .25s; }
.footer__bottom a:hover { color: var(--brand-2); }

/* ---------- 27. MODAL (project case study) ⭐ ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 34px); opacity: 0; transition: opacity .3s var(--ease); }
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3,7,18,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal__panel { position: relative; width: min(100%, 1000px); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; background: var(--surface-solid); box-shadow: var(--shadow-lg); transform: translateY(26px) scale(.98); transition: transform .38s var(--ease); }
.modal.is-open .modal__panel { transform: none; }
.modal--sm .modal__panel { max-width: 720px; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(5,10,24,.6); color: #fff; border: 1px solid rgba(255,255,255,.24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: .28s var(--ease); }
.modal__close:hover { background: var(--err); border-color: transparent; transform: rotate(90deg); }
.modal__scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal__scroll::-webkit-scrollbar { width: 9px; }
.modal__scroll::-webkit-scrollbar-track { background: transparent; }
.modal__scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 9px; }

.pm__hero { position: relative; }
.pm__hero img { width: 100%; height: clamp(190px, 30vw, 320px); object-fit: cover; }
.pm__hero figcaption { position: absolute; inset: auto 0 0 0; padding: clamp(22px, 4vw, 38px); background: linear-gradient(0deg, rgba(5,10,24,.94) 22%, rgba(5,10,24,.5) 62%, transparent); color: #fff; }
.pm__hero h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.4rem, 3.2vw, 2.1rem); }
.pm__hero p { color: rgba(255,255,255,.86); font-size: clamp(.9rem, 1.5vw, 1.02rem); max-width: 640px; }
.pm__cat { display: inline-block; padding: 5px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); font-family: var(--f-display); font-size: .74rem; font-weight: 700; margin-bottom: 13px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.pm__body { padding: clamp(24px, 4vw, 40px); display: grid; gap: clamp(26px, 3.5vw, 38px); }
.pm__block h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin-bottom: 13px; }
.pm__block h3 svg { color: var(--brand-2); flex-shrink: 0; }
html[data-theme="light"] .pm__block h3 svg { color: var(--brand); }
.pm__lead { font-size: .97rem; line-height: 1.75; }
.pm__hint { font-size: .86rem; color: var(--text-3); margin-bottom: 20px; }
.pm__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.pm__stats div { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.pm__stats strong { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pm__stats span { font-size: .78rem; color: var(--text-3); }

.pm__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.pmf { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .3s var(--ease); }
.pmf:hover { border-color: var(--brand); transform: translateY(-3px); }
.pmf__n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--f-display); font-size: .78rem; font-weight: 800; }
.pmf h4 { font-size: .95rem; margin-bottom: 5px; }
.pmf p { font-size: .87rem; line-height: 1.62; }

.pm__outcomes { display: grid; gap: 11px; }
.pm__outcomes li { display: flex; align-items: flex-start; gap: 11px; font-size: .92rem; color: var(--text-2); }
.pm__outcomes svg { color: var(--ok); flex-shrink: 0; margin-top: 4px; }

.pm__cta { padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, rgba(0,102,255,.12), rgba(108,99,255,.1)); border: 1px solid var(--border-2); }
.pm__cta h3 { margin-bottom: 5px; font-size: 1.08rem; }
.pm__cta p { font-size: .9rem; }
.pm__cta-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.legal { padding: clamp(30px, 4vw, 44px); }
.legal h2 { margin-bottom: 20px; }
.legal h4 { font-size: 1rem; margin: 22px 0 8px; }
.legal p { font-size: .92rem; margin-bottom: 10px; }
.legal a { color: var(--brand-2); text-decoration: underline; }
html[data-theme="light"] .legal a { color: var(--brand); }

/* ---------- 28. FLOATING UI ---------- */
.fab { position: fixed; z-index: 900; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .35s var(--ease), opacity .35s, background .3s; }
.fab:hover { transform: translateY(-4px) scale(1.06); }
.fab--wa { right: 24px; bottom: 96px; background: #25D366; color: #fff; }
.fab--bot { right: 24px; bottom: 24px; background: var(--grad); color: #fff; }
.fab--top { right: 24px; bottom: 168px; background: var(--surface-solid); border: 1px solid var(--border); color: var(--text); opacity: 0; visibility: hidden; }
.fab--top.is-visible { opacity: 1; visibility: visible; }
.fab__ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand-2); animation: ping 2.4s var(--ease) infinite; pointer-events: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.fab--bot .bot-close { display: none; }
.fab--bot.is-open .bot-open { display: none; }
.fab--bot.is-open .bot-close { display: block; }
.fab--bot.is-open .fab__ping { display: none; }

.chat { position: fixed; right: 24px; bottom: 90px; z-index: 901; width: min(380px, calc(100vw - 34px)); height: min(540px, calc(100vh - 130px)); display: flex; flex-direction: column; overflow: hidden; background: var(--surface-solid); box-shadow: var(--shadow-lg); transform: translateY(18px) scale(.97); opacity: 0; transition: .32s var(--ease); }
.chat[hidden] { display: none; }
.chat.is-open { transform: none; opacity: 1; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(0,102,255,.12), rgba(0,217,255,.06)); }
.chat__avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.chat__head strong { display: block; font-family: var(--f-display); font-size: .95rem; }
.chat__head small { font-size: .74rem; color: var(--text-3); display: flex; align-items: center; }
.chat__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; }
.msg--user { justify-content: flex-end; }
.msg__b { max-width: 84%; padding: 11px 15px; border-radius: 16px; font-size: .87rem; line-height: 1.58; }
.msg--bot .msg__b { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--text-2); }
.msg--user .msg__b { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.msg__b a { color: var(--brand-2); text-decoration: underline; }
html[data-theme="light"] .msg__b a { color: var(--brand); }
.msg__b strong { color: var(--text); }
.typing { display: flex; gap: 4px; padding: 3px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__quick { display: flex; gap: 7px; overflow-x: auto; padding: 10px 14px; border-top: 1px solid var(--border); scrollbar-width: none; }
.chat__quick::-webkit-scrollbar { display: none; }
.chat__quick button { flex-shrink: 0; padding: 7px 13px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; color: var(--text-2); transition: .25s; white-space: nowrap; }
.chat__quick button:hover { border-color: var(--brand); color: var(--brand-2); }
html[data-theme="light"] .chat__quick button:hover { color: var(--brand); }
.chat__form { display: flex; gap: 9px; padding: 13px 14px; border-top: 1px solid var(--border); }
.chat__form input { flex: 1; min-width: 0; padding: 10px 15px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); font-size: .87rem; }
.chat__form input:focus { outline: none; border-color: var(--brand); }
.chat__form button { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; transition: .28s var(--ease); }
.chat__form button:hover { transform: scale(1.08); }

/* ---------- 29. COOKIE ---------- */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 950; width: min(430px, calc(100vw - 48px)); padding: 22px; display: grid; gap: 15px; background: var(--surface-solid); box-shadow: var(--shadow-lg); transform: translateY(20px); opacity: 0; transition: .35s var(--ease); }
.cookie[hidden] { display: none; }
.cookie.is-in { transform: none; opacity: 1; }
.cookie p { font-size: .85rem; }
.cookie__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- 30. REVEAL ----------
   Scroll animations only ever hide content once JS has confirmed it can
   un-hide it (html.js-on). Without that class — JS disabled, script error,
   or an observer that never fires — everything stays plainly visible. */
.reveal { opacity: 1; transform: none; }
html.js-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity .72s var(--ease), transform .72s var(--ease); }
html.js-on .reveal.is-in { opacity: 1; transform: none; }
html.js-on .reveal[data-delay="1"] { transition-delay: .09s; }
html.js-on .reveal[data-delay="2"] { transition-delay: .18s; }
html.js-on .reveal[data-delay="3"] { transition-delay: .27s; }
html.js-on .reveal[data-delay="4"] { transition-delay: .36s; }

/* ---------- 31. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer__col--news { grid-column: 2 / -1; }
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 540px; margin-inline: auto; width: 100%; }
  .float-chip--2 { left: -2%; } .float-chip--3 { right: -2%; }
  .founder { grid-template-columns: 1fr; }
  .founder__media { margin-bottom: 8px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(330px, 84vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    padding: calc(var(--nav-h) + 22px) 20px 30px;
    background: var(--surface-solid); border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .38s var(--ease);
    overflow-y: auto; z-index: 999; box-shadow: var(--shadow-lg);
  }
  body.menu-open .nav__links { transform: none; }
  /* backdrop-filter on .nav establishes a containing block for fixed-position
     descendants, which traps this menu inside the 66px header instead of
     letting it fill the viewport. Drop it while the menu is open. */
  body.menu-open .nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--surface-solid);
  }
  .nav__link { padding: 13px 15px; font-size: .96rem; }
  .nav__link.is-active::after { display: none; }
  .nav__more { width: 100%; }
  .nav__more-btn { width: 100%; justify-content: space-between; }
  .nav__dropdown { position: static; transform: none; opacity: 1; visibility: visible; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 14px; max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
  .nav__more.is-open .nav__dropdown { max-height: 320px; transform: none; }
  .nav__cta { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 14px; justify-content: center; }
  .hamburger { display: flex; }
  /* Keep the full company name visible on phones too — it was hidden before,
     so mobile visitors never saw what "JE" stands for. */
  .brand__text strong { font-size: .96rem; }
  .brand__text small { font-size: .66rem; }
  /* Never let the brand push into the theme/menu buttons — truncate instead. */
  .brand { min-width: 0; }
  .brand__text { min-width: 0; }
  .brand__text strong, .brand__text small {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__col--news { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  body { font-size: 15px; }
  .section__head { text-align: left; }
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 40px) 60px; }
  .hero__inner { text-align: left; }
  .hero__copy { align-items: flex-start; }
  .hero__actions, .hero__trust { justify-content: flex-start; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-chip { display: none; }
  .scroll-cue { display: none; }
  .projects { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact__form, .contact__card { padding: 22px; }
  .contact__quick { grid-template-columns: 1fr; }
  .qbtn { flex-direction: row; justify-content: center; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .fab { width: 50px; height: 50px; }
  .fab--wa { bottom: 86px; right: 18px; } .fab--bot { bottom: 20px; right: 18px; } .fab--top { bottom: 152px; right: 18px; }
  .chat { right: 12px; left: 12px; bottom: 82px; width: auto; height: min(500px, calc(100vh - 120px)); }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cookie__actions { justify-content: stretch; }
  .cookie__actions .btn { flex: 1; }
  .pm__cta { flex-direction: column; align-items: flex-start; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { max-height: 94vh; border-radius: var(--r-xl) var(--r-xl) 0 0; width: 100%; }
  .quote::before { display: none; }

  /* --- Touch targets: aim for the ~44px minimum thumbs need --- */
  .footer__mail { padding: 13px 18px; font-size: .82rem; }
  .footer__col a, .footer__mini a, .contact__row a { display: inline-block; padding-block: 7px; }
  .footer__col ul { gap: 4px; }
  .check input { width: 20px; height: 20px; }
  .modal__close { width: 44px; height: 44px; top: 12px; right: 12px; }
  .faq__item summary { padding-block: 18px; }
  .filter { padding: 11px 18px; }

  /* --- Legibility: nothing below ~12px on a phone --- */
  .eyebrow { font-size: .8rem; }
  .badge, .tag, .chip--sm { font-size: .78rem; }
  .project__flag, .project__cat { font-size: .75rem; }
  .brand__text small, .quote figcaption small, .post footer,
  .job__meta li, .footer__mini a { font-size: .78rem; }
  .contact__row small { font-size: .76rem; }
  .stat__label, .hero__trust span { font-size: .84rem; }
}

/* Very small phones (iPhone SE, older Androids) — shrink the brand so the
   full company name still fits beside the header controls. */
@media (max-width: 400px) {
  .brand__text strong { font-size: .88rem; }
  .brand__text small { font-size: .6rem; }
  .brand { gap: 9px; }
  .brand__mark { width: 36px; height: 36px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ---------- 32. MOTION / PRINT ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js-on .reveal, html.js-on .reveal.is-in { opacity: 1; transform: none; }
  .orb, .float-chip, .marquee__track { animation: none !important; }
}
@media print {
  .nav, .fab, .chat, .cookie, .preloader, .scroll-progress, .hero__particles, .orb, .marquee-wrap, .modal { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 20px; page-break-inside: avoid; }
}
