/* ============================================================
   ELEVAIT GLOBAL — Design System
   Dark, premium, high-tech. Black Data Solutions inspired — Inter, purple accent.
   ============================================================ */

:root {
  /* ----- Dark theme — Navy / Charcoal / Gray / Off-White ----- */
  /* Palette: Deep Navy #1F2E4A · Charcoal #343A40 · Light Gray #CED4DA · Off-White #F8F9FA */
  --bg-dark: #1F2E4A;           /* Deep Navy — canvas */
  --bg-elevated: #26364F;       /* lifted navy surface for cards */
  --bg-elevated-2: #343A40;     /* Charcoal — deeper elevated surface */
  --primary: #4A5B7D;           /* lightened navy — primary accent on dark */
  --primary-glow: #CED4DA;      /* Light Gray — highlight / glow */
  --accent: #6E82AB;            /* soft navy-blue CTA accent (readable on dark) */
  --accent-ink: #CED4DA;        /* Light Gray used as TEXT accent on dark */
  --accent-2: #CED4DA;          /* Light Gray as secondary accent */
  --success: #8FA6C4;           /* muted blue for live/online status dots */
  --text-primary: #F8F9FA;      /* Off-White */
  --text-muted: rgba(248, 249, 250, 0.66);
  --text-faint: rgba(248, 249, 250, 0.42);
  --border-subtle: rgba(206, 212, 218, 0.18);
  --border-accent: rgba(206, 212, 218, 0.32);
  --surface-tint: rgba(206, 212, 218, 0.08);   /* ghost buttons, inputs, chips */
  --surface-tint-2: rgba(206, 212, 218, 0.05);
  --navbar-bg: rgba(31, 46, 74, 0.82);
  --mega-bg: rgba(38, 54, 79, 0.96);
  --mobile-bg: rgba(31, 46, 74, 0.97);
  --footer-bg: #18233A;
  --track-bg: rgba(248, 249, 250, 0.14);
  --grid-line: rgba(206, 212, 218, 0.06);       /* faint gray ambient grid */
  --section-alt-tint: rgba(52, 58, 64, 0.34);
  --gradient-brand: linear-gradient(135deg, #CED4DA 0%, #6E82AB 100%);
  --gradient-btn: linear-gradient(135deg, #2A3C5E 0%, #1F2E4A 100%);   /* navy CTA, AA-safe for white text */
  --gradient-card-border: linear-gradient(135deg, rgba(110, 130, 171, 0.5), rgba(206, 212, 218, 0.32));
  --shadow-glow: 0 8px 24px rgba(31, 46, 74, 0.45);
  --shadow-glow-accent: 0 8px 20px rgba(206, 212, 218, 0.20);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.5);
  --orb-opacity: 0.4;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --heading-weight: 800;
  --nav-height: 76px;
  --container: 1200px;
  color-scheme: dark;
}

/* ----- Light theme tokens (off-white bg, charcoal text, deep-navy accents) — DEFAULT look ----- */
:root[data-theme="light"] {
  --bg-dark: #F8F9FA;           /* Off-White canvas */
  --bg-elevated: #FFFFFF;       /* white cards */
  --bg-elevated-2: #EEF1F4;     /* light gray for table headers */
  --primary: #1F2E4A;           /* Deep Navy — primary brand color */
  --primary-glow: #4A5B7D;
  --accent: #1F2E4A;            /* Deep Navy CTA / accent */
  --accent-ink: #1F2E4A;        /* Deep Navy as accent text on light (WCAG AA) */
  --accent-2: #343A40;          /* Charcoal secondary accent */
  --success: #2F6F4F;           /* accessible green for success/online */
  --text-primary: #343A40;      /* Charcoal ink */
  --text-muted: #5A6570;
  --text-faint: #868E96;
  --border-subtle: #CED4DA;     /* Light Gray borders */
  --border-accent: rgba(31, 46, 74, 0.30);
  --surface-tint: rgba(31, 46, 74, 0.05);
  --surface-tint-2: rgba(52, 58, 64, 0.03);
  --navbar-bg: rgba(248, 249, 250, 0.85);
  --mega-bg: rgba(255, 255, 255, 0.98);
  --mobile-bg: rgba(248, 249, 250, 0.98);
  --footer-bg: #EEF1F4;
  --track-bg: rgba(52, 58, 64, 0.12);
  --grid-line: rgba(31, 46, 74, 0.05);
  --section-alt-tint: rgba(206, 212, 218, 0.30);
  --gradient-brand: linear-gradient(135deg, #1F2E4A 0%, #4A5B7D 100%);
  --gradient-btn: linear-gradient(135deg, #2A3C5E 0%, #1F2E4A 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(31, 46, 74, 0.35), rgba(206, 212, 218, 0.6));
  --shadow-glow: 0 8px 24px rgba(31, 46, 74, 0.18);
  --shadow-glow-accent: 0 8px 20px rgba(31, 46, 74, 0.14);
  --shadow-card: 0 12px 40px rgba(52, 58, 64, 0.12);
  --orb-opacity: 0.30;
  color-scheme: light;
}

/* ----- Auto light mode (only when the user hasn't forced dark) ----- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-dark: #F8F9FA;
    --bg-elevated: #FFFFFF;
    --bg-elevated-2: #EEF1F4;
    --primary: #1F2E4A;
    --primary-glow: #4A5B7D;
    --accent: #1F2E4A;
    --accent-ink: #1F2E4A;
    --accent-2: #343A40;
    --success: #2F6F4F;
    --text-primary: #343A40;
    --text-muted: #5A6570;
    --text-faint: #868E96;
    --border-subtle: #CED4DA;
    --border-accent: rgba(31, 46, 74, 0.30);
    --surface-tint: rgba(31, 46, 74, 0.05);
    --surface-tint-2: rgba(52, 58, 64, 0.03);
    --navbar-bg: rgba(248, 249, 250, 0.85);
    --mega-bg: rgba(255, 255, 255, 0.98);
    --mobile-bg: rgba(248, 249, 250, 0.98);
    --footer-bg: #EEF1F4;
    --track-bg: rgba(52, 58, 64, 0.12);
    --grid-line: rgba(31, 46, 74, 0.05);
    --section-alt-tint: rgba(206, 212, 218, 0.30);
    --gradient-brand: linear-gradient(135deg, #1F2E4A 0%, #4A5B7D 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(31, 46, 74, 0.35), rgba(206, 212, 218, 0.6));
    --shadow-glow: 0 8px 24px rgba(31, 46, 74, 0.18);
    --shadow-glow-accent: 0 8px 20px rgba(31, 46, 74, 0.14);
    --shadow-card: 0 12px 40px rgba(52, 58, 64, 0.12);
    --orb-opacity: 0.30;
    color-scheme: light;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; border-radius: var(--radius-md); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

ul[role="list"], ol[role="list"] { list-style: none; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

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

::selection { background: var(--primary); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
h4 { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }

p { max-width: 68ch; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); }
.text-muted { color: var(--text-muted); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--primary);
  border-radius: 1px;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head p { margin-top: 14px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-accent {
  background: var(--gradient-btn);
  color: #fff;
}
.btn-accent:hover { box-shadow: var(--shadow-glow); }

.btn-gradient {
  background: var(--gradient-btn);
  color: #fff;
}
.btn-gradient:hover { box-shadow: var(--shadow-glow); }

.btn-ghost {
  background: var(--surface-tint);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--primary);
  box-shadow: 0 0 24px rgba(74, 91, 125, 0.28);
}

.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Glass cards ---------- */
.card {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(74, 91, 125, 0.18);
}
.card:hover::before { opacity: 1; }

.card-link { color: inherit; display: block; height: 100%; }

.card .icon-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 91, 125, 0.25), rgba(74, 91, 125, 0.15));
  border: 1px solid rgba(206, 212, 218, 0.35);
  color: var(--accent);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.96rem; }

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-ink);
}
.card-cta svg { transition: transform 0.25s ease; }
.card:hover .card-cta svg { transform: translateX(5px); }

/* ---------- Badges & chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.chip-accent { color: var(--accent-ink); border-color: rgba(74, 91, 125, 0.35); background: rgba(74, 91, 125, 0.1); }
.chip-coral { color: var(--accent-ink); border-color: rgba(74, 91, 125, 0.35); background: rgba(74, 91, 125, 0.1); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-btn);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(74, 91, 125, 0.45);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.navbar.scrolled {
  background: var(--navbar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border-subtle), 0 10px 40px rgba(0, 0, 0, 0.45);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
/* Elevait logo image (white lockup). Auto-darkens on the light theme. */
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  border-radius: 0;
}
.theme-light .logo-img,
:root[data-theme="light"] .logo-img { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-img { filter: invert(1) hue-rotate(180deg); }
}
:root[data-theme="dark"] .logo-img { filter: none; }
.footer .logo-img { height: 46px; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-btn);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 18px rgba(74, 91, 125, 0.5);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 6px;
  list-style: none;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  background: none;
  border: none;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link .caret { transition: transform 0.25s ease; }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn-accent { display: none; }
@media (min-width: 640px) {
  .nav-actions .btn-accent { display: inline-flex; }
}

/* ============================================================
   Services cascade dropdown (hover-open + flyout sub-panels)
   ============================================================ */
.nav-has-dropdown { position: relative; }

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  transform: translateY(10px);
  width: 320px;
  background: var(--mega-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-card), 0 0 60px rgba(74, 91, 125, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
/* Invisible hover bridge so moving from the trigger to the panel doesn't close it */
.mega-menu::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drop-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.drop-row { position: relative; }

.drop-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-primary);
  transition: background 0.2s ease, color 0.2s ease;
}
.drop-item-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.drop-item-label { font-size: 0.95rem; font-weight: 600; }
.drop-item-desc { font-size: 0.78rem; color: var(--text-muted); }
.drop-caret {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transform: rotate(-90deg);   /* points right — "opens further" */
  transition: transform 0.25s ease, color 0.25s ease;
}
.drop-row:hover > .drop-item,
.drop-row:focus-within > .drop-item {
  background: rgba(74, 91, 125, 0.16);
  color: var(--accent-ink);
}
.drop-row:hover > .drop-item .drop-caret,
.drop-row:focus-within > .drop-item .drop-caret {
  color: var(--accent-ink);
  transform: rotate(-90deg) translateX(-3px);
}

/* Flyout sub-panel — appears to the right on hover/focus of its row */
.drop-flyout {
  position: absolute;
  top: -10px;
  left: calc(100% + 10px);
  width: 268px;
  list-style: none;
  background: var(--mega-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-card), 0 0 40px rgba(74, 91, 125, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 2;
}
/* Bridge between row and flyout */
.drop-flyout::before {
  content: "";
  position: absolute;
  top: 0; left: -12px; width: 12px; height: 100%;
}
.drop-row.has-flyout:hover > .drop-flyout,
.drop-row.has-flyout:focus-within > .drop-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.drop-flyout-head {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px 8px;
}
.fly-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.fly-item:hover, .fly-item:focus-visible {
  background: rgba(74, 91, 125, 0.16);
  color: var(--accent-ink);
}

/* Flip flyout to the LEFT if the row is near the viewport's right edge */
@media (max-width: 1180px) {
  .drop-flyout { left: auto; right: calc(100% + 10px); transform: translateX(8px); }
  .drop-flyout::before { left: auto; right: -12px; }
  .drop-row.has-flyout:hover > .drop-flyout,
  .drop-row.has-flyout:focus-within > .drop-flyout { transform: translateX(0); }
}

/* ---- Colorful interactive vector icon tile ---- */
.cicon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, rgba(206, 212, 218, 0.16), rgba(74, 91, 125, 0.12));
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}
.cicon svg {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
/* Device photo thumbnails (transparent PNGs) used as menu glyphs */
.cicon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}
/* Interactive hover: tile lifts + glows, glyph pops and tilts */
.drop-row:hover > .drop-item .cicon,
.drop-item:focus-visible .cicon,
.fly-item:hover .cicon,
.fly-item:focus-visible .cicon,
.mobile-submenu a:hover .cicon,
.mobile-submenu a:focus-visible .cicon {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--border-accent);
  box-shadow: 0 6px 18px rgba(31, 46, 74, 0.35), 0 0 0 1px rgba(206, 212, 218, 0.25);
  background: linear-gradient(140deg, rgba(206, 212, 218, 0.26), rgba(74, 91, 125, 0.2));
}
.drop-row:hover > .drop-item .cicon svg,
.drop-item:focus-visible .cicon svg,
.fly-item:hover .cicon svg,
.fly-item:focus-visible .cicon svg,
.mobile-submenu a:hover .cicon svg,
.mobile-submenu a:focus-visible .cicon svg {
  transform: scale(1.12) rotate(-4deg);
}
.fly-item:hover .cicon .cicon-img,
.fly-item:focus-visible .cicon .cicon-img,
.mobile-submenu a:hover .cicon .cicon-img,
.mobile-submenu a:focus-visible .cicon .cicon-img {
  transform: scale(1.12);
}
@media (prefers-reduced-motion: reduce) {
  .cicon, .cicon svg { transition: none; }
  .drop-row:hover > .drop-item .cicon, .drop-row:hover > .drop-item .cicon svg,
  .fly-item:hover .cicon, .fly-item:hover .cicon svg,
  .mobile-submenu a:hover .cicon, .mobile-submenu a:hover .cicon svg { transform: none; }
  .mega-menu, .drop-flyout { transition: opacity 0.01ms; }
}

/* Mobile menu */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--mobile-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: calc(var(--nav-height) + 24px) 24px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu > ul > li { border-bottom: 1px solid var(--border-subtle); }
.mobile-link, .mobile-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
}
.mobile-accordion-btn .caret { transition: transform 0.25s ease; }
.mobile-accordion-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-submenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: var(--text-muted);
  font-size: 0.98rem;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-submenu a:hover { color: var(--accent-ink); background: rgba(74, 91, 125, 0.14); }
.mobile-submenu a .cicon { width: 36px; height: 36px; border-radius: 10px; }
.mobile-submenu .mobile-sub-label {
  padding: 12px 16px 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-glow);
  font-weight: 600;
}
.mobile-menu .btn { margin-top: 28px; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + clamp(56px, 9vw, 110px)) 0 clamp(64px, 9vw, 110px);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { margin: 18px 0 22px; }
.hero .lead { margin-bottom: 34px; }

/* Animated orb background */
.orb-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  animation: orb-float 14s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 400px; background: rgba(74, 91, 125, 0.2); top: -140px; left: -80px; }
.orb-2 { width: 500px; height: 350px; background: rgba(31, 46, 74, 0.16); top: 20%; right: -120px; animation-delay: -5s; }
.orb-3 { width: 340px; height: 300px; background: rgba(206, 212, 218, 0.12); bottom: -120px; left: 35%; animation-delay: -9s; }

@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-top: clamp(36px, 5vw, 56px);
}
.stat .stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Logo marquee ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding: 12px 0;
  animation: marquee-scroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-muted);
  opacity: 0.7;
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Process timeline ---------- */
.timeline {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline-4 { }
.timeline-step { position: relative; padding-top: 18px; }
.timeline-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.6rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 12px;
}
.timeline-step h3 { margin-bottom: 8px; font-size: 1.2rem; }
.timeline-step p { color: var(--text-muted); font-size: 0.94rem; }
.timeline-step::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

/* ---------- Testimonials slider ---------- */
.slider { position: relative; }
.slider-viewport { overflow: hidden; }
.slider-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.35, 1);
}
.slide { flex: 0 0 100%; padding: 8px; }
.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.testimonial-card blockquote {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  margin-bottom: 24px;
}
.testimonial-card .stars { color: var(--accent-2); letter-spacing: 3px; margin-bottom: 18px; font-size: 1.1rem; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-author .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}
.testimonial-author .name { font-weight: 600; font-family: var(--font-heading); }
.testimonial-author .role { font-size: 0.85rem; color: var(--text-muted); }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.slider-btn:hover { border-color: var(--accent); box-shadow: var(--shadow-glow-accent); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--track-bg);
  border: none;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}
.slider-dot.active { background: var(--accent); width: 26px; border-radius: 5px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.open { border-color: rgba(206, 212, 218, 0.5); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(74, 91, 125, 0.2);
  color: var(--accent);
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1F2E4A 0%, #4A5B7D 55%, #1F2E4A 100%);
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(31, 46, 74, 0.32), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(5, 5, 8, 0.4), transparent 55%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-light { background: #fff; color: #1F2E4A; }
.cta-band .btn-light:hover { box-shadow: 0 8px 32px rgba(255, 255, 255, 0.35); }
.cta-band .btn-outline {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.cta-band .btn-outline:hover { background: rgba(0, 0, 0, 0.5); }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-subtle);
  padding: clamp(48px, 7vw, 80px) 0 32px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: var(--text-muted); font-size: 0.93rem; transition: color 0.2s ease; }
.footer ul a:hover { color: var(--accent); }
.footer .footer-about p { color: var(--text-muted); font-size: 0.93rem; margin: 16px 0 22px; }

.newsletter-form { display: flex; gap: 10px; margin-top: 6px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-tint-2);
  color: var(--text-primary);
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 600;
  transition: box-shadow 0.25s ease;
}
.newsletter-form button:hover { box-shadow: var(--shadow-glow-accent); }

.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}
.footer-partners img { border-radius: 8px; opacity: 0.6; }

/* Footer partner logos directly on the dark footer (no chip) */
.partner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
.partner-badge img {
  height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  border-radius: 0;
  opacity: 0.92;
}
.partner-badge-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
/* logos with dark ink (e.g. Shopify's black wordmark) get a light backing
   only in dark mode so they stay legible; removed in light mode */
.partner-badge-lightbg {
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  height: auto;
}
:root.theme-light .partner-badge-lightbg,
:root[data-theme="light"] .partner-badge-lightbg {
  background: transparent;
  padding: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 22px; }

/* ---------- Floating buttons ---------- */
.float-btn {
  position: fixed;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease, visibility 0.3s;
}
.whatsapp-float {
  right: 22px;
  bottom: 22px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); }
.back-to-top {
  right: 22px;
  bottom: 92px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { border-color: var(--accent); box-shadow: var(--shadow-glow-accent); transform: translateY(-4px); }

/* ---------- Chat demo ---------- */
.chat-demo {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-card), 0 0 50px rgba(74, 91, 125, 0.18);
}
.chat-demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}
.chat-demo-header .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: grid; place-items: center;
  color: #fff;
}
.chat-demo-header .name { font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; }
.chat-demo-header .status {
  font-size: 0.78rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-demo-header .status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(127, 176, 138, 0.8);
}
.chat-messages { display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.chat-bubble {
  max-width: 82%;
  padding: 11px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  animation: bubble-in 0.4s ease forwards;
}
.chat-bubble.bot {
  align-self: flex-start;
  background: rgba(74, 91, 125, 0.22);
  border: 1px solid rgba(206, 212, 218, 0.3);
  border-bottom-left-radius: 6px;
}
.chat-bubble.user {
  align-self: flex-end;
  background: rgba(74, 91, 125, 0.14);
  border: 1px solid rgba(74, 91, 125, 0.3);
  border-bottom-right-radius: 6px;
}
/* platform variants */
.chat-demo.whatsapp .chat-bubble.user { background: rgba(37, 211, 102, 0.16); border-color: rgba(37, 211, 102, 0.4); }
.chat-demo.whatsapp .chat-demo-header .avatar { background: #25D366; }
.chat-demo.messenger .chat-bubble.user { background: rgba(10, 124, 255, 0.2); border-color: rgba(10, 124, 255, 0.45); }
.chat-demo.messenger .chat-demo-header .avatar { background: linear-gradient(135deg, #0A7CFF, #A10EEB); }
.chat-demo.instagram .chat-bubble.user { background: rgba(221, 42, 123, 0.16); border-color: rgba(221, 42, 123, 0.4); }
.chat-demo.instagram .chat-demo-header .avatar { background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5); }

@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}
.typing-indicator {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 14px 18px;
  background: rgba(74, 91, 125, 0.22);
  border: 1px solid rgba(206, 212, 218, 0.3);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
}
.typing-indicator span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-dot 1.2s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.18s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.93rem;
}
.spec-table th, .spec-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.spec-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-elevated-2);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  z-index: 2;
}
.spec-table tbody th {
  color: var(--accent);
  font-weight: 600;
  background: rgba(33, 64, 62, 0.6);
}
.spec-table td { color: var(--text-muted); }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover td { background: rgba(74, 91, 125, 0.07); }

.spec-table-2col { min-width: 0; }
.spec-table-2col th, .spec-table-2col td { white-space: normal; }

/* Specification showcase (dark card + icon grid + device media) */
.spec-showcase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 28px;
}
.spec-showcase-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
}
.spec-showcase-intro {
  max-width: 340px;
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.spec-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(74, 91, 125, 0.28), transparent 55%),
    linear-gradient(135deg, #1F2E4A 0%, #18233A 55%, #1F2E4A 100%);
}
.spec-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 36px;
}
.spec-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.spec-feature-icon {
  flex: none;
  color: var(--accent-2);
  margin-top: 2px;
}
.spec-feature-body h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}
.spec-feature-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.spec-showcase-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.spec-showcase-media img {
  width: 100%;
  height: auto;
  max-width: 460px;
  object-fit: contain;
}
@media (max-width: 860px) {
  .spec-showcase {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .spec-showcase-media { order: -1; }
}
@media (max-width: 520px) {
  .spec-showcase-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(74, 91, 125, 0.15);
}
.pricing-card .tier-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; }
.pricing-card .tier-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; }
.pricing-card .price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 4px;
}
.pricing-card .price small { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }
.pricing-card .price-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
  flex: 1;
}
.pricing-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.pricing-card ul li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.pricing-card .btn { width: 100%; }

/* Pricing tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(36px, 5vw, 56px); }
.tab-btn {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-tint-2);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}
.tab-btn:hover { color: var(--text-primary); border-color: var(--primary-glow); }
.tab-btn.active {
  background: var(--gradient-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in 0.4s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 8px; }
.checklist li {
  display: flex; gap: 14px; align-items: center;
  color: var(--text-muted);
  padding: 10px 14px 10px 11px;
  border-radius: 14px;
  position: relative;
  transition: background .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.checklist li:hover {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  transform: translateX(4px);
  box-shadow: 0 6px 20px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
/* glassy ring badge */
.checklist li svg {
  color: var(--accent);
  flex-shrink: 0;
  width: 26px; height: 26px;
  padding: 5px;
  border-radius: 50%;
  margin-top: 0;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 9%, transparent) 70%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent),
    inset 0 1px 1px color-mix(in srgb, #fff 22%, transparent),
    0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  transition: box-shadow .3s ease, background .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.checklist li:hover svg {
  transform: scale(1.08) rotate(-4deg);
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent) 14%, transparent) 70%);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent),
    inset 0 1px 1px color-mix(in srgb, #fff 30%, transparent),
    0 0 14px -2px color-mix(in srgb, var(--accent) 65%, transparent);
}
.checklist li strong { color: var(--text-primary); }
.checklist-2col { grid-template-columns: 1fr; }
@media (min-width: 768px) { .checklist-2col { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-field label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-tint-2);
  color: var(--text-primary);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-field select option { background: var(--bg-elevated); color: var(--text-primary); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 91, 125, 0.15);
}
.form-field.error input, .form-field.error select, .form-field.error textarea {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.field-error {
  display: none;
  color: #EF4444;
  font-size: 0.82rem;
  margin-top: 6px;
}
.form-field.error .field-error { display: block; }

/* ---------- Device showcase ---------- */
.device-scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.device-scroller .card { flex: 0 0 min(300px, 80vw); scroll-snap-align: start; }

.device-img-wrap {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  overflow: hidden;
}
.device-img-wrap img { border-radius: 6px; mix-blend-mode: normal; }

/* Bare device image — transparent PNG sits directly on the hero, no white card */
.device-img-bare {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.device-img-bare img {
  border-radius: 0;
  mix-blend-mode: normal;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.price-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  margin: 12px 0 4px;
}
.price-tag small { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }

/* ---------- Misc utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 36px; }
.mx-auto { margin-inline: auto; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.divider-gradient {
  height: 2px;
  background: var(--gradient-brand);
  border: none;
  border-radius: 2px;
  opacity: 0.5;
  max-width: 240px;
  margin: 0 auto;
}

/* Alternate section background */
.section-alt {
  background: linear-gradient(180deg, transparent, var(--section-alt-tint) 15%, var(--section-alt-tint) 85%, transparent);
}

/* Legal pages */
.legal-content { max-width: 780px; margin-inline: auto; }
.legal-content h2 { font-size: 1.5rem; margin: 44px 0 16px; }
.legal-content h3 { font-size: 1.15rem; margin: 28px 0 12px; }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 14px; }
.legal-content ul { padding-left: 24px; }
.legal-updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); }

/* 404 */
.page-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.err-code {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 12rem);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(74, 91, 125, 0.4));
}

/* Hero mockup (CSS-built floating UI) */
.hero-mockup {
  position: relative;
  min-height: 420px;
  display: none;
}
@media (min-width: 1024px) { .hero-mockup { display: block; } }
.mock-window {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), 0 0 40px rgba(74, 91, 125, 0.2);
  animation: mock-float 7s ease-in-out infinite alternate;
}
.mock-window .mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.mock-window .mock-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(154, 163, 184, 0.4);
}
.mock-window .mock-bar i:first-child { background: var(--accent-2); }
.mock-window .mock-bar i:nth-child(2) { background: #CC982E; }
.mock-window .mock-bar i:nth-child(3) { background: var(--accent); }
.mock-body { padding: 18px; display: grid; gap: 10px; }
.mock-line { height: 10px; border-radius: 5px; background: rgba(154, 163, 184, 0.2); }
.mock-line.w60 { width: 60%; }
.mock-line.w80 { width: 80%; }
.mock-line.accent { background: var(--gradient-brand); }
.mock-main { width: 320px; top: 30px; left: 0; }
.mock-terminal {
  width: 200px;
  top: 140px;
  right: 20px;
  animation-delay: -3s;
}
.mock-terminal .terminal-screen {
  margin: 16px;
  padding: 20px 14px;
  background: var(--bg-dark);
  border-radius: 10px;
  text-align: center;
}
.mock-terminal .amount { font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: var(--accent); }
.mock-terminal .approved {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(74, 91, 125, 0.15);
  border: 1px solid rgba(74, 91, 125, 0.4);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}
.mock-chat-pop {
  width: 240px;
  bottom: 10px;
  left: 60px;
  animation-delay: -5s;
}
.mock-chat-pop .mock-body { gap: 8px; }
.mock-chip {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--text-primary);
}
.mock-chip.in { background: rgba(74, 91, 125, 0.25); border-bottom-left-radius: 4px; margin-right: 30px; }
.mock-chip.out { background: rgba(74, 91, 125, 0.14); border-bottom-right-radius: 4px; margin-left: 30px; text-align: right; }

@keyframes mock-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-18px); }
}

/* Phone mockup for AI receptionist */
.phone-mockup {
  width: min(300px, 80vw);
  margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-card), 0 0 60px rgba(74, 91, 125, 0.25);
}
.phone-screen {
  background: var(--bg-dark);
  border-radius: 26px;
  padding: 28px 18px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.phone-screen .call-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: grid;
  place-items: center;
  color: #fff;
  margin-top: 24px;
  position: relative;
}
.phone-screen .call-avatar::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(74, 91, 125, 0.5);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  from { transform: scale(0.9); opacity: 1; }
  to   { transform: scale(1.35); opacity: 0; }
}
.phone-screen .caller-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; }
.phone-screen .call-status { color: var(--accent); font-size: 0.85rem; }
.waveform { display: flex; gap: 4px; align-items: center; height: 40px; margin-top: 8px; }
.waveform span {
  width: 4px;
  border-radius: 2px;
  background: var(--gradient-brand);
  animation: wave 1.1s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 12px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 26px; animation-delay: 0.12s; }
.waveform span:nth-child(3) { height: 36px; animation-delay: 0.24s; }
.waveform span:nth-child(4) { height: 20px; animation-delay: 0.36s; }
.waveform span:nth-child(5) { height: 32px; animation-delay: 0.48s; }
.waveform span:nth-child(6) { height: 16px; animation-delay: 0.6s; }
.waveform span:nth-child(7) { height: 28px; animation-delay: 0.72s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* Speed bars (custom websites) */
.speed-bar-group { display: grid; gap: 22px; }
.speed-bar-item .speed-label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; }
.speed-bar-item .speed-label strong { font-family: var(--font-heading); }
.speed-bar-item .speed-label .val { color: var(--accent); font-weight: 600; }
.speed-track {
  height: 12px;
  border-radius: 6px;
  background: var(--track-bg);
  overflow: hidden;
}
.speed-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--gradient-brand);
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.35, 1);
}
.speed-fill.slow { background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.4)); }

/* Portfolio grid */
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.portfolio-item img { border-radius: 0; width: 100%; }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(16, 35, 35, 0.92));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.portfolio-item:hover .portfolio-overlay, .portfolio-item:focus-within .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { font-size: 1.1rem; margin-bottom: 4px; }
.portfolio-overlay p { font-size: 0.85rem; color: var(--text-muted); }

/* Contact page */
.contact-info-list { list-style: none; display: grid; gap: 20px; }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-list .icon-badge {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(74, 91, 125, 0.25), rgba(74, 91, 125, 0.15));
  border: 1px solid rgba(206, 212, 218, 0.35);
  color: var(--accent);
}
.contact-info-list .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.contact-info-list .value { font-weight: 500; color: var(--text-primary); }
.contact-info-list .value a { color: var(--text-primary); }
.contact-info-list .value a:hover { color: var(--accent); }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  margin-top: 4px;
}
.form-status.success {
  display: block;
  background: rgba(74, 91, 125, 0.12);
  border: 1px solid rgba(74, 91, 125, 0.4);
  color: var(--accent);
}
.form-status.error-msg {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #EF4444;
}

/* Calendly-style placeholder */
.booking-placeholder {
  border: 2px dashed rgba(206, 212, 218, 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  background: rgba(74, 91, 125, 0.06);
}

/* ROI math box */
.roi-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
}
.roi-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.roi-line strong { color: var(--text-primary); font-family: var(--font-heading); }
.roi-line.total { border-bottom: none; padding-top: 20px; }
.roi-line.total strong { color: var(--accent-2); font-size: 1.3rem; }

/* Tech badges */
.tech-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-badges .chip { font-family: var(--font-heading); font-weight: 500; padding: 10px 20px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); box-shadow: var(--shadow-glow-accent); transform: translateY(-2px); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
/* When the resolved theme is light, show the sun (to switch back to dark) */
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}

/* ============================================================
   LIGHT-MODE REFINEMENTS
   Applied when the resolved theme is light (manual or auto).
   Grouped so both selectors stay in sync.
   ============================================================ */
:root[data-theme="light"] a,
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .card-cta,
:root[data-theme="light"] .chip-accent,
:root[data-theme="light"] .drop-item:hover,
:root[data-theme="light"] .fly-item:hover,
:root[data-theme="light"] .mobile-submenu a:hover,
:root[data-theme="light"] .footer ul a:hover,
:root[data-theme="light"] .footer-bottom a:hover,
:root[data-theme="light"] .footer-socials a:hover,
:root[data-theme="light"] .price-tag,
:root[data-theme="light"] .contact-info-list .value a:hover,
:root[data-theme="light"] .speed-bar-item .speed-label .val,
:root[data-theme="light"] .phone-screen .call-status,
:root[data-theme="light"] .mock-terminal .amount,
:root[data-theme="light"] .faq-icon,
:root[data-theme="light"] .form-status.success,
:root[data-theme="light"] .stat .stat-label,
:root[data-theme="light"] .card .icon-badge {
  color: var(--accent-ink);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) a,
  :root:not([data-theme="dark"]) .eyebrow,
  :root:not([data-theme="dark"]) .card-cta,
  :root:not([data-theme="dark"]) .chip-accent,
  :root:not([data-theme="dark"]) .drop-item:hover,
  :root:not([data-theme="dark"]) .fly-item:hover,
  :root:not([data-theme="dark"]) .mobile-submenu a:hover,
  :root:not([data-theme="dark"]) .footer ul a:hover,
  :root:not([data-theme="dark"]) .footer-bottom a:hover,
  :root:not([data-theme="dark"]) .footer-socials a:hover,
  :root:not([data-theme="dark"]) .price-tag,
  :root:not([data-theme="dark"]) .contact-info-list .value a:hover,
  :root:not([data-theme="dark"]) .speed-bar-item .speed-label .val,
  :root:not([data-theme="dark"]) .phone-screen .call-status,
  :root:not([data-theme="dark"]) .mock-terminal .amount,
  :root:not([data-theme="dark"]) .faq-icon,
  :root:not([data-theme="dark"]) .form-status.success,
  :root:not([data-theme="dark"]) .stat .stat-label,
  :root:not([data-theme="dark"]) .card .icon-badge {
    color: var(--accent-ink);
  }
}

/* Structural surfaces that used baked-in dark alpha values.
   `light` class is stamped on <html> by the no-flash script so we can
   target it with a single, low-specificity hook alongside the media query.
   (hero-grid-lines now derives from the --grid-line token, so no override needed.) */
.theme-light .chat-demo,
:root[data-theme="light"] .chat-demo,
.theme-light .phone-mockup,
:root[data-theme="light"] .phone-mockup,
.theme-light .mock-window,
:root[data-theme="light"] .mock-window { box-shadow: var(--shadow-card); }
.theme-light .phone-screen,
:root[data-theme="light"] .phone-screen,
.theme-light .mock-terminal .terminal-screen,
:root[data-theme="light"] .mock-terminal .terminal-screen { background: var(--bg-elevated-2); }
.theme-light .chat-bubble.bot,
:root[data-theme="light"] .chat-bubble.bot {
  background: rgba(74, 91, 125, 0.1);
  border-color: rgba(74, 91, 125, 0.25);
  color: var(--text-primary);
}
.theme-light .typing-indicator,
:root[data-theme="light"] .typing-indicator {
  background: rgba(74, 91, 125, 0.1);
  border-color: rgba(74, 91, 125, 0.25);
}
.theme-light .marquee-item,
:root[data-theme="light"] .marquee-item { opacity: 0.85; }

/* Partner logos in the marquee (2x sized) */
.partner-logo {
  height: 52px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}
/* Text wordmark partners scale up to match the logos */
.partner-item { font-size: 1.6rem; gap: 14px; opacity: 0.8; }
.partner-item > svg { width: 30px; height: 30px; }

/* Dark-on-transparent logos need brightening on the dark strip */
.partner-logo-invert { filter: brightness(0) invert(1); }
.theme-light .partner-logo-invert,
:root[data-theme="light"] .partner-logo-invert { filter: none; }

/* Logos with a baked-in (white or black) background sit on their own light chip */
.partner-chip {
  background: #fff;
  border-radius: 12px;
  padding: 10px 20px;
  opacity: 1;
}
.partner-chip .partner-logo { max-width: 300px; }
.theme-light .footer-partners img,
:root[data-theme="light"] .footer-partners img { opacity: 0.8; }
/* CTA band stays vivid; ensure light-button contrast holds */
.theme-light .cta-band .btn-light,
:root[data-theme="light"] .cta-band .btn-light { background: #fff; color: #1F2E4A; }

/* The blanket "light-theme a { color: accent-ink }" rule above also hits
   anchor-based buttons, turning their label dark on a dark fill. Restore the
   correct label color per button variant in light mode. */
.theme-light a.btn-accent, :root[data-theme="light"] a.btn-accent,
.theme-light a.btn-gradient, :root[data-theme="light"] a.btn-gradient,
.theme-light .cta-band a.btn-outline, :root[data-theme="light"] .cta-band a.btn-outline {
  color: #fff;
}
.theme-light a.btn-ghost, :root[data-theme="light"] a.btn-ghost {
  color: var(--text-primary);
}
.theme-light .cta-band a.btn-light, :root[data-theme="light"] .cta-band a.btn-light {
  color: #1F2E4A;
}

/* ============================================================
   RESPONSIVE REFINEMENTS (mobile-down)
   The base layout is mobile-first; these tune tablet & phone.
   ============================================================ */

/* Global horizontal-overflow safety net — decorative orbs/marquee
   must never create a horizontal scrollbar on small screens. */
html, body { max-width: 100%; overflow-x: clip; }

/* ---- Tablet & below (<= 1024px) ---- */
@media (max-width: 1024px) {
  .split { gap: clamp(28px, 5vw, 44px); }
  .mega-menu { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Small tablet / large phone (<= 768px) ---- */
@media (max-width: 768px) {
  :root { --nav-height: 66px; }
  .section { padding: clamp(52px, 11vw, 84px) 0; }
  .section-head { margin-bottom: clamp(28px, 7vw, 40px); }
  .stats-row { gap: 20px 16px; }
  .timeline { gap: 26px; }
  .cta-band .btn-row { flex-direction: column; align-items: stretch; }
  .cta-band .btn-row .btn { width: 100%; }
}

/* ---- Phone (<= 640px) ---- */
@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  h2 { font-size: clamp(1.55rem, 6.5vw, 2rem); }
  .lead { font-size: 1rem; }

  /* Buttons stack full-width so they never crowd or overflow */
  .hero .btn-row .btn,
  .btn-row.stack-mobile .btn { width: 100%; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .btn-lg { padding: 15px 24px; font-size: 1rem; }

  /* Nav actions: keep quote button tappable, hide only on the tightest */
  .nav-actions { gap: 10px; }

  /* Stats: 2-up instead of cramped 3-up */
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Device/portfolio scrollers get a touch-friendly peek */
  .device-scroller .card { flex: 0 0 min(260px, 82vw); }

  /* Testimonial + FAQ breathing room */
  .testimonial-card { padding: 26px 22px; }
  .faq-question { padding: 17px 18px; font-size: 0.96rem; }
  .faq-answer-inner { padding: 0 18px 18px; }

  /* Pricing cards already stack (grid) — tighten padding */
  .pricing-card { padding: 28px 22px; }

  /* Contact form fields go single-column */
  .form-row { grid-template-columns: 1fr; }

  /* CTA band + footer spacing */
  .footer-legal { gap: 16px; }

  /* Comparison / spec tables: hint they scroll horizontally */
  .table-wrap { position: relative; }
}

/* ---- Small phone (<= 400px) ---- */
@media (max-width: 400px) {
  .container { width: min(100% - 24px, var(--container)); }
  h1 { font-size: clamp(1.85rem, 9vw, 2.3rem); }
  .logo { font-size: 1.12rem; }
  .logo-mark { width: 32px; height: 32px; }
  .chip { padding: 6px 12px; font-size: 0.78rem; }
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.14em; }
  .stat .stat-num { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .float-btn { width: 50px; height: 50px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
  .back-to-top { right: 16px; bottom: 78px; }
}

/* Landscape phones / very short viewports: trim hero top padding */
@media (max-height: 560px) and (max-width: 900px) {
  .hero { padding-top: calc(var(--nav-height) + 32px); }
}

/* =========================================================
   HOME REDESIGN - interactive sections + GSAP-friendly states
   ========================================================= */

.gsap-ready [data-hero-el],
.gsap-ready [data-pos-track] .pos-card,
.gsap-ready .svc-tile.reveal { will-change: transform, opacity; }

/* When GSAP is driving these, neutralize main.js's .reveal transition so the
   two systems never fight (GSAP sets its own opacity/transform via from()). */
.gsap-ready .svc-tile.reveal,
.gsap-ready .webapp-panel.reveal,
.gsap-ready .why-item.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---- Hero enhancements ---- */
.hero-x .hero-copy > * { position: relative; }
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-accent);
  border-radius: 20px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.hero-scroll-cue:hover { opacity: 1; }
.hero-scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-2);
  animation: scrollcue 1.6s ease-in-out infinite;
}
@keyframes scrollcue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0.2; }
}
@media (max-width: 900px) { .hero-scroll-cue { display: none; } }

/* ---- Services interactive tile grid ---- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.svc-tile {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.svc-tile-lg { grid-column: span 3; }
.svc-tile:hover {
  border-color: var(--border-accent);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}
.svc-tile-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 320px at var(--mx, 50%) var(--my, 0%), rgba(74, 91, 125, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.svc-tile:hover .svc-tile-glow { opacity: 1; }
.svc-tile h3 { margin: 16px 0 8px; font-size: 1.2rem; }
.svc-tile p { color: var(--text-muted); margin: 0 0 16px; }
.svc-tile .card-cta { margin-top: auto; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-tile, .svc-tile-lg { grid-column: span 1; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-tile, .svc-tile-lg { grid-column: span 1; }
}

/* ---- POS horizontal showcase ---- */
.pos-track-wrap { overflow-x: auto; scrollbar-width: none; padding: 8px 0 12px; }
.pos-track-wrap::-webkit-scrollbar { display: none; }
.pos-track {
  display: flex;
  gap: 22px;
  padding: 12px max(24px, calc((100vw - 1200px) / 2));
  width: max-content;
}
.pos-card {
  flex: 0 0 300px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-elevated-2));
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.pos-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.32);
}
.pos-card-media {
  height: 210px;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(74, 91, 125, 0.16), transparent 60%),
    var(--bg-dark);
}
.pos-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.4));
  transition: transform 0.35s ease;
}
.pos-card:hover .pos-card-media img { transform: scale(1.06) translateY(-4px); }
.pos-card-body { padding: 20px 22px 24px; }
.pos-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.pos-card-body h3 { margin: 0 0 6px; font-size: 1.1rem; }
.pos-card-body p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 14px; }

/* ---- Web & App development ---- */
.webapp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.webapp-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 4px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.webapp-panel:hover { border-color: var(--border-accent); box-shadow: 0 22px 50px rgba(0,0,0,0.26); }
.webapp-visual {
  height: 220px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(74, 91, 125, 0.18), transparent 55%),
    linear-gradient(150deg, var(--bg-dark), var(--bg-elevated-2));
  overflow: hidden;
}
.webapp-copy h3 { margin: 14px 0 8px; }
.webapp-copy p { color: var(--text-muted); }

/* browser mock */
.browser-mock { width: 78%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-subtle); background: var(--bg-elevated); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bg-elevated-2); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-accent); }
.browser-bar i:first-child { background: #B84E3B; } .browser-bar i:nth-child(2) { background: #E8C15A; } .browser-bar i:nth-child(3) { background: #7FB08A; }
.browser-url { margin-left: 10px; font-size: 0.7rem; color: var(--text-faint); background: var(--surface-tint); padding: 2px 10px; border-radius: 999px; }
.browser-body { padding: 16px; }
.bm-hero { height: 46px; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0.85; margin-bottom: 12px; }
.bm-row { display: flex; gap: 8px; margin-bottom: 12px; }
.bm-row span { flex: 1; height: 30px; border-radius: 6px; background: var(--surface-tint); }
.bm-line { height: 8px; border-radius: 4px; background: var(--surface-tint); margin-bottom: 8px; }
.bm-line.w80 { width: 80%; } .bm-line.w60 { width: 60%; }

/* phone mock */
.phone-mock { position: relative; width: 132px; height: 200px; border-radius: 26px; border: 1px solid var(--border-subtle); background: var(--bg-elevated); box-shadow: 0 18px 40px rgba(0,0,0,0.4); padding: 18px 14px 14px; }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 44px; height: 6px; border-radius: 4px; background: var(--border-accent); }
.pm-line { height: 8px; border-radius: 4px; background: var(--surface-tint); margin: 8px 0; }
.pm-line.accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); } .pm-line.w60 { width: 60%; } .pm-line.w80 { width: 80%; }
.pm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.pm-grid span { height: 34px; border-radius: 8px; background: var(--surface-tint); }
.pm-btn { height: 26px; border-radius: 8px; margin-top: 10px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

@media (max-width: 860px) { .webapp-grid { grid-template-columns: 1fr; } }

/* ---- AI Solutions ---- */
.ai-x { position: relative; overflow: hidden; }
.ai-x-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(74, 91, 125, 0.22), transparent 62%);
  pointer-events: none;
}
.ai-channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ai-chan {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-tint);
  color: var(--accent-ink);
}

/* ---- Why strip ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); background: var(--bg-elevated); transition: transform 0.2s ease, border-color 0.2s ease; }
.why-item:hover { transform: translateY(-3px); border-color: var(--border-accent); }
.why-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.why-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.icon-badge.sm { width: 42px; height: 42px; flex: none; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* Reduced motion: neutralize GSAP-driven transforms */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue span { animation: none; }
  [data-hero-el], .pos-card, .svc-tile { transform: none !important; opacity: 1 !important; }
}

/* Shopify demo video frame */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.34);
  background: var(--bg-elevated-2);
}
.shopify-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* neutralize the pinkish cast and warm it toward the brand palette */
  filter: saturate(0.72) hue-rotate(-12deg) contrast(1.04) brightness(0.98);
}
/* green-tinted overlay that recolors the video toward the site's forest palette */
.video-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(31, 46, 74, 0.5), rgba(31, 46, 74, 0.35) 55%, rgba(74, 91, 125, 0.4));
  mix-blend-mode: color;
}
/* a second soft veil for depth, using normal blend so it darkens gently */
.video-tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 100% 0%, rgba(74, 91, 125, 0.18), transparent 60%);
}
.theme-light .video-tint,
:root[data-theme="light"] .video-tint { mix-blend-mode: multiply; opacity: 0.7; }

/* =========================================================
   PHONE SCROLL SHOWCASE (app development page)
   Pinned Apple-style scroll: 3D phone rotates, callouts fade.
   ========================================================= */
.phone-scroll { position: relative; overflow: hidden; }
.ps-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 90px 24px 60px;
}
.ps-head { text-align: center; }
.ps-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 10px 0 0; }

/* ---- 3D scene ---- */
.ps-scene {
  perspective: 1300px;
  perspective-origin: 50% 42%;
}
.ps-phone {
  position: relative;
  width: 250px;
  /* height locked to the bezel PNG aspect (1470x3000) so the frame and the
     video screen window stay perfectly aligned: 250 * 3000/1470 = 510.2 */
  height: 510px;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Apple's official iPhone 17 Pro Max bezel (Deep Blue, transparent screen
   window + Dynamic Island baked in). Sits ON TOP of the app UI, which shows
   through the transparent window — the PNG itself masks the screen shape. */
.ps-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("assets/devices/iphone-17-pro-max-bezel.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 36px 60px rgba(0, 0, 0, 0.5));
}
/* app demo behind the bezel. Insets match the measured transparent screen
   window of the official bezel PNG (L 5.10%, R 5.17%, T 7.23%, B 2.23% of
   the 1470x3000 canvas), pulled in ~0.2% so the video tucks under the frame
   edge with no seam. */
.ps-screen {
  position: absolute;
  top: 7.0%;
  bottom: 2.0%;
  left: 4.9%;
  right: 5.0%;
  z-index: 1;
  border-radius: 30px;
  overflow: hidden;
  background: #ededed; /* matches the app UI's light grey; no visible seam */
}
/* app-demo.mp4 is now pre-cropped to just the app UI (no pink surround),
   so it fills the screen window directly. object-position pins the top so
   the status bar sits right under the Dynamic Island. */
.ps-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* app-demo.mp4 is cropped to the screen window's aspect (~2.06), so it
     fills exactly with no crop or distortion */
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* ---- callouts ---- */
/* default (no JS / reduced motion): stacked neatly under the phone */
.ps-callout {
  max-width: 250px;
  padding: 16px 18px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ps-callout h3 { margin: 0 0 5px; font-size: 0.98rem; }
.ps-callout h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2, #CED4DA);
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(206, 212, 218, 0.18);
}
.ps-callout p { margin: 0; font-size: 0.82rem; line-height: 1.45; color: var(--text-muted); }

/* JS-active mode: callouts float around the phone (they show one at a time) */
.ps-on .ps-callout { position: absolute; z-index: 3; }
.ps-on .ps-c1 { left: max(4%, calc(50% - 480px)); top: 30%; }
.ps-on .ps-c2 { right: max(4%, calc(50% - 480px)); top: 26%; }
.ps-on .ps-c3 { left: max(5%, calc(50% - 470px)); top: 44%; }
.ps-on .ps-c4 { right: max(5%, calc(50% - 470px)); top: 48%; }
.ps-on .ps-c5 { left: max(5%, calc(50% - 460px)); bottom: 22%; }
.ps-on .ps-c6 { right: max(5%, calc(50% - 460px)); bottom: 18%; }

.ps-scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: ps-hint 1.8s ease-in-out infinite;
}
@keyframes ps-hint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.9; }
  55% { transform: translate(-50%, 8px); opacity: 0.4; }
}

/* fallback layout (no JS): callouts flow as a tidy 2-col grid */
.ps-stage:not(.ps-on) { min-height: 0; }
.ps-stage:not(.ps-on) .ps-scroll-hint { display: none; }
.ps-stage:not(.ps-on) .ps-callout { position: static; }
.ps-stage:not(.ps-on)::after { content: ""; }
@media (min-width: 640px) {
  .ps-stage:not(.ps-on) { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; }
  .ps-stage:not(.ps-on) .ps-head,
  .ps-stage:not(.ps-on) .ps-scene { grid-column: 1 / -1; }
}

/* ---- small screens ---- */
@media (max-width: 860px) {
  .ps-phone { width: 200px; height: 408px; } /* 200 * 3000/1470 */
  .ps-screen { border-radius: 24px; }
  /* one shared callout position — they appear one at a time anyway.
     Centered via insets (not transform) so GSAP's inline transforms
     never fight the layout. */
  .ps-on .ps-c1, .ps-on .ps-c2, .ps-on .ps-c3,
  .ps-on .ps-c4, .ps-on .ps-c5, .ps-on .ps-c6 {
    left: 7vw;
    right: 7vw;
    top: auto;
    bottom: 7%;
    max-width: none;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-scroll-hint { animation: none; }
}

/* =========================================================
   CUSTOM WEBSITES PAGE — device mockups + colorful sections
   ========================================================= */

/* ---- Device showcase ---- */
.cw-showcase { overflow: hidden; }
.device-showcase {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  margin-top: 36px;
  min-height: 400px;
}

/* Laptop */
.dv-laptop { position: relative; z-index: 1; width: min(620px, 76%); }
.dv-laptop-screen {
  border: 12px solid #1c1f26;
  border-radius: 18px 18px 0 0;
  background: #1c1f26;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.dv-laptop-base {
  height: 20px;
  background: linear-gradient(180deg, #2a2e37, #14161b);
  border-radius: 0 0 14px 14px;
  margin: 0 -7%;
  position: relative;
}
.dv-laptop-base::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 7px;
  background: #0d0f13;
  border-radius: 0 0 8px 8px;
}

/* Tablet — overlaps laptop from the right */
.dv-tablet {
  position: relative;
  z-index: 2;
  width: 210px;
  margin-left: -70px;
  margin-bottom: 26px;
}
.dv-tablet-screen {
  border: 12px solid #23262e;
  border-radius: 24px;
  background: #23262e;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
}

/* Phone — overlaps from the right, sits forward */
.dv-phone {
  position: relative;
  z-index: 3;
  width: 132px;
  margin-left: -58px;
  margin-bottom: 10px;
}
.dv-phone-screen {
  border: 9px solid #23262e;
  border-radius: 26px;
  background: #23262e;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* screen content wrapper (a mini colorful website) */
.site { position: relative; overflow: hidden; font-size: 0; }
.dv-laptop-screen .site { border-radius: 7px 7px 0 0; height: 340px; }
.dv-tablet-screen .site { border-radius: 13px; height: 280px; }
.dv-phone-screen  .site { border-radius: 18px; height: 260px; }

/* ---- Site A (laptop): a vivid landing page ---- */
.site-a { background: #fff; }
.site-topbar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #eef1f6; }
.site-topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #cfd6e0; }
.site-topbar .dot:nth-child(1){ background:#ff5f57; } .site-topbar .dot:nth-child(2){ background:#febc2e; } .site-topbar .dot:nth-child(3){ background:#28c840; }
.site-topbar .site-url { margin-left: 8px; font-size: 8px; color: #9aa3b0; background: #fff; padding: 2px 10px; border-radius: 20px; }
.site-nav { display: flex; align-items: center; gap: 10px; padding: 12px 18px; }
.site-nav .brand { width: 40px; height: 12px; border-radius: 4px; background: linear-gradient(90deg,#5D42C4,#2E86BE); }
.site-nav > span:not(.brand):not(.cta) { width: 26px; height: 7px; border-radius: 3px; background: #d7dde6; }
.site-nav .cta { margin-left: auto; width: 54px; height: 20px; border-radius: 6px; background: linear-gradient(90deg,#C77E2C,#BE4778); }
.site-hero { display: flex; gap: 16px; padding: 20px 18px; align-items: center; }
.sh-text { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sh-h1 { height: 16px; border-radius: 5px; background: #2b3140; }
.sh-h1.short { width: 60%; background: linear-gradient(90deg,#5D42C4,#BE4778); }
.sh-p { height: 8px; width: 85%; border-radius: 4px; background: #c7cdd8; }
.sh-btn { width: 96px; height: 26px; border-radius: 8px; margin-top: 6px; background: linear-gradient(90deg,#5D42C4,#2E86BE); }
.sh-art { width: 150px; height: 110px; border-radius: 14px; background: radial-gradient(circle at 30% 25%, #CC9A48, transparent 55%), radial-gradient(circle at 75% 70%, #5D42C4, transparent 55%), linear-gradient(135deg,#2E86BE,#25A06E); }
.site-cards { display: flex; gap: 12px; padding: 4px 18px 20px; }
.site-cards .sc { flex: 1; height: 60px; border-radius: 10px; }
.sc-1 { background: linear-gradient(135deg,#B84E3B,#C77E2C); }
.sc-2 { background: linear-gradient(135deg,#2E86BE,#5D42C4); }
.sc-3 { background: linear-gradient(135deg,#25A06E,#118F8F); }

/* ---- Site B (tablet) ---- */
.site-b { background: #fff; padding: 0; }
.site-nav.sm { padding: 12px 14px; }
.site-nav.sm .brand { width: 34px; height: 11px; background: linear-gradient(90deg,#25A06E,#2E86BE); }
.site-nav.sm .burger { margin-left: auto; width: 18px; height: 12px; border-top: 2px solid #b8c0cc; border-bottom: 2px solid #b8c0cc; position: relative; }
.site-hero-b { height: 96px; margin: 0 14px 14px; border-radius: 12px; background: radial-gradient(circle at 70% 30%, #CC9A48, transparent 50%), linear-gradient(135deg,#BE4778,#5D42C4); }
.site-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; }
.site-grid2 span { height: 42px; border-radius: 8px; }
.site-grid2 span:nth-child(1){ background:#AEC0DB; } .site-grid2 span:nth-child(2){ background:#DBC2AC; } .site-grid2 span:nth-child(3){ background:#B0D5C4; } .site-grid2 span:nth-child(4){ background:#C9BCDE; }
.site-line { height: 8px; border-radius: 4px; background: #dde2ea; margin: 10px 14px 0; }
.site-line.w80 { width: 70%; } .site-line.w60 { width: 48%; }

/* ---- Site C (phone) ---- */
.site-c { background: #fff; padding-top: 22px; }
.ph-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 46px; height: 9px; border-radius: 6px; background: #23262e; }
.site-hero-c { height: 84px; margin: 6px 10px 10px; border-radius: 12px; background: radial-gradient(circle at 25% 30%, #5A9BC4, transparent 55%), linear-gradient(135deg,#5D42C4,#BE4778); }
.ph-chips { display: flex; gap: 6px; padding: 0 10px 10px; }
.ph-chips span { flex: 1; height: 16px; border-radius: 8px; }
.ph-chips span:nth-child(1){ background:#C9BCDE; } .ph-chips span:nth-child(2){ background:#DBC2AC; } .ph-chips span:nth-child(3){ background:#B0D5C4; }
.ph-card { height: 46px; margin: 0 10px 8px; border-radius: 10px; background: linear-gradient(135deg,#2E86BE,#25A06E); }
.ph-card.sm2 { background: linear-gradient(135deg,#C77E2C,#B84E3B); }
.ph-tabbar { display: flex; justify-content: space-around; padding: 8px 10px; margin-top: auto; position: absolute; bottom: 0; left: 0; right: 0; background: #f6f8fb; }
.ph-tabbar i { width: 14px; height: 14px; border-radius: 4px; background: #cdd4de; }
.ph-tabbar i:first-child { background: linear-gradient(135deg,#5D42C4,#2E86BE); }

@media (max-width: 720px) {
  .device-showcase { min-height: 300px; }
  .dv-laptop { width: 90%; }
  .dv-tablet { display: none; }
  .dv-phone { margin-left: -46px; }
}
@media (max-width: 480px) {
  .dv-phone { display: none; }
  .dv-laptop { width: 100%; }
}

/* ---- Colorful feature cards ---- */
.feature-grid-color {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.fc {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.fc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fc), var(--fc2));
}
.fc::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fc) 30%, transparent), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.fc:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--fc) 45%, transparent); box-shadow: 0 20px 44px rgba(0,0,0,0.28); }
.fc-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--fc), var(--fc2));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--fc) 40%, transparent);
  margin-bottom: 16px;
}
.fc h3 { margin: 0 0 6px; font-size: 1.02rem; }
.fc p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
@media (max-width: 1000px) { .feature-grid-color { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid-color { grid-template-columns: 1fr; } }

/* ---- Design craft strip ---- */
.swatch-row { display: flex; gap: 10px; }
.swatch {
  width: 44px; height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
  transition: transform 0.2s ease;
}
.swatch:hover { transform: translateY(-4px) scale(1.06); }
.type-card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(124, 92, 252, 0.18), transparent 55%),
    linear-gradient(150deg, var(--bg-elevated), var(--bg-elevated-2));
  overflow: hidden;
}
.type-xl {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  background: linear-gradient(120deg,#5D42C4,#2E86BE,#25A06E);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.type-lines { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.type-lines span { height: 10px; border-radius: 5px; background: var(--surface-tint); }
.type-lines .w70 { width: 70%; } .type-lines .w85 { width: 85%; } .type-lines .w50 { width: 50%; }
.type-tags { display: flex; gap: 8px; }
.type-tags span {
  font-size: 0.72rem; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border-subtle); color: var(--accent-ink); background: var(--surface-tint);
}

/* =========================================================
   APP DEV — interactive process stepper
   ========================================================= */
.proc-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}

/* ---- step rail ---- */
.proc-rail { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.proc-rail-progress {
  position: absolute;
  left: 27px; top: 24px; bottom: 24px;
  width: 3px;
  border-radius: 3px;
  background: var(--border-subtle);
  z-index: 0;
}
.proc-rail-progress span {
  position: absolute; left: 0; top: 0; width: 100%;
  height: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #5D42C4, #2E86BE, #C77E2C, #25A06E);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.proc-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.proc-step:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--pc) 45%, transparent); }
.proc-step.is-active {
  border-color: color-mix(in srgb, var(--pc) 55%, transparent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--pc) 22%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--pc) 12%, var(--bg-elevated)), var(--bg-elevated));
}
.proc-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-faint);
  width: 22px;
  transition: color 0.25s ease;
}
.proc-step.is-active .proc-num { color: var(--pc); }
.proc-ic {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #fff;
  background: color-mix(in srgb, var(--pc) 55%, #3a3f47);
  transition: background 0.25s ease, transform 0.25s ease;
}
.proc-step.is-active .proc-ic { background: linear-gradient(135deg, var(--pc), var(--pc2)); transform: scale(1.06); box-shadow: 0 8px 18px color-mix(in srgb, var(--pc) 40%, transparent); }
.proc-label { display: flex; flex-direction: column; line-height: 1.25; }
.proc-label strong { font-size: 1rem; }
.proc-label em { font-style: normal; font-size: 0.8rem; color: var(--text-muted); }

/* ---- stage: detail panel + phone ---- */
.proc-stage {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(74, 91, 125, 0.12), transparent 55%),
    linear-gradient(150deg, var(--bg-elevated), var(--bg-elevated-2));
  min-height: 360px;
}
.proc-panels { position: relative; }
.proc-panel {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.proc-panel.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.proc-chip {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700;
  color: var(--pc);
  background: color-mix(in srgb, var(--pc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.proc-panel h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin: 0 0 10px; }
.proc-panel > p { color: var(--text-muted); margin: 0 0 16px; max-width: 46ch; }
.proc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.proc-list li { position: relative; padding-left: 26px; font-size: 0.92rem; }
.proc-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--pc, #4A5B7D) 22%, transparent);
  box-shadow: inset 0 0 0 2px var(--pc, #4A5B7D);
}
.proc-list li::after {
  content: ""; position: absolute; left: 5px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--pc, #4A5B7D);
}

/* ---- phone preview ---- */
.proc-phone { display: flex; justify-content: center; }
.proc-phone-body {
  position: relative;
  width: 200px; height: 408px;
  border-radius: 34px;
  padding: 3px;
  background: linear-gradient(155deg,#b9beb8,#575c56,#93988f);
  box-shadow: 0 26px 50px rgba(0,0,0,0.4);
}
.proc-phone-notch { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 60px; height: 16px; border-radius: 999px; background: #050505; z-index: 3; }
.proc-phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border: 6px solid #060907;
  border-radius: 31px;
  overflow: hidden;
  background: linear-gradient(170deg,#182c2a,#0d1e1c);
}
.pscreen {
  position: absolute; inset: 0;
  padding: 40px 14px 16px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.proc-phone-screen .pscreen.is-active { opacity: 1; transform: none; }

/* Discover — sticky notes */
.ps-discover { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 54px; gap: 10px; align-content: start; }
.ps-discover .note { border-radius: 8px; transform: rotate(-2deg); }
.ps-discover .n1{ background:#CCA848; } .ps-discover .n2{ background:#5E7FB8; transform:rotate(2deg); }
.ps-discover .n3{ background:#5AB88C; transform:rotate(1deg);} .ps-discover .n4{ background:#C46F55; transform:rotate(-1deg);}
.ps-discover .n5{ background:#9579C4; } .ps-discover .n6{ background:#CC9A48; transform:rotate(2deg);}

/* Design — wireframe */
.ps-design { display: flex; flex-direction: column; gap: 8px; }
.ps-design .wf-bar { height: 12px; width: 50%; border-radius: 4px; background: rgba(248, 249, 250,0.35); }
.ps-design .wf-hero { height: 70px; border-radius: 10px; border: 2px dashed rgba(125,208,255,0.6); background: rgba(61,178,242,0.12); }
.ps-design .wf-row { height: 9px; border-radius: 4px; background: rgba(248, 249, 250,0.18); }
.ps-design .wf-row.w70 { width: 70%; }
.ps-design .wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.ps-design .wf-grid i { height: 40px; border-radius: 8px; border: 2px dashed rgba(125,208,255,0.5); }

/* Build — code + progress */
.ps-build { display: flex; flex-direction: column; gap: 7px; font-family: monospace; }
.ps-build .code { height: 9px; border-radius: 4px; }
.ps-build .l1{ width:70%; background:#C77E2C; } .ps-build .l2{ width:90%; background:rgba(248, 249, 250,0.3);}
.ps-build .l3{ width:55%; background:#CC9A48;} .ps-build .l4{ width:80%; background:rgba(248, 249, 250,0.22);}
.ps-build .l5{ width:45%; background:rgba(248, 249, 250,0.3);}
.ps-build .build-bar { margin-top: auto; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.12); overflow: hidden; }
.ps-build .build-bar b { display: block; height: 100%; width: 68%; border-radius: 6px; background: linear-gradient(90deg,#C77E2C,#CC9A48); }

/* Launch — live app */
.ps-launch { display: flex; flex-direction: column; gap: 10px; }
.ps-launch .live-badge { align-self: flex-start; font-size: 9px; font-weight: 700; color: #06301f; background: #25A06E; padding: 3px 9px; border-radius: 999px; }
.ps-launch .live-hero { height: 74px; border-radius: 12px; background: radial-gradient(circle at 25% 30%,#4FB88C,transparent 55%), linear-gradient(135deg,#25A06E,#118F8F); }
.ps-launch .live-cards { display: flex; gap: 8px; }
.ps-launch .live-cards i { flex: 1; height: 46px; border-radius: 10px; background: rgba(248, 249, 250,0.14); }
.ps-launch .live-metric { height: 30px; border-radius: 8px; background: linear-gradient(90deg, rgba(46,204,139,0.5), rgba(46,204,139,0.1)); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .proc-wrap { grid-template-columns: 1fr; gap: 24px; }
  .proc-rail { flex-direction: row; overflow-x: auto; gap: 10px; padding-bottom: 6px; scrollbar-width: none; }
  .proc-rail::-webkit-scrollbar { display: none; }
  .proc-rail-progress { display: none; }
  .proc-step { flex: 0 0 auto; min-width: 190px; }
  .proc-step:hover { transform: none; }
  .proc-stage { grid-template-columns: 1fr; }
  .proc-phone { order: -1; }
}
@media (max-width: 480px) {
  .proc-stage { padding: 22px; }
  .proc-phone-body { width: 168px; height: 342px; }
}
@media (prefers-reduced-motion: reduce) {
  .proc-panel, .pscreen, .proc-step, .proc-ic, .proc-rail-progress span { transition: none; }
}

/* =========================================================
   HOME — Web & App: interactive tabbed showcase
   ========================================================= */
/* segmented toggle */
.wa-toggle {
  position: relative;
  display: inline-flex;
  gap: 4px;
  margin: 24px auto 0;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  left: 50%; transform: translateX(-50%);
}
.wa-toggle-pill {
  position: absolute;
  top: 5px; left: 5px;
  width: calc(50% - 5px); height: calc(100% - 10px);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--wc, #2E86BE), var(--wc2, #5D42C4));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease;
  z-index: 0;
}
.wa-toggle[data-active="1"] .wa-toggle-pill { transform: translateX(100%); --wc:#25A06E; --wc2:#118F8F; }
.wa-tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.wa-tab.is-active { color: #fff; }

/* stage */
.wa-stage {
  position: relative;
  margin-top: 34px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(150deg, var(--bg-elevated), var(--bg-elevated-2));
  overflow: hidden;
  min-height: 440px;
}
.wa-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 22% 25%, rgba(61,178,242,0.16), transparent 60%);
  transition: background 0.5s ease;
}
.wa-stage.app-active .wa-glow { background: radial-gradient(60% 80% at 22% 25%, rgba(46,204,139,0.18), transparent 60%); }

.wa-view {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px;
  align-items: center;
  padding: 44px 48px;
  opacity: 0; visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
.wa-view.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }

.wa-copy .wa-kicker {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  color: #fff; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
  background: linear-gradient(120deg, var(--wc), var(--wc2));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--wc) 38%, transparent);
}
.wa-copy h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 10px; }
.wa-copy > p { color: var(--text-muted); margin: 0 0 16px; max-width: 42ch; }
.wa-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.wa-list li { position: relative; padding-left: 28px; font-size: 0.94rem; }
.wa-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #2E86BE, #5D42C4);
}
.wa-list.app li::before { background: linear-gradient(135deg, #25A06E, #118F8F); }
.wa-list li::after {
  content: ""; position: absolute; left: 5.5px; top: 7px;
  width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* preview area */
.wa-preview { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }

/* ---- browser (website view) ---- */
.wa-browser {
  width: 100%; max-width: 460px;
  border-radius: 14px; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  animation: wa-rise 0.7s cubic-bezier(0.2,0.8,0.2,1) both;
}
.wa-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef1f6; }
.wa-browser-bar i { width: 9px; height: 9px; border-radius: 50%; }
.wa-browser-bar i:nth-child(1){ background:#ff5f57; } .wa-browser-bar i:nth-child(2){ background:#febc2e; } .wa-browser-bar i:nth-child(3){ background:#28c840; }
.wa-url { margin-left: 10px; font-size: 10px; color: #8a93a0; background: #fff; padding: 3px 14px; border-radius: 20px; }
.wa-site { padding: 0 0 18px; }
.wa-site-nav { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.wa-logo { width: 44px; height: 13px; border-radius: 4px; background: linear-gradient(90deg,#2E86BE,#5D42C4); }
.wa-site-nav > span:not(.wa-logo):not(.wa-navbtn) { width: 28px; height: 7px; border-radius: 3px; background: #dbe1ea; }
.wa-navbtn { margin-left: auto; width: 60px; height: 22px; border-radius: 7px; background: linear-gradient(90deg,#C77E2C,#BE4778); }
.wa-site-hero { display: flex; gap: 18px; align-items: center; padding: 14px 20px 18px; }
.wa-site-copy { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.wa-h1 { height: 15px; border-radius: 5px; background: #2b3140; }
.wa-h1.sh { width: 62%; background: linear-gradient(90deg,#5D42C4,#2E86BE); }
.wa-txt { height: 8px; width: 88%; border-radius: 4px; background: #cbd2dd; }
.wa-cta { width: 104px; height: 30px; border-radius: 9px; margin-top: 6px; background: linear-gradient(90deg,#2E86BE,#5D42C4); animation: wa-pulse 2.4s ease-in-out infinite; }
.wa-site-art { width: 150px; height: 118px; border-radius: 16px; position: relative; overflow: hidden; background: linear-gradient(135deg,#B8C8DE,#CFC6DE); }
.wa-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.wa-orb.o1 { width: 90px; height: 90px; top: -14px; right: -10px; background: radial-gradient(circle,#2E86BE,transparent 70%); }
.wa-orb.o2 { width: 74px; height: 74px; bottom: -12px; left: -6px; background: radial-gradient(circle,#C77E2C,transparent 70%); }
.wa-site-cards { display: flex; gap: 12px; padding: 0 20px; }
.wa-site-cards span { flex: 1; height: 56px; border-radius: 11px; }
.wa-site-cards .c1 { background: linear-gradient(135deg,#B84E3B,#C77E2C); }
.wa-site-cards .c2 { background: linear-gradient(135deg,#2E86BE,#5D42C4); }
.wa-site-cards .c3 { background: linear-gradient(135deg,#25A06E,#118F8F); }

/* floating chips */
.wa-float {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; line-height: 1.1;
  font-size: 0.66rem; color: var(--text-muted);
  padding: 9px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  animation: wa-bob 3.4s ease-in-out infinite;
}
.wa-float b { font-family: var(--font-heading); font-size: 1rem; color: var(--text-primary); }
.wa-f1 { top: 8%; right: 2%; animation-delay: -0.5s; }
.wa-f2 { bottom: 10%; left: -2%; }
.wa-f3 { top: 12%; right: 6%; }
.wa-f4 { bottom: 14%; left: 2%; animation-delay: -1s; }
.wa-cursor {
  position: absolute; z-index: 4; left: 46%; top: 62%;
  width: 16px; height: 16px;
  background: #fff; border: 2px solid #1F2E4A; border-radius: 3px 12px 12px 12px;
  transform: rotate(-8deg);
  animation: wa-click 3s ease-in-out infinite;
}

/* ---- phone (app view) ---- */
.wa-phone {
  position: relative;
  width: 216px; height: 420px;
  border-radius: 38px;
  padding: 4px;
  background: linear-gradient(155deg,#c3c8c2,#5a5f59,#9ba099);
  box-shadow: 0 34px 60px rgba(0,0,0,0.45);
  animation: wa-rise 0.7s cubic-bezier(0.2,0.8,0.2,1) both;
}
.wa-phone-notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; border-radius: 999px; background: #050505; z-index: 3; }
.wa-phone-screen {
  width: 100%; height: 100%;
  border: 7px solid #060907; border-radius: 34px; overflow: hidden;
  background: linear-gradient(170deg,#101f2e,#0b1520);
  padding: 44px 16px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.wa-app-top { display: flex; align-items: center; justify-content: space-between; }
.wa-app-hi { width: 90px; height: 12px; border-radius: 4px; background: rgba(255,255,255,0.28); }
.wa-app-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#25A06E,#118F8F); }
.wa-app-balance {
  border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px;
  background: radial-gradient(circle at 80% 20%,#4FB88C,transparent 55%), linear-gradient(135deg,#25A06E,#118F8F);
}
.wa-app-bl1 { width: 55%; height: 10px; border-radius: 4px; background: rgba(255,255,255,0.5); }
.wa-app-bl2 { width: 78%; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.85); }
.wa-app-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.wa-app-actions i { height: 44px; border-radius: 12px; }
.wa-app-actions i:nth-child(1){ background:rgba(124,92,252,0.25); } .wa-app-actions i:nth-child(2){ background:rgba(242,160,61,0.25); }
.wa-app-actions i:nth-child(3){ background:rgba(61,178,242,0.25); } .wa-app-actions i:nth-child(4){ background:rgba(46,204,139,0.3); }
.wa-app-list { display: flex; flex-direction: column; gap: 9px; }
.wa-app-list span { height: 30px; border-radius: 9px; background: rgba(255,255,255,0.08); }
.wa-app-list span:first-child { background: rgba(255,255,255,0.14); }
.wa-app-tab { margin-top: auto; display: flex; justify-content: space-around; padding-top: 10px; }
.wa-app-tab i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,0.2); }
.wa-app-tab i.on { background: linear-gradient(135deg,#25A06E,#118F8F); }

@keyframes wa-rise { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes wa-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(61,178,242,0.5); } 50% { box-shadow: 0 0 0 8px rgba(61,178,242,0); } }
@keyframes wa-click { 0%,100% { transform: rotate(-8deg) translate(0,0); } 45% { transform: rotate(-8deg) translate(0,0); } 55% { transform: rotate(-8deg) scale(0.85) translate(-2px,-2px); } 65% { transform: rotate(-8deg) translate(0,0); } }

/* responsive */
@media (max-width: 860px) {
  .wa-view { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; text-align: center; }
  .wa-copy .wa-kicker { margin-inline: auto; }
  .wa-copy > p, .wa-list { margin-inline: auto; }
  .wa-list li { text-align: left; }
  .wa-preview { order: -1; }
  .wa-float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-browser, .wa-phone, .wa-float, .wa-cta, .wa-cursor { animation: none; }
  .wa-view, .wa-toggle-pill { transition: none; }
}

/* =========================================================
   HOME — How It Works: scroll-animated flow timeline
   ========================================================= */
.flow-track {
  position: relative;
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* the connecting line + animated fill (desktop: horizontal) */
.flow-line {
  position: absolute;
  top: 34px; left: 8%; right: 8%;
  height: 3px;
  border-radius: 3px;
  background: var(--border-subtle);
  z-index: 0;
  overflow: hidden;
}
.flow-line span {
  position: absolute; inset: 0;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #5D42C4, #2E86BE, #C77E2C, #25A06E);
  transition: width 0.2s linear;
}

.flow-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* pre-animation state (set visible if JS/GSAP absent) */
}

/* node */
.flow-node {
  position: relative;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 20px;
  color: var(--text-faint);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}
.flow-node::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 24px;
  background: radial-gradient(circle, color-mix(in srgb, var(--fl) 35%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.flow-item.is-on .flow-node {
  color: #fff;
  background: linear-gradient(135deg, var(--fl), var(--fl2));
  border-color: transparent;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--fl) 40%, transparent);
  transform: translateY(-4px) scale(1.04);
}
.flow-item.is-on .flow-node::before { opacity: 1; }

/* card */
.flow-card {
  position: relative;
  margin-top: 22px;
  padding: 22px 20px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  width: 100%;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.flow-card::before {
  content: "";
  position: absolute; top: -1px; left: 22px; right: 22px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--fl), var(--fl2));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.flow-item.is-on .flow-card { border-color: color-mix(in srgb, var(--fl) 40%, transparent); box-shadow: 0 18px 40px rgba(0,0,0,0.22); }
.flow-item.is-on .flow-card::before { opacity: 1; }
.flow-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  background: linear-gradient(120deg, var(--fl), var(--fl2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.flow-item.is-on .flow-num { opacity: 1; }
.flow-card h3 { margin: 8px 0 8px; font-size: 1.12rem; }
.flow-card p { margin: 0 0 14px; font-size: 0.9rem; color: var(--text-muted); }
.flow-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  color: var(--fl);
  padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--fl) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--fl) 26%, transparent);
}

/* entrance state when JS drives it */
.gsap-ready .flow-item { opacity: 0; transform: translateY(28px); }

/* ---- responsive: vertical timeline on tablet/mobile ---- */
@media (max-width: 820px) {
  .flow-track { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
  .flow-line { top: 34px; bottom: 34px; left: 34px; right: auto; width: 3px; height: auto; }
  .flow-line span { width: 100% !important; height: 0; inset: auto; top: 0; left: 0; }
  .flow-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    padding-bottom: 28px;
  }
  .flow-node { flex: none; width: 60px; height: 60px; }
  .flow-card { margin-top: 0; }
  .flow-card::before { left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .gsap-ready .flow-item { opacity: 1; transform: none; }
  .flow-node, .flow-card, .flow-num, .flow-line span { transition: none; }
}

/* Darker/muted variant of the flow timeline (digital-marketing "Campaign Engine") */
.flow-dark .flow-line span {
  background: linear-gradient(90deg, #1F2E4A, #4A5B7D, #4A5B7D, #1F2E4A);
}
.flow-dark .flow-num { opacity: 0.65; }
.flow-dark .flow-item.is-on .flow-num { opacity: 1; }
/* softer node glow + card shadow so nothing feels neon */
.flow-dark .flow-item.is-on .flow-node {
  box-shadow: 0 10px 24px color-mix(in srgb, var(--fl) 32%, transparent);
}
.flow-dark .flow-tag {
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--fl) 18%, transparent);
  border-color: color-mix(in srgb, var(--fl) 34%, transparent);
}

/* =========================================================
   Animated "use case" list (darker, muted) — AI pages
   ========================================================= */
.usecase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.usecase {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-size: 0.95rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.usecase:hover {
  transform: translateX(6px);
  border-color: color-mix(in srgb, var(--uc) 55%, transparent);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  background: linear-gradient(100deg, color-mix(in srgb, var(--uc) 12%, var(--bg-elevated)), var(--bg-elevated));
}
.usecase-ic {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--uc), color-mix(in srgb, var(--uc) 60%, #2a2f36));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--uc) 32%, transparent);
}
/* left accent tick that grows on hover */
.usecase { position: relative; overflow: hidden; }
.usecase::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--uc), color-mix(in srgb, var(--uc) 55%, transparent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.usecase:hover::before { transform: scaleY(1); }

/* scroll-in entrance (JS adds .uc-ready when GSAP drives it) */
.uc-ready .usecase { opacity: 0; transform: translateX(-16px); }

@media (prefers-reduced-motion: reduce) {
  .uc-ready .usecase { opacity: 1; transform: none; }
  .usecase, .usecase::before { transition: none; }
}
