/* ==========================================================================
   CollageForge Pro — Marketing Site
   Premium light theme · refined aesthetic pass
   Canonical: https://collageforge-pro.toolboxesai.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand spectrum (logo-inspired) */
  --brand-cyan: #06b6d4;
  --brand-sky: #38bdf8;
  --brand-blue: #3b82f6;
  --brand-indigo: #6366f1;
  --brand-violet: #8b5cf6;
  --brand-purple: #a855f7;
  --brand-magenta: #ec4899;
  --brand-amber: #f59e0b;
  --brand-green: #10b981;
  --brand-rose: #f43f5e;
  --brand-teal: #14b8a6;

  /* Surfaces — airy, photographic light */
  --bg-page: #f4f6fb;
  --bg-elevated: #ffffff;
  --bg-muted: #eef1f8;
  --bg-soft: #f0f3ff;
  --bg-warm: #faf9ff;
  --bg-glass: rgba(255, 255, 255, 0.68);
  --bg-glass-strong: rgba(255, 255, 255, 0.9);

  /* Text */
  --text-primary: #0b1220;
  --text-secondary: #4b5568;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --text-inverse: #ffffff;

  /* Lines & depth */
  --border-subtle: rgba(15, 23, 42, 0.055);
  --border-soft: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.12);
  --border-focus: rgba(99, 102, 241, 0.5);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.035);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.045), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 22px 48px rgba(15, 23, 42, 0.09), 0 8px 18px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 32px 64px rgba(15, 23, 42, 0.11), 0 12px 28px rgba(99, 102, 241, 0.08);
  --shadow-btn: 0 10px 28px rgba(99, 102, 241, 0.32);
  --shadow-phone: 0 40px 80px rgba(15, 23, 42, 0.16), 0 12px 28px rgba(99, 102, 241, 0.1);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #22d3ee 0%, #3b82f6 32%, #8b5cf6 68%, #ec4899 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.12));
  --grad-primary-btn: linear-gradient(135deg, #5b5ef0 0%, #7c5cfc 48%, #a855f7 100%);
  --grad-text: linear-gradient(115deg, #2563eb 0%, #7c3aed 48%, #db2777 100%);
  --grad-web-cta: linear-gradient(135deg, #4338ca 0%, #6d28d9 42%, #9333ea 100%);
  --grad-hero:
    radial-gradient(ellipse 52% 48% at 6% 4%, rgba(251, 191, 36, 0.16), rgba(245, 158, 11, 0.06) 38%, transparent 62%),
    radial-gradient(ellipse 70% 55% at 78% 12%, rgba(139, 92, 246, 0.14), transparent 58%),
    radial-gradient(ellipse 55% 45% at 8% 70%, rgba(6, 182, 212, 0.11), transparent 52%),
    radial-gradient(ellipse 45% 40% at 92% 78%, rgba(236, 72, 153, 0.07), transparent 48%),
    radial-gradient(ellipse 40% 30% at 40% 0%, rgba(59, 130, 246, 0.08), transparent 55%);
  --grad-section-soft: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-page) 100%);
  --grad-card-shine: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 55%);

  /* Layout — near full-bleed, modest gutters only */
  --container: 100%;
  --container-max: 1680px;
  --container-wide-max: 1760px;
  /* Desktop: 2.5cm each side; smaller screens scale down below */
  --page-gutter: 2.5cm;
  --nav-height: 70px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --duration-fast: 160ms;
  --duration: 300ms;
  --duration-slow: 520ms;

  /* Type — Tinos for all site text; Playfair only for hero lux accents */
  --font-sans: "Tinos", Georgia, "Times New Roman", serif;
  --font-display: "Tinos", Georgia, "Times New Roman", serif;
  --font-lux: "Playfair Display", "Tinos", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + 18px);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(rgba(99, 102, 241, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  position: relative;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent flex/grid children from forcing page-wide horizontal scroll */
section,
.container,
.hero-container,
.features-grid,
.capabilities-grid,
.install-grid,
.steps-grid,
.faq-grid,
.gallery-carousel,
.gallery-track,
.feature-card,
.feature-card-visual,
.feature-card-content,
.capability-card,
.install-card,
.step-card,
.permission-item,
.install-spec {
  min-width: 0;
  max-width: 100%;
}

section {
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

svg {
  display: block;
  flex-shrink: 0;
}

::selection {
  background: rgba(99, 102, 241, 0.18);
  color: var(--text-primary);
}

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

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  box-sizing: border-box;
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.gradient-text,
.hero-gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand-pro {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 60px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b5ef0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.14);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.section-tag-light {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.032em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: var(--radius-full);
  padding: 14px 24px;
  border: 1.5px solid transparent;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    background var(--duration) ease,
    border-color var(--duration) ease,
    color var(--duration) ease,
    filter var(--duration-fast) ease;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 0.975rem;
}

.btn-xl {
  padding: 17px 30px;
  font-size: 1.02rem;
  width: auto;
  max-width: 100%;
}

.install-play-btn {
  width: auto;
  max-width: 100%;
}

.btn-primary {
  color: var(--text-inverse);
  background: var(--grad-primary-btn);
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  filter: brightness(1.03);
  color: var(--text-inverse);
}

.btn-outline {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: rgba(99, 102, 241, 0.32);
  box-shadow: var(--shadow-md);
  color: #4f46e5;
  background: #ffffff;
}

.btn-white {
  color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16), inset 0 1px 0 #fff;
}

.btn-white:hover {
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
  color: #4338ca;
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: var(--nav-height);
  max-height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  /* CRITICAL: visible so suite-nav fixed panels are not clipped */
  overflow: visible;
  transition:
    background var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) ease;
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled,
.navbar.scrolled {
  /* Solid glass without backdrop-filter — filter/backdrop creates a containing
     block that traps position:fixed suite panels inside the bar */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 var(--border-subtle), 0 8px 28px rgba(15, 23, 42, 0.04);
  border-bottom-color: var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--container-wide-max);
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
}

/* Suite nav mount — centers product menu between brand and edge */
.navbar .header-suite-nav,
#suite-nav-root.header-suite-nav {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  max-height: none;
}

/* Suite-nav mount stays in the bar; floating chrome is reparented to <body> */
#suite-nav-root,
#suite-nav-root.sn-mounted {
  overflow: visible !important;
  min-height: 2.35rem;
  max-height: none !important;
  position: relative;
  z-index: 2;
}

#suite-nav-root .sn-root {
  overflow: visible !important;
}

/*
 * Panels / overlay / drawer are appended to document.body by suite-nav.js
 * so header overflow cannot clip them.
 */
body > .sn-panel-wrap,
.sn-panel-wrap {
  z-index: 10050 !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--sn-panel-top, var(--nav-height)) !important;
}

body > .sn-panel-wrap.is-visible,
.sn-panel-wrap.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important; /* shell handles hits */
  transform: none !important;
  display: block !important;
}

body > .sn-panel-wrap.is-visible .sn-panel-shell,
.sn-panel-wrap.is-visible .sn-panel-shell {
  pointer-events: auto !important;
}

body > .sn-panel-wrap[hidden],
.sn-panel-wrap[hidden] {
  display: none !important;
}

body > .sn-overlay,
.sn-overlay {
  z-index: 10040 !important;
}

body > .sn-drawer,
.sn-drawer {
  z-index: 10060 !important;
}

/* Compact mode: hide desktop panels on body (mobile drawer is used) */
body.sn-suite-compact > .sn-panel-wrap {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Desktop open state (panels reparented under body) */
body:not(.sn-suite-compact) > .sn-panel-wrap.is-visible {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure panel top is just under our fixed navbar */
:root {
  --sn-panel-top: var(--nav-height);
}

/* When page nav links are commented out, brand + suite only */
.navbar .nav-brand {
  flex-shrink: 0;
}

body.has-suite-header {
  /* Cap chrome height so a mis-measured suite panel never inflates layout */
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

/* Section TOC — force light-theme (dark ink) on this light marketing site */
.section-toc[data-tbx-section-toc-root] {
  --toc-muted: #475569 !important;
  --toc-text: #1e293b !important;
  --toc-text-active: #0f172a !important;
  --toc-line: rgba(15, 23, 42, 0.28) !important;
  --toc-dot-bg: rgba(15, 23, 42, 0.08) !important;
  --toc-dot-border: rgba(15, 23, 42, 0.42) !important;
  --toc-dot-hover: rgba(15, 23, 42, 0.62) !important;
  --toc-cta-rule: rgba(15, 23, 42, 0.14) !important;
  --toc-accent: #6366f1 !important;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

.section-toc[data-tbx-section-toc-root] .section-toc__link {
  color: var(--toc-muted) !important;
}

.section-toc[data-tbx-section-toc-root] .section-toc__link.is-active,
.section-toc[data-tbx-section-toc-root] .section-toc__link.is-active .section-toc__label {
  color: var(--toc-text-active) !important;
}

.section-toc[data-tbx-section-toc-root] .section-toc__link.is-passed {
  color: var(--toc-text) !important;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.22);
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 9px 13px;
  border-radius: var(--radius-full);
  transition:
    color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.08);
}

.nav-link-web {
  margin-left: 8px;
  color: #4f46e5;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.14);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-link-web:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.12));
  color: #4338ca;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  z-index: 2;
  transition: background var(--duration-fast) ease;
}

.nav-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform var(--duration) var(--ease-out),
    opacity var(--duration-fast) ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* Stable top offset from fixed bar only — do not use inflated --site-chrome-h */
  padding: calc(var(--nav-height) + 1.25rem) 0 clamp(48px, 6vw, 80px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  max-width: 100%;
  background:
    var(--grad-hero),
    linear-gradient(180deg, #fbfcff 0%, var(--bg-page) 72%, var(--bg-page) 100%);
  isolation: isolate;
}

/* Soft collage-grid wash (lightweight, pure CSS) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  will-change: transform;
  animation: float-shape 20s ease-in-out infinite;
}

.hero-shape-1 {
  width: min(460px, 55vw);
  height: min(460px, 55vw);
  top: -10%;
  right: 4%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
}

/* Soft champagne-gold wash — top left (premium warmth) */
.hero-shape-2 {
  width: min(420px, 52vw);
  height: min(420px, 52vw);
  top: -12%;
  left: -8%;
  bottom: auto;
  background: radial-gradient(
    circle,
    rgba(252, 211, 77, 0.28) 0%,
    rgba(251, 191, 36, 0.14) 35%,
    rgba(245, 158, 11, 0.04) 58%,
    transparent 72%
  );
  opacity: 0.65;
  filter: blur(68px);
  animation-delay: -7s;
}

.hero-shape-3 {
  width: min(300px, 40vw);
  height: min(300px, 40vw);
  top: 42%;
  right: -3%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22), transparent 70%);
  animation-delay: -13s;
}

/* Keep a quiet cyan lift lower-left so the gold doesn’t feel alone */
.hero::after {
  content: "";
  position: absolute;
  width: min(340px, 42vw);
  height: min(340px, 42vw);
  bottom: 4%;
  left: -4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.14), transparent 70%);
  filter: blur(56px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

@keyframes float-shape {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(18px, -22px, 0) scale(1.04);
  }
  66% {
    transform: translate3d(-14px, 10px, 0) scale(0.97);
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: 100%;
  max-width: var(--container-wide-max);
  min-width: 0;
  box-sizing: border-box;
}

.hero-content {
  max-width: min(640px, 100%);
  min-width: 0;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.06);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.2vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

/* Luxurious accent words — Playfair Display */
.hero-word-stunning {
  font-family: var(--font-lux);
  font-weight: 700;
  font-style: italic;
  font-size: 1.06em;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #d97706 0%, #f59e0b 42%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-word-seconds {
  font-family: var(--font-lux);
  font-weight: 700;
  font-style: italic;
  font-size: 1.06em;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #7c3aed 0%, #a855f7 48%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: min(540px, 100%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

/* ----- Hero stats: separate one-line cute pills (all breakpoints) ----- */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: min(640px, 100%);
  min-width: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
}

.stat-item {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  column-gap: 4px;
  row-gap: 0;
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  padding: 9px 14px;
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.06),
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration-fast) ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(99, 102, 241, 0.1),
    0 2px 6px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 #fff;
  border-color: rgba(99, 102, 241, 0.16);
}

/* Soft brand tints per pill (child indices skip dividers: 1, 3, 5) */
.hero-stats .stat-item:nth-child(1) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.9));
  border-color: rgba(59, 130, 246, 0.14);
}

.hero-stats .stat-item:nth-child(3) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 243, 255, 0.9));
  border-color: rgba(139, 92, 246, 0.14);
}

.hero-stats .stat-item:nth-child(5) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 251, 235, 0.92));
  border-color: rgba(245, 158, 11, 0.16);
}

/* Number + suffix + label stay on one line */
.stat-number {
  display: inline;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-suffix {
  display: inline;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  white-space: pre;
}

.stat-label {
  flex: 0 0 auto;
  width: auto;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 0;
  margin-left: 2px;
  white-space: nowrap;
}

.stat-divider {
  display: none;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(340px, 48vw, 480px);
}

.hero-phone-wrapper {
  position: relative;
  z-index: 2;
  max-width: min(560px, 100%);
  width: 100%;
}

.hero-phone {
  width: 100%;
  height: auto;
  border-radius: 28px;
  filter: drop-shadow(var(--shadow-phone));
  animation: float-phone 7s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes float-phone {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-glow {
  position: absolute;
  inset: 12% 8%;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(99, 102, 241, 0.32), transparent 62%),
    radial-gradient(ellipse at 30% 40%, rgba(6, 182, 212, 0.18), transparent 50%);
  filter: blur(36px);
  z-index: -1;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: var(--shadow-md), inset 0 1px 0 #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  animation: float-card 5.5s ease-in-out infinite;
  white-space: nowrap;
}

.floating-card svg {
  width: 16px;
  height: 16px;
  color: var(--brand-indigo);
  stroke-width: 2.2;
}

.floating-card-1 {
  top: 10%;
  left: max(0px, calc(4% - 8px));
  animation-delay: 0s;
}

.floating-card-2 {
  top: 44%;
  right: max(0px, calc(2% - 4px));
  animation-delay: -1.6s;
}

.floating-card-2 svg {
  color: var(--brand-magenta);
}

.floating-card-3 {
  bottom: 12%;
  left: 10%;
  animation-delay: -3.2s;
}

.floating-card-3 svg {
  color: var(--brand-cyan);
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.45;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--text-muted);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-wheel {
  width: 2.5px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(9px);
  }
}

/* --------------------------------------------------------------------------
   8. Trust bar
   -------------------------------------------------------------------------- */
.trust-bar {
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.72);
  border-block: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 36px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: #6366f1;
  opacity: 0.9;
  padding: 3px;
  box-sizing: content-box;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   9. Features — full images + premium copy
   -------------------------------------------------------------------------- */
.features {
  padding: clamp(72px, 10vw, 110px) 0;
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) ease;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.16);
}

.feature-card-large {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.feature-card-large .feature-card-visual {
  min-height: 100%;
  height: 100%;
  padding: 0;
}

.feature-card:not(.feature-card-large):not(.feature-card-compact) {
  grid-column: span 6;
  min-height: 100%;
}

.feature-card-compact {
  grid-column: span 4;
}

/* Full-width media — image is the visual, no padded bg “stage” */
.feature-card-visual {
  display: block;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  background: transparent;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  line-height: 0; /* kill inline-img gap */
}

.feature-card-visual img,
.lazy-media {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.feature-card-visual img.is-loaded,
.lazy-media.is-loaded {
  opacity: 1;
  transform: scale(1);
  will-change: auto;
}

.feature-card:hover .feature-card-visual img.is-loaded {
  transform: scale(1.02);
}

.feature-card-visual-small {
  padding: 0;
  flex: 0 0 auto;
}

/* Copy block */
.feature-card-content {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  position: relative;
  z-index: 0;
}

.feature-card-large .feature-card-content {
  justify-content: center;
  padding: clamp(32px, 4.5vw, 52px) clamp(28px, 4vw, 48px);
  gap: 14px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--brand-blue);
}

.feature-icon-purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--brand-violet);
}

.feature-icon-green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-green);
}

.feature-icon-orange {
  background: rgba(245, 158, 11, 0.12);
  color: var(--brand-amber);
}

.feature-icon-rose {
  background: rgba(244, 63, 94, 0.12);
  color: var(--brand-rose);
}

.feature-icon-teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--brand-teal);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--text-primary);
}

.feature-card-large .feature-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.feature-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.feature-card-large .feature-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 100%;
}

.feature-card-compact .feature-title {
  font-size: 1.15rem;
}

.feature-card-compact .feature-description {
  font-size: 0.95rem;
  max-width: 100%;
}

/* Soft placeholder while lazy media loads (not a decorative frame) */
.feature-card-visual:has(img:not(.is-loaded)) {
  background: var(--bg-muted);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card-visual img,
  .lazy-media {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   10. How it works — hanging numbers + premium connectors
   -------------------------------------------------------------------------- */
.how-it-works {
  padding: clamp(72px, 10vw, 110px) 0;
  background: var(--grad-section-soft);
  position: relative;
  /* Override global section overflow-x:clip (forces y-clip and cuts badges) */
  overflow: visible;
}

.how-it-works::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(139, 92, 246, 0.06), transparent 60%);
}

.steps-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
  padding-top: 32px; /* room for hanging 1/2/3 discs above cards */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.how-it-works .container {
  overflow: visible;
}

.step-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  /* Must stay visible so hanging 1/2/3 discs are not clipped */
  overflow: visible;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 26px 30px;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.04);
  position: relative;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.14);
}

/* Hanging number badge — sits on top edge, “holds” the card */
.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  opacity: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  border: 3px solid #fff;
  box-shadow:
    0 8px 18px rgba(99, 102, 241, 0.35),
    0 2px 6px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  line-height: 1;
  overflow: visible;
  pointer-events: none;
}

.step-number span {
  display: block;
  line-height: 1;
  transform: translateY(0.5px);
}

/* Small “hook” stem under badge into the card */
.step-number::after {
  content: "";
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  width: 3px;
  height: 10px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #8b5cf6 0%, rgba(139, 92, 246, 0.35) 100%);
  border-radius: 0 0 2px 2px;
  pointer-events: none;
}

.step-card:nth-child(1) .step-number {
  background: linear-gradient(145deg, #3b82f6 0%, #6366f1 100%);
  box-shadow:
    0 8px 18px rgba(59, 130, 246, 0.32),
    0 2px 6px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.step-card:nth-child(3) .step-number {
  background: linear-gradient(145deg, #8b5cf6 0%, #a855f7 55%, #d946ef 100%);
}

.step-card:nth-child(5) .step-number {
  background: linear-gradient(145deg, #06b6d4 0%, #6366f1 100%);
  box-shadow:
    0 8px 18px rgba(6, 182, 212, 0.28),
    0 2px 6px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.step-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--grad-brand-soft);
  border: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.step-icon {
  width: 24px;
  height: 24px;
  color: #5b5ef0;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-description {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* Premium connector: always-visible gradient + L→R flash */
.step-connector {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(48px, 6vw, 88px);
  min-width: 48px;
  height: 24px;
  align-self: center;
  padding: 0;
  margin: 0 2px;
  overflow: visible;
}

.step-connector-track {
  position: absolute;
  left: 0;
  right: 10px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.35) 0%,
    rgba(99, 102, 241, 0.55) 35%,
    rgba(168, 85, 247, 0.55) 70%,
    rgba(236, 72, 153, 0.4) 100%
  );
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.step-connector-flash {
  position: absolute;
  left: 0;
  top: 50%;
  width: 36%;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.95) 50%,
    #fbbf24 70%,
    rgba(167, 139, 250, 0.9) 100%
  );
  box-shadow:
    0 0 10px rgba(251, 191, 36, 0.65),
    0 0 18px rgba(99, 102, 241, 0.45);
  animation: connector-flash 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.step-connector-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #a855f7;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.55));
}

/* Second connector slightly delayed flash for rhythm */
.steps-grid > .step-connector:nth-of-type(4) .step-connector-flash,
.steps-grid > .step-connector:last-of-type .step-connector-flash {
  animation-delay: 0.55s;
}

@keyframes connector-flash {
  0% {
    left: -8%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    left: 72%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-connector-flash {
    animation: none;
    left: 40%;
    opacity: 0.55;
  }
}

/* --------------------------------------------------------------------------
   11. Capabilities
   -------------------------------------------------------------------------- */
.capabilities {
  padding: clamp(72px, 10vw, 110px) 0;
  background: transparent;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.capability-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.capability-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--duration) ease;
}

.capability-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.14);
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-icon {
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.1);
  color: #6366f1;
  flex-shrink: 0;
}

.capability-icon svg {
  width: 22px;
  height: 22px;
}

.capability-icon-violet {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.14), rgba(99, 102, 241, 0.08));
  border-color: rgba(139, 92, 246, 0.16);
  color: #8b5cf6;
}

.capability-icon-magenta {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.12), rgba(168, 85, 247, 0.08));
  border-color: rgba(236, 72, 153, 0.14);
  color: #db2777;
}

.capability-icon-amber {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(251, 191, 36, 0.08));
  border-color: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.capability-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.capability-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.68;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* Highlight the three signature capabilities */
#cap-templates,
#cap-bg-remove,
#cap-custom {
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border-color: rgba(99, 102, 241, 0.1);
}

#cap-templates:hover,
#cap-bg-remove:hover,
#cap-custom:hover {
  border-color: rgba(99, 102, 241, 0.22);
}

/* --------------------------------------------------------------------------
   12. Install & permissions
   -------------------------------------------------------------------------- */
.install {
  padding: clamp(72px, 10vw, 110px) 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 45%, var(--bg-page) 100%);
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.install-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.install-card-wide {
  grid-column: 1 / -1;
}

.install-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.install-card-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 70ch;
}

.install-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.install-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.install-list-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  margin-top: 2px;
}

.install-list-icon svg {
  width: 14px;
  height: 14px;
}

.install-list strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.install-list p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.install-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.install-spec {
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.install-spec-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.install-spec-value {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.install-spec-free {
  color: var(--brand-green);
}

.install-play-btn {
  width: auto;
  display: inline-flex;
}

.install-card .install-play-btn {
  margin-top: 4px;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.permission-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
}

.permission-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08));
  color: #6366f1;
}

.permission-icon svg {
  width: 18px;
  height: 18px;
}

.permission-item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.permission-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  min-width: 0;
}

.permission-item > div:last-child {
  min-width: 0;
  flex: 1 1 auto;
}

/* --------------------------------------------------------------------------
   12b. Design gallery — single-row horizontal scroller
   -------------------------------------------------------------------------- */
.design-gallery {
  padding: clamp(64px, 9vw, 100px) 0;
  background: transparent;
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden; /* page stays still; only track scrolls */
  box-sizing: border-box;
}

.gallery-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 18px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 6px 4px 14px;
  scrollbar-width: none;
  cursor: grab;
  box-sizing: border-box;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.gallery-item {
  flex: 0 0 auto;
  margin: 0;
  width: clamp(200px, 22vw, 280px);
  max-width: min(280px, 78vw);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  scroll-snap-align: start;
  box-sizing: border-box;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.14);
}

.gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-muted);
}

.gallery-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    110deg,
    #e8ecf4 0%,
    #e8ecf4 35%,
    #f6f8fc 50%,
    #e8ecf4 65%,
    #e8ecf4 100%
  );
  background-size: 200% 100%;
  animation: gallery-shimmer 1.35s ease-in-out infinite;
  transition: opacity 0.35s ease;
}

.gallery-media.is-ready .gallery-skeleton {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.gallery-media.is-missing {
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.06), rgba(6, 182, 212, 0.05)),
    var(--bg-muted);
}

.gallery-media.is-missing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.04), transparent 60%);
  pointer-events: none;
}

.gallery-img.is-missing {
  opacity: 0 !important;
}

.gallery-img,
.gallery-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  max-height: none;
  min-height: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.55s var(--ease-out);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-img.is-loaded,
.gallery-media img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

/* Icon-only end controls (desktop / large screens) */
.gallery-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.95);
  color: #4f46e5;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition:
    background var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    transform var(--duration-fast) ease,
    opacity var(--duration-fast) ease;
  cursor: pointer;
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
}

.gallery-nav:hover:not(:disabled) {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: scale(1.04);
}

.gallery-nav:active:not(:disabled) {
  transform: scale(0.97);
}

.gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.gallery-nav-prev {
  margin-right: 8px;
}

.gallery-nav-next {
  margin-left: 8px;
}

@keyframes gallery-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (min-width: 769px) {
  .gallery-nav {
    display: inline-flex;
  }

  .gallery-carousel {
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .gallery-item {
    width: clamp(160px, 58vw, 240px);
  }

  .gallery-track {
    padding-left: 2px;
    padding-right: 2px;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    width: min(72vw, 220px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-skeleton {
    animation: none;
  }

  .gallery-track {
    scroll-behavior: auto;
  }

  .gallery-img,
  .gallery-media img {
    opacity: 1;
    transform: none;
  }
}

/* Legacy web CTA (unused if removed from HTML) */
.web-cta {
  padding: 28px 0 clamp(72px, 10vw, 100px);
}

.web-cta-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  background: var(--grad-web-cta);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 52px) clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.web-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 52%),
    radial-gradient(ellipse 40% 55% at 0% 100%, rgba(34, 211, 238, 0.22), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  pointer-events: none;
}

.web-cta-content {
  position: relative;
  z-index: 1;
  color: var(--text-inverse);
}

.web-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 10px 0 12px;
  color: #ffffff;
}

.web-cta-description {
  font-size: 1.03rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 26px;
  max-width: 440px;
}

.web-cta-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.web-cta-browser {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  max-width: 300px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.browser-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.browser-dots span:nth-child(1) {
  background: #f87171;
}

.browser-dots span:nth-child(2) {
  background: #fbbf24;
}

.browser-dots span:nth-child(3) {
  background: #34d399;
}

.browser-url {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 23, 42, 0.22);
  padding: 10px 12px;
  border-radius: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   13. Download
   -------------------------------------------------------------------------- */
.download {
  padding: clamp(64px, 8vw, 96px) 0 clamp(72px, 10vw, 110px);
  background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 40%, var(--bg-soft) 100%);
}

.download-card {
  max-width: min(720px, 100%);
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-brand);
}

.download-app-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.download-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.download-app-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.download-app-dev {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 2px 0 8px;
}

.download-app-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #f59e0b;
  font-size: 0.88rem;
  letter-spacing: 1px;
  line-height: 1;
}

.rating-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.download-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 12px;
  background: linear-gradient(180deg, var(--bg-muted), rgba(238, 241, 248, 0.6));
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.download-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  min-width: 0;
}

.detail-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.detail-value-free {
  color: var(--brand-green);
}

.download-btn {
  text-align: center;
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq {
  padding: clamp(72px, 10vw, 110px) 0;
  background: transparent;
}

.faq-grid {
  max-width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    border-color var(--duration) ease,
    box-shadow var(--duration) ease;
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 17px 50px 17px 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color var(--duration-fast) ease;
  user-select: none;
  letter-spacing: -0.01em;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition:
    transform var(--duration) var(--ease-out),
    border-color var(--duration-fast) ease;
}

.faq-item[open] .faq-question::after,
.faq-item.is-open .faq-question::after {
  transform: translateY(-30%) rotate(225deg);
  border-color: #6366f1;
}

.faq-item.is-open {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-sm);
}

.faq-question:hover {
  color: #4f46e5;
}

/* Only height animates — padding lives on inner content (no mid-close jerk) */
.faq-answer {
  overflow: hidden;
  height: 0;
  padding: 0;
  margin: 0;
  transition: height 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(6, 182, 212, 0.08), transparent 50%),
    #0a0f1c;
  color: rgba(255, 255, 255, 0.78);
  padding: 68px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 36px 28px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
}

.footer-links-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.42);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.62);
}

.footer-copyright a:hover {
  color: #ffffff;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.48);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-dot {
  color: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   16. Legal pages (privacy / terms)
   -------------------------------------------------------------------------- */
.legal-page {
  padding: calc(var(--nav-height) + 40px) 0 80px;
  background: transparent;
  min-height: 70vh;
}

.legal-container {
  width: 100%;
  max-width: min(920px, 100%);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.legal-header {
  margin-bottom: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
  transition: color var(--duration-fast) ease;
}

.legal-back svg {
  width: 16px;
  height: 16px;
}

.legal-back:hover {
  color: #4f46e5;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}

.legal-app-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.legal-app-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.legal-app-by {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.legal-content h2:first-of-type {
  margin-top: 8px;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 11px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin-bottom: 12px;
}

.legal-content a {
  color: #4f46e5;
  font-weight: 500;
  text-decoration: none;
}

.legal-content a:hover {
  color: #4338ca;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   17. Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.reveal-delay-1 {
  transition-delay: 70ms;
}

.reveal-delay-2 {
  transition-delay: 140ms;
}

.reveal-delay-3 {
  transition-delay: 210ms;
}

body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  :root {
    --container-max: 100%;
    --container-wide-max: 100%;
    --page-gutter: 1.5cm;
  }
}

@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .feature-card-compact {
    grid-column: span 6;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .permissions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Under 961px: copy/CTAs/stats first, phone mockup below */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-content {
    max-width: 640px;
    margin-inline: auto;
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 0;
  }

  .hero-subtitle {
    margin-inline: auto;
    font-size: 1.05rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-actions .btn {
    width: auto;
    flex: 0 1 auto;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-inline: auto;
    max-width: 100%;
  }

  .stat-item {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    column-gap: 4px;
    row-gap: 0;
    min-width: 0;
    width: auto;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .stat-number {
    font-size: 1rem;
    line-height: 1;
  }

  .stat-suffix {
    font-size: 0.9rem;
    line-height: 1;
  }

  .stat-label {
    flex: 0 0 auto;
    width: auto;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    line-height: 1;
    margin-top: 0;
    white-space: nowrap;
  }

  .hero-phone-wrapper {
    max-width: min(320px, 78vw);
    margin-inline: auto;
  }

  .hero-visual {
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
  }

  .floating-card {
    display: flex;
    gap: 7px;
    padding: 8px 11px;
    font-size: 0.74rem;
    border-radius: 12px;
    z-index: 4;
  }

  .floating-card svg {
    width: 14px;
    height: 14px;
  }

  .floating-card-1 {
    top: 8%;
    left: 0;
  }

  .floating-card-2 {
    top: 40%;
    right: 0;
  }

  .floating-card-3 {
    bottom: 10%;
    left: 2%;
  }

  .feature-card-large {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card-large .feature-card-visual {
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .feature-card-large .feature-card-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .web-cta-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .web-cta-visual {
    justify-content: flex-start;
  }

  .web-cta-browser {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 28px;
    padding-top: 18px;
    width: 100%;
    max-width: 100%;
  }

  .step-card {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 32px 20px 24px;
    box-sizing: border-box;
    overflow: visible;
  }

  .step-connector {
    max-width: 100%;
  }

  .how-it-works,
  .how-it-works .container,
  .steps-grid {
    overflow: visible;
  }

  /* Vertical premium connector between stacked cards */
  .step-connector {
    display: flex;
    width: 24px;
    min-width: 24px;
    height: 36px;
    margin: -8px auto;
    align-self: center;
  }

  .step-connector-track {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 10px;
    width: 3px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      rgba(59, 130, 246, 0.4) 0%,
      rgba(99, 102, 241, 0.55) 50%,
      rgba(168, 85, 247, 0.5) 100%
    );
  }

  .step-connector-flash {
    left: 50%;
    top: -10%;
    width: 5px;
    height: 40%;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.9) 40%,
      #fbbf24 70%,
      rgba(167, 139, 250, 0.9) 100%
    );
    animation-name: connector-flash-vertical;
  }

  .step-connector-arrow {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid #a855f7;
    border-bottom: none;
  }

  @keyframes connector-flash-vertical {
    0% {
      top: -10%;
      opacity: 0;
    }
    12% {
      opacity: 1;
    }
    70% {
      opacity: 1;
    }
    100% {
      top: 55%;
      opacity: 0;
    }
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 58px;
    --page-gutter: 16px;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 18px;
    line-height: 1.65;
    background-attachment: scroll;
    background-size: 22px 22px;
    overflow-x: hidden;
  }

  .nav-brand-text {
    font-size: 1.05rem;
  }

  /* Suite-nav owns mobile menu (compact); page hamburger is commented out in HTML */
  .navbar .header-suite-nav,
  #suite-nav-root.header-suite-nav {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: none;
  }

  /* —— Hero: tighter, readable —— */
  .hero {
    padding: calc(var(--nav-height) + 16px) 0 36px;
    min-height: auto;
  }

  .hero-badge {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7.2vw, 2.45rem);
    line-height: 1.12;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 1.12rem;
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: 36em;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
    flex: 0 1 auto;
    min-height: 44px;
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  .hero-actions .btn-icon {
    width: 17px;
    height: 17px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .hero-stats {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    padding: 8px 12px;
  }

  .stat-number {
    font-size: 0.98rem;
  }

  .stat-suffix {
    font-size: 0.88rem;
  }

  .stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
  }

  .hero-phone-wrapper {
    max-width: min(280px, 72vw);
  }

  /* Floating chips visible on mobile — compact, inset so they don’t overflow */
  .hero-visual {
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    padding-inline: 4px;
  }

  .floating-card {
    display: flex;
    gap: 6px;
    padding: 7px 10px;
    font-size: 0.72rem;
    border-radius: 12px;
    max-width: calc(50% - 8px);
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  }

  .floating-card svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .floating-card-1 {
    top: 6%;
    left: 0;
    right: auto;
  }

  .floating-card-2 {
    top: 42%;
    right: 0;
    left: auto;
  }

  .floating-card-3 {
    bottom: 8%;
    left: 0;
    right: auto;
  }

  /* —— Sections: less scroll height —— */
  .features,
  .how-it-works,
  .capabilities,
  .install,
  .design-gallery,
  .faq,
  .download {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-tag {
    font-size: 0.72rem;
    padding: 6px 12px;
    margin-bottom: 12px;
  }

  .section-title {
    font-size: clamp(1.55rem, 6.2vw, 2rem);
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 1.08rem;
    line-height: 1.65;
  }

  .trust-bar {
    padding: 16px 0;
  }

  .trust-items {
    gap: 12px 18px;
    justify-content: center;
  }

  .trust-item {
    font-size: 0.94rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card-large,
  .feature-card:not(.feature-card-large):not(.feature-card-compact),
  .feature-card-compact {
    grid-column: span 1;
  }

  .feature-card-content,
  .feature-card-large .feature-card-content {
    padding: 18px 16px 20px;
    gap: 10px;
  }

  .feature-title,
  .feature-card-large .feature-title {
    font-size: 1.26rem;
  }

  .feature-description,
  .feature-card-large .feature-description {
    font-size: 1.06rem;
    line-height: 1.65;
    max-width: none;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }

  .step-title {
    font-size: 1.18rem;
  }

  .step-description {
    font-size: 1.06rem;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .capability-card {
    padding: 18px 16px;
  }

  .capability-card h3 {
    font-size: 1.14rem;
  }

  .capability-card p {
    font-size: 1.04rem;
  }

  .install-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .install-card {
    padding: 18px 16px;
  }

  .install-card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .install-card-lead {
    font-size: 1.04rem;
    margin-bottom: 16px;
  }

  .install-list strong {
    font-size: 1.06rem;
  }

  .install-list p {
    font-size: 1rem;
  }

  .install-specs {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .install-spec-value {
    font-size: 0.96rem;
  }

  .install-play-btn {
    width: auto;
    max-width: 100%;
    padding: 13px 20px;
    font-size: 1rem;
  }

  .permissions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .permission-item {
    padding: 12px;
  }

  .permission-item h4 {
    font-size: 1.06rem;
  }

  .permission-item p {
    font-size: 0.98rem;
  }

  .design-gallery {
    padding: 40px 0 48px;
  }

  .gallery-item {
    width: clamp(168px, 56vw, 220px);
  }

  .faq-grid {
    gap: 8px;
  }

  .faq-question {
    font-size: 1.08rem;
    padding: 15px 44px 15px 16px;
  }

  .faq-answer-inner {
    padding: 0 16px 16px;
  }

  .faq-answer p {
    font-size: 1.04rem;
  }

  .footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer-description {
    font-size: 0.98rem;
  }

  .footer-links a {
    font-size: 0.98rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .btn {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 1rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .btn-lg {
    padding: 12px 18px;
    font-size: 1rem;
  }

  .btn-xl {
    width: auto;
    padding: 13px 20px;
    font-size: 1.04rem;
  }

  .legal-page {
    padding: calc(var(--nav-height) + 28px) 0 48px;
  }

  .legal-content {
    padding: 22px 16px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 1.06rem;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 14px;
    --nav-height: 56px;
  }

  body {
    font-size: 17.5px;
  }

  .hero {
    padding: calc(var(--nav-height) + 12px) 0 28px;
  }

  .hero-container {
    gap: 20px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }

  .hero-subtitle {
    font-size: 1.08rem;
    margin-bottom: 16px;
  }

  /* Side-by-side when both fit; wrap cleanly if needed — never forced full-bleed */
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .hero-actions .btn {
    width: auto;
    flex: 0 1 auto;
    padding: 11px 14px;
    font-size: 0.96rem;
    gap: 8px;
  }

  .hero-stats {
    gap: 6px;
  }

  .stat-item {
    padding: 7px 10px;
  }

  .stat-number {
    font-size: 0.98rem;
  }

  .stat-suffix {
    font-size: 0.88rem;
  }

  .stat-label {
    font-size: 0.74rem;
  }

  .hero-phone-wrapper {
    max-width: min(250px, 70vw);
  }

  .floating-card {
    gap: 5px;
    padding: 6px 9px;
    font-size: 0.68rem;
    border-radius: 10px;
  }

  .floating-card svg {
    width: 12px;
    height: 12px;
  }

  .floating-card-1 {
    top: 4%;
    left: 0;
  }

  .floating-card-2 {
    top: 38%;
    right: 0;
  }

  .floating-card-3 {
    bottom: 6%;
    left: 0;
  }

  .features,
  .how-it-works,
  .capabilities,
  .install,
  .design-gallery,
  .faq {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 22px;
  }

  .section-title {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .section-subtitle {
    font-size: 1.04rem;
  }

  .trust-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .trust-item {
    font-size: 0.96rem;
  }

  .feature-card-content,
  .feature-card-large .feature-card-content {
    padding: 16px 14px 18px;
  }

  .install-specs {
    grid-template-columns: 1fr 1fr;
  }

  .install-play-btn {
    width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-item {
    width: min(68vw, 200px);
  }
}

@media (max-width: 360px) {
  .hero-actions .btn {
    padding: 11px 12px;
    font-size: 0.92rem;
  }

  .stat-item {
    padding: 6px 8px;
  }

  .stat-number {
    font-size: 0.94rem;
  }

  .stat-suffix {
    font-size: 0.84rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .install-specs {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-phone,
  .floating-card,
  .hero-shape {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  .navbar,
  .hero-scroll-indicator,
  .nav-toggle,
  .hero-bg-shapes {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .features,
  .how-it-works,
  .capabilities,
  .download,
  .faq {
    padding: 24px 0;
  }

  a {
    text-decoration: underline;
  }
}
