/* ============================================================
   Arteq AI — Premium Landing Website
   Design system: dark-first, glass surfaces, gradient glow,
   Space Grotesk display type + Inter body type.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #06070c;
  --bg-soft: #0a0c16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ink: #f6f7fb;
  --ink-soft: #c7c9dc;
  --muted: #8b8fa8;

  --indigo: #6366f1;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --electric: #7c5cff;

  --grad-brand: linear-gradient(115deg, var(--indigo) 0%, var(--violet) 55%, var(--cyan) 100%);
  --grad-brand-soft: linear-gradient(115deg, rgba(99,102,241,.18), rgba(168,85,247,.14) 55%, rgba(34,211,238,.16));

  --glow-indigo: 0 0 60px -12px rgba(99, 102, 241, .55);
  --glow-violet: 0 0 60px -12px rgba(168, 85, 247, .5);
  --glow-cyan: 0 0 60px -12px rgba(34, 211, 238, .5);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 24px 60px -30px rgba(0,0,0,.65);
  --ease: cubic-bezier(.16,.8,.24,1);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --surface: rgba(10, 12, 30, 0.035);
  --surface-strong: rgba(10, 12, 30, 0.06);
  --line: rgba(10, 12, 30, 0.09);
  --line-strong: rgba(10, 12, 30, 0.16);

  --ink: #10111c;
  --ink-soft: #40435c;
  --muted: #6b6e88;

  --shadow-card: 0 24px 55px -32px rgba(20, 22, 50, .35);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f7fb;
    --bg-soft: #ffffff;
    --surface: rgba(10, 12, 30, 0.035);
    --surface-strong: rgba(10, 12, 30, 0.06);
    --line: rgba(10, 12, 30, 0.09);
    --line-strong: rgba(10, 12, 30, 0.16);
    --ink: #10111c;
    --ink-soft: #40435c;
    --muted: #6b6e88;
    --shadow-card: 0 24px 55px -32px rgba(20, 22, 50, .35);
  }
}

/* MPA cross-document view transitions — pure CSS, no-op where unsupported */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .35s; }
::view-transition-new(root) { animation-duration: .35s; }

/* Same-document theme-toggle circular wipe (JS-driven via startViewTransition,
   scoped to the .theme-transition class so it never overrides the default
   crossfade used for cross-page navigation above). */
:root.theme-transition::view-transition-old(root),
:root.theme-transition::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
:root.theme-transition::view-transition-old(root) { z-index: 1; }
:root.theme-transition::view-transition-new(root) { z-index: 9999; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 20px; border: 2px solid var(--bg); }
* { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }

/* ---------- Layout utilities ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 12px 2px rgba(124, 92, 255, .7);
}
.eyebrow.center { display: inline-flex; }
.center-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }

.section__title { font-size: clamp(28px, 4vw, 46px); line-height: 1.12; }
.section__lede { max-width: 640px; margin-top: 16px; color: var(--muted); font-size: 17px; }
.center { text-align: center; margin-inline: auto; }

.gradient-text {
  display: inline-block;
  background: var(--grad-brand);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradient-flow 6s ease infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Film-grain texture overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9970; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
:root[data-theme="light"] .grain { opacity: .02; mix-blend-mode: multiply; }

/* ---------- Reading progress bar ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0%;
  background: var(--grad-brand); z-index: 300;
  box-shadow: 0 0 8px 0 rgba(124,92,255,.6);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.preloader img { width: 56px; height: 56px; animation: preloader-pulse 1.1s ease-in-out infinite; border-radius: 14px; }
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloader-pulse {
  0%, 100% { transform: scale(.9); opacity: .7; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ---------- Custom cursor (pointer devices only, JS adds .has-custom-cursor) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 10px 2px rgba(34,211,238,.8); }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid var(--line-strong);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.has-custom-cursor .cursor-ring.is-active { width: 56px; height: 56px; border-color: var(--electric); background: rgba(124,92,255,.08); }
.has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button { cursor: none !important; }
.cursor-dot, .cursor-ring { display: none; }
.has-custom-cursor .cursor-dot, .has-custom-cursor .cursor-ring { display: block; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding-block: 18px;
  transition: padding .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 10px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }

/* Brand mark: three nodes (Receptionist / Scribe / Kiosk) networked into one
   platform — stands in for a raster logo in the header/footer so the brand
   reads as part of the interface, not a pasted image on a white chip. */
.brand__mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand__mark svg { width: 100%; height: 100%; overflow: visible; }
.brand__mark .brand__link { fill: none; stroke: var(--line-strong); stroke-width: 1.3; stroke-linecap: round; transition: stroke .3s var(--ease); }
.brand__mark .brand__node { transition: r .3s var(--ease), filter .3s var(--ease); }
.brand__mark .brand__node--a { fill: var(--indigo); }
.brand__mark .brand__node--b { fill: var(--violet); }
.brand__mark .brand__node--c { fill: var(--cyan); }
.brand:hover .brand__mark .brand__link { stroke: var(--electric); }
.brand:hover .brand__mark .brand__node { r: 3; filter: drop-shadow(0 0 5px currentColor); }

.brand__wordmark { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.brand__ai {
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: .05em;
  padding: 3px 6px; border-radius: 6px; line-height: 1;
  background: var(--grad-brand); background-size: 200% auto; color: #fff;
  box-shadow: 0 4px 16px -6px rgba(124,92,255,.7);
  transition: background-position .5s var(--ease);
}
.brand:hover .brand__ai { background-position: 100% 50%; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav__links a.is-active { color: var(--ink); background: var(--surface-strong); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  transition: border-color .2s, color .2s, transform .2s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); transform: rotate(15deg); }
.theme-toggle__icon { width: 18px; height: 18px; }
.theme-toggle__icon--moon { display: none; }
:root[data-theme="light"] .theme-toggle__icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle__icon--moon { display: block; }

.nav__toggle { display: none; width: 38px; height: 38px; border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); }
.nav__toggle span { width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), opacity .25s var(--ease); }

.mobile-menu {
  display: none; position: fixed; inset: 0 0 auto 0; top: 64px; z-index: 190;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px 28px;
  flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 14px 6px; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-menu__cta { border: none !important; margin-top: 12px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 12px; --btn-pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  position: relative; isolation: isolate; overflow: hidden;
  will-change: transform;
}
.btn--lg { --btn-pad-y: 15px; --btn-pad-x: 28px; font-size: 15.5px; }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--glow-indigo); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -14px rgba(124,92,255,.65); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { background: var(--surface); border-color: var(--electric); }
.btn--ghost { color: var(--ink-soft); }
.btn--ghost:hover { color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  padding-block: 16px;
}
.marquee__track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  font-size: 13.5px; color: var(--muted); white-space: nowrap;
}
.marquee__item::before { content: "◆"; color: var(--electric); font-size: 8px; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 96px; padding-bottom: 64px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; opacity: .55; }
.hero__orb--a { width: 480px; height: 480px; top: -120px; left: -80px; background: radial-gradient(circle, var(--indigo), transparent 70%); animation: orb-float 14s ease-in-out infinite; }
.hero__orb--b { width: 420px; height: 420px; bottom: -140px; right: -60px; background: radial-gradient(circle, var(--cyan), transparent 70%); animation: orb-float 18s ease-in-out infinite reverse; }
@keyframes orb-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.08); }
}
.hero__grid {
  position: absolute; inset: -10% -10%; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 10%, transparent 75%);
  opacity: .5;
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { from { background-position: 0 0; } to { background-position: 128px 128px; } }

.hero__content { position: relative; z-index: 2; max-width: 880px; }
.hero__title {
  font-size: clamp(38px, 6vw, 70px); line-height: 1.05; margin-top: 22px;
}
.hero__title .word {
  display: inline-block; overflow: hidden; vertical-align: top;
}
.hero__title .word span { display: inline-block; transform: translateY(110%); transition: transform .7s var(--ease); }
.hero__title.is-revealed .word span { transform: translateY(0); }
.hero__subtitle { margin-top: 24px; max-width: 620px; font-size: 18px; color: var(--muted); }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__products { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.hero-pill:hover { border-color: var(--electric); color: var(--ink); transform: translateY(-2px); }
.hero-pill__icon { width: 20px; height: 20px; display: flex; }
.hero-pill__icon svg { width: 100%; height: 100%; color: var(--electric); }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.scroll-cue__line { width: 1px; height: 28px; background: linear-gradient(var(--line-strong), transparent); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: linear-gradient(var(--cyan), transparent);
  animation: scroll-cue-fall 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-fall { to { top: 100%; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg-soft); padding: 32px 20px; text-align: center; }
.stat__value { font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); font-weight: 700; }
.stat__label { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Bento product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card {
  position: relative; display: block; padding: 32px 28px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .3s var(--ease), transform .1s linear;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(124,92,255,.16), transparent 60%);
  transition: opacity .3s var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-strong); }
.card > * { position: relative; z-index: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--indigo { background: rgba(99,102,241,.16); color: var(--indigo); }
.card__icon--violet { background: rgba(168,85,247,.16); color: var(--violet); }
.card__icon--cyan { background: rgba(34,211,238,.16); color: var(--cyan); }
.card h3 { font-size: 21px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--ink); }
.card__link i { transition: transform .25s var(--ease); font-style: normal; }
.card:hover .card__link i { transform: translateX(4px); }

/* ---------- Timeline / How it works ---------- */
.timeline { position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline::before {
  content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 1px; background: var(--line); z-index: 0;
}
.timeline__progress {
  content: ""; position: absolute; top: 27px; left: 0; height: 1px; z-index: 0;
  background: var(--grad-brand); width: 0%;
  transition: width 1.4s var(--ease);
}
.timeline__progress.is-visible { width: 100%; }
.timeline-step { position: relative; z-index: 1; text-align: left; }
.timeline-step__num {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  margin-bottom: 20px;
}
.timeline-step h3 { font-size: 17px; }
.timeline-step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* ---------- Product detail sections ---------- */
.product { padding-block: clamp(72px, 10vw, 120px); position: relative; }
.product--alt { background: var(--surface); }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.product__grid--reverse .product__copy { order: 2; }
.product__grid--reverse .product__visual { order: 1; }
.eyebrow--indigo { color: var(--indigo); border-color: rgba(99,102,241,.35); }
.eyebrow--violet { color: var(--violet); border-color: rgba(168,85,247,.35); }
.eyebrow--cyan { color: var(--cyan); border-color: rgba(34,211,238,.35); }
.eyebrow--light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e7e8f5; }
.product__copy h2 { margin-top: 16px; font-size: clamp(26px, 3.4vw, 38px); }
.product__lede { margin-top: 18px; font-size: 17px; color: var(--ink-soft); }
.product__copy p { margin-top: 14px; color: var(--muted); }
.product__punch { color: var(--ink) !important; font-weight: 600; font-family: var(--font-display); font-size: 16px; }
.check-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 15px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.product__copy .btn { margin-top: 32px; }

.product__visual { perspective: 1200px; }
.mock {
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: var(--bg-soft); box-shadow: var(--shadow-card);
  overflow: hidden; transform: rotateY(-8deg) rotateX(4deg);
  transition: transform .4s var(--ease);
}
.product__visual:hover .mock { transform: rotateY(-2deg) rotateX(1deg); }
.mock__header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock__title { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.mock__body { padding: 24px; }

.call-bubble { max-width: 82%; padding: 12px 16px; border-radius: 16px; margin-bottom: 12px; font-size: 14.5px; line-height: 1.5; }
.call-bubble--in { background: var(--surface-strong); border-bottom-left-radius: 4px; }
.call-bubble--out { background: var(--grad-brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.call-status { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.call-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px 2px rgba(52,211,153,.7); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.doc-body { display: flex; flex-direction: column; gap: 6px; }
.doc-line { font-size: 14px; color: var(--ink-soft); padding: 4px 0; }
.doc-line--tag { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin-top: 10px; }
.doc-live { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.doc-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: pulse-dot 1.4s ease-in-out infinite; }

.kiosk-frame { display: flex; flex-direction: column; align-items: center; padding: 32px 24px; }
.kiosk-screen { width: 100%; max-width: 300px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line-strong); padding: 28px 20px; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); }
.kiosk-greeting { font-size: 22px; }
.kiosk-question { margin-top: 8px; color: var(--muted); font-size: 14px; }
.kiosk-options { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.kiosk-option { padding: 12px; border-radius: 10px; background: var(--surface-strong); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: border-color .2s, transform .2s; }
.kiosk-option:hover { border-color: var(--cyan); transform: translateX(4px); }
.kiosk-base { width: 60px; height: 14px; background: var(--line-strong); border-radius: 0 0 8px 8px; margin-top: -2px; }

/* ---------- Feature grid (product pages) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feature {
  padding: 26px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.feature__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-brand-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature__icon svg { width: 20px; height: 20px; color: var(--electric); }
.feature h4 { font-size: 16px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Before / After comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.compare__col { border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--line); }
.compare__col--before { background: var(--surface); }
.compare__col--after { background: var(--grad-brand-soft); border-color: rgba(124,92,255,.35); }
.compare__col h4 { font-family: var(--font-display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare__col--after h4 { color: var(--electric); }
.compare__col ul { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.compare__col li { font-size: 15px; color: var(--ink-soft); padding-left: 26px; position: relative; }
.compare__col--before li::before { content: "✕"; position: absolute; left: 0; color: var(--muted); font-size: 13px; }
.compare__col--after li::before { content: "✓"; position: absolute; left: 0; color: var(--electric); font-weight: 700; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 780px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.faq-item__icon { width: 20px; height: 20px; flex-shrink: 0; position: relative; }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink-soft); transform: translate(-50%,-50%); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.faq-item__icon::before { width: 12px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 12px; }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item__a-inner { padding: 0 24px 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.faq-item.is-open .faq-item__a { max-height: 300px; }

/* ---------- Why grid ---------- */
.why { position: relative; padding-block: clamp(72px, 10vw, 120px); background: #05060a; overflow: hidden; }
:root[data-theme="light"] .why { background: #0d0e18; }
.why__grid { opacity: .35; }
.section__title--light { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; position: relative; z-index: 1; }
.why-card { padding: 28px 24px; border-radius: var(--radius-md); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--ease), background .3s var(--ease); }
.why-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.why-card__icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 16px; }
.why-card__icon svg { width: 20px; height: 20px; }
.why-card h3 { color: #fff; font-size: 17px; }
.why-card p { margin-top: 8px; color: #a6a9c4; font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding-block: clamp(72px, 10vw, 120px); text-align: center; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--grad-brand-soft);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 0%, transparent 75%);
}
.cta__inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); max-width: 700px; margin-inline: auto; }
.cta p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 560px; margin-inline: auto; }
.cta__actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__note { margin-top: 24px; color: var(--muted); font-size: 14.5px; }
.cta__note a { color: var(--ink-soft); font-weight: 500; }
.cta__note a:hover { color: var(--ink); }
.cta__note-sep { margin-inline: 8px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.contact-card {
  padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface);
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-brand-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card__icon svg { width: 20px; height: 20px; color: var(--electric); }
.contact-card h4 { font-size: 16px; }
.contact-card p, .contact-card a { margin-top: 6px; color: var(--muted); font-size: 14.5px; display: block; }
.contact-card a:hover { color: var(--ink); }
.map-wrap { margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 340px; filter: grayscale(0.4) contrast(1.05); }
:root[data-theme="light"] .map-wrap { filter: none; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 64px; background: var(--bg-soft); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 280px; }
.brand--footer { display: inline-flex; }
.brand--footer .brand__mark { width: 38px; height: 38px; }
.brand--footer .brand__wordmark { font-size: 20px; }
.brand--footer .brand__ai { font-size: 11px; padding: 3.5px 7px; }
.footer__col h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--ink-soft); font-size: 14.5px; }
.footer__col a:hover { color: var(--ink); }
.footer__col address { font-style: normal; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 24px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float__ping {
  position: absolute; inset: 0; border-radius: 50%; background: #25D366;
  animation: whatsapp-ping 2.4s ease-out infinite;
}
@keyframes whatsapp-ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- Page hero (product/contact pages) ---------- */
.page-hero { position: relative; padding-top: 150px; padding-bottom: 64px; overflow: hidden; }
.page-hero__title { margin-top: 18px; font-size: clamp(32px, 5vw, 54px); max-width: 760px; }
.page-hero__lede { margin-top: 18px; max-width: 600px; font-size: 17px; color: var(--muted); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__title .word span { transform: translateY(0); transition: none; }
  .marquee__track, .hero__orb, .hero__grid, .gradient-text, .preloader img { animation: none !important; }
}

/* ---------- Sound toggle ---------- */
.sound-toggle {
  position: fixed; bottom: 24px; left: 24px; z-index: 150;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(12px);
  color: var(--ink-soft);
  transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.sound-toggle:hover { transform: scale(1.08); border-color: var(--electric); color: var(--ink); }
.sound-toggle svg { width: 20px; height: 20px; }
.sound-toggle__icon--on { display: none; }
.sound-toggle.is-on .sound-toggle__icon--on { display: flex; }
.sound-toggle.is-on .sound-toggle__icon--off { display: none; }
.sound-toggle.is-on { border-color: var(--electric); color: var(--electric); box-shadow: 0 0 24px -8px rgba(124,92,255,.6); }
.sound-toggle__bars { align-items: flex-end; gap: 2px; height: 14px; }
.sound-toggle__bar { width: 3px; height: 100%; background: currentColor; border-radius: 2px; }
.sound-toggle.is-on .sound-toggle__bar { animation: sound-bar 0.9s ease-in-out infinite; }
.sound-toggle__bar:nth-child(1) { animation-delay: -0.6s; }
.sound-toggle__bar:nth-child(2) { animation-delay: -0.3s; }
.sound-toggle__bar:nth-child(3) { animation-delay: 0s; }
@keyframes sound-bar { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* ---------- Scroll progress dots ---------- */
.progress-dots {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 150;
  display: flex; flex-direction: column; gap: 14px;
}
.progress-dots__dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.progress-dots__dot:hover { transform: scale(1.3); border-color: var(--electric); }
.progress-dots__dot.is-active { background: var(--grad-brand); border-color: transparent; transform: scale(1.35); box-shadow: 0 0 12px 1px rgba(124,92,255,.7); }
.progress-dots__label {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 12.5px; font-weight: 600; font-family: var(--font-display);
  color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.progress-dots__dot:hover .progress-dots__label { opacity: 1; }

/* ---------- Live-demo mock animation states ---------- */
.call-bubble.is-pending, .doc-line.is-pending { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.call-bubble.is-shown, .doc-line.is-shown { opacity: 1; transform: translateY(0); }
.call-status.is-pending { opacity: 0; transition: opacity .4s var(--ease); }
.call-status.is-shown { opacity: 1; }
.doc-live.is-pending { opacity: 0; transition: opacity .4s var(--ease); }
.doc-live.is-shown { opacity: 1; }

.typing-indicator {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px 16px; border-radius: 16px; margin-bottom: 12px;
  background: var(--surface-strong);
  opacity: 0; height: 0; overflow: hidden; transition: opacity .3s var(--ease);
}
.typing-indicator.is-shown { opacity: 1; height: auto; padding: 12px 16px; margin-bottom: 12px; }
.typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing-bounce 1.1s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.kiosk-option.is-live { border-color: var(--cyan); background: rgba(34,211,238,.1); transform: translateX(4px); }

/* ---------- Button ripple / particle burst ---------- */
.btn-ripple {
  position: fixed; z-index: 300; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(124,92,255,0));
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand .6s var(--ease) forwards;
}
@keyframes ripple-expand { to { transform: translate(-50%, -50%) scale(14); opacity: 0; } }
.btn-particle {
  position: fixed; z-index: 300; pointer-events: none;
  width: 5px; height: 5px; border-radius: 50%; background: var(--electric);
  animation: particle-burst .55s var(--ease) forwards;
}
@keyframes particle-burst {
  to { transform: translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; }
}

/* ---------- Section-reactive cursor accent ---------- */
.has-custom-cursor .cursor-ring.is-active { border-color: var(--accent-live, var(--electric)); background: color-mix(in srgb, var(--accent-live, var(--electric)) 10%, transparent); }
.cursor-dot { background: var(--accent-live, var(--cyan)); }

@media (max-width: 980px) {
  .progress-dots { display: none; }
}
@media (max-width: 640px) {
  .sound-toggle { width: 44px; height: 44px; bottom: 18px; left: 18px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards, .feature-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before, .timeline__progress { display: none; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .mobile-menu { display: flex; }
  .nav__actions .btn--primary,
  .nav__actions .theme-toggle { display: none; }
  .product__grid, .product__grid--reverse .product__copy, .compare, .contact-grid { grid-template-columns: 1fr; }
  .product__grid--reverse .product__copy, .product__grid--reverse .product__visual { order: initial; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards, .feature-grid, .why-grid, .stats { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
