/* ============================================================
   CA Cloud Desk — Shared Design System (live-site aligned)
   Primary teal matched to caclouddesk.com header ~#38A9C5
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand — primary #4CB4D4 */
  --ccd-primary: #4CB4D4;
  --ccd-teal: #4CB4D4;
  --ccd-teal-bright: #5BC0DC;
  --ccd-teal-deep: #2A8FA8;
  --ccd-teal-soft: #7ACDE0;
  --ccd-cyan: #4CB4D4;
  --ccd-cyan-deep: #2A8FA8;
  --ccd-cyan-mist: rgba(76, 180, 212, 0.12);
  --ccd-cyan-glow: rgba(76, 180, 212, 0.22);
  --ccd-green: #7AC943;
  --ccd-green-deep: #5AA82E;

  --ccd-navy: #0B1C2A;
  --ccd-navy-mid: #132536;
  --ccd-charcoal: #1F3142;
  --ccd-text: #1A2B3C;
  --ccd-muted: #5F7184;
  --ccd-soft: #8A97A5;
  --text-muted: #5F7184;

  --ccd-ice: #F4FAFC;
  --ccd-ice-2: #E7F4F8;
  --ccd-sky: #D2ECF4;
  --ccd-white: #FFFFFF;
  --ccd-grey-50: #F7F9FB;
  --ccd-grey-100: #EEF2F5;
  --ccd-grey-200: #DCE4EA;
  --ccd-grey-300: #C2CED8;
  --ccd-grey-600: #3E5164;
  --ccd-grey-700: #2A3B4D;

  --ccd-success: #1F8A6E;
  --ccd-success-bg: #E8F7F1;
  --ccd-warning: #B07A1A;
  --ccd-warning-bg: #FBF3E2;
  --ccd-danger: #C0392B;
  --ccd-danger-bg: #F9EAEA;

  --surface: var(--ccd-white);
  --surface-elevated: rgba(255, 255, 255, 0.78);
  --text: var(--ccd-text);
  --text-secondary: var(--ccd-muted);
  --border: var(--ccd-grey-200);
  --border-soft: rgba(11, 28, 42, 0.08);
  --border-strong: rgba(76, 180, 212, 0.35);

  --grad-brand: linear-gradient(135deg, #0B1C2A 0%, #1A4A5C 45%, #4CB4D4 100%);
  --grad-teal: linear-gradient(135deg, #2A8FA8 0%, #4CB4D4 55%, #7ACDE0 100%);
  --grad-hero: linear-gradient(165deg, #FFFFFF 0%, #F4FAFC 50%, #EAF5F9 100%);
  --grad-cta: linear-gradient(125deg, #0B1C2A 0%, #163447 42%, #1F5A6E 78%, #2A8FA8 100%);
  --grad-wave: linear-gradient(135deg, rgba(76,180,212,0.1), rgba(122,201,67,0.06));
  --grad-glass: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(255,255,255,0.55));

  --shadow-xs: 0 1px 2px rgba(11, 28, 42, 0.04);
  --shadow-sm: 0 4px 16px rgba(11, 28, 42, 0.06);
  --shadow-md: 0 12px 36px rgba(11, 28, 42, 0.09);
  --shadow-lg: 0 24px 56px rgba(11, 28, 42, 0.14);
  --shadow-float: 0 20px 50px rgba(76, 180, 212, 0.22);
  --shadow-teal: 0 10px 28px rgba(76, 180, 212, 0.38);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1160px;
  --header-h: 68px;
  --section-y: clamp(2.75rem, 6vw, 5.25rem);
  --section-y-tight: clamp(2rem, 4vw, 3.25rem);
  --gutter: clamp(1.25rem, 4.5vw, 2rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur: 420ms;
  --dur-slow: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Page content only — do not restyle Appway theme header/footer/nav */
.page-ua #main,
.page-bc #main {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.page-ua,
.page-bc {
  overflow-x: hidden;
}

/* Scope resets to landing content so theme logo/menu stay normal size */
.page-ua #main img,
.page-ua #main svg,
.page-bc #main img,
.page-bc #main svg {
  display: block;
  max-width: 100%;
}
/* Do NOT force height:auto on all images — it overrides logo/phone sizing */
.page-ua #main img:not(.ua-brand-logo):not(.bc-logo):not(.bc-product__img):not(.trust-platform__img),
.page-bc #main img:not(.ua-brand-logo):not(.bc-logo):not(.bc-product__img):not(.trust-platform__img) {
  height: auto;
}

/* Brand marks — keep compact even against theme/global img rules */
.page-ua #main .ua-brand-logo {
  display: none !important; /* removed from hero; hide if old markup remains */
}
.page-bc #main .bc-logo {
  height: 48px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain;
}
.page-bc #main .bc-logo--lg {
  height: 56px !important;
  max-width: 280px !important;
}
.page-bc #main .bc-logo--on-dark {
  height: 52px !important;
}
.page-ua #main ul,
.page-ua #main ol,
.page-bc #main ul,
.page-bc #main ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-ua #main h1,
.page-ua #main h2,
.page-ua #main h3,
.page-ua #main h4,
.page-ua #main p,
.page-bc #main h1,
.page-bc #main h2,
.page-bc #main h3,
.page-bc #main h4,
.page-bc #main p {
  margin: 0;
}
.page-ua #main a,
.page-bc #main a {
  color: inherit;
  text-decoration: none;
}
.page-ua #main button,
.page-ua #main input,
.page-ua #main select,
.page-bc #main button,
.page-bc #main input,
.page-bc #main select {
  font: inherit;
}

/* Explicitly protect theme chrome if any shared rule leaks */
.main-header img,
.main-header svg,
.main-footer img,
.nav-logo img,
.sticky-header img,
.mobile-menu img {
  max-width: none;
  width: auto;
  height: auto;
  display: inline-block;
}

:focus-visible {
  outline: 2px solid var(--ccd-teal);
  outline-offset: 3px;
}
::selection {
  background: rgba(56, 169, 197, 0.22);
  color: var(--ccd-navy);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--ccd-navy);
  color: white;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* Typography — premium hierarchy */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ccd-teal-deep);
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(76, 180, 212, 0.1);
  border: 1px solid rgba(76, 180, 212, 0.22);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ccd-navy);
}
.display--xl {
  font-size: clamp(1.85rem, 4vw, 3.15rem);
}
.display--lg {
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
}
.display--md {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.lead {
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 34rem;
}

.text-accent { color: var(--ccd-teal-deep); }
.text-gradient {
  background: var(--grad-teal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--tight { padding-block: var(--section-y-tight); }
.section--ice { background: var(--ccd-ice); }
.section--sky { background: linear-gradient(180deg, var(--ccd-ice) 0%, var(--ccd-white) 100%); }
.section--navy {
  background:
    radial-gradient(ellipse at 85% 10%, rgba(76,180,212,0.18), transparent 45%),
    linear-gradient(165deg, #0B1C2A 0%, #12324A 55%, #0E2838 100%);
  color: #fff;
}
.section--soft {
  background:
    radial-gradient(ellipse at 10% 20%, rgba(56,169,197,0.07), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(122,201,67,0.05), transparent 40%),
    var(--ccd-white);
}

/* Soft flowing wave atmosphere (brand teal/ice) */
.atmosphere-waves {
  position: absolute;
  inset: auto 0 0 0;
  height: min(58%, 420px);
  background:
    url('../images/soft-waves.svg') center bottom / cover no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}
.section--waves {
  overflow: hidden;
}
.section--waves::before {
  content: '';
  position: absolute;
  inset: auto 0 -10% 0;
  height: 55%;
  background: url('../images/soft-waves.svg') center bottom / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.section--waves > .container {
  position: relative;
  z-index: 1;
}

/* Trusted Platform — live-site style */
.trust-platform {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.trust-platform__waves {
  position: absolute;
  inset: auto 0 -5% 0;
  height: 48%;
  background: url('../images/soft-waves.svg') center bottom / cover no-repeat;
  opacity: 0.7;
  pointer-events: none;
}
.trust-platform__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.trust-platform__copy .display {
  margin-bottom: 1rem;
  color: #111;
}
.trust-platform__copy p {
  margin: 0 0 0.85rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #3A4652;
}
.trust-stats {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  margin-top: 1.75rem;
}
.trust-stat__value {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #111;
  margin: 0 0 0.35rem;
}
.trust-stat__plus {
  color: #38A9C5;
  font-size: 0.55em;
  font-weight: 800;
  margin-right: 0.08em;
  margin-top: 0.15em;
}
.trust-stat__label {
  margin: 0;
  font-size: 0.95rem;
  color: #6B7A88;
  font-weight: 500;
}
.trust-platform__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}
.trust-rings {
  position: absolute;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 42%, rgba(56,169,197,0.08) 43%, rgba(56,169,197,0.08) 44%, transparent 45%),
    radial-gradient(circle, transparent 56%, rgba(56,169,197,0.1) 57%, rgba(56,169,197,0.1) 58%, transparent 59%),
    radial-gradient(circle, transparent 70%, rgba(56,169,197,0.12) 71%, rgba(56,169,197,0.12) 72%, transparent 73%);
  animation: trustPulse 6s ease-in-out infinite;
  pointer-events: none;
}
.trust-platform__mascot {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(15, 40, 60, 0.12));
  animation: trustFloat 5.5s ease-in-out infinite;
}
@keyframes trustPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes trustFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 860px) {
  .trust-platform__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .trust-platform__copy p { margin-inline: auto; }
  .trust-stats { justify-content: center; }
  .trust-platform__visual { order: -1; min-height: 220px; }
  .trust-platform__mascot { width: min(100%, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-rings,
  .trust-platform__mascot { animation: none; }
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.section-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  text-align: center;
  max-width: min(100%, 48rem);
  padding-inline: 0.75rem;
  width: 100%;
}
.section-head--center .eyebrow {
  margin-inline: auto;
}
.section-head--center .display,
.section-head--center h1,
.section-head--center h2,
.section-head--center h3 {
  text-align: center !important;
  width: 100%;
  margin-inline: auto;
}
.section-head--center .lead {
  margin-inline: auto;
  max-width: 38rem;
  width: 100%;
  text-align: center !important;
}
.section-head--center .heading-oneline {
  white-space: normal;
  text-align: center !important;
}
.section-head .display { margin-bottom: 0.65rem; }

/* Keep section titles on one line on desktop/laptop when space allows */
.heading-oneline {
  white-space: nowrap;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem) !important;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .heading-oneline,
  .section-head--center .heading-oneline {
    white-space: normal;
  }
}
@media (max-width: 640px) {
  .heading-oneline {
    white-space: normal;
    font-size: clamp(1.25rem, 5vw, 1.55rem) !important;
  }
}

/* Buttons — pill style matching live site */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-soft),
              background var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft),
              color var(--dur) var(--ease-soft);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
  background: var(--ccd-teal);
  color: white;
  box-shadow: var(--shadow-teal);
}
.btn--primary:hover {
  background: var(--ccd-teal-deep);
  box-shadow: 0 14px 32px rgba(76, 180, 212, 0.42);
}

.btn--secondary {
  background: white;
  color: var(--ccd-teal-deep);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  box-shadow: var(--shadow-md);
  color: var(--ccd-teal);
}

.btn--ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
}

.btn--on-dark {
  background: white;
  color: var(--ccd-navy);
}
.btn--on-dark:hover { box-shadow: var(--shadow-md); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border-soft);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ccd-charcoal);
  backdrop-filter: blur(8px);
  transition: transform var(--dur-fast), box-shadow var(--dur);
}
.trust-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.trust-chip svg {
  width: 13px;
  height: 13px;
  color: var(--ccd-teal);
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 1.15rem 1.15rem 1.2rem;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft),
              background var(--dur) var(--ease-soft);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(76,180,212,0.45), transparent);
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(76, 180, 212, 0.28);
}
.card:hover::before { opacity: 1; }

/* Quiet content panel */
.card--surface {
  box-shadow: none;
  background: linear-gradient(165deg, #fff, #F7FBFC);
}
.card--surface:hover { box-shadow: var(--shadow-sm); }

/* Feature: icon + title marketing cards */
.card--feature {
  background:
    linear-gradient(165deg, rgba(255,255,255,0.98), rgba(247,252,255,0.94)),
    #fff;
  border-color: rgba(76, 180, 212, 0.14);
  box-shadow: 0 8px 22px rgba(11, 28, 42, 0.04);
}
.card--feature:hover {
  border-color: rgba(76, 180, 212, 0.38);
  box-shadow:
    0 14px 34px rgba(11, 28, 42, 0.08),
    0 0 0 1px rgba(76, 180, 212, 0.08);
  background: linear-gradient(165deg, #ffffff, #eef8fb);
}

/* Instrument: product UI shells */
.card--instrument,
.instrument {
  background: #fff;
  border: 1px solid rgba(15, 40, 60, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(11, 28, 42, 0.06);
  padding: 1rem 1.1rem 1.1rem;
}
.card--instrument:hover,
.instrument:hover {
  transform: none;
  border-color: rgba(76, 180, 212, 0.22);
  box-shadow: 0 16px 40px rgba(11, 28, 42, 0.08);
}
.card--instrument::before { display: none; }

/* Dark / glass demo shell */
.card--dark {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(76,180,212,0.28), transparent 48%),
    linear-gradient(155deg, #071523 0%, #0F2A3F 50%, #164A63 100%);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: 0 24px 56px rgba(7, 21, 35, 0.28);
}
.card--dark:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 180, 212, 0.35);
}
.card--dark::before {
  background: linear-gradient(90deg, #4CB4D4, #7AC943);
  opacity: 0.85;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(76,180,212,0.18), rgba(76,180,212,0.06));
  border: 1px solid rgba(76, 180, 212, 0.2);
  color: var(--ccd-teal-deep);
  margin-bottom: 0.85rem;
  transition: transform var(--dur) var(--ease-out), background var(--dur), box-shadow var(--dur);
}
.card:hover .card-icon,
.card--feature:hover .card-icon {
  transform: scale(1.06);
  background: linear-gradient(145deg, rgba(76,180,212,0.28), rgba(76,180,212,0.1));
  box-shadow: 0 8px 16px rgba(76, 180, 212, 0.2);
}
.card-icon svg { width: 18px; height: 18px; }
.card-icon img { width: 26px; height: 26px; object-fit: contain; }

/* Compact feature list (breaks twin card grids) */
.feature-list {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(15, 40, 60, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(11, 28, 42, 0.04);
}
.feature-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid rgba(15, 40, 60, 0.06);
  transition: background 0.25s ease;
}
.feature-list__item:last-child { border-bottom: none; }
.feature-list__item:hover { background: #F5FBFD; }
.feature-list__num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #4CB4D4;
  padding-top: 0.15rem;
}
.feature-list__item h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ccd-navy);
  margin: 0 0 0.25rem;
}
.feature-list__item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ccd-muted);
  line-height: 1.45;
}

.metric-tile {
  background: linear-gradient(165deg, #F7FBFC, #EEF6F9);
  border: 1px solid rgba(15, 40, 60, 0.06);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.metric-tile .label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ccd-soft);
  margin: 0 0 0.3rem;
}
.metric-tile .value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ccd-navy);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.metric-tile .value--accent { color: var(--ccd-teal-deep); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
}
.status-pill--paid { background: var(--ccd-success-bg); color: var(--ccd-success); }
.status-pill--pending { background: var(--ccd-warning-bg); color: var(--ccd-warning); }
.status-pill--overdue { background: var(--ccd-danger-bg); color: var(--ccd-danger); }
.status-pill--active { background: var(--ccd-success-bg); color: var(--ccd-success); }
.status-pill--scheduled { background: var(--ccd-ice-2); color: var(--ccd-teal-deep); }
.status-pill--upcoming { background: var(--ccd-grey-100); color: var(--ccd-muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.35rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* Reveal system */
[data-reveal],
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible,
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-left,
[data-reveal-left] {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal-right,
[data-reveal-right] {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal-scale,
[data-reveal-scale] {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
[data-reveal-left].is-visible,
[data-reveal-right].is-visible,
[data-reveal-scale].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
[data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.04s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.22s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.28s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.34s; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 0.4s; }
[data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: 0.46s; }

.glass {
  background: var(--surface-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow-sm);
}

/* Product image frames */
.product-shot {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: white;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-float);
}
.product-shot img {
  width: 100%;
  display: block;
}
.product-shot--float {
  animation: floatY 7s ease-in-out infinite;
}
.product-glow {
  position: absolute;
  inset: -18% -10% auto auto;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,169,197,0.28), transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 5s ease-in-out infinite;
}
.blob-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.blob-shape--a {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(76,180,212,0.28), transparent 70%);
  opacity: 0.55;
  filter: blur(8px);
  right: -40px;
  top: 40px;
}
.blob-shape--b {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(56,169,197,0.2), transparent 70%);
  left: -30px;
  bottom: 20px;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.final-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(2.5rem, 5.5vw, 4rem);
  background: var(--grad-cta);
  color: white;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: -40% auto auto 40%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76,180,212,0.45), transparent 68%);
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
}
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    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: 36px 36px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  pointer-events: none;
  opacity: 0.5;
}
.final-cta .display {
  position: relative;
  z-index: 1;
  margin-bottom: 0.7rem;
  color: #ffffff !important;
}
.final-cta .heading-oneline {
  color: #ffffff !important;
  white-space: normal; /* allow wrap in CTA so it stays readable */
}
.final-cta .lead {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.4rem;
  max-width: 32rem;
}
.final-cta .cta-row { position: relative; z-index: 1; }

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ccd-soft);
}
.demo-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ccd-teal);
}

.note-box {
  margin-top: 1.5rem;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--ccd-ice);
  border: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--ccd-muted);
  line-height: 1.55;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 900;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: #2C3E50;
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--dur), transform var(--dur), background var(--dur-fast);
  box-shadow: var(--shadow-md);
}
.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-top:hover { background: var(--ccd-teal); }
.back-top svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { min-height: 44px; }
  .cta-row { gap: 0.65rem; }
}
@media (max-width: 430px) {
  .display--xl { font-size: 1.65rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

@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;
  }
  [data-reveal],
  [data-reveal-left],
  [data-reveal-right],
  [data-reveal-scale],
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .product-shot--float,
  .blob-shape--a,
  .ua-phone__success,
  .ua-float-chip { animation: none !important; }
}
