/* =========================================================
   Elevon Studio – main stylesheet
   Dark premium theme · electric blue / violet / white · RTL
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #05060f;
  --bg-2: #0a0c1d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef1ff;
  --text-muted: #a6aed0;
  --blue: #3b82f6;
  --blue-bright: #4f8cff;
  --violet: #8b5cf6;
  --violet-bright: #a855f7;
  --cyan: #22d3ee;
  --success: #34d399;
  --danger: #fb7185;
  --grad: linear-gradient(120deg, #4f8cff 0%, #8b5cf6 55%, #c084fc 100%);
  --grad-soft: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(139, 92, 246, 0.14));

  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --glow-blue: 0 0 0 1px rgba(79, 140, 255, 0.35), 0 10px 40px -10px rgba(79, 140, 255, 0.6);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; } /* never let a component's display rule override the hidden attribute */
img, svg, iframe { 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; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-inline-start: 1rem; top: -100px; z-index: 1000;
  background: #fff; color: #05060f; padding: .7rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }
.noscript { position: fixed; bottom: 0; inset-inline: 0; padding: .75rem; text-align: center; background: #1e1b4b; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* SVG icon defaults (stroke icons) */
svg[viewBox="0 0 24 24"] { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; background: var(--grad);
  transform-origin: right center; transform: scaleX(var(--progress, 0));
  box-shadow: 0 0 12px rgba(79, 140, 255, .7);
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.5rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s;
}
.btn-sm { --pad-y: .6rem; --pad-x: 1.15rem; font-size: .95rem; }
.btn-lg { --pad-y: 1.05rem; --pad-x: 1.9rem; font-size: 1.075rem; }
.btn-block { width: 100%; }
.btn-icon { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease); }
.btn:hover .btn-icon { transform: translateX(-4px); }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .8); }
.btn-primary::after { /* moving shine */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 1); transform: translateY(-2px); }
.btn-primary:hover::after { transform: translateX(-120%); }

.btn-ghost {
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.35); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--blue-bright); transform: scale(1.06); }
.icon-btn:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow-lg);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100; height: var(--header-h);
  transition: background .4s, border-color .4s, backdrop-filter .4s, transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 6, 15, .72); border-bottom-color: var(--border);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }

.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.3rem; letter-spacing: .02em; direction: ltr; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad); position: relative;
  box-shadow: 0 0 24px rgba(99, 102, 241, .55);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 9px; border-radius: 4px; border: 3px solid rgba(255,255,255,.95);
  border-inline-end-color: transparent; transform: rotate(45deg);
}
.logo-text span { font-weight: 300; margin-inline-start: .3rem; color: var(--text-muted); }

.main-nav { position: relative; margin-inline-start: auto; }
.main-nav ul { display: flex; gap: .35rem; }
.main-nav a {
  position: relative; z-index: 1; display: block; padding: .5rem 1rem; border-radius: 999px;
  color: var(--text-muted); font-weight: 500; transition: color .3s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.nav-indicator {
  position: absolute; top: 0; height: 100%; border-radius: 999px; z-index: 0;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  opacity: 0; transition: left .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav-indicator.is-visible { opacity: 1; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; border: 1px solid var(--border-strong); }
.nav-toggle span {
  position: absolute; inset-inline: 11px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .9rem; font-weight: 700; letter-spacing: .04em; color: #b9c4ff;
  padding: .35rem .9rem; border-radius: 999px; background: rgba(79, 140, 255, .1); border: 1px solid rgba(79, 140, 255, .25);
  margin-bottom: 1.25rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); } 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }

.section { position: relative; padding-block: clamp(2.25rem, 4.9vw, 4.25rem); }
.section-head { max-width: 760px; margin-bottom: clamp(1.5rem, 2.8vw, 2.25rem); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section-head-row > div:first-child { max-width: 720px; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 900; line-height: 1.12; letter-spacing: -.01em; }
.section-lead { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-muted); max-width: 640px; }
.section-lead strong { color: var(--text); font-weight: 700; }

.check-list { display: grid; gap: .6rem; }
.check-list li { position: relative; padding-inline-start: 1.9rem; color: var(--text-muted); }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: rgba(79, 140, 255, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237aa6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 2rem); padding-bottom: 4rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.orb-1 { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; background: radial-gradient(circle, #2563eb 0%, transparent 65%); top: -12%; left: -8%; animation: drift 18s var(--ease-in-out) infinite alternate; }
.orb-2 { width: 38vw; height: 38vw; max-width: 560px; max-height: 560px; background: radial-gradient(circle, #7c3aed 0%, transparent 65%); bottom: -14%; right: -6%; animation: drift 22s var(--ease-in-out) infinite alternate-reverse; }
.orb-3 { width: 22vw; height: 22vw; max-width: 320px; max-height: 320px; background: radial-gradient(circle, #06b6d4 0%, transparent 65%); top: 30%; left: 30%; opacity: .25; animation: drift 26s var(--ease-in-out) infinite alternate; }
@keyframes drift { from { translate: 0 0; } to { translate: 4vw 3vh; } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-title { font-size: clamp(2.3rem, 5vw, 4.1rem); font-weight: 900; line-height: 1.08; letter-spacing: -.015em; }
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-muted); max-width: 560px; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-tags { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--text-muted); font-size: .95rem; }
.hero-tags li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* Device showcase */
.hero-visual { position: relative; }
.device-stage { position: relative; aspect-ratio: 1 / .82; perspective: 1400px; }
.device-glow {
  position: absolute; inset: 12% 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 140, 255, .45), rgba(139, 92, 246, .25) 50%, transparent);
  filter: blur(30px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }

.device {
  position: absolute; left: 50%; top: 50%;
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -46%) scale(.9) rotateX(10deg);
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s .9s;
}
.device.is-active {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1) rotateX(0);
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s;
}
.device-screen { position: relative; overflow: hidden; background: #0b0d1a; }
.device-desktop { width: 92%; }
.device-desktop .device-screen {
  aspect-ratio: 16 / 10; border-radius: 14px 14px 4px 4px;
  border: 10px solid #15182b; border-bottom-width: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), var(--shadow-lg);
}
.device-base {
  width: 112%; height: 14px; margin-inline: -6%; border-radius: 0 0 16px 16px;
  background: linear-gradient(#262a44, #12152a); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8);
}
.device-tablet { width: 52%; }
.device-tablet .device-screen {
  aspect-ratio: 3 / 4; border-radius: 26px; border: 12px solid #15182b;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), var(--shadow-lg);
}
.device-phone { width: 31%; }
.device-phone .device-screen {
  aspect-ratio: 9 / 19; border-radius: 34px; border: 9px solid #15182b;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), var(--shadow-lg);
}
.device-phone .device-screen::before {
  content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 34%; height: 16px;
  border-radius: 10px; background: #15182b; z-index: 2;
}

/* Mini website rendered inside the devices (pure CSS, no images) */
.mini-site { --c1: #4f8cff; --c2: #8b5cf6; --bg-ms: #0f1222; --ink: rgba(255,255,255,.85); --soft: rgba(255,255,255,.12);
  padding: 6%; display: grid; gap: 5%; background: var(--bg-ms); min-height: 180%;
  animation: screen-scroll 14s var(--ease-in-out) infinite;
}
.device:not(.is-active) .mini-site { animation-play-state: paused; }
@keyframes screen-scroll { 0%, 18% { transform: translateY(0); } 50%, 68% { transform: translateY(-38%); } 100% { transform: translateY(0); } }
.mini-site.theme-arch  { --bg-ms: #f3efe8; --ink: #1d1b18; --soft: rgba(29,27,24,.12); --c1: #a47e57; --c2: #2b2723; }
.mini-site.theme-food  { --bg-ms: #1d1612; --ink: #f5e8d6; --soft: rgba(245,232,214,.14); --c1: #d9663b; --c2: #6b7a3a; }
.mini-site.theme-clean { --bg-ms: #f4f8fb; --ink: #0f1b2d; --soft: rgba(15,27,45,.1); --c1: #14b8a6; --c2: #0f1b2d; }
.ms-nav { display: flex; align-items: center; gap: 6%; }
.ms-nav i { width: 14%; aspect-ratio: 4 / 1; border-radius: 4px; background: var(--ink); }
.ms-nav b { flex: 0 0 9%; height: 4px; border-radius: 2px; background: var(--soft); }
.ms-nav b:first-of-type { margin-inline-start: auto; }
.ms-hero { aspect-ratio: 16 / 8; border-radius: 8px; padding: 7%; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; overflow: hidden; }
.ms-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 50%); }
.ms-hero-text { display: grid; gap: 8px; width: 60%; position: relative; z-index: 1; }
.ms-hero-text span { height: 8px; border-radius: 4px; background: rgba(255,255,255,.9); }
.ms-hero-text span + span { width: 70%; opacity: .7; }
.ms-hero-text em { width: 34%; height: 12px; border-radius: 999px; background: #fff; margin-top: 4px; }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ms-grid.two { grid-template-columns: repeat(2, 1fr); }
.ms-grid.one { grid-template-columns: 1fr; }
.ms-grid div { aspect-ratio: 4 / 3; border-radius: 6px; background: var(--soft); position: relative; overflow: hidden; }
.ms-grid div::after { content: ""; position: absolute; inset-inline: 10%; bottom: 12%; height: 5px; border-radius: 3px; background: var(--c1); opacity: .7; }
.ms-row { display: grid; gap: 6px; }
.ms-row span { height: 6px; border-radius: 3px; background: var(--soft); }
.ms-row span + span { width: 70%; }
.device-tablet .ms-hero { aspect-ratio: 4 / 3; }
.device-phone .ms-hero { aspect-ratio: 3 / 4; }
.device-phone .mini-site { padding-top: 22%; }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem; z-index: 3;
  padding: .55rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: rgba(15, 18, 38, .75); border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
}
.float-chip svg { width: 16px; height: 16px; color: var(--cyan); }
.chip-1 { top: 6%; right: -2%; animation: bob 5s ease-in-out infinite; }
.chip-2 { bottom: 10%; left: -2%; animation: bob 6s ease-in-out infinite reverse; }
@keyframes bob { 50% { translate: 0 -10px; } }

.device-switch {
  position: relative; z-index: 4; margin: 1.25rem auto 0; width: fit-content; display: flex; gap: .25rem; padding: .3rem;
  border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border);
}
.device-switch button {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px;
  color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: background .3s, color .3s;
}
.device-switch svg { width: 18px; height: 18px; }
.device-switch button:hover { color: var(--text); }
.device-switch button[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -6px rgba(99,102,241,.8); }

.scroll-cue {
  position: absolute; bottom: 1.75rem; left: 50%; translate: -50% 0;
  display: grid; justify-items: center; gap: .45rem; color: var(--text-muted); font-size: .8rem;
}
.mouse { width: 24px; height: 38px; border-radius: 14px; border: 2px solid rgba(255,255,255,.35); display: grid; justify-items: center; padding-top: 6px; }
.wheel { width: 4px; height: 8px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--border); background: rgba(255,255,255,.02); padding-block: 1.1rem;
  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; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; padding-inline-end: 2.5rem; font-weight: 700; color: rgba(238,241,255,.55); white-space: nowrap; font-size: 1.05rem; }
.marquee-track span::after { content: "✦"; color: var(--violet-bright); font-size: .8em; }
@keyframes marquee { to { transform: translateX(50%); } }

/* =========================================================
   SERVICES
   ========================================================= */
.services::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 10%, rgba(79,140,255,.1), transparent 70%);
}
/* 5 cards: three on the first row, two wider ones on the second */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; align-items: start; }
.services-grid .service-card { grid-column: span 2; }
.services-grid .service-card:nth-child(n+4) { grid-column: span 3; }
.service-card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius-lg); padding: 1.75rem; overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
  transform-style: preserve-3d;
}
.service-card:hover { border-color: rgba(122, 166, 255, .35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 70px -25px rgba(79, 140, 255, .45); }
.card-spotlight {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(122, 140, 255, .16), transparent 45%);
}
.service-card:hover .card-spotlight { opacity: 1; }
.service-card h3 { font-size: 1.45rem; font-weight: 800; margin-block: 1.4rem .6rem; }
.service-card > p { color: var(--text-muted); }
.card-more {
  margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #a9c1ff;
  padding: .35rem 0; transition: color .3s, gap .3s var(--ease);
}
.card-more svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.card-more:hover { color: #fff; gap: .65rem; }
.card-more[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Expand / collapse: animate grid rows 0fr <-> 1fr so the height eases smoothly both ways */
.card-details { display: grid; grid-template-rows: 1fr; }
/* The collapsing wrapper must have no padding/border/margin of its own,
   otherwise those pixels stay visible when the row is 0fr. */
.card-details-inner { min-height: 0; overflow: hidden; display: grid; gap: 1.25rem; align-content: start; }
.card-details-inner > :first-child { margin-top: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.card-details-inner > :last-child { margin-bottom: .25rem; }
.js .card-details {
  grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .5s var(--ease), opacity .35s ease;
}
.js .card-details.is-open { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .5s var(--ease), opacity .45s ease .08s; }
.js .card-details-inner { transform: translateY(-6px); transition: transform .5s var(--ease); }
.js .card-details.is-open .card-details-inner { transform: none; }
.card-details .btn { justify-self: start; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }

/* Service illustrations */
.service-illu {
  position: relative; height: 190px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(79,140,255,.22), transparent 60%), rgba(255,255,255,.03);
  border: 1px solid var(--border); display: grid; place-items: center;
}
/* 1. building website */
.illu-window { width: 78%; border-radius: 12px; background: #0e1124; border: 1px solid var(--border-strong); overflow: hidden; transition: transform .6s var(--ease); }
.service-card:hover .illu-window { transform: translateY(-6px) rotate(-1.5deg) scale(1.03); }
.illu-bar { display: flex; gap: 5px; padding: 8px 10px; background: rgba(255,255,255,.05); }
.illu-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.illu-bar i:first-child { background: #fb7185; }
.illu-body { padding: 12px; display: grid; gap: 7px; }
.illu-body > span { height: 7px; border-radius: 4px; background: rgba(255,255,255,.14); transform-origin: right; animation: build 4s var(--ease) infinite; }
.illu-body .b1 { width: 70%; background: var(--grad); }
.illu-body .b2 { width: 90%; animation-delay: .2s; }
.illu-body .b3 { width: 55%; animation-delay: .4s; }
.illu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.illu-cards span { aspect-ratio: 1; border-radius: 6px; background: rgba(79,140,255,.18); animation: pop 4s var(--ease) infinite; }
.illu-cards span:nth-child(2) { animation-delay: .15s; background: rgba(139,92,246,.2); }
.illu-cards span:nth-child(3) { animation-delay: .3s; }
@keyframes build { 0% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes pop { 0%, 20% { transform: scale(.4); opacity: 0; } 40%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(.4); opacity: 0; } }
/* 2. landing funnel */
.funnel { display: grid; justify-items: center; gap: 7px; width: 100%; }
.funnel span {
  display: block; text-align: center; font-size: .8rem; font-weight: 700; padding: .42rem .6rem; border-radius: 8px;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.05); transition: transform .5s var(--ease), background .5s;
}
.funnel .f1 { width: 82%; }
.funnel .f2 { width: 62%; background: rgba(79,140,255,.18); }
.funnel .f3 { width: 42%; background: var(--grad); border-color: transparent; animation: glow-pulse 2.4s ease-in-out infinite; }
.service-card:hover .funnel .f1 { transform: scaleX(1.04); }
.service-card:hover .funnel .f3 { transform: scale(1.08); }
@keyframes glow-pulse { 50% { box-shadow: 0 0 0 6px rgba(139, 92, 246, .18), 0 0 26px rgba(139,92,246,.6); } }
.cursor-dot {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.2);
  bottom: 22%; left: 52%; animation: click-move 4s var(--ease-in-out) infinite;
}
@keyframes click-move { 0% { transform: translate(-60px, -90px); } 45% { transform: translate(0, 0); } 52% { transform: scale(.7); } 60%, 100% { transform: scale(1); } }
/* 3. chat bubbles (shared with chat preview) */
.illu-chat { align-content: center; justify-items: stretch; gap: 8px; padding: 1.1rem; }
.bubble {
  max-width: 82%; padding: .55rem .85rem; border-radius: 14px; font-size: .88rem; line-height: 1.45; width: fit-content;
}
.bubble.in { background: rgba(255,255,255,.08); border: 1px solid var(--border); border-start-start-radius: 4px; justify-self: start; }
.bubble.out { background: var(--grad); border-start-end-radius: 4px; justify-self: end; }
.illu-chat .bubble { opacity: 0; animation: bubble-in 6s var(--ease) infinite; }
.illu-chat .bubble:nth-child(2) { animation-delay: .9s; }
.illu-chat .bubble:nth-child(3) { animation-delay: 1.8s; }
@keyframes bubble-in { 0% { opacity: 0; transform: translateY(10px) scale(.95); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* 4. automation flow */
.flow { display: flex; align-items: center; justify-content: center; gap: 0; width: 100%; padding-inline: 1rem; }
.flow .node {
  flex: 0 0 auto; font-size: .78rem; font-weight: 700; padding: .5rem .7rem; border-radius: 10px;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.05); white-space: nowrap;
  animation: node-on 4.5s var(--ease) infinite;
}
.flow .n2 { background: rgba(139,92,246,.18); animation-delay: 1.2s; }
.flow .n3 { animation-delay: 2.4s; }
.flow .link { flex: 1 1 24px; min-width: 14px; height: 2px; position: relative; overflow: hidden; background: var(--border-strong); }
.flow .link::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: translateX(100%); animation: link-run 4.5s linear infinite; }
.flow .link:nth-of-type(4)::after { animation-delay: 1.2s; }
@keyframes node-on { 0%, 100% { box-shadow: none; } 12%, 30% { box-shadow: 0 0 0 4px rgba(79,140,255,.15), 0 0 22px rgba(79,140,255,.45); border-color: rgba(122,166,255,.6); } }
@keyframes link-run { 0% { transform: translateX(100%); } 25%, 100% { transform: translateX(-100%); } }
/* 5. maintenance checklist */
.care-list { display: grid; gap: .55rem; width: 70%; }
.care-list li {
  display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 700; padding: .5rem .75rem;
  border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04);
  animation: care-in 5s var(--ease) infinite;
}
.care-list li:nth-child(2) { animation-delay: .5s; }
.care-list li:nth-child(3) { animation-delay: 1s; }
.care-list svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #34d399; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes care-in { 0% { opacity: .35; transform: translateX(-6px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: .35; } }
.typing { display: inline-flex; gap: 4px; padding: .7rem .9rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.7); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* =========================================================
   WORK / CAROUSEL
   ========================================================= */
.work { overflow: hidden; }
.work::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 40% at 15% 40%, rgba(139,92,246,.12), transparent 70%);
}
.carousel-controls { display: flex; align-items: center; gap: .9rem; }
.carousel-count { font-variant-numeric: tabular-nums; color: var(--text-muted); direction: ltr; }
.carousel-count b { color: var(--text); }

.carousel { position: relative; }
.carousel-track {
  --gutter: max(1.25rem, calc((100vw - var(--container)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(1080px, calc(100vw - 2.5rem)); gap: 1.5rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); padding-block: 1rem 2rem;
  scrollbar-width: none; cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.carousel-track:focus-visible { outline-offset: -4px; }

.slide {
  scroll-snap-align: start; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--border);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.slide:not(.is-current) { opacity: .45; transform: scale(.97); }
.slide-visual { position: relative; padding-bottom: 6%; }
.slide-info h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; line-height: 1.2; margin-block: .9rem .75rem; }
.slide-info p { color: var(--text-muted); }
.slide-info .btn { margin-top: 1.6rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .03em;
  padding: .3rem .75rem; border-radius: 999px; color: #fde68a; background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .3);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #facc15; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.tags li { font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-muted); }

/* Device mockups with live scaled iframes */
.mock-laptop { width: 92%; transition: transform .7s var(--ease); }
.mock-laptop .mock-screen {
  aspect-ratio: 16 / 10; border: 9px solid #15182b; border-bottom-width: 13px; border-radius: 14px 14px 4px 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), var(--shadow-lg);
}
.mock-base { height: 12px; width: 112%; margin-inline: -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#262a44, #12152a); }
.mock-phone {
  position: absolute; bottom: 0; inset-inline-end: 0; width: 24%; transition: transform .7s var(--ease);
}
.mock-phone .mock-screen {
  aspect-ratio: 9 / 19; border: 6px solid #15182b; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), -20px 30px 60px -20px rgba(0,0,0,.8);
}
.mock-screen { position: relative; overflow: hidden; background: linear-gradient(135deg, #1a1f3d, #0d1023); }
.mock-screen::after { /* loading shimmer until the iframe paints */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.05) 50%, transparent 70%) 0 0 / 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.mock-screen.is-loaded::after { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.mock-screen iframe {
  position: absolute; top: 0; left: 0; z-index: 1; border: 0; pointer-events: none; background: #fff; max-width: none;
  width: var(--vw, 1280px); height: var(--vh, 800px); transform: scale(var(--scale, .4)); transform-origin: 0 0;
  opacity: 0; transition: opacity .6s;
}
.mock-screen.is-loaded iframe { opacity: 1; }
.slide.is-current:hover .mock-laptop { transform: translateY(-6px); }
.slide.is-current:hover .mock-phone { transform: translateY(-14px) rotate(-2deg); }

.carousel-dots { display: flex; justify-content: center; gap: .6rem; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.2); transition: width .4s var(--ease), background .3s; }
.carousel-dots button[aria-current="true"] { width: 34px; background: var(--grad); }
.carousel-dots button:hover { background: rgba(255,255,255,.45); }

/* =========================================================
   CHATBOT SECTION
   ========================================================= */
.chatbot-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 25% 50%, rgba(79,140,255,.13), transparent 70%);
}
.chatbot-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.chatbot-copy .check-list { margin-top: 1.75rem; }
.note {
  display: flex; gap: .6rem; align-items: flex-start; margin-block: 1.75rem; padding: .9rem 1rem; border-radius: var(--radius-sm);
  background: rgba(250, 204, 21, .06); border: 1px solid rgba(250, 204, 21, .22); color: #f5e6b3; font-size: .95rem;
}
.note svg { flex: none; width: 20px; height: 20px; margin-top: .2rem; }
.chat-preview { display: grid; place-items: center; }
.chat-preview-card { width: min(100%, 400px); border-radius: var(--radius-lg); overflow: hidden; animation: bob 7s ease-in-out infinite; }
.cp-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.03); }
.cp-head b { display: block; }
.cp-head small { color: var(--text-muted); }
.cp-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); box-shadow: 0 0 20px rgba(99,102,241,.5); }
.cp-body { padding: 1.2rem; display: grid; gap: .7rem; }
.cp-body .bubble { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.chat-preview.is-visible .bubble { opacity: 1; transform: none; }
.chat-preview.is-visible .bubble:nth-child(2) { transition-delay: .6s; }
.chat-preview.is-visible .bubble:nth-child(3) { transition-delay: 1.2s; }
.cp-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.cp-chips span { font-size: .8rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(122,166,255,.4); color: #b9ccff; }

/* =========================================================
   ABOUT
   ========================================================= */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value-card { padding: 1.6rem; border-radius: var(--radius); transition: transform .45s var(--ease), border-color .4s; }
.value-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.4); }
.value-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--grad-soft); border: 1px solid rgba(122,166,255,.3); color: #b9ccff;
  transition: transform .5s var(--ease);
}
.value-card:hover .value-icon { transform: rotate(-8deg) scale(1.08); }
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .45rem; }
.value-card p { color: var(--text-muted); font-size: .98rem; }

.process { margin-top: clamp(2rem, 4vw, 3.25rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; counter-reset: step; }
.process::before {
  content: ""; position: absolute; top: 1.4rem; inset-inline: 2rem; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122,166,255,.5), rgba(168,85,247,.5), transparent);
}
.process li { position: relative; padding-top: 3.6rem; }
.step-num {
  position: absolute; top: 0; inset-inline-start: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem; background: var(--bg); border: 1px solid rgba(122,166,255,.5);
  box-shadow: 0 0 20px rgba(79,140,255,.25);
}
.process h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .3rem; }
.process p { color: var(--text-muted); font-size: .97rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 80% 60%, rgba(139,92,246,.14), transparent 70%);
}
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { margin-top: 2rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-list small { display: block; color: var(--text-muted); font-size: .82rem; }
.contact-list a { font-weight: 700; font-size: 1.1rem; direction: ltr; unicode-bidi: isolate; transition: color .3s; }
.contact-list a:hover { color: #a9c1ff; }
.contact-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); }
.contact-ico svg { width: 22px; height: 22px; }

.contact-form { padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--radius-lg); display: grid; gap: 1.1rem; }
.form-mode {
  padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .93rem;
  background: rgba(250, 204, 21, .07); border: 1px solid rgba(250, 204, 21, .25); color: #f5e6b3;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field label span { color: #a9c1ff; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; background: rgba(5, 6, 15, .55);
  border: 1px solid var(--border-strong); transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6aed0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 1rem center; background-size: 18px; padding-inline-end: 1rem; padding-inline-start: 1rem;
}
.field select option { background: #0f1222; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-bright); background: rgba(5, 6, 15, .8); box-shadow: 0 0 0 4px rgba(79, 140, 255, .2);
}
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:empty { display: none; }
.form-status { padding: 1rem 1.1rem; border-radius: var(--radius-sm); font-size: .97rem; animation: fade-down .4s var(--ease); }
.form-status.is-success { background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); color: #b7f5dc; }
.form-status.is-error { background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .35); color: #fecdd3; }
.form-status.is-demo { background: rgba(250, 204, 21, .07); border: 1px solid rgba(250, 204, 21, .3); color: #f5e6b3; }
.form-status .btn { margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 3rem 6rem; background: linear-gradient(transparent, rgba(79,140,255,.04)); }
.footer-inner { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.6rem; }
.footer-links a { color: var(--text-muted); transition: color .3s; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--text-muted); font-size: .9rem; max-width: 560px; }
.footer-copy { color: rgba(166,174,208,.7); font-size: .85rem; }

/* =========================================================
   FLOATING: WhatsApp + Chat widget
   ========================================================= */
.fab-whatsapp {
  position: fixed; bottom: 1.4rem; inset-inline-start: 1.4rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.fab-whatsapp svg { width: 30px; height: 30px; fill: currentColor; }
.fab-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.8s var(--ease) infinite; }
.fab-whatsapp:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

.chat-widget { position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem; z-index: 95; }
.chat-launcher {
  position: relative; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin-inline-start: auto;
  background: var(--grad); color: #fff; box-shadow: 0 14px 34px -8px rgba(99, 102, 241, .9);
  transition: transform .4s var(--ease), border-radius .4s var(--ease);
}
.chat-launcher:hover { transform: translateY(-3px) scale(1.04); }
.chat-launcher svg { width: 26px; height: 26px; position: absolute; transition: transform .4s var(--ease), opacity .3s; }
.chat-launcher .ico-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-launcher[aria-expanded="true"] { border-radius: 50%; }
.chat-launcher[aria-expanded="true"] .ico-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-launcher[aria-expanded="true"] .ico-close { opacity: 1; transform: none; }
.launcher-badge {
  position: absolute; top: -6px; inset-inline-start: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: #fb7185; font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg);
  animation: badge-pop .6s var(--ease) 2.5s both;
}
.chat-launcher[aria-expanded="true"] .launcher-badge, .chat-widget.was-opened .launcher-badge { display: none; }
@keyframes badge-pop { from { transform: scale(0); } }

.chat-panel {
  position: absolute; bottom: calc(100% + 14px); inset-inline-end: 0;
  width: min(380px, calc(100vw - 2rem)); height: min(580px, calc(100svh - 120px));
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: rgba(12, 14, 30, .92); border: 1px solid var(--border-strong);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(79,140,255,.12);
  transform-origin: bottom left;
}
.chat-panel[hidden] { display: none; }
.chat-panel.is-opening { animation: panel-in .5s var(--ease) both; }
.chat-panel.is-closing { animation: panel-out .3s var(--ease-in-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(20px) scale(.92); filter: blur(6px); } }
@keyframes panel-out { to { opacity: 0; transform: translateY(14px) scale(.95); } }

.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: var(--grad-soft); border-bottom: 1px solid var(--border); }
.chat-avatar { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--grad); }
.chat-avatar svg { width: 24px; height: 24px; color: #fff; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 1.02rem; font-weight: 800; }
.chat-head p { font-size: .8rem; color: var(--text-muted); }
.chat-restart, .chat-close { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-muted); transition: background .3s, color .3s; }
.chat-restart:hover, .chat-close:hover { background: rgba(255,255,255,.08); color: var(--text); }
.chat-restart svg, .chat-close svg { width: 20px; height: 20px; }

.chat-log { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; scroll-behavior: smooth; }
.chat-log .bubble { animation: msg-in .45s var(--ease) both; max-width: 86%; white-space: pre-line; }
.chat-log .bubble.in { align-self: flex-start; }
.chat-log .bubble.out { align-self: flex-end; }
.chat-log .bubble.system { align-self: center; max-width: 100%; text-align: center; font-size: .8rem; color: #f5e6b3; background: rgba(250,204,21,.07); border: 1px solid rgba(250,204,21,.2); border-radius: 10px; }
.chat-log .bubble a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.chat-quick {
  display: flex; flex-wrap: wrap; gap: .45rem; padding: .6rem 1.1rem .8rem;
  max-height: 34%; overflow-y: auto; flex: none; border-top: 1px solid var(--border);
}
.chat-quick:empty { display: none; }
.chat-quick button {
  font-size: .86rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgba(122,166,255,.45); color: #c7d6ff;
  background: rgba(79,140,255,.08); transition: background .3s, transform .3s var(--ease), border-color .3s;
  animation: msg-in .4s var(--ease) both;
}
.chat-quick button:hover { background: rgba(79,140,255,.22); border-color: var(--blue-bright); transform: translateY(-2px); }
.chat-input { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--border); background: rgba(0,0,0,.2); }
.chat-input input { flex: 1; min-width: 0; padding: .7rem .95rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--border-strong); }
.chat-input input:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(79,140,255,.2); }
.chat-input button { width: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; transition: transform .3s var(--ease); }
.chat-input button:hover { transform: scale(1.06); }
.chat-input button svg { width: 20px; height: 20px; transform: scaleX(-1); fill: currentColor; stroke: none; }

/* =========================================================
   REVEAL ANIMATIONS (only when JS is available)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card, .services-grid .service-card:nth-child(n+4) { grid-column: auto; }
  .services-grid .service-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 1.25rem;
    background: rgba(5, 6, 15, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a { padding: .9rem 1rem; font-size: 1.15rem; border-radius: 12px; }
  .main-nav a.is-active { background: rgba(255,255,255,.06); }
  .nav-indicator { display: none; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-tags { justify-content: center; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .scroll-cue { display: none; }

  .slide { grid-template-columns: 1fr; }
  .chatbot-inner, .contact-inner { grid-template-columns: 1fr; }
  .chat-preview { order: -1; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .process::before { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .services-grid, .values-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:last-child { grid-column: auto; }
  .process { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section-head-row { align-items: flex-start; }
  .carousel-track { grid-auto-columns: calc(100vw - 2.5rem); gap: 1rem; }
  .slide { padding: 1rem; }
  .float-chip { font-size: .72rem; padding: .4rem .7rem; }
  .chip-1 { right: 0; }
  .chip-2 { left: 0; }
  .device-switch button { padding: .5rem .8rem; }
  .fab-whatsapp { width: 52px; height: 52px; bottom: 1rem; inset-inline-start: 1rem; }
  .chat-widget { bottom: 1rem; inset-inline-end: 1rem; }
  .chat-launcher { width: 54px; height: 54px; }
  .chat-panel { height: min(560px, calc(100svh - 100px)); }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
  .illu-chat .bubble, .cp-body .bubble { opacity: 1; transform: none; }
  .illu-body > span, .illu-cards span { transform: none; opacity: 1; }
  .mini-site { transform: none; }
}

[hidden] { display: none !important; }
.form-privacy { font-size: .85rem; color: var(--text-muted); margin: 0; }
/* Turnstile stays invisible unless Cloudflare asks the visitor to interact */
.turnstile-slot:empty { display: none; }
.chat-turnstile { padding: 0 .75rem .5rem; }
.form-privacy a, .footer-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Legal / 404 pages */
.legal-page .site-header { position: sticky; }
.legal-back { margin-inline-start: auto; }
.legal { padding-top: clamp(2.5rem, 5vw, 4rem); min-height: 60vh; }
.legal-inner { max-width: 780px; }
.legal h1 { margin-bottom: .5rem; }
.legal h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.8; }
.legal p a { color: #a9c1ff; text-decoration: underline; text-underline-offset: 3px; }
.legal .check-list { margin-top: .5rem; }
.legal-updated { font-size: .9rem; }
.legal .btn { margin-top: 1.5rem; }
