:root {
  --navy: #0c1222;
  --navy-mid: #151d32;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #0ea5e9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f4f6fb;
  --white: #fff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 32px 64px rgba(15, 23, 42, 0.12);
  --r: 14px;
  --r-lg: 22px;
  --max: 1180px;
}

/* ═══════════════════════════════════════
   HOMEPAGE HERO SPLIT
═══════════════════════════════════════ */
.hero-split {
  display: grid; grid-template-columns: 1fr;
  background: linear-gradient(150deg, #0c1222 0%, #1a2744 50%, #0f172a 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero-split::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 5% 0%, rgba(79,70,229,0.35), transparent 55%),
    radial-gradient(ellipse 40% 50% at 98% 80%, rgba(14,165,233,0.18), transparent 50%);
}
.hero-split__content {
  position: relative; z-index: 2;
  padding: clamp(64px, 9vw, 100px) clamp(20px, 5vw, 80px) clamp(48px, 6vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  max-width: 640px; margin-inline: auto;
}
.hero-split__visual {
  position: relative; z-index: 2; overflow: hidden; min-height: 400px;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: #a5b4fc; width: fit-content;
}
.hero-split h1 {
  margin: 0 0 20px; font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900; line-height: 1.07; letter-spacing: -0.035em; color: #fff;
}
.grad-text {
  background: linear-gradient(90deg, #818cf8 0%, #38bdf8 55%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-split p {
  margin: 0 0 28px; color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.65; max-width: 500px;
}
.hero-split__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.btn-soft {
  color: var(--primary); background: rgba(255,255,255,0.92); border: none;
  font-weight: 700; padding: 11px 22px; border-radius: 999px; font-size: 0.9rem;
  display: inline-flex; align-items: center; transition: background 0.2s;
}
.btn-soft:hover { background: #fff; }
.hero-split__stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hs { display: flex; flex-direction: column; }
.hs strong { font-size: 1.9rem; font-weight: 900; color: #fff; line-height: 1; }
.hs span { font-size: 0.78rem; color: rgba(255,255,255,0.6); font-weight: 600; margin-top: 4px; }
.hs-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.18); }

/* Photo stack in hero */
.photo-stack { position: relative; width: 100%; height: 100%; min-height: 400px; }
.photo-stack__main {
  width: 100%; height: 100%; min-height: 400px; overflow: hidden;
}
.photo-stack__main img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}
.photo-stack__badge {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(15,23,42,0.18);
  max-width: 220px;
}
.photo-stack__badge--tl { top: 28px; left: 20px; }
.photo-stack__badge--br { bottom: 36px; right: 20px; }
.badge-icon { font-size: 1.4rem; flex-shrink: 0; }
.photo-stack__badge strong { display: block; font-size: 0.82rem; font-weight: 800; color: #0f172a; }
.photo-stack__badge small { display: block; font-size: 0.72rem; color: #64748b; margin-top: 2px; }

/* ═══════════════════════════════════════
   PLATFORM SECTION — real screenshots
═══════════════════════════════════════ */
.platform-section {
  padding: clamp(64px, 9vw, 96px) 0;
  background: linear-gradient(180deg, var(--soft) 0%, #fff 100%);
}
.platform-cards {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
.platform-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
}
.platform-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.platform-card__img { overflow: hidden; }
.platform-card__img--browser {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #eef2ff, #f0f9ff);
}
.platform-card__img--browser img {
  width: 100%; height: auto; display: block;
  object-fit: cover; object-position: top center;
}
.platform-card__img--person { height: 280px; }
.platform-card__img--person img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
}
.platform-card__body { padding: 24px 22px 26px; }
.card-pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: #eef2ff; color: var(--primary); font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.platform-card__body h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.platform-card__body p { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.card-link { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.card-link:hover { text-decoration: underline; }

/* Admin feature card — no screenshot, icon + module pills */
.platform-card--feature {
  background: linear-gradient(145deg, #eef2ff 0%, #f0f9ff 60%, #fff 100%);
  border-color: rgba(199,210,254,0.7);
}
.platform-card__feature-top {
  padding: 28px 22px 20px; display: flex; flex-direction: column; gap: 16px;
  border-bottom: 1px solid rgba(199,210,254,0.5);
}
.pf-icon {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 8px 20px rgba(79,70,229,0.25);
}
.pf-modules {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.pf-modules span {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(79,70,229,0.08); border: 1px solid rgba(99,102,241,0.18);
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
}

/* ═══════════════════════════════════════
   FEATURE SPLIT SECTIONS
═══════════════════════════════════════ */
.feature-split { padding: clamp(64px, 8vw, 88px) 0; }
.feature-split__inner {
  display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr;
}
.feature-split__inner--rev .feature-split__photo { order: 1; }
.feature-split__inner--rev .feature-split__text  { order: 2; }

.photo-frame {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(79,70,229,0.18);
}
.photo-frame img { width: 100%; height: 420px; object-fit: cover; object-position: center top; display: block; }
.photo-frame--accent { box-shadow: 0 24px 70px rgba(14,165,233,0.18); }
.photo-frame__chip {
  position: absolute; bottom: 20px; left: 20px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  padding: 10px 16px; border-radius: 12px;
  font-size: 0.82rem; font-weight: 700; color: var(--navy);
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
}

.feat-list { list-style: none; margin: 20px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feat-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem; color: #334155; font-weight: 500;
}
.feat-list li span {
  font-size: 1.15rem; flex-shrink: 0; margin-top: 1px;
}

/* ═══════════════════════════════════════
   CTA DARK BANNER WITH PHOTO BG
═══════════════════════════════════════ */
.cta-banner {
  position: relative; padding: clamp(72px, 10vw, 100px) 0;
  overflow: hidden; text-align: center;
}
.cta-banner__bg {
  position: absolute; inset: 0;
}
.cta-banner__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; filter: brightness(0.3);
}
.cta-banner__content {
  position: relative; z-index: 2; color: #fff;
}
.cta-banner__content h2 {
  margin: 0 0 14px; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em;
}
.cta-banner__content p { margin: 0 auto 28px; max-width: 480px; color: rgba(255,255,255,0.75); font-size: 1rem; }
.btn-light { color: var(--primary); background: #fff; font-weight: 700; }
.btn-light:hover { background: #f0f9ff; }
.btn-ghost {
  color: #fff; border: 2px solid rgba(255,255,255,0.4); background: transparent;
  padding: 11px 22px; border-radius: 999px; font-size: 0.9rem; font-weight: 700;
  display: inline-flex; align-items: center; transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.8); }

@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1fr 1fr; min-height: 580px; }
  .hero-split__content { margin-inline: 0; max-width: none; }
  .photo-stack { min-height: 580px; }
  .photo-stack__main { min-height: 580px; }
  .platform-cards { grid-template-columns: 1fr 1fr 1fr; }
  .platform-card--wide { grid-column: 1 / -1; }
  .platform-card--wide .platform-card__img--browser img { max-height: 320px; }
  .platform-card__img--person { height: 320px; }
  .feature-split__inner { grid-template-columns: 1fr 1fr; }
  .feature-split__inner--rev .feature-split__photo { order: 2; }
  .feature-split__inner--rev .feature-split__text  { order: 1; }
}
@media (max-width: 899px) {
  .platform-card--wide { grid-column: auto; }
  .photo-frame img { height: 300px; }
  .hero-split__content { max-width: 100%; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; overflow-x: hidden;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text); background: var(--white); line-height: 1.65;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.top-bar { background: var(--navy); color: rgba(255,255,255,0.75); font-size: 0.8rem; padding: 8px 0; }
.top-bar-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.top-bar a { color: #7dd3fc; }

.site-header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--line);
  overflow: visible;
}
.header-inner {
  min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  overflow: visible;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--navy); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center; font-size: 0.7rem;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a {
  font-size: 0.85rem; font-weight: 600; color: #475569;
  padding: 8px 11px; border-radius: 8px;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: #eef2ff; }
.nav-item { position: relative; }
.nav-item.has-dropdown::after {
  content: ""; position: absolute; left: -8px; right: -8px; top: 100%; height: 16px;
}
.nav-item.has-dropdown > .nav-product-link { display: inline-flex; align-items: center; gap: 4px; }
.nav-item.has-dropdown:hover > .nav-product-link,
.nav-item.has-dropdown.open > .nav-product-link,
.nav-item.has-dropdown:focus-within > .nav-product-link {
  color: var(--primary); background: #eef2ff;
}
.nav-caret { font-size: 0.65rem; opacity: 0.7; transition: transform 0.2s; }
.nav-item.has-dropdown:hover .nav-caret,
.nav-item.has-dropdown.open .nav-caret { transform: rotate(180deg); }

/* Product mega menu — edship style */
.nav-mega {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(640px, calc(100vw - 32px)); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 400;
}
.nav-item.has-dropdown:hover .nav-mega,
.nav-item.has-dropdown.open .nav-mega,
.nav-item.has-dropdown:focus-within .nav-mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-mega-grid {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 28px 70px rgba(15,23,42,0.16); padding: 18px;
  display: grid; gap: 8px; grid-template-columns: 1fr 1fr;
}
.mega-intro {
  grid-column: 1 / -1; padding: 14px 16px 16px;
  background: linear-gradient(135deg, #eef2ff, #f0f9ff); border-radius: var(--r);
  margin-bottom: 4px;
}
.mega-label { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 6px; }
.mega-intro p { margin: 0 0 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.mega-cta { font-size: 0.86rem; font-weight: 700; color: var(--primary); }
.mega-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r);
  transition: background 0.15s;
}
.mega-item:hover { background: #f8fafc; }
.mega-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.mega-item strong { display: block; font-size: 0.88rem; color: var(--text); }
.mega-item small { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 2px; font-weight: 500; }

/* Tilted real screenshot frames */
.device-wrap { display: flex; justify-content: center; align-items: center; padding: 16px; perspective: 1400px; }
.device-frame {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 16px 40px rgba(15,23,42,0.18);
  transition: box-shadow 0.3s ease;
  transform: none;
}
.device-frame:hover {
  transform: none;
  box-shadow: 0 20px 48px rgba(15,23,42,0.22);
}
.device-frame--right,
.device-frame--left { transform: none; }
.device-frame--right:hover,
.device-frame--left:hover { transform: none; }
.device-frame--web {
  border-radius: 14px; padding: 10px 10px 14px; width: 100%; max-width: 560px;
}
.device-frame--web::before {
  content: ""; display: block; height: 8px; margin-bottom: 8px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
  border-radius: 999px; opacity: 0.85; max-width: 48px;
}
.device-frame--phone {
  border-radius: 32px; padding: 12px 8px; max-width: 260px; width: 100%;
}
.device-frame--phone::before {
  content: ""; display: block; width: 36%; height: 5px; margin: 0 auto 10px;
  background: rgba(255,255,255,0.2); border-radius: 999px;
}
.device-frame img {
  width: 100%; height: auto; display: block; border-radius: 8px;
  object-fit: cover; object-position: top center;
}
.device-frame--phone img { border-radius: 22px; }

/* Premium stock visuals — straight, clean */
.visual-premium {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 16px 48px rgba(15,23,42,0.12);
  transform: none;
  transition: box-shadow 0.3s ease;
}
.visual-premium::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(15,23,42,0.04) 100%);
}
.visual-premium:hover {
  transform: none;
  box-shadow: 0 20px 56px rgba(15,23,42,0.16);
}
.visual-premium img {
  width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block;
  aspect-ratio: 4/3;
}
.visual-premium--tilt-right,
.visual-premium--tilt-left { transform: none; }
.visual-premium--tilt-right:hover,
.visual-premium--tilt-left:hover { transform: none; }
.visual-badge {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  font-size: 0.72rem; font-weight: 800; color: var(--primary);
  letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
}
.visual-caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  margin: 0; padding: 14px 16px;
  background: linear-gradient(transparent, rgba(15,23,42,0.85));
  color: #fff; font-weight: 700; font-size: 0.88rem; text-align: center;
}

/* Platform section — ONLY place for real app screenshots on homepage */
.platform-section {
  position: relative; padding: clamp(64px, 9vw, 96px) 0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 40%, #eef2ff 100%);
}
.platform-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(79,70,229,0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(14,165,233,0.06), transparent 50%);
}
.platform-section .container { position: relative; z-index: 1; }

.device-frame--card {
  transform: none !important;
  box-shadow: 0 12px 36px rgba(15,23,42,0.14);
  transition: box-shadow 0.3s ease;
}
.device-frame--card:hover {
  transform: none !important;
  box-shadow: 0 16px 44px rgba(15,23,42,0.18);
}

/* Straight app screenshots in platform cards */
.app-shot {
  display: block; width: auto; max-width: 100%; height: auto;
  margin-inline: auto;
  object-fit: contain; object-position: top center;
}
/* Web (dashboard): full-width, natural height, no extra shadow or radius — parent handles it */
.app-shot--web {
  width: 100%; height: auto; max-height: none; border-radius: 0; box-shadow: none;
}
/* Phone: tall portrait, centered */
.app-shot--phone {
  width: auto; max-width: 220px; height: auto;
  border-radius: 14px; box-shadow: 0 12px 36px rgba(15,23,42,0.14);
}

.hero-visual--tilted,
.hero-visual:has(.device-frame) {
  aspect-ratio: auto; max-height: none; border: none; background: transparent;
  box-shadow: none; overflow: visible;
}
.hero-visual--tilted .device-wrap,
.hero-visual:has(.device-frame) .device-wrap { padding: 0; }
.hero-visual .device-frame { max-width: 100%; }

.screens-row {
  display: grid; gap: 32px; align-items: center; justify-items: center;
  grid-template-columns: 1fr;
}
.showcase-visual {
  background: linear-gradient(160deg, #eef2ff, #f0f9ff);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 320px; overflow: hidden; padding: 0;
}
.showcase-visual--browser {
  padding: 0; flex-direction: column; align-items: flex-start;
}
.showcase-visual--browser .browser-bar {
  background: #dde5f0; border-radius: 0; border-bottom: 1px solid #c7d2fe; padding: 8px 14px;
}
.showcase-visual .app-shot--web {
  width: 100%; height: auto; max-height: none; border-radius: 0;
  object-fit: cover; object-position: top center;
}
.showcase-visual .app-shot--phone {
  max-height: 440px; width: auto; max-width: 240px;
  margin: 28px auto; display: block;
  object-fit: contain; object-position: top center;
}

.hero--premium { background: linear-gradient(165deg, #0c1222 0%, #1a2744 50%, #0f172a 100%); }
.hero-visual:has(.visual-premium) {
  aspect-ratio: auto; max-height: none; border: none; background: transparent;
  box-shadow: none; overflow: visible;
}
.hero-visual .visual-premium { width: 100%; }
.hero-visual .visual-premium img { min-height: 280px; max-height: 420px; }

.module-card.has-img .module-thumb img { object-position: top center; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer;
}
.header-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-nav-cta { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 700;
  border: 2px solid transparent; transition: 0.2s;
}
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { color: var(--navy); background: #fff; border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { color: var(--primary); background: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); background: transparent; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }

/* Hero — no overlapping children */
.hero {
  padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 88px);
  color: #fff; position: relative; overflow: hidden;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero.has-bg {
  background: var(--navy) center/cover no-repeat;
}
.hero.has-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(12,18,34,0.92) 0%, rgba(12,18,34,0.78) 45%, rgba(12,18,34,0.55) 100%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 50% 60% at 15% 0%, rgba(79,70,229,0.3), transparent 55%),
    radial-gradient(ellipse 40% 50% at 95% 30%, rgba(14,165,233,0.18), transparent 50%);
}
.hero-layout {
  position: relative; z-index: 2;
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr;
}
.hero-content { text-align: left; max-width: 620px; }
.hero-visual {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  aspect-ratio: 4/3; max-height: 380px;
}
.hero-visual:not(.hero-visual--tilted):not(:has(.device-frame)) img { width: 100%; height: 100%; object-fit: cover; }
.hero-btns { justify-content: flex-start; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #a5b4fc;
}
.hero h1 {
  margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1; font-weight: 800; letter-spacing: -0.03em;
}
.hero h1 span {
  background: linear-gradient(90deg, #818cf8, #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-text { margin: 0 0 28px; max-width: 560px; color: rgba(255,255,255,0.82); font-size: 1.02rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 0.72rem; color: rgba(255,255,255,0.45); letter-spacing: 0.15em; text-transform: uppercase;
}

/* Stats — separate section, NO negative margin */
.stats-section { padding: 0 0 56px; margin-top: -1px; background: linear-gradient(165deg, #0f172a, #0c1222); }
.stats-row {
  display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr);
  padding-top: 8px;
}
.stat-box {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r); padding: 20px 14px; text-align: center;
}
.stat-box b { display: block; font-size: 1.5rem; color: #fff; font-weight: 800; }
.stat-box span { font-size: 0.78rem; color: rgba(255,255,255,0.6); font-weight: 600; }

section { padding: clamp(56px, 8vw, 84px) 0; }
.section-eyebrow {
  display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section-tag { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.features-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.feature-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 18px;
}
.feature-box-icon {
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: 12px;
  background: #eef2ff; color: var(--primary); font-weight: 800;
  display: grid; place-items: center; font-size: 0.9rem;
}
.feature-box h3 { margin: 0 0 6px; font-size: 1rem; }
.feature-box p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.section-title { margin: 0 0 12px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.section-desc { margin: 0; color: var(--muted); font-size: 0.98rem; max-width: 620px; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .section-desc { margin-inline: auto; }

.bg-soft { background: var(--soft); }
.bg-dark {
  background: linear-gradient(165deg, var(--navy), var(--navy-mid)); color: rgba(255,255,255,0.85);
}
.bg-dark .section-title, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .section-desc, .bg-dark p { color: rgba(255,255,255,0.68); }
.bg-dark .section-eyebrow { color: #7dd3fc; }

/* Edship-style showcase cards */
.showcase-list { display: grid; gap: 28px; }
.showcase-card {
  display: grid; gap: 0; grid-template-columns: 1fr;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: 0.3s;
}
.showcase-card:hover { box-shadow: var(--shadow-lg, 0 32px 64px rgba(15,23,42,0.12)); transform: translateY(-2px); }
.showcase-img { position: relative; height: 220px; overflow: hidden; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.showcase-card:hover .showcase-img img { transform: scale(1.04); }
.showcase-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.35) 100%);
}
.showcase-num {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.95); color: var(--primary);
  font-weight: 800; font-size: 0.85rem; display: grid; place-items: center;
}
.showcase-body { padding: 26px 24px 28px; }
.showcase-body h3 { margin: 0 0 6px; font-size: 1.2rem; }
.showcase-sub { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.showcase-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.showcase-pills span {
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
  background: #eef2ff; padding: 5px 10px; border-radius: 999px;
}
.showcase-card ul { margin: 0; padding: 0; list-style: none; }
.showcase-card li {
  padding: 7px 0 7px 20px; position: relative; font-size: 0.86rem; color: #334155;
  border-top: 1px solid #f1f5f9;
}
.showcase-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; font-size: 0.72rem; }

/* Visual split panels */
.visual-split {
  display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr;
}
.visual-panel {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 4/3; max-height: 360px;
}
.visual-panel img { width: 100%; height: 100%; object-fit: cover; }

/* Module cards with thumb */
.module-card.has-img { padding: 0; overflow: hidden; }
.module-card.has-img .module-thumb { height: 120px; overflow: hidden; }
.module-card.has-img .module-thumb img { width: 100%; height: 100%; object-fit: cover; }
.module-card.has-img .module-body-inner { padding: 18px 20px; }
.module-body-inner h3 { margin: 0 0 6px; font-size: 1rem; }
.module-body-inner p { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* Full-width banner */
.visual-split .visual-premium { width: 100%; max-width: 480px; margin-inline: auto; }
.visual-split .visual-premium img { min-height: 300px; aspect-ratio: 4/3; }

.banner-strip {
  position: relative; min-height: 320px; display: grid; align-items: center;
  background: center/cover no-repeat; overflow: hidden;
}
.banner-strip::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,18,34,0.9) 0%, rgba(12,18,34,0.6) 100%);
}
.banner-strip .container { position: relative; z-index: 1; max-width: 560px; color: #fff; }
.banner-strip h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.banner-strip p { margin: 0 0 20px; color: rgba(255,255,255,0.78); }

/* Role cards — product showcase with real screenshots */
.role-cards {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.role-card {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: #fff; box-shadow: 0 4px 20px rgba(15,23,42,0.04);
}
.role-card--product {
  border: 1px solid rgba(199,210,254,0.6);
  box-shadow: 0 10px 40px rgba(79,70,229,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.role-card--product:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(79,70,229,0.16);
}
.role-card-img { height: 160px; overflow: hidden; }
.role-card-img img { width: 100%; height: 100%; object-fit: cover; }
.role-card-img--product {
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #eef2ff 0%, #e0e7ff 45%, #f0f9ff 100%);
  padding: 0;
}
/* Admin dashboard: full-width browser mockup style */
.role-card-img--product--web {
  padding: 16px 16px 0; flex-direction: column; align-items: flex-start;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px 10px;
  background: #e2e8f0; border-radius: 10px 10px 0 0; width: 100%;
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.browser-dot:nth-child(1) { background: #ef4444; }
.browser-dot:nth-child(2) { background: #f59e0b; }
.browser-dot:nth-child(3) { background: #22c55e; }
.browser-url {
  flex: 1; height: 20px; border-radius: 4px;
  background: rgba(255,255,255,0.7); font-size: 0.65rem; color: #64748b;
  display: flex; align-items: center; padding: 0 8px; font-family: monospace;
}
.role-card-img--product--web .app-shot--web {
  width: 100%; max-height: none; border-radius: 0;
  display: block; object-fit: cover; object-position: top center;
}
/* Phone screenshots: tall, centered */
.role-card-img--product--phone {
  min-height: 380px; padding: 28px 20px;
}
.role-card-img--product .app-shot--phone {
  max-height: 340px; max-width: 220px; width: auto;
  object-fit: contain; object-position: top center;
}
.role-card--product .role-card-body {
  padding: 22px 20px 24px;
  border-top: 1px solid rgba(226,232,240,0.8);
  background: linear-gradient(180deg, #fff, #fafbff);
}
.role-card--product .role-card-body h3 {
  font-size: 1.08rem; font-weight: 800; color: var(--navy);
}
.role-card-img--shot {
  height: 220px; overflow: visible; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #f8fafc, #eef2ff); padding: 16px 12px;
}
.role-card-img--shot .device-frame--web { max-width: 100%; transform: perspective(900px) rotateY(-5deg) rotateX(4deg); }
.role-card-img--shot .device-frame--phone { max-width: 120px; transform: perspective(900px) rotateY(6deg) rotateX(3deg); }
.role-card-img--shot .device-frame--phone img { max-height: 180px; object-fit: cover; }
.home-teaser-img {
  border-radius: var(--r-lg); overflow: visible; border: none;
  box-shadow: none; aspect-ratio: auto;
  display: flex; align-items: center; justify-content: center;
}
.home-teaser-img .visual-premium { width: 100%; }
.home-teaser-img .visual-premium img { min-height: 260px; }
.home-teaser-img--tilted {
  aspect-ratio: auto; overflow: visible; border: none; box-shadow: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.home-teaser-img--tilted .device-frame--phone { max-width: 220px; }
.bg-dark .device-wrap .device-frame--phone { margin-inline: auto; max-width: 240px; }
.role-card-body { padding: 20px 18px; }
.role-card-body h3 { margin: 0 0 8px; font-size: 1.05rem; }
.role-card-body p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.app-screens {
  display: grid; gap: 28px; justify-items: center; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  padding: 20px 0;
}
.app-screens .visual-premium { width: 100%; max-width: 320px; }
.app-screens .visual-premium img { aspect-ratio: 3/4; min-height: 280px; }

/* Product cards (compact) */
.product-cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 24px; transition: 0.25s;
}
.product-card:hover { box-shadow: var(--shadow); border-color: #c7d2fe; transform: translateY(-3px); }
.product-card-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  display: grid; place-items: center; font-size: 1.4rem;
}
.product-card h3 { margin: 0 0 10px; font-size: 1.12rem; }
.product-card p { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.product-card ul { margin: 0; padding: 0; list-style: none; }
.product-card li {
  padding: 6px 0 6px 22px; position: relative; font-size: 0.86rem; color: #334155;
  border-top: 1px solid #f1f5f9;
}
.product-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; font-size: 0.75rem;
}

/* Video */
.video-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.video-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.video-label {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; gap: 10px;
}
.video-label i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block;
}
.video-wrap { position: relative; aspect-ratio: 16/9; background: #0f172a center/cover no-repeat; }
.video-wrap.has-poster .video-empty { background: rgba(15,23,42,0.45); }
.video-wrap iframe, .video-wrap video { width: 100%; height: 100%; border: 0; }
.video-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,0.55);
}
.video-empty .play {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px;
  border: 2px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
  display: grid; place-items: center; font-size: 1.2rem; color: #fff;
}
.video-empty p { margin: 0; font-size: 0.85rem; font-weight: 600; }

/* Module grid */
.modules-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.module-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px; transition: 0.2s;
  border-top: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #818cf8, #38bdf8);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.module-card h3 { margin: 0 0 6px; font-size: 1rem; }
.module-card p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* Split section */
.split-block {
  display: grid; gap: 36px; align-items: center;
  grid-template-columns: 1fr;
}
.split-block.reverse .split-text { order: 2; }
.split-list { margin: 16px 0 0; padding: 0; list-style: none; }
.split-list li {
  padding: 10px 0 10px 28px; position: relative; font-size: 0.92rem; color: #334155;
  border-bottom: 1px solid var(--line);
}
.split-list li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}

/* Workflow steps */
.steps-row {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.step-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r); padding: 22px 18px;
}
.step-num { font-size: 1.4rem; font-weight: 800; color: #818cf8; margin-bottom: 8px; }
.step-card h3 { margin: 0 0 6px; font-size: 0.98rem; color: #fff; }
.step-card p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* Demo */
.demo-box {
  max-width: 520px; margin-inline: auto; text-align: center;
  padding: 32px 28px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #eef2ff, #f0f9ff);
  border: 1px solid #c7d2fe;
}
.demo-box h3 { margin: 0 0 10px; }
.demo-link {
  display: inline-block; margin: 12px 0; padding: 10px 18px;
  background: #fff; border-radius: 10px; border: 1px solid var(--line);
  font-weight: 700; color: var(--primary); word-break: break-all;
}
.demo-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }

/* FAQ */
.faq-wrap { max-width: 700px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; background: #fff; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 18px; font: inherit; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; gap: 10px;
}
.faq-a { display: none; padding: 0 18px 16px; color: var(--muted); font-size: 0.9rem; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--primary); }

/* CTA */
.cta-section { text-align: center; padding: 72px 0; }
.cta-section h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-section p { margin: 0 auto 22px; max-width: 500px; color: rgba(255,255,255,0.72); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 48px 0 22px; }
.footer-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  margin-bottom: 32px;
}
.footer-col h4 { color: #fff; margin: 0 0 12px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; font-size: 0.86rem; margin: 5px 0; }
.footer-col a:hover { color: #7dd3fc; }
.footer-brand p { margin: 10px 0 0; font-size: 0.86rem; line-height: 1.6; max-width: 260px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 0.8rem;
}

.page-hero {
  padding: 48px 0 36px;
  background: linear-gradient(165deg, var(--navy), var(--navy-mid)); color: #fff;
}
.page-hero h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
.page-hero p { margin: 0; color: rgba(255,255,255,0.72); max-width: 600px; }
.breadcrumb { margin: 0 0 10px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: #7dd3fc; }

.module-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: 16px; overflow: hidden;
}
.module-head { padding: 16px 20px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--primary); background: #fafbff; }
.module-head h3 { margin: 0 0 4px; font-size: 1.05rem; }
.module-head p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.module-body { padding: 6px 20px 18px; }
.mod-row { padding: 10px 0; border-bottom: 1px solid #f1f5f9; display: grid; gap: 4px; grid-template-columns: 1fr; }
.mod-row:last-child { border-bottom: none; }
.mod-row h4 { margin: 0; font-size: 0.9rem; }
.mod-row p { margin: 0; color: var(--muted); font-size: 0.84rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.tag {
  font-size: 0.76rem; font-weight: 700; color: var(--primary);
  background: #eef2ff; border: 1px solid #c7d2fe; padding: 6px 12px; border-radius: 999px;
}

.home-teaser {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, #fff 0%, #eef2ff 50%, #f0f9ff 100%);
  border: 1px solid rgba(199,210,254,0.5); border-radius: var(--r-lg);
  padding: 36px 28px; box-shadow: 0 20px 60px rgba(79,70,229,0.08);
}
.home-teaser h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.home-teaser p { margin: 0 0 18px; color: var(--muted); }

.services-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.service-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px;
}
.service-item span { font-size: 1.6rem; }
.service-item h3 { margin: 12px 0 6px; font-size: 1rem; }
.service-item p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.contact-cards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-bottom: 28px;
}
.contact-card {
  text-align: center; padding: 24px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
}
.contact-card strong { display: block; margin-top: 8px; color: var(--primary); }

@media (min-width: 640px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .mod-row { grid-template-columns: 190px 1fr; gap: 14px; }
}
@media (min-width: 900px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .split-block { grid-template-columns: 1fr 1fr; }
  .visual-split { grid-template-columns: 1fr 1fr; }
  .visual-split.reverse .visual-text { order: 2; }
  .home-teaser { grid-template-columns: 1.1fr 0.9fr; padding: 40px 36px; }
  .hero-layout { grid-template-columns: 1.05fr 0.95fr; }
  .hero-content.centered { text-align: center; margin-inline: auto; }
  .hero-content.centered .hero-btns { justify-content: center; }
  .showcase-card { grid-template-columns: 1fr 1fr; }
  .showcase-card.reverse { direction: rtl; }
  .showcase-card.reverse > * { direction: ltr; }
  .showcase-img { height: auto; min-height: 100%; }
  .showcase-visual { min-height: 100%; }
  .showcase-visual .app-shot--phone { max-height: 480px; max-width: 260px; }
  .role-card-img--product--phone { min-height: 420px; }
  .role-card-img--product .app-shot--phone { max-height: 380px; max-width: 240px; }
}
@media (max-width: 899px) {
  /* ── Header: hide CTA buttons, show hamburger ── */
  .header-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }

  /* ── Header height tighter on mobile ── */
  .header-inner { min-height: 60px; }

  /* ── Full-screen slide-down nav ── */
  .site-nav {
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 8px 12px 24px; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    overflow-y: auto; z-index: 299;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  /* ── Nav links bigger tap targets on mobile ── */
  .site-nav > a {
    padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav > a:last-child { border-bottom: none; }

  /* ── Product dropdown full width ── */
  .nav-item.has-dropdown {
    width: 100%; border-bottom: 1px solid var(--line);
    position: static !important; /* don't clip the dropdown */
  }
  .nav-item.has-dropdown::after { display: none; } /* remove the hover bridge gap */
  .nav-item.has-dropdown > .nav-product-link {
    padding: 14px 12px; font-size: 1rem; width: 100%; display: flex; justify-content: space-between;
  }
  .nav-mega {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100%;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.32s ease, visibility 0.32s;
    z-index: auto;
  }
  .nav-item.has-dropdown.open .nav-mega {
    visibility: visible; max-height: 700px; pointer-events: auto;
  }
  .nav-mega-grid {
    grid-template-columns: 1fr; box-shadow: none;
    border: none; border-top: 1px solid var(--line); border-radius: 0;
    padding: 8px 4px; background: #f8fafc; width: 100%;
  }
  .mega-intro { display: none; }
  .mega-item { padding: 12px 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega-item:last-child { border-bottom: none; }

  /* ── Show CTA inside nav menu at bottom ── */
  .site-nav::after {
    content: "";
    display: block; margin-top: 16px;
  }
  .mobile-nav-cta {
    display: flex; flex-direction: column; gap: 10px; padding: 16px 12px 0;
    border-top: 1px solid var(--line); margin-top: 8px;
  }
  .mobile-nav-cta .btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; border-radius: 12px; }

  /* ── General mobile spacing ── */
  .device-frame, .device-frame--right, .device-frame--left { transform: none; }
  .role-card-img--product .app-shot--phone { max-height: 280px; max-width: 170px; }
  .hero-split__content { padding: 40px 20px 32px; }
  .hero-split__visual { min-height: 280px; }
  .photo-stack { min-height: 280px; }
  .photo-stack__main { min-height: 280px; }
  .photo-stack__badge { max-width: 190px; padding: 10px 12px; }
  .hero-split__stats { gap: 14px; }
  .hs strong { font-size: 1.5rem; }
  .platform-cards { grid-template-columns: 1fr; }
  .feature-split__inner { gap: 28px; }
  .photo-frame img { height: 280px; }
  .cta-banner { padding: 56px 0; }
  .hero-split__btns { flex-direction: column; }
  .hero-split__btns .btn, .hero-split__btns .btn-soft, .hero-split__btns .btn-ghost { width: 100%; justify-content: center; }

  /* hide top bar on mobile to save vertical space */
  .top-bar { display: none; }

  /* fix nav position offset since top-bar is hidden */
  .site-header { top: 0; }

  /* section padding tighter on mobile */
  section { padding: 40px 0; }
  .section-label { font-size: 0.7rem; }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
}

/* Extra small phones */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .platform-card { padding: 20px; }
  .kw-tags { gap: 6px; }
  .kw-tag { font-size: 0.7rem; padding: 5px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-mega-grid { padding: 4px; }
  .mega-item { padding: 10px 12px; }
}
