/* ==========================================================================
   Amiuriq — Design System
   Dark-first, with a light theme via [data-theme="light"] on <html>.
   ========================================================================== */

:root {
  --bg: #05060f;
  --bg-2: #090b1a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #0d1024;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0fb;
  --text-2: #a5adcb;
  --text-3: #6b7394;

  --violet: #7c5cff;
  --indigo: #5b7cff;
  --cyan: #22d3ee;
  --mint: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;

  --grad: linear-gradient(135deg, #7c5cff 0%, #5b7cff 50%, #22d3ee 100%);
  --grad-text: linear-gradient(90deg, #a78bfa 0%, #7c9cff 45%, #22d3ee 100%);
  --glow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 10px 40px -10px rgba(124, 92, 255, 0.55);

  --nav-bg: rgba(5, 6, 15, 0.72);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --grid-line: rgba(255, 255, 255, 0.045);

  --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f8f9fc;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: #ffffff;
  --surface-solid: #ffffff;
  --border: rgba(15, 20, 50, 0.08);
  --border-strong: rgba(15, 20, 50, 0.16);
  --text: #0b1020;
  --text-2: #4a5272;
  --text-3: #7a819c;
  --grad-text: linear-gradient(90deg, #6d4dff 0%, #4062ff 45%, #0aa5c2 100%);
  --nav-bg: rgba(255, 255, 255, 0.88);
  --shadow-lg: 0 30px 70px -25px rgba(30, 35, 90, 0.25);
  --grid-line: rgba(15, 20, 50, 0.05);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
::selection { background: rgba(124, 92, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--violet); color: #fff; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-alt { background: var(--bg-2); }
.center { text-align: center; }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-2);
  margin-bottom: 20px; backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 10px; }
.eyebrow .pulse { width: 8px; height: 8px; margin: 0 4px 0 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.display { font-size: clamp(44px, 7.2vw, 92px); letter-spacing: -0.04em; line-height: 1.02; }
.h2 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 18px; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); line-height: 1.7; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  transform: translate(var(--mx), var(--my));
  isolation: isolate; overflow: hidden;
}
.btn i { transition: transform 0.35s var(--ease); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-arrow-up-right { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.5), 0 18px 50px -12px rgba(124, 92, 255, 0.75); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--violet); background: var(--surface-2); }
.btn-white { background: #fff; color: #0b1020; }
.btn-white:hover { box-shadow: 0 18px 40px -12px rgba(255, 255, 255, 0.45); }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text); }
.link-arrow i { transition: transform 0.3s var(--ease); font-size: 12px; }
.link-arrow:hover i { transform: translate(3px, -3px); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 18px 0; transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s, transform 0.4s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { padding: 10px 0; background: var(--nav-bg); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: var(--border); }
.nav.hidden { transform: translateY(-110%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -0.04em; }
.brand-mark { width: 38px; height: 38px; flex: none; transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-word { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.25s, background 0.25s;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > a.active { color: var(--text); background: var(--surface-2); }
.nav-links .fa-chevron-down { font-size: 10px; transition: transform 0.3s var(--ease); }
.has-mega:hover .fa-chevron-down, .has-mega:focus-within .fa-chevron-down { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 640px; padding: 14px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; transition: background 0.25s; }
.mega a:hover { background: var(--surface-2); }
.mega .mi { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 15px; background: var(--grad); }
.mega strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.mega span { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: color 0.25s, border-color 0.25s, transform 0.4s var(--ease); }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: block; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-toggle span + span { margin-top: 4px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; padding: 100px 24px 32px; overflow-y: auto;
  background: var(--bg); display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path 0.7s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 28px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.mobile-menu a i { font-size: 16px; color: var(--text-3); }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu .mm-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); margin: 22px 0 4px; }
.mobile-menu .mm-sub a { font-size: 18px; font-family: var(--font-body); font-weight: 500; color: var(--text-2); }
.mobile-menu .btn { margin-top: 28px; font-size: 16px; }
.menu-open { overflow: hidden; }

/* ---------- Backgrounds ---------- */
.bg-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none; will-change: transform; }
.blob-violet { background: #7c5cff; }
.blob-cyan { background: #22d3ee; opacity: 0.32; }
.blob-indigo { background: #3b4bff; opacity: 0.35; }
[data-theme="light"] .blob { opacity: 0.22; }
.noise::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 150px 0 90px; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; z-index: -3; }
.hero-video video, .hero-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
[data-theme="light"] .hero-video video, [data-theme="light"] .hero-video img { opacity: 0.12; filter: saturate(0.6); }
.hero-video::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 30%, transparent 0%, var(--bg) 75%), linear-gradient(to bottom, transparent 55%, var(--bg)); }
.hero .blob-violet { width: 560px; height: 560px; top: -160px; right: -120px; z-index: -2; }
.hero .blob-cyan { width: 460px; height: 460px; bottom: -160px; left: -140px; z-index: -2; }
.hero .bg-grid { z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 560px; margin-bottom: 38px; }

.word-rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.08em; }
.word-rotator > span { grid-area: 1 / 1; white-space: nowrap; padding-bottom: 0.08em; transform: translateY(105%); transition: transform 0.8s var(--ease), opacity 0.8s; opacity: 0; }
.word-rotator > span.in { transform: translateY(0); opacity: 1; }
.word-rotator > span.out { transform: translateY(-105%); opacity: 0; }

.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 46px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img, .avatars span { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; object-fit: cover; }
.avatars > :first-child { margin-left: 0; }
.avatars span { display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }
.hero-trust .stars { color: var(--amber); font-size: 13px; letter-spacing: 2px; }
.hero-trust p { font-size: 14px; color: var(--text-2); line-height: 1.4; }
.hero-trust strong { color: var(--text); }

/* Hero visual: stacked glass cards */
.hero-visual { position: relative; height: 560px; perspective: 1200px; }
.glass { background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); border: 1px solid var(--border-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
[data-theme="light"] .glass { background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7)); }
.hv-card { position: absolute; }
.hv-code { inset: 120px 40px auto 0; padding: 0 0 22px; overflow: hidden; transform: rotateY(-10deg) rotateX(4deg); }
.hv-code .bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.hv-code .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.hv-code .bar i:nth-child(1) { background: #ff5f57; } .hv-code .bar i:nth-child(2) { background: #febc2e; } .hv-code .bar i:nth-child(3) { background: #28c840; }
.hv-code .bar span { margin-left: 10px; }
.hv-code pre { font-family: var(--font-mono); font-size: 13px; line-height: 1.85; padding: 18px 22px 0; color: var(--text-2); white-space: pre; overflow: hidden; }
.tk-k { color: #c4a5ff; } .tk-f { color: #67e8f9; } .tk-s { color: #86efac; } .tk-c { color: var(--text-3); } .tk-n { color: #fca5a5; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.hv-metric { right: -10px; top: 0; width: 230px; z-index: 2; padding: 20px; animation: float 7s ease-in-out infinite; }
.hv-metric .label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.hv-metric .val { font-family: var(--font-display); font-size: 34px; font-weight: 700; margin: 4px 0 10px; }
.hv-metric .up { font-size: 12px; color: var(--mint); font-weight: 600; }
.spark { width: 100%; height: 54px; }
.spark path.line { fill: none; stroke: url(#spark-g); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.4s 0.8s var(--ease) forwards; }
.hv-status { left: -20px; bottom: 10px; z-index: 2; padding: 16px 20px; display: flex; align-items: center; gap: 14px; animation: float 8s 1s ease-in-out infinite; }
.hv-status .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(52, 211, 153, 0.14); color: var(--mint); font-size: 18px; }
.hv-status strong { display: block; font-size: 15px; }
.hv-status small { color: var(--text-3); font-size: 12.5px; }
.hv-rating { right: -10px; bottom: 30px; z-index: 2; padding: 16px 20px; animation: float 9s 0.5s ease-in-out infinite; }
.hv-rating .stars { color: var(--amber); letter-spacing: 3px; font-size: 13px; }
.hv-rating strong { font-family: var(--font-display); font-size: 22px; }
.hv-rating small { color: var(--text-3); font-size: 12.5px; display: block; }
.orbit { position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; margin: -260px 0 0 -260px; border-radius: 50%; border: 1px dashed var(--border-strong); animation: spin 60s linear infinite; z-index: -1; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); top: 50%; left: -5px; }
.orbit::after { background: var(--violet); box-shadow: 0 0 18px var(--violet); left: auto; right: 60px; top: 40px; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.scroll-cue .mouse { width: 22px; height: 34px; border: 1.5px solid var(--border-strong); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--text-2); animation: wheel 1.8s infinite; }

/* ---------- Logo / tech marquee ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 80s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.tech-pill { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; font-size: 15px; white-space: nowrap; transition: border-color 0.3s, transform 0.3s var(--ease); }
.tech-pill:hover { border-color: var(--violet); transform: translateY(-3px); }
.tech-pill img { width: 28px; height: 28px; object-fit: contain; }
.inv-dark { filter: none; }
:root:not([data-theme="light"]) .inv-dark { filter: invert(1) brightness(1.4); }
.marquee + .marquee { margin-top: 16px; }

.trusted { padding: 40px 0 10px; }
.trusted p { text-align: center; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 26px; }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s; overflow: hidden; isolation: isolate; }
.card:hover { border-color: var(--border-strong); }
.spotlight::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(480px circle at var(--x, 50%) var(--y, 50%), rgba(124, 92, 255, 0.16), transparent 45%); }
.spotlight:hover::before { opacity: 1; }
.spotlight::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(124, 92, 255, 0.9), rgba(34, 211, 238, 0.5) 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spotlight:hover::after { opacity: 1; }

.icon-tile { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--grad); box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 0.7); margin-bottom: 24px; transition: transform 0.5s var(--ease); }
.card:hover .icon-tile { transform: translateY(-4px) rotate(-6deg); }
.icon-tile.cyan { background: linear-gradient(135deg, #0ea5e9, #22d3ee); box-shadow: 0 12px 30px -10px rgba(34, 211, 238, 0.6); }
.icon-tile.mint { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 12px 30px -10px rgba(52, 211, 153, 0.6); }
.icon-tile.rose { background: linear-gradient(135deg, #e11d48, #fb7185); box-shadow: 0 12px 30px -10px rgba(251, 113, 133, 0.6); }
.icon-tile.amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 12px 30px -10px rgba(251, 191, 36, 0.6); }
.icon-tile.indigo { background: linear-gradient(135deg, #4f46e5, #818cf8); box-shadow: 0 12px 30px -10px rgba(129, 140, 248, 0.6); }

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento > .wide { grid-column: span 3; }
.svc-card { display: flex; flex-direction: column; min-height: 320px; }
.svc-card h3 { font-size: 22px; margin-bottom: 12px; }
.svc-card p { color: var(--text-2); font-size: 15px; margin-bottom: 22px; }
.svc-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.svc-card .link-arrow { margin-top: auto; }
.svc-card .num { position: absolute; right: 28px; top: 24px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-3); }
.svc-card.media { padding: 0; min-height: 320px; }
.svc-card.media video, .svc-card.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.svc-card.media:hover video, .svc-card.media:hover > img { transform: scale(1.06); }
.svc-card.media::before { opacity: 1; background: linear-gradient(to top, rgba(5, 6, 15, 0.97) 25%, rgba(5, 6, 15, 0.78) 60%, rgba(5, 6, 15, 0.45)); }
.svc-card.media video { opacity: 0.75; }
.svc-card.media .inner { position: relative; padding: 32px; margin-top: auto; color: #fff; }
.svc-card.media p { color: rgba(255, 255, 255, 0.75); }
.svc-card.media .tag { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); }
.svc-card.media .link-arrow { color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 34px 28px; text-align: left; position: relative; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 4.5vw, 56px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }
.stat .n sup { font-size: 0.5em; vertical-align: top; position: relative; top: 0.25em; margin-left: 2px; }
.stat .l { color: var(--text-2); font-size: 14px; }

/* ---------- About / Showreel ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.rev > :first-child { order: 2; }
.media-frame { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3.4; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); isolation: isolate; }
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 6, 15, 0.7), transparent 50%); pointer-events: none; }
.play-btn { position: absolute; left: 50%; top: 50%; z-index: 2; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(12px); transition: transform 0.4s var(--ease), background 0.3s; }
.play-btn::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); animation: ring 2.2s infinite; }
.play-btn:hover { transform: scale(1.08); background: var(--violet); }
.play-btn i { margin-left: 4px; }
.frame-badge { position: absolute; left: 22px; bottom: 22px; right: 22px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: 14px; }
.frame-badge .live { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(10px); font-weight: 500; }
.frame-badge .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: pulse-red 1.6s infinite; }
.float-chip { position: absolute; z-index: 3; background: rgba(13, 16, 36, 0.86) !important; padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-size: 14px; animation: float 7s ease-in-out infinite; }
.float-chip strong { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.float-chip small { color: var(--text-3); }

.checklist { display: grid; gap: 14px; margin: 30px 0 36px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.checklist i { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--grad); }
.checklist.two { grid-template-columns: 1fr 1fr; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.pill i { color: var(--cyan); }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: var(--border); }
.process .bar-fill { position: absolute; top: 34px; left: 12%; height: 2px; width: 0; background: var(--grad); transition: width 1.8s var(--ease); }
.process.in-view .bar-fill { width: 76%; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step .bubble { position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; background: var(--bg); border: 1px solid var(--border-strong); transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s; }
.process.in-view .step .bubble { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 8px rgba(124, 92, 255, 0.12); }
.process.in-view .step:nth-child(3) .bubble { transition-delay: 0.4s; }
.process.in-view .step:nth-child(4) .bubble { transition-delay: 0.8s; }
.process.in-view .step:nth-child(5) .bubble { transition-delay: 1.2s; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.filter { padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); transition: all 0.3s var(--ease); }
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--glow); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform 0.5s var(--ease), border-color 0.4s, opacity 0.4s; }
.work:hover { border-color: var(--border-strong); transform: translateY(-6px); }
.work.hide { display: none; }
.work .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work:hover .thumb img { transform: scale(1.08); }
.work .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 6, 15, 0.6), transparent 60%); }
.work .cat { position: absolute; top: 16px; left: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(5, 6, 15, 0.55); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); }
.work .go { position: absolute; right: 16px; top: 16px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #0b1020; background: #fff; transform: scale(0.6) rotate(-45deg); opacity: 0; transition: all 0.45s var(--ease); }
.work:hover .go { transform: none; opacity: 1; }
.work .body { padding: 24px 24px 26px; }
.work h3 { font-size: 20px; margin-bottom: 8px; }
.work p { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }
.work .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.more-wrap { text-align: center; margin-top: 48px; }

/* ---------- Testimonials ---------- */
.testi-wrap { position: relative; }
.testi-track { display: flex; gap: 24px; transition: transform 0.8s var(--ease); }
.testi { flex: 0 0 calc((100% - 48px) / 3); display: flex; flex-direction: column; }
.testi .quote-ic { font-size: 30px; line-height: 1; margin-bottom: 18px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.testi .stars { color: var(--amber); letter-spacing: 3px; font-size: 13px; margin-bottom: 16px; }
.testi blockquote { font-size: 16.5px; line-height: 1.7; color: var(--text); margin-bottom: 28px; flex: 1; }
.testi .who { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--border); }
.testi .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; flex: none; }
.testi .who strong { display: block; font-size: 15px; }
.testi .who small { color: var(--text-3); font-size: 13px; }
.slider-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 40px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong); transition: width 0.4s var(--ease), background 0.4s; }
.dots button.active { width: 28px; background: var(--grad); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform 0.6s var(--ease), border-color 0.4s; transform-style: preserve-3d; }
.member:hover { border-color: var(--border-strong); }
.member .photo { position: relative; aspect-ratio: 1 / 1.08; overflow: hidden; background: var(--bg-2); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35); transition: transform 1s var(--ease), filter 0.6s; }
.member:hover .photo img { transform: scale(1.06); filter: grayscale(0); }
.member .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 6, 15, 0.75), transparent 45%); }
.member .socials { position: absolute; left: 16px; bottom: 16px; z-index: 1; display: flex; gap: 8px; transform: translateY(14px); opacity: 0; transition: all 0.45s var(--ease); }
.member:hover .socials, .member:focus-within .socials { transform: none; opacity: 1; }
.member .socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.25); transition: background 0.3s; }
.member .socials a:hover { background: var(--violet); }
.member .info { padding: 20px 22px 22px; }
.member h3 { font-size: 18px; margin-bottom: 4px; }
.member .role { font-size: 13.5px; color: var(--text-2); }
.member.lead-card { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.member.lead-card .photo { aspect-ratio: auto; flex: 1; min-height: 360px; }
.member.lead-card h3 { font-size: 24px; }
.member .badge { position: absolute; top: 16px; left: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--grad); }

/* ---------- Video CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: 96px 56px; text-align: center; color: #fff; isolation: isolate; border: 1px solid var(--border-strong); }
.cta-band video, .cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(76, 52, 220, 0.92), rgba(30, 50, 180, 0.82) 50%, rgba(8, 145, 178, 0.85)); }
.cta-band h2 { font-size: clamp(32px, 5vw, 60px); margin-bottom: 18px; }
.cta-band p { max-width: 580px; margin: 0 auto 36px; font-size: 18px; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.ci { display: flex; gap: 18px; align-items: center; padding: 22px; }
.ci .icon-tile { width: 50px; height: 50px; margin: 0; font-size: 18px; flex: none; }
.ci small { display: block; color: var(--text-3); font-size: 13px; margin-bottom: 2px; }
.ci strong, .ci a { font-size: 16px; font-weight: 600; }
.ci a:hover { color: var(--cyan); }
.form-card { padding: 40px; }
.form-card h3 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { color: var(--text-2); margin-bottom: 28px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border-strong); outline: none; transition: border-color 0.3s, box-shadow 0.3s; font-size: 15px; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237a819c' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.form-note { font-size: 13px; color: var(--text-3); margin-top: 14px; }
.form-note i { margin-right: 6px; }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: var(--mint); } .form-status.err { color: var(--rose); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 180px 0 110px; overflow: hidden; isolation: isolate; }
.page-hero .bg-media { position: absolute; inset: 0; z-index: -3; }
.page-hero .bg-media img, .page-hero .bg-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
[data-theme="light"] .page-hero .bg-media img, [data-theme="light"] .page-hero .bg-media video { opacity: 0.1; }
.page-hero .bg-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, transparent, var(--bg) 75%), linear-gradient(to bottom, transparent 50%, var(--bg)); }
.page-hero .blob-violet { width: 520px; height: 520px; top: -200px; right: -100px; z-index: -2; }
.page-hero .blob-cyan { width: 380px; height: 380px; bottom: -180px; left: -120px; z-index: -2; }
.page-hero .bg-grid { z-index: -1; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 80px); letter-spacing: -0.04em; margin-bottom: 24px; max-width: 980px; }
.page-hero .lead { max-width: 660px; margin-bottom: 36px; }
.page-hero.center h1, .page-hero.center .lead { margin-left: auto; margin-right: auto; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-3); margin-bottom: 26px; }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-size: 9px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.hero-stats .hs { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.hero-stats .n { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; }
.hero-stats .l { color: var(--text-2); font-size: 13.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid .card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-grid .card p { color: var(--text-2); font-size: 15px; }

.tech-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 920px; margin: 0 auto; }
.tech-cloud .pill { padding: 12px 20px; font-size: 15px; transition: border-color 0.3s, transform 0.3s var(--ease); }
.tech-cloud .pill:hover { border-color: var(--violet); transform: translateY(-3px); }
.tech-cloud .pill i { color: var(--violet); }

/* Other services strip */
.other-svcs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.other-svcs a { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 15px; transition: border-color 0.3s, transform 0.4s var(--ease); }
.other-svcs a:hover { border-color: var(--violet); transform: translateY(-4px); }
.other-svcs .icon-tile { width: 42px; height: 42px; font-size: 16px; margin: 0; border-radius: 12px; }

/* ---------- Values / perks ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value .vn { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; margin-bottom: 18px; }
.value h3 { font-size: 19px; margin-bottom: 10px; }
.value p { color: var(--text-2); font-size: 14.5px; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk { padding: 26px; }
.perk .icon-tile { width: 46px; height: 46px; font-size: 17px; border-radius: 14px; margin-bottom: 18px; }
.perk h3 { font-size: 17px; margin-bottom: 8px; }
.perk p { color: var(--text-2); font-size: 14px; }

.empty-state { text-align: center; padding: 64px 32px; border-style: dashed; }
.empty-state .icon-tile { margin: 0 auto 22px; }
.empty-state h3 { font-size: 26px; margin-bottom: 12px; }
.empty-state p { color: var(--text-2); max-width: 520px; margin: 0 auto 26px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news { display: flex; gap: 24px; align-items: flex-start; }
.news .date { flex: none; width: 76px; padding: 14px 0; border-radius: 16px; text-align: center; background: var(--grad); color: #fff; }
.news .date strong { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1; }
.news .date span { font-size: 12px; letter-spacing: 0.12em; }
.news .kind { font-size: 13px; color: var(--cyan); font-weight: 600; margin-bottom: 8px; display: block; }
.news h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.3; }
.news p { color: var(--text-2); font-size: 14.5px; }

.quote-band { text-align: center; max-width: 900px; margin: 0 auto; }
.quote-band blockquote { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 38px); font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 22px; }
.quote-band cite { color: var(--text-2); font-style: normal; }

/* ---------- Legal ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 110px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.legal-toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 14px; }
.legal-toc a { display: block; padding: 7px 12px; margin: 0 -12px; border-radius: 10px; font-size: 14px; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.legal-toc a:hover, .legal-toc a.active { color: var(--text); background: var(--surface-2); }
.legal-content { max-width: 780px; }
.legal-section { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); scroll-margin-top: 110px; }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { font-size: 26px; margin-bottom: 18px; }
.legal-section h3 { font-size: 18px; margin: 22px 0 10px; }
.legal-section p { color: var(--text-2); margin-bottom: 14px; }
.legal-section strong { color: var(--text); }
.legal-section ul { margin: 0 0 16px; display: grid; gap: 8px; }
.legal-section li { position: relative; padding-left: 22px; color: var(--text-2); }
.legal-section li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.legal-section a { color: var(--cyan); }
.legal-highlight, .legal-section .highlight, .legal-section .info-box { padding: 18px 22px; border-radius: 14px; background: rgba(124, 92, 255, 0.08); border: 1px solid rgba(124, 92, 255, 0.25); margin: 18px 0; }
.legal-highlight p:last-child { margin-bottom: 0; }
.legal-section table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 14px; display: block; overflow-x: auto; }
.legal-section th, .legal-section td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
.legal-section th { color: var(--text); font-weight: 600; background: var(--surface); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 100px 0 36px; border-top: 1px solid var(--border); overflow: hidden; }
.footer .blob-violet { width: 500px; height: 300px; left: 50%; bottom: -260px; margin-left: -250px; opacity: 0.35; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; margin-bottom: 72px; }
.footer-brand p { color: var(--text-2); max-width: 340px; margin: 20px 0 26px; font-size: 15px; }
.socials-row { display: flex; gap: 10px; }
.socials-row a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: all 0.3s var(--ease); }
.socials-row a:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 20px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-2); font-size: 15px; transition: color 0.2s, transform 0.3s var(--ease); }
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 19vw, 280px); letter-spacing: -0.06em; line-height: 0.8; text-align: center; background: linear-gradient(to bottom, rgba(15, 20, 50, 0.07), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-bottom: 32px;  }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; background: rgba(3, 4, 10, 0.86); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.modal.open { opacity: 1; visibility: visible; }
.modal .box { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; transform: scale(0.94); transition: transform 0.5s var(--ease); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); background: #000; }
.modal.open .box { transform: none; }
.modal video { width: 100%; height: 100%; object-fit: cover; }
.modal .close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #fff; backdrop-filter: blur(10px); }

/* ---------- Back to top & cursor glow ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: var(--glow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all 0.4s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.cursor-glow { position: fixed; left: 0; top: 0; z-index: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(124, 92, 255, 0.09), transparent 60%); transition: opacity 0.4s; will-change: transform; }
[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(124, 92, 255, 0.07), transparent 60%); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom { transform: scale(0.94); }
.reveal.in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 0.06s + 0.1s); }
.split-words.in .w > span { transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .split-words .w > span { transform: none; }

/* ---------- Keyframes ---------- */
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(251, 113, 133, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0); } }
@keyframes ring { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 500px; max-width: 620px; width: 100%; margin: 0 auto; }
  .bento > *, .bento > .wide { grid-column: span 3; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .member.lead-card { grid-column: span 3; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .member.lead-card .photo { height: auto; min-height: 0; aspect-ratio: 1; }
  .member.lead-card .info { align-self: end; padding: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .other-svcs { grid-template-columns: repeat(3, 1fr); }
  .values, .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-links, .nav-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  .section { padding: 96px 0; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .split.rev > :first-child { order: 0; }
  .work-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testi { flex-basis: calc((100% - 24px) / 2); }
  .stats, .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process::before, .process .bar-fill { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .hero { padding: 120px 0 80px; }
  .hero-visual { height: 470px; }
  .hv-code { inset: 110px 0 auto 0; transform: none; }
  .hv-code pre { font-size: 11.5px; padding: 14px 16px 0; }
  .hv-metric { width: 190px; right: -6px; top: -10px; padding: 16px; }
  .hv-metric .val { font-size: 26px; }
  .hv-status { left: -6px; bottom: 30px; }
  .hv-rating { right: -6px; bottom: -14px; }
  .orbit { display: none; }
  .scroll-cue { display: none; }
  .bento > *, .bento > .wide { grid-column: 1 / -1; }
  .work-grid, .feature-grid, .team-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .member.lead-card { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .member .info { padding: 14px 14px 16px; }
  .member h3 { font-size: 15px; }
  .member .role { font-size: 12.5px; }
  .member .socials { opacity: 1; transform: none; left: 10px; bottom: 10px; }
  .member .socials a { width: 30px; height: 30px; font-size: 12px; }
  .testi { flex-basis: 100%; }
  .frow, .checklist.two { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .card { padding: 26px; }
  .cta-band { padding: 72px 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .other-svcs { grid-template-columns: 1fr 1fr; }
  .values, .perks { grid-template-columns: 1fr; }
  .page-hero { padding: 140px 0 80px; }
  .hero-stats { margin-top: 44px; }
  .stat { padding: 26px 20px; }
  .news { flex-direction: column; gap: 16px; }
  .to-top { right: 16px; bottom: 16px; }
}

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

/* Legal extras */
.legal-section .contact-box { padding: 26px 28px; border-radius: 18px; background: var(--grad); color: #fff; margin: 18px 0; box-shadow: var(--glow); }
.legal-section .contact-box p, .legal-section .contact-box strong, .legal-section .contact-box a { color: #fff; }
.legal-section .contact-box i { margin-right: 8px; opacity: 0.85; }
.cookie-type-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-essential { background: rgba(52, 211, 153, 0.14); color: var(--mint); }
.badge-analytics { background: rgba(34, 211, 238, 0.14); color: var(--cyan); }
.badge-marketing { background: rgba(251, 113, 133, 0.14); color: var(--rose); }
.badge-pref { background: rgba(124, 92, 255, 0.16); color: #a78bfa; }

[data-theme="light"] .float-chip { background: rgba(255, 255, 255, 0.92) !important; }

/* Overflow guards */
html, body { overflow-x: clip; }
.legal-layout > *, .split > *, .contact-grid > *, .hero-grid > * { min-width: 0; }
@media (max-width: 960px) {
  .reveal.from-left, .reveal.from-right { transform: translateY(36px); }
  .reveal.in.from-left, .reveal.in.from-right { transform: none; }
}
@media (max-width: 640px) {
  .hero-visual { height: 380px; }
  .hv-status, .hv-rating { display: none; }
  .hv-code { inset: 90px 0 auto 0; }
}
@media (max-width: 640px) {
  .float-chip { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; margin-top: 14px; display: inline-flex; animation: none; }
}
[data-theme="light"] .tk-k { color: #7c3aed; }
[data-theme="light"] .tk-f { color: #0e7490; }
[data-theme="light"] .tk-s { color: #047857; }
[data-theme="light"] .tk-n { color: #dc2626; }
.page-hero .bg-media video { opacity: 0.24; }

/* ==========================================================================
   Large screens & TVs — scale the whole layout so it fills the display
   (layout width stays ~1500–1600 CSS px; everything grows proportionally)
   ========================================================================== */
@media (min-width: 1680px) { html { --z: 1.1; zoom: 1.1; } }
@media (min-width: 1920px) { html { --z: 1.22; zoom: 1.22; } }
@media (min-width: 2240px) { html { --z: 1.4; zoom: 1.4; } }
@media (min-width: 2560px) { html { --z: 1.6; zoom: 1.6; } }
@media (min-width: 3000px) { html { --z: 1.9; zoom: 1.9; } }
@media (min-width: 3600px) { html { --z: 2.3; zoom: 2.3; } }
@media (min-width: 5000px) { html { --z: 3.1; zoom: 3.1; } }
@media (min-width: 1680px) {
  :root { --container: 1320px; }
  /* viewport units are not scaled by zoom, so divide to get one screen tall */
  .hero { min-height: calc(100vh / var(--z, 1)); padding: 120px 0 80px; }
  .mobile-menu, .modal { height: calc(100vh / var(--z, 1)); }
}

/* Short, wide screens (laptops in landscape, TVs with overscan) */
@media (min-width: 1100px) and (max-width: 1679px) and (max-height: 820px) {
  .hero { min-height: auto; padding: 130px 0 70px; }
  .display { font-size: clamp(44px, 6vw, 76px); }
  .hero-visual { height: 480px; }
  .scroll-cue { display: none; }
}

/* Tablets */
@media (min-width: 641px) and (max-width: 1100px) {
  .hero-grid { gap: 40px; }
  .team-grid { gap: 18px; }
}

/* Small phones */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .display { font-size: 38px; }
  .page-hero h1 { font-size: 36px; }
  .h2 { font-size: 30px; }
  .lead { font-size: 15.5px; }
  .hero .btn-row .btn, .page-hero .btn-row .btn { width: 100%; }
  .hero-visual { height: 340px; }
  .hv-code pre { font-size: 10px; line-height: 1.75; padding: 12px 12px 0; }
  .hv-metric { width: 160px; padding: 14px; }
  .hv-metric .val { font-size: 22px; margin: 2px 0 6px; }
  .spark { height: 40px; }
  .hero-trust { gap: 12px; }
  .card { padding: 22px 18px; }
  .ci { padding: 18px; gap: 14px; }
  .team-grid { gap: 10px; }
  .member h3 { font-size: 14px; }
  .stat { padding: 22px 16px; }
  .stat .n { font-size: 34px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-stats .hs { padding: 16px; }
  .hero-stats .n { font-size: 26px; }
  .footer-top { grid-template-columns: 1fr; }
  .other-svcs { grid-template-columns: 1fr; }
  .filters { gap: 6px; }
  .filter { padding: 8px 14px; font-size: 13px; }
  .cta-band h2 { font-size: 28px; }
  .cta-band .btn { width: 100%; }
  .mobile-menu a { font-size: 24px; }
}
@media (max-width: 640px) {
  .frow { gap: 0; }
  .hv-code pre { white-space: pre; overflow-x: hidden; }
  .work .body { padding: 20px; }
  .news .date { width: 64px; }
}
/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 110px 0 60px; }
  .hero-visual { display: none; }
  .mobile-menu { padding-top: 80px; }
}
@media (min-width: 1680px) {
  .display { font-size: 84px; }
  .hero h1 { margin-bottom: 22px; }
  .hero .lead { margin-bottom: 32px; }
  .hero-trust { margin-top: 36px; }
  .hero-visual { height: 520px; }
}

/* Icons as on the original Amiuriq site: white Font Awesome icons on the amber
   gradient tile, and the original custom service icons on tinted tiles */
.icon-tile, .icon-tile.cyan, .icon-tile.mint, .icon-tile.rose, .icon-tile.amber, .icon-tile.indigo {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; border: 0; background: linear-gradient(135deg, #d4940a, #f5c500);
  box-shadow: 0 8px 24px rgba(212, 148, 10, 0.3); }
.card:hover .icon-tile { transform: translateY(-4px) rotate(-6deg); }
.ci .icon-tile { width: 48px; height: 48px; font-size: 18px; margin: 0; }
.perk .icon-tile, .other-svcs .icon-tile { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }
.mega .mi { width: 40px !important; height: 40px !important; border-radius: 12px !important; font-size: 15px !important; }
.float-chip .icon-tile { font-size: 16px !important; }
.empty-state .icon-tile { width: 60px; height: 60px; border-radius: 16px; font-size: 24px; }

.icon-tile.sicon { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px; }
.sicon svg { width: 26px; height: 26px; }
.si1 { background: linear-gradient(135deg, rgba(108, 99, 255, 0.18), rgba(108, 99, 255, 0.05)); border: 1px solid rgba(108, 99, 255, 0.22); box-shadow: 0 4px 16px rgba(108, 99, 255, 0.1); }
.si2 { background: linear-gradient(135deg, rgba(0, 180, 255, 0.18), rgba(0, 180, 255, 0.05)); border: 1px solid rgba(0, 180, 255, 0.22); box-shadow: 0 4px 16px rgba(0, 180, 255, 0.1); }
.si3 { background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(168, 85, 247, 0.05)); border: 1px solid rgba(168, 85, 247, 0.22); box-shadow: 0 4px 16px rgba(168, 85, 247, 0.1); }
.si4 { background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.05)); border: 1px solid rgba(16, 185, 129, 0.22); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1); }
.si5 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.05)); border: 1px solid rgba(245, 158, 11, 0.22); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1); }
.si6 { background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.05)); border: 1px solid rgba(239, 68, 68, 0.22); box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1); }
.si1 svg :is(path, rect, circle, line) { stroke: #6c63ff !important; } .si1 svg [fill="white"] { fill: #6c63ff !important; }
.si2 svg :is(path, rect, circle, line) { stroke: #00a8e8 !important; } .si2 svg [fill="white"] { fill: #00a8e8 !important; }
.si3 svg :is(path, rect, circle, line) { stroke: #a855f7 !important; } .si3 svg [fill="white"] { fill: #a855f7 !important; }
.si4 svg :is(path, rect, circle, line) { stroke: #10b981 !important; } .si4 svg [fill="white"] { fill: #10b981 !important; }
.si5 svg :is(path, rect, circle, line) { stroke: #f59e0b !important; } .si5 svg [fill="white"] { fill: #f59e0b !important; }
.si6 svg :is(path, rect, circle, line) { stroke: #ef4444 !important; } .si6 svg [fill="white"] { fill: #ef4444 !important; }
.svc-card.media .sicon { background: rgba(255, 255, 255, 0.92); }
.tech-pill i { font-size: 22px; width: 26px; text-align: center; }
.tech-cloud .pill i { color: #d4940a; }
.skip-link:not(:focus) { transform: translateY(-200%); opacity: 0; pointer-events: none; }

/* Hero badge: spinning 3D cube and words flipping on a 3D prism */
.eyebrow-3d { gap: 10px; padding: 7px 16px 7px 10px; perspective: 600px; box-shadow: 0 6px 20px -10px rgba(91, 124, 255, 0.45); }
.eyebrow-3d .cube { --s: 16px; position: relative; width: var(--s); height: var(--s); flex: none; transform-style: preserve-3d; animation: cube-spin 6s linear infinite; }
.eyebrow-3d .cube i { position: absolute; inset: 0; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.55); background: var(--grad); opacity: 0.92; }
.eyebrow-3d .cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.eyebrow-3d .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.eyebrow-3d .cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.eyebrow-3d .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.eyebrow-3d .cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.eyebrow-3d .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes cube-spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }

.eyebrow-3d .prism-wrap { --h: 1.5em; display: inline-block; height: var(--h); line-height: var(--h); perspective: 300px; }
.eyebrow-3d .prism { position: relative; display: inline-grid; height: var(--h); transform-style: preserve-3d; transform-origin: 50% 50% calc(var(--h) / -2); animation: prism-turn 10s cubic-bezier(.7, 0, .3, 1) infinite; }
.eyebrow-3d .prism b { grid-area: 1 / 1; font-weight: 600; white-space: nowrap; color: var(--violet); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; backface-visibility: hidden; transform-origin: 50% 50% calc(var(--h) / -2); }
.eyebrow-3d .prism b:nth-child(2) { transform: rotateX(-90deg); }
.eyebrow-3d .prism b:nth-child(3) { transform: rotateX(-180deg); }
.eyebrow-3d .prism b:nth-child(4) { transform: rotateX(-270deg); }
@keyframes prism-turn {
  0%, 20% { transform: rotateX(0deg); }
  25%, 45% { transform: rotateX(90deg); }
  50%, 70% { transform: rotateX(180deg); }
  75%, 95% { transform: rotateX(270deg); }
  100% { transform: rotateX(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-3d .cube, .eyebrow-3d .prism { animation: none; }
}
