:root {
  --void: #08070F;
  --panel: #12102A;
  --panel-2: #1A1738;
  --violet: #7C3AED;
  --violet-hi: #8B5CF6;
  --lilac: #A78BFA;
  --cyan: #22D3EE;
  --text: #ECEBF5;
  --muted: #A9A6C4;
  --line: rgba(167, 139, 250, 0.18);

  --display: "Syncopate", "Archivo", system-ui, sans-serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
a, button, summary { touch-action: manipulation; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 32px); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--void); font-weight: 700;
}
.skip-link:focus-visible { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-family: var(--body); font-stretch: 112%; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  border: 1.5px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 0.85rem; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
.btn-outline { border-color: rgba(236, 235, 245, 0.35); color: var(--text); }
.wa-icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--violet-hi); box-shadow: 0 0 32px -6px rgba(124, 58, 237, 0.9); }
  .btn-outline:hover { border-color: var(--text); background: rgba(236, 235, 245, 0.06); }
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 7, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--display); font-weight: 400; font-size: 0.95rem; letter-spacing: 0.32em; text-transform: uppercase; }
.nav { display: flex; gap: 36px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--muted); border: 1px solid rgba(236, 235, 245, 0.2);
  transition: color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.lang-switch:hover { color: var(--text); border-color: rgba(236, 235, 245, 0.5); }
.lang-switch:active { transform: scale(0.96); }
.footer-lang { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236, 235, 245, 0.35); transition: text-decoration-color 200ms ease; }
.footer-lang:hover { text-decoration-color: var(--cyan); }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 200ms ease; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 16px 16px 0; }
.hero-stage {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(86vh, 820px);
  display: grid; place-items: center; align-content: center; gap: 28px;
  padding: 72px 24px 80px;
  border-radius: var(--r-xl);
  background: #0E0B22;
  text-align: center;
}
/* Background video sits under a violet scrim so the copy stays legible */
.hero-video {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1600ms ease;
}
.hero-video.is-ready { opacity: 0.55; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(124, 58, 237, 0.5), transparent 70%),
    radial-gradient(40% 40% at 78% 80%, rgba(34, 211, 238, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(14, 11, 34, 0.55) 0%, rgba(14, 11, 34, 0.25) 40%, rgba(14, 11, 34, 0.85) 100%);
}
/* Multiply tints the white circuit traces violet while blacks stay black */
.hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(120deg, #8B5CF6 0%, #6D28D9 55%, #22D3EE 100%);
  mix-blend-mode: multiply;
}
.motion-toggle {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 7, 15, 0.55); border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.motion-toggle:hover { background: rgba(8, 7, 15, 0.8); }
.motion-toggle:active { transform: scale(0.94); }
.motion-toggle svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .icon-play { display: none; fill: #fff; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }
.starfield { position: absolute; inset: -40px; z-index: -1; }
.starfield span { position: absolute; inset: 0; }
.starfield span:first-child {
  opacity: 0.7; animation: twinkle 4.5s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 14%, #C4B5FD, transparent),
    radial-gradient(1px 1px at 62% 82%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 76% 30%, #A5F3FC, transparent),
    radial-gradient(1px 1px at 88% 62%, #fff, transparent),
    radial-gradient(1px 1px at 8% 88%, #C4B5FD, transparent),
    radial-gradient(1.5px 1.5px at 92% 12%, #fff, transparent);
}
.starfield span:last-child {
  opacity: 0.2; animation: twinkle 6s ease-in-out 1.5s infinite alternate-reverse;
  background-image:
    radial-gradient(1px 1px at 18% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 36% 86%, #A5F3FC, transparent),
    radial-gradient(1px 1px at 54% 26%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 56%, #C4B5FD, transparent),
    radial-gradient(1px 1px at 84% 90%, #fff, transparent),
    radial-gradient(1px 1px at 96% 44%, #fff, transparent);
}
@keyframes twinkle { from { opacity: 0.2; } to { opacity: 0.8; } }
.hero-stage.is-paused .starfield span { animation-play-state: paused; }
.parallax, .starfield { will-change: transform; }
.hero-mark {
  width: clamp(150px, 22vw, 230px); height: auto; overflow: visible;
  filter: drop-shadow(0 0 28px rgba(34, 211, 238, 0.55)) drop-shadow(0 0 60px rgba(124, 58, 237, 0.5));
}
.hero-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 5.2vw, 4.2rem); line-height: 1.12; letter-spacing: 0.06em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.04em 0 0.1em; }
.hero-title .line > span { display: block; }
.lead { max-width: 34em; margin: 20px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #CFCCE6; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(28px, 4vw, 40px); }

/* Hero load sequence: the constellation lights up, links connect, then copy arrives */
.hero-mark .mark-core,
.hero-mark .mark-sat,
.hero-mark .mark-eye { transform-box: fill-box; transform-origin: center; }
.hero-mark .mark-core { animation: core-in 900ms var(--ease-out) both; }
.hero-mark .mark-eye { animation: pop-in 500ms var(--ease-out) 350ms both; }
.hero-mark .mark-links { animation: fade-in 500ms ease 650ms both; }
.hero-mark .mark-sat-1 { animation: pop-in 600ms var(--ease-out) 850ms both; }
.hero-mark .mark-sat-2 { animation: pop-in 600ms var(--ease-out) 950ms both; }
.hero-title .line > span { animation: line-up 1000ms var(--ease-out) both; }
.hero-title .line:nth-child(1) > span { animation-delay: 450ms; }
.hero-title .line:nth-child(2) > span { animation-delay: 560ms; }
@keyframes line-up { from { transform: translateY(110%); } to { transform: translateY(0); } }
.hero .lead { animation: rise-in 800ms var(--ease-out) 700ms both; }
.hero-ctas { animation: rise-in 800ms var(--ease-out) 800ms both; }

@keyframes core-in {
  from { opacity: 0; transform: scale(0.82) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Category strip (Alienware-style) */
.categories {
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 56px);
  padding: 28px 16px 8px;
}
.categories a {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 44px; padding: 8px; border-radius: 12px;
  font-family: var(--display); font-weight: 700; font-size: clamp(0.75rem, 1.2vw, 0.8rem); text-align: center;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  transition: color 200ms ease;
}
.categories svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.categories .slash { font-family: var(--display); font-size: 1.4rem; color: var(--lilac); opacity: 0.6; }
@media (hover: hover) and (pointer: fine) {
  .categories a:hover { color: var(--cyan); }
  .categories a:hover svg { transform: translateY(-3px); }
}

/* Trusted brands */
.brands { padding: 64px 0 0; }
.brands-title {
  text-align: center; color: var(--muted);
  font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.brand-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.brand-tile {
  display: grid; grid-template-rows: 72px auto; justify-items: center; align-items: center; align-content: center; gap: 14px;
  min-height: 150px; padding: 28px 20px 22px; border-radius: var(--r-md);
  background: #000; border: 1px solid rgba(255, 255, 255, 0.07);
  position: relative; overflow: hidden;
  transition: transform 500ms var(--ease-out), border-color 300ms ease;
}
.brand-tile.is-tilting { transition: border-color 300ms ease; }
/* Light sweep: once when the row appears, again on hover */
.brand-tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(167, 139, 250, 0.22) 50%, rgba(34, 211, 238, 0.12) 56%, transparent 66%);
  translate: -120% 0;
}
.js .brand-list.is-visible .brand-tile::before { animation: sweep 1400ms var(--ease-in-out) calc(var(--i, 0) * 180ms + 500ms) both; }
/* Pointer spotlight, same as the service cards */
.brand-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(167, 139, 250, 0.16), transparent 60%);
  opacity: 0; transition: opacity 300ms ease;
}
.brand-tile.is-tilting::after { opacity: 1; }
@keyframes sweep { from { translate: -120% 0; } to { translate: 120% 0; } }
@keyframes sweep-again { from { translate: -120% 0; } to { translate: 120% 0; } }

/* Logos arrive white on dark backgrounds: crush the backdrop to black, then screen it away. */
.brand-logo {
  position: relative; z-index: 1;
  height: 52px; width: auto; max-width: 100%; object-fit: contain;
  mix-blend-mode: screen; filter: grayscale(1) contrast(1.6) brightness(0.95);
  opacity: 0.8; transition: opacity 300ms ease, filter 300ms ease, scale 400ms var(--ease-out);
}
.brand-logo-wide { height: 44px; }
/* Each logo powers on with a short neon flicker */
.js .brand-list:not(.is-visible) .brand-logo { opacity: 0; }
.js .brand-list.is-visible .brand-logo { animation: logo-on 1100ms ease calc(var(--i, 0) * 180ms + 250ms) backwards; }
@keyframes logo-on {
  0% { opacity: 0; scale: 0.92; }
  40% { opacity: 0.9; scale: 1; }
  50% { opacity: 0.3; }
  62% { opacity: 0.85; }
  72% { opacity: 0.45; }
  100% { opacity: 0.8; scale: 1; }
}
.brand-sector { position: relative; z-index: 1; font-size: 0.88rem; color: var(--muted); transition: color 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .brand-tile:hover { border-color: rgba(167, 139, 250, 0.4); }
  .brand-tile:hover .brand-logo {
    opacity: 1; scale: 1.04;
    filter: grayscale(1) contrast(1.6) brightness(1.1) drop-shadow(0 0 14px rgba(167, 139, 250, 0.55));
  }
  .brand-tile:hover .brand-sector { color: var(--text); }
  .js .brand-list.is-visible .brand-tile:hover::before { animation: sweep-again 900ms var(--ease-out) both; }
}

/* More services */
.more-services { margin-top: 64px; }
.more-title {
  text-align: center; color: var(--muted);
  font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.mini-services { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 24px; }
.mini-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color 300ms ease;
}
.mini-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 4px;
  background: rgba(124, 58, 237, 0.16); border: 1px solid rgba(167, 139, 250, 0.3);
  transition: transform 400ms var(--ease-out), background-color 300ms ease;
}
.mini-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mini-card h4 { font-stretch: 112%; font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.mini-card p { flex: 1; color: var(--muted); font-size: 0.92rem; }
.mini-link {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; font-size: 0.92rem; color: var(--lilac);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.mini-link:hover { color: var(--cyan); text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .mini-card:hover { border-color: rgba(167, 139, 250, 0.45); }
  .mini-card:hover .mini-icon { transform: translateY(-2px) rotate(-6deg); background: rgba(124, 58, 237, 0.35); }
}
@media (max-width: 1100px) { .mini-services { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .mini-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mini-services { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .brand-tile::before { display: none; }
  .js .brand-list.is-visible .brand-logo { animation: fade-in 400ms ease backwards; }
  .brand-tile:hover .brand-logo { scale: 1; }
  .mini-card:hover .mini-icon { transform: none; }
}
@media (max-width: 640px) {
  .brands { padding-top: 48px; }
  .brand-list { grid-template-columns: 1fr; gap: 12px; }
  .brand-tile { min-height: 128px; }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; text-align: center;
  font-size: clamp(1.25rem, 3.2vw, 2.25rem); line-height: 1.25; letter-spacing: 0.06em;
  max-width: 24em; margin: 0 auto;
}
.section-sub { text-align: center; color: var(--muted); max-width: 36em; margin: 18px auto 0; font-size: 1.1rem; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  position: relative; transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out), border-color 300ms ease;
}
.card.is-tilting { transition: border-color 300ms ease; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(167, 139, 250, 0.18), transparent 60%);
  opacity: 0; transition: opacity 300ms ease;
}
.card.is-tilting::after { opacity: 1; }
.card-featured { border-color: rgba(124, 58, 237, 0.7); box-shadow: 0 0 60px -20px rgba(124, 58, 237, 0.6); }
.card-visual {
  position: relative; height: 180px; display: grid; place-items: center;
  background: radial-gradient(70% 90% at 50% 100%, rgba(124, 58, 237, 0.55), transparent 70%), #0D0B20;
}
.card-visual-ai { background: radial-gradient(70% 90% at 50% 100%, rgba(34, 211, 238, 0.35), transparent 70%), radial-gradient(60% 80% at 50% 30%, rgba(124, 58, 237, 0.5), transparent 70%), #0D0B20; }
.card-visual-auto { background: radial-gradient(70% 90% at 50% 100%, rgba(167, 139, 250, 0.45), transparent 70%), #0D0B20; }
.card-visual svg {
  width: 72px; height: 72px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.7));
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.card h3 { font-stretch: 115%; font-weight: 700; font-size: 1.35rem; line-height: 1.25; }
.card-body > p { margin-top: 10px; color: var(--muted); }
.checks { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; }
.checks li { position: relative; padding-left: 28px; font-size: 0.98rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2322D3EE' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.card .btn { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgba(167, 139, 250, 0.45); }
}

/* Setup panel */
.panel {
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: radial-gradient(60% 50% at 50% 0%, rgba(124, 58, 237, 0.28), transparent 70%), #100E24;
  border: 1px solid var(--line);
}
.tabs { margin-top: 36px; }
.tablist-wrap { position: relative; width: fit-content; max-width: 100%; margin: 0 auto 44px; }
.tablist {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06);
}
.tablist button, .tablist span {
  min-height: 44px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.tablist button { color: var(--muted); transition: color 200ms ease; }
.tablist button[aria-selected="true"] { color: #fff; }
.tablist button:hover { color: var(--text); }
.tablist-active {
  position: absolute; inset: 0; pointer-events: none;
  background: transparent;
  clip-path: inset(0 66.6% 0 0 round 999px);
  transition: clip-path 320ms var(--ease-in-out);
}
.tablist-active span { background: var(--violet); color: #fff; box-shadow: 0 0 28px -4px rgba(124, 58, 237, 0.9); }

.tabpanel {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  border-radius: var(--r-md);
}
.tabpanel[hidden] { display: none; }
.tabpanel.is-entering { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.tabpanel { transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), filter 260ms var(--ease-out); }
.demo-copy h3 { font-stretch: 115%; font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
.demo-copy p { margin-top: 14px; color: var(--muted); max-width: 30em; }
.demo { width: 100%; max-width: 480px; justify-self: center; text-align: left; }

/* Demo: browser */
.demo-browser { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #EDEBF7; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C4C1DA; }
.browser-bar span { margin-left: 12px; padding: 4px 12px; border-radius: 999px; background: #fff; color: #6B6890; font-size: 0.75rem; }
.browser-page { padding: 18px; display: grid; gap: 16px; background: #F7F6FD; }
.bp-nav { display: flex; align-items: center; gap: 10px; }
.bp-nav b { width: 26px; height: 26px; border-radius: 8px; background: var(--violet); }
.bp-nav span { width: 42px; height: 8px; border-radius: 4px; background: #D9D6EC; }
.bp-nav span:first-of-type { margin-left: auto; }
.bp-hero { display: grid; gap: 10px; justify-items: start; padding: 22px; border-radius: 14px; background: linear-gradient(135deg, #1E1B4B, #4C1D95); }
.bp-hero span { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.85); }
.bp-hero .w70 { width: 70%; }
.bp-hero .w50 { width: 50%; background: rgba(255, 255, 255, 0.45); }
.bp-hero em { margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: #22C55E; color: #fff; font-style: normal; font-weight: 700; font-size: 0.75rem; }
.bp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bp-grid span { height: 64px; border-radius: 12px; background: #E7E4F6; }

/* Demo: chat */
.demo-chat { border-radius: 22px; overflow: hidden; background: #fff; color: #1E1B4B; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #ECEAF6; }
.chat-head strong { display: block; font-size: 0.95rem; }
.online { font-size: 0.8rem; color: #15803D; }
.online::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; margin-right: 6px; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #F5F3FF; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 0.93rem; line-height: 1.45; }
.msg-in { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(30, 27, 75, 0.08); }
.msg-out { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 4px; }
.chat-event { align-self: center; margin-top: 4px; padding: 6px 14px; border-radius: 999px; background: #E0E7FF; color: #4338CA; font-size: 0.8rem; font-weight: 700; }

/* Demo: flow */
.demo-flow { list-style: none; display: grid; gap: 0; counter-reset: flow; }
.demo-flow li {
  position: relative; display: grid; gap: 2px;
  padding: 16px 20px 16px 64px; margin-bottom: 14px;
  border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line);
}
.demo-flow li::before {
  font-variant-numeric: tabular-nums;
  counter-increment: flow; content: counter(flow);
  position: absolute; left: 18px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--violet); color: #fff; font-weight: 700; font-size: 0.85rem;
}
.demo-flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 32px; bottom: -15px; width: 2px; height: 16px; background: var(--lilac); opacity: 0.6;
}
.demo-flow b { font-weight: 700; }
.demo-flow span { color: var(--muted); font-size: 0.92rem; }

/* Process */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.process li { padding: 28px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.num {
  font-variant-numeric: tabular-nums;
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  border: 1.5px solid var(--cyan); color: var(--cyan); box-shadow: 0 0 18px -4px rgba(34, 211, 238, 0.7);
}
.process h3 { font-stretch: 112%; font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: 0.98rem; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 48px; }
.faq details { border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); transition: border-color 200ms ease; }
.faq details[open] { border-color: rgba(167, 139, 250, 0.45); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 1.05rem; border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary { transition: color 200ms ease; }
.faq summary:hover { color: var(--cyan); }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 14px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 14px no-repeat;
  transition: transform 240ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; color: var(--muted); }
.faq details[open] .faq-a { animation: answer-in 240ms var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 8vw, 96px) 24px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(70% 80% at 50% 100%, rgba(124, 58, 237, 0.5), transparent 70%),
    #0E0B22;
  border: 1px solid var(--line);
}
.cta-mark { margin: 0 auto 28px; filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.6)); }
.cta .btn { margin-top: 32px; }

/* Footer */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 32px 0 104px; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer .brand-name { font-size: 0.8rem; color: var(--text); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 160ms var(--ease-out);
}
.wa-float:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: scale(1.06); } }
.footer .brand { transition: opacity 200ms ease; }
.footer .brand:hover { opacity: 0.8; }
.wa-float svg { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .tabpanel { grid-template-columns: 1fr; text-align: center; }
  .demo-copy p { margin-inline: auto; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .brand-name { letter-spacing: 0.16em; font-size: 0.72rem; }
  .brand { gap: 8px; }
  .header-actions { gap: 6px; }
  .lang-switch { min-width: 40px; padding: 0 8px; }
  .btn-sm { padding: 0 14px; white-space: nowrap; }
  .hero { padding: 8px 8px 0; }
  .hero-stage { border-radius: 28px; min-height: 0; padding: 56px 18px 92px; }
  .hero-ctas .btn { width: 100%; }
  .categories .slash { display: none; }
  .process { grid-template-columns: 1fr; }
  .tablist button, .tablist span { padding: 0 12px; font-family: var(--body); font-stretch: 100%; font-size: 0.8rem; letter-spacing: 0.02em; }
  .categories { gap: 8px; }
  .categories a { flex: 1; min-width: 0; font-family: var(--body); font-stretch: 112%; letter-spacing: 0.06em; }
  .panel { padding-inline: 12px; }
  .tablist { grid-auto-columns: auto; }
  .card-visual { height: 140px; }
  .card-body, .process li { padding: 24px; }
  .demo-flow li { text-align: left; }
}

/* Reduced motion: keep fades that aid comprehension, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark, .hero-mark * , .hero-title .line, .hero .lead, .hero-ctas { animation: fade-in 300ms ease both !important; }
  .tabpanel.is-entering { transform: none; filter: none; }
  .tablist-active { transition-duration: 0ms; }
  .card, .categories svg, .btn, .wa-float { transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
  .card:hover { transform: none; }
  .faq details[open] .faq-a { animation: fade-in 200ms ease; }
}

/* ---------- Scroll reveals (only when JS is running) ---------- */
.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0; translate: 0 28px;
  transition: opacity 700ms ease, translate 900ms var(--ease-out), scale 900ms var(--ease-out), clip-path 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal="title"] { clip-path: inset(0 0 100% 0); translate: 0 18px; }
.js [data-reveal="scale"] { translate: 0 40px; scale: 0.96; }
.js [data-reveal].is-visible,
.js [data-reveal-group].is-visible > * { opacity: 1; translate: 0 0; scale: 1; clip-path: inset(0 0 -10% 0); }

/* Magnetic buttons move with translate so the :active scale still works */
[data-magnetic] { transition: transform 160ms var(--ease-out), translate 500ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
[data-magnetic].is-attracted { transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }

/* ---------- Demo sequences ---------- */
.chat-body.is-sequenced > * { opacity: 0; translate: 0 10px; scale: 0.98; transition: opacity 320ms ease, translate 420ms var(--ease-out), scale 420ms var(--ease-out); }
.chat-body.is-sequenced > .msg-in { transform-origin: left bottom; }
.chat-body.is-sequenced > .msg-out { transform-origin: right bottom; }
.chat-body.is-sequenced > .in { opacity: 1; translate: 0 0; scale: 1; }
.typing {
  align-self: flex-end; display: flex; gap: 4px; padding: 12px 14px;
  border-radius: 16px; border-bottom-right-radius: 4px; background: #DDD6FE;
}
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: typing 900ms ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 120ms; }
.typing i:nth-child(3) { animation-delay: 240ms; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.demo-flow.is-sequenced li { opacity: 0.25; translate: -10px 0; transition: opacity 400ms ease, translate 500ms var(--ease-out), border-color 400ms ease, box-shadow 400ms ease; }
.demo-flow.is-sequenced li::before { scale: 0.6; transition: scale 400ms var(--ease-out), background-color 300ms ease; background: #3B3770; }
.demo-flow.is-sequenced li::after { transform-origin: top; scale: 1 0; transition: scale 400ms var(--ease-out) 200ms; }
.demo-flow.is-sequenced li.in { opacity: 1; translate: 0 0; border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 30px -12px rgba(34, 211, 238, 0.7); }
.demo-flow.is-sequenced li.in::before { scale: 1; background: var(--violet); }
.demo-flow.is-sequenced li.in::after { scale: 1 1; }

.browser-page.is-sequenced > * { opacity: 0; translate: 0 12px; transition: opacity 400ms ease, translate 500ms var(--ease-out); }
.browser-page.is-sequenced > .in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-group] > * { translate: none !important; scale: none !important; clip-path: none !important; transition: opacity 400ms ease; }
  .hero-title .line > span { animation: fade-in 300ms ease both; }
  .starfield span { animation: none; }
  .typing i { animation: none; }
}

/* ---------- Hero announcement pill ---------- */
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 22px;
  min-height: 40px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(8, 7, 15, 0.55); border: 1px solid rgba(167, 139, 250, 0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.9rem; color: #DDD8F5; text-align: left;
  animation: rise-in 800ms var(--ease-out) 300ms both;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.hero-pill:hover { border-color: rgba(34, 211, 238, 0.6); background: rgba(8, 7, 15, 0.75); }
.pill-tag {
  flex: none; padding: 4px 10px; border-radius: 999px;
  background: var(--violet); color: #fff; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em;
}

/* ---------- AI agent bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.bento-card {
  display: grid; gap: 24px; align-content: start;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg);
  background: radial-gradient(80% 60% at 50% 0%, rgba(124, 58, 237, 0.22), transparent 70%), var(--panel);
  border: 1px solid var(--line); overflow: hidden;
}
.bento-wide { grid-column: 1 / -1; grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.bento-copy h3 { font-stretch: 115%; font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
.bento-copy p { margin-top: 10px; color: var(--muted); max-width: 34em; }
.bento-visual { position: relative; }
.bento-visual svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Knowledge sources */
.kb { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.kb-core {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px;
  background: linear-gradient(140deg, #2A2370, #120F2E); border: 1px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 40px -6px rgba(124, 58, 237, 0.8);
}
.kb-list { list-style: none; display: grid; gap: 10px; }
.kb-row {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.kb-name { display: grid; min-width: 0; }
.kb-name b { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-name small { color: var(--muted); font-size: 0.78rem; }
.kb-status { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 0.78rem; font-weight: 700; color: #4ADE80; }
.kb-row.is-learning .kb-status { color: var(--cyan); }
.kb-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(34, 211, 238, 0.15); }
.kb-progress i { display: block; height: 100%; width: 100%; background: var(--cyan); transform-origin: left; scale: 0.15 1; }

/* Task steps */
.task-prompt {
  display: inline-block; padding: 10px 14px; border-radius: 14px; margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem;
}
.task-steps { list-style: none; display: grid; gap: 10px; }
.task-steps li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: rgba(124, 58, 237, 0.12); border: 1px solid rgba(167, 139, 250, 0.2);
  font-size: 0.9rem;
}
.task-num { font-size: 0.75rem; font-weight: 700; color: var(--lilac); white-space: nowrap; }
.task-check {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(74, 222, 128, 0.15); color: #4ADE80;
}

/* Insights */
.insight-q {
  margin: 0 0 14px auto; width: fit-content; max-width: 90%; padding: 10px 14px;
  border-radius: 14px; border-bottom-right-radius: 4px; background: var(--violet); color: #fff; font-size: 0.9rem;
}
.insight-table { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 12px; }
.insight-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; }
.sample-tag { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--muted); font-size: 0.72rem; }
.insight-row { display: grid; grid-template-columns: 88px 1fr 40px; align-items: center; gap: 12px; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.insight-row b { text-align: right; }
.insight-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.insight-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform-origin: left; }

/* Bento motion: the mock interfaces play out once the cards are on screen */
.js .bento .task-steps li { opacity: 0.35; }
.js .bento .task-check { scale: 0; opacity: 0; }
.js .bento .insight-bar i { scale: 0 1; }
.js .bento .kb-row { opacity: 0; translate: -12px 0; }
.js .bento.is-visible .kb-row { opacity: 1; translate: 0 0; transition: opacity 500ms ease, translate 600ms var(--ease-out); }
.js .bento.is-visible .kb-row:nth-child(2) { transition-delay: 150ms; }
.js .bento.is-visible .kb-row:nth-child(3) { transition-delay: 300ms; }
.js .bento.is-visible .kb-row:nth-child(4) { transition-delay: 450ms; }
.js .bento.is-visible .kb-progress i { animation: learning 2.6s var(--ease-in-out) 900ms both; }
@keyframes learning { from { scale: 0.15 1; } to { scale: 0.85 1; } }
.js .bento.is-visible .task-steps li { opacity: 1; transition: opacity 400ms ease; }
.js .bento.is-visible .task-check { scale: 1; opacity: 1; transition: scale 450ms var(--ease-out), opacity 300ms ease; }
.js .bento.is-visible .task-steps li:nth-child(1), .js .bento.is-visible .task-steps li:nth-child(1) .task-check { transition-delay: 600ms; }
.js .bento.is-visible .task-steps li:nth-child(2), .js .bento.is-visible .task-steps li:nth-child(2) .task-check { transition-delay: 1100ms; }
.js .bento.is-visible .task-steps li:nth-child(3), .js .bento.is-visible .task-steps li:nth-child(3) .task-check { transition-delay: 1600ms; }
.js .bento.is-visible .insight-bar i { scale: 1 1; transition: scale 1100ms var(--ease-out); }
.js .bento.is-visible .insight-row:nth-of-type(2) .insight-bar i { transition-delay: 700ms; }
.js .bento.is-visible .insight-row:nth-of-type(3) .insight-bar i { transition-delay: 850ms; }
.js .bento.is-visible .insight-row:nth-of-type(4) .insight-bar i { transition-delay: 1000ms; }

/* ---------- Integrations marquee ---------- */
.marquee {
  display: grid; gap: 14px; margin-top: 48px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-row { display: flex; width: max-content; }
.marquee-track { list-style: none; display: flex; gap: 14px; padding-right: 14px; animation: marquee 48s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track, .motion-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { translate: 0 0; } to { translate: -100% 0; } }
.tool-chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-stretch: 112%; font-weight: 600; font-size: 0.95rem;
}
.tool-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--violet)); }

/* ---------- Final CTA with two options ---------- */
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.cta .cta-actions .btn { margin-top: 0; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-pill { font-size: 0.82rem; }
  .kb { grid-template-columns: 1fr; }
  .kb-core { justify-self: start; width: 60px; height: 60px; border-radius: 18px; }
  .kb-core img { width: 32px; height: 32px; }
  .task-steps li { grid-template-columns: 1fr auto; }
  .task-num { grid-column: 1 / -1; }
  .cta-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pill { animation: fade-in 300ms ease both; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-row { width: auto; justify-content: center; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .js .bento .kb-row { translate: none; }
  .js .bento.is-visible .kb-progress i { animation: none; scale: 0.85 1; }
}
