/* ==========================================================================
   CAMWEB MARKET — DESIGN SYSTEM & STYLESHEET
   Stripe / Linear / Vercel inspired light editorial agency aesthetic
   ========================================================================== */

:root {
  --bg-alabaster: #f8fafc;
  --surface-white: #ffffff;
  --surface-muted: #f1f5f9;
  --navy-deep: #14264a;
  --blue-bright: #19a9e5;
  --obsidian-ink: #090d16;
  --slate-body: #334155;
  --slate-muted: #64748b;
  --blue-royal: #2563eb;
  --emerald-accent: #10b981;
  --emerald-dark: #047857;
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #1ebe5b;
  --border-hairline: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  --shadow-subtle: 0 1px 2px rgba(9, 13, 22, 0.04), 0 4px 16px rgba(20, 38, 74, 0.04);
  --shadow-elevated: 0 8px 30px rgba(20, 38, 74, 0.08), 0 1px 3px rgba(9, 13, 22, 0.05);
  --shadow-phone: 0 24px 60px -12px rgba(20, 38, 74, 0.22), 0 4px 16px rgba(9, 13, 22, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --container-max: 1180px;
}

/* Base & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--obsidian-ink);
  background-color: var(--bg-alabaster);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--obsidian-ink);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

/* Focus Visibility (Accessibility) */
:focus-visible {
  outline: 2px solid var(--blue-royal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--navy-deep);
  color: var(--surface-white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 68px);
}

.section--white {
  background-color: var(--surface-white);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-royal);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--slate-body);
  line-height: 1.65;
}

/* ==========================================================================
   HEADER & STICKY FROSTED NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

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

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-body);
  white-space: nowrap;
  flex-shrink: 0;
  padding-block: 6px;
  transition: color 160ms var(--ease-ui);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue-royal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-ui);
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--obsidian-ink);
}

.nav-link[aria-current='page']::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Segmented Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--slate-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: background-color 150ms var(--ease-ui), color 150ms var(--ease-ui);
}

.lang-btn:hover {
  color: var(--obsidian-ink);
}

.lang-btn[aria-pressed='true'] {
  background: var(--surface-white);
  color: var(--navy-deep);
  box-shadow: 0 1px 2px rgba(9, 13, 22, 0.08);
}

/* Mobile Menu Trigger & Drawer */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-white);
  color: var(--obsidian-ink);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  padding: 16px clamp(16px, 4vw, 32px) 22px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.mobile-nav-link {
  display: block;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-body);
}

.mobile-nav-link[aria-current='page'] {
  background: var(--surface-muted);
  color: var(--navy-deep);
  font-weight: 600;
}

.mobile-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-ui), background-color 160ms var(--ease-ui),
    border-color 160ms var(--ease-ui), box-shadow 160ms var(--ease-ui), color 160ms var(--ease-ui);
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 9px 15px;
  min-height: 38px;
  font-size: 0.875rem;
}

.btn--whatsapp {
  background-color: var(--whatsapp-green);
  color: #062814;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.24);
}

.btn--whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32);
  transform: translateY(-1px);
}

.btn--primary {
  background-color: var(--navy-deep);
  color: var(--surface-white);
}

.btn--primary:hover {
  background-color: #1c3566;
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: var(--surface-white);
  color: var(--obsidian-ink);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background-color: var(--surface-muted);
  border-color: rgba(15, 23, 42, 0.24);
}

.btn--emerald {
  background-color: var(--emerald-accent);
  color: #042419;
  font-weight: 700;
}

.btn--emerald:hover {
  background-color: #0ea472;
  transform: translateY(-1px);
}

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

/* ==========================================================================
   HERO SECTION (INDEX)
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 84px) clamp(56px, 8vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 82% 28%, rgba(25, 169, 229, 0.08), transparent 70%),
    radial-gradient(520px 380px at 14% 12%, rgba(37, 99, 235, 0.05), transparent 70%),
    var(--bg-alabaster);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

.hero-copy {
  min-width: 0;
}

.hero-trust-wrap {
  margin-bottom: 20px;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface-white);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.02em;
}

.hero-trust-note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--slate-muted);
  line-height: 1.45;
}

.hero-title {
  font-size: clamp(2.15rem, 3.9vw, 3.55rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.03em;
  color: var(--obsidian-ink);
  margin-bottom: 20px;
}

.rotating-industry {
  display: inline-block;
  color: var(--blue-royal);
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--blue-royal) 55%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 280ms var(--ease-out-expo), transform 280ms var(--ease-out-expo);
}

.rotating-industry.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

.hero-description {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: var(--slate-body);
  max-width: 58ch;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-tagline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--slate-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}

.hero-tagline-meta strong {
  color: var(--navy-deep);
  font-weight: 600;
}

/* ==========================================================================
   SYNCHRONIZED SIX-PHONE CAROUSEL
   ========================================================================== */

.hero-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.showcase-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
}

.showcase-glow {
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(25, 169, 229, 0.24), transparent 62%),
    radial-gradient(circle at 70% 68%, rgba(16, 185, 129, 0.2), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: camweb-glow-breathe 8s ease-in-out infinite alternate;
}

@keyframes camweb-glow-breathe {
  from {
    opacity: 0.84;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.phone-slide {
  position: absolute;
  width: 248px;
  aspect-ratio: 9 / 18.5;
  border-radius: 34px;
  background: var(--obsidian-ink);
  padding: 9px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: translateX(64px) scale(0.88);
  transition:
    transform 620ms var(--ease-out-expo),
    opacity 620ms var(--ease-out-expo);
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
}

.phone-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 4;
}

.phone-slide.is-prev {
  opacity: 0.42;
  transform: translateX(-118px) scale(0.84);
  z-index: 2;
}

.phone-slide.is-next {
  opacity: 0.42;
  transform: translateX(118px) scale(0.84);
  z-index: 2;
}

.phone-slide.is-hidden-left {
  opacity: 0;
  transform: translateX(-160px) scale(0.78);
  z-index: 0;
}

.phone-slide.is-hidden-right {
  opacity: 0;
  transform: translateX(160px) scale(0.78);
  z-index: 0;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface-white);
}

.phone-screen-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  border-radius: 999px;
  background: var(--obsidian-ink);
  z-index: 5;
  pointer-events: none;
}

.phone-img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-img.is-missing {
  display: none;
}

/* Resilient HTML/CSS Mockup Fallback Inside Phone Frame (visible when PNG not yet uploaded) */
.phone-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 16px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: var(--obsidian-ink);
}

.phone-fallback-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-fallback-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--blue-royal);
}

.phone-fallback-hero {
  border-radius: 14px;
  padding: 14px 12px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, #1d3c74 100%);
  color: #ffffff;
}

.phone-fallback-hero h4 {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.phone-fallback-hero p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.phone-fallback-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-fallback-row {
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phone-fallback-row-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--obsidian-ink);
}

.phone-fallback-row-meta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--slate-muted);
}

.phone-fallback-cta {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--whatsapp-green);
  color: #062814;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Carousel Controls & Floating Caption */
.showcase-meta {
  width: 100%;
  max-width: 440px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.showcase-caption-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--surface-white);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-subtle);
  font-size: 0.875rem;
  color: var(--obsidian-ink);
  max-width: 100%;
}

.showcase-caption-district {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-royal);
}

.showcase-caption-sep {
  color: var(--slate-muted);
}

.showcase-caption-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.carousel-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-white);
  color: var(--obsidian-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms var(--ease-ui), border-color 150ms var(--ease-ui);
}

.carousel-arrow:hover {
  background: var(--surface-muted);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 38, 74, 0.2);
  cursor: pointer;
  transition: width 260ms var(--ease-out-expo), background-color 200ms var(--ease-ui);
}

.carousel-dot:hover {
  background: rgba(20, 38, 74, 0.45);
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--blue-royal);
}

/* ==========================================================================
   BENTO GRID (WHY CHOOSE CAMWEB MARKET)
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 180ms var(--ease-ui), transform 220ms var(--ease-ui);
}

.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.bento-card--wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
}

.bento-card--half {
  grid-column: span 6;
}

.bento-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
  margin-bottom: 18px;
}

.bento-icon-wrap--emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-dark);
}

.bento-icon-wrap--blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-royal);
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-text {
  font-size: 0.96875rem;
  color: var(--slate-body);
  line-height: 1.65;
}

.bento-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--slate-muted);
  line-height: 1.5;
}

.bento-visual-panel {
  background: var(--bg-alabaster);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.875rem;
}

.bento-metric-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bento-metric-label {
  color: var(--slate-body);
}

.bento-metric-val {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-deep);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   HOW IT WORKS — THREE-STEP TIMELINE
   ========================================================================== */

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

.timeline-card {
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.timeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-royal);
  margin-bottom: 14px;
  display: block;
  font-variant-numeric: tabular-nums;
}

.timeline-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-card p {
  font-size: 0.9375rem;
  color: var(--slate-body);
}

.timeline-footer-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

.timeline-footer-action p {
  font-size: 0.9375rem;
  color: var(--slate-body);
}

/* ==========================================================================
   FINAL CTA BAND
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0f1f3f 100%);
  color: var(--surface-white);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 60px) clamp(24px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-elevated);
}

.cta-banner h2 {
  color: var(--surface-white);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  max-width: 50ch;
}

/* ==========================================================================
   EXEMPLES PAGE — SIX-PHONE PORTFOLIO & 20-INDUSTRY MATRIX
   ========================================================================== */

.page-hero {
  padding-block: clamp(44px, 6vw, 72px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border-hairline);
  background:
    radial-gradient(540px 260px at 85% 0%, rgba(25, 169, 229, 0.08), transparent 70%),
    var(--surface-white);
}

.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--slate-body);
  max-width: 62ch;
}

.page-hero-note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--slate-muted);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.demo-card {
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: border-color 180ms var(--ease-ui), transform 220ms var(--ease-ui);
}

.demo-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.demo-card-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 16px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 45%, rgba(25, 169, 229, 0.12), rgba(16, 185, 129, 0.06) 60%, transparent 80%),
    var(--bg-alabaster);
  border: 1px solid var(--border-hairline);
  margin-bottom: 18px;
  cursor: pointer;
}

.demo-phone-frame {
  position: relative;
  width: 176px;
  aspect-ratio: 9 / 18.2;
  border-radius: 26px;
  background: var(--obsidian-ink);
  padding: 7px;
  box-shadow: 0 18px 36px -10px rgba(20, 38, 74, 0.25);
  transition: transform 240ms var(--ease-out-expo);
}

.demo-card-media:hover .demo-phone-frame {
  transform: translateY(-3px) scale(1.02);
}

.demo-phone-frame .phone-screen {
  border-radius: 20px;
}

.demo-phone-frame .phone-screen-notch {
  width: 54px;
  height: 13px;
  top: 6px;
}

.demo-phone-frame .phone-fallback {
  padding: 26px 12px 12px;
}

.demo-phone-frame .phone-fallback-hero {
  padding: 10px;
}

.demo-phone-frame .phone-fallback-hero h4 {
  font-size: 0.78rem;
}

.demo-phone-frame .phone-fallback-hero p,
.demo-phone-frame .phone-fallback-row-title,
.demo-phone-frame .phone-fallback-cta {
  font-size: 0.625rem;
}

.demo-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.district-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.05em;
}

.demo-concept-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-muted);
}

.demo-card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.demo-card-desc {
  font-size: 0.9375rem;
  color: var(--slate-body);
  margin-bottom: 20px;
  flex-grow: 1;
}

.demo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-card-actions .btn {
  flex: 1 1 auto;
}

/* Industry Coverage Matrix (20 sectors) */
.industry-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-tag-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface-white);
  border: 1px solid var(--border-strong);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--obsidian-ink);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms var(--ease-ui), background-color 160ms var(--ease-ui),
    color 160ms var(--ease-ui), transform 160ms var(--ease-ui);
}

.industry-tag-btn:hover {
  border-color: var(--blue-royal);
  background: rgba(37, 99, 235, 0.06);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.industry-matrix-hint {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--slate-muted);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 13, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-modal.is-open {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3.5vw, 36px);
  box-shadow: 0 32px 72px rgba(9, 13, 22, 0.35);
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-white);
  color: var(--obsidian-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms var(--ease-ui);
}

.lightbox-close:hover {
  background: var(--surface-muted);
}

.lightbox-phone-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: var(--bg-alabaster);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hairline);
}

.lightbox-phone-frame {
  position: relative;
  width: 224px;
  aspect-ratio: 9 / 18.5;
  border-radius: 30px;
  background: var(--obsidian-ink);
  padding: 8px;
  box-shadow: var(--shadow-phone);
}

.lightbox-phone-frame .phone-screen {
  border-radius: 23px;
}

.lightbox-details h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.lightbox-details p {
  color: var(--slate-body);
  margin-bottom: 18px;
}

.lightbox-disclaimer {
  font-size: 0.8125rem;
  color: var(--slate-muted);
  margin-bottom: 22px;
  padding: 10px 12px;
  background: var(--bg-alabaster);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   TARIFS PAGE — VERTICAL PRO PRICING ROWS, COMPARISON TABLE, QUOTE & FAQ
   ========================================================================== */

.pricing-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-row {
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-subtle);
  display: grid;
  grid-template-columns: minmax(230px, 1.02fr) minmax(0, 1.45fr) minmax(220px, 0.88fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  transition: border-color 180ms var(--ease-ui), box-shadow 220ms var(--ease-ui),
    transform 220ms var(--ease-out-expo);
}

.pricing-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.pricing-row--featured {
  border: 1.5px solid var(--emerald-accent);
  box-shadow: 0 18px 40px -14px rgba(16, 185, 129, 0.18), var(--shadow-subtle);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.025) 0%, #ffffff 42%);
}

.pricing-row--featured:hover {
  border-color: var(--emerald-accent);
  box-shadow: 0 22px 46px -12px rgba(16, 185, 129, 0.24), var(--shadow-elevated);
}

.pricing-row-identity {
  min-width: 0;
}

.pricing-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pricing-tier-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
}

.pricing-badge-rec {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--emerald-dark);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--obsidian-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.pricing-price-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-muted);
  margin-bottom: 12px;
}

.pricing-positioning {
  font-size: 0.96875rem;
  color: var(--slate-body);
}

.pricing-row-features {
  min-width: 0;
  padding-inline: clamp(12px, 2vw, 24px);
  border-left: 1px solid var(--border-hairline);
  border-right: 1px solid var(--border-hairline);
}

.pricing-list-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate-muted);
  margin-bottom: 12px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9125rem;
  color: var(--slate-body);
  line-height: 1.45;
}

.pricing-check {
  width: 17px;
  height: 17px;
  color: var(--emerald-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-row-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pricing-row-action .btn {
  width: 100%;
}

.pricing-scope-note {
  font-size: 0.8125rem;
  color: var(--slate-muted);
  line-height: 1.5;
}

/* Feature Comparison Matrix Table */
.comparison-wrap {
  margin-top: 40px;
}

.comparison-head {
  margin-bottom: 18px;
}

.comparison-head h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.comparison-head p {
  font-size: 0.95rem;
  color: var(--slate-body);
}

.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}

.comparison-table thead th {
  background: var(--bg-alabaster);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--obsidian-ink);
}

.comparison-table thead th.is-featured-col {
  background: rgba(16, 185, 129, 0.08);
  color: var(--navy-deep);
}

.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table tbody tr {
  transition: background-color 140ms var(--ease-ui);
}

.comparison-table tbody tr:hover {
  background-color: rgba(248, 250, 252, 0.8);
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--obsidian-ink);
}

.comparison-table td.is-featured-col {
  background: rgba(16, 185, 129, 0.025);
}

.cmp-price-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-muted);
  font-variant-numeric: tabular-nums;
}

.cmp-yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald-dark);
  font-weight: 600;
  font-size: 0.875rem;
}

.cmp-muted {
  color: var(--slate-muted);
  font-size: 0.875rem;
}

/* Transparency & 7-Step Policy Grid */
.transparency-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-top: 32px;
}

.info-panel {
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.info-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.info-panel p {
  font-size: 0.9375rem;
  color: var(--slate-body);
  margin-bottom: 12px;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.policy-steps {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.policy-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9125rem;
  color: var(--slate-body);
}

.policy-step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-royal);
  min-width: 24px;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Interactive WhatsApp Quote Selector */
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.quote-form-card {
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-subtle);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--obsidian-ink);
}

.form-control {
  width: 100%;
  padding: 11px 13px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-white);
  color: var(--obsidian-ink);
  font-size: 0.9375rem;
  transition: border-color 150ms var(--ease-ui), box-shadow 150ms var(--ease-ui);
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-royal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-error {
  font-size: 0.8125rem;
  color: #b91c1c;
  min-height: 20px;
  margin-bottom: 10px;
}

.quote-preview-card {
  background: var(--navy-deep);
  color: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
}

.quote-preview-card h3 {
  color: var(--surface-white);
  font-size: 1.1875rem;
  margin-bottom: 10px;
}

.quote-preview-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9125rem;
  margin-bottom: 18px;
}

.quote-message-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #f8fafc;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 18px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 160ms var(--ease-ui);
}

.faq-item.is-open {
  border-color: var(--border-strong);
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--obsidian-ink);
  font-family: var(--font-display);
  font-size: 1.03125rem;
  font-weight: 700;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--slate-muted);
  transition: transform 220ms var(--ease-out-expo);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue-royal);
}

.faq-panel {
  display: none;
  padding: 0 22px 20px;
  color: var(--slate-body);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid var(--border-hairline);
  padding-top: 14px;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* ==========================================================================
   GLOBAL FOOTER & FLOATING WHATSAPP CONVERSION BUTTON
   ========================================================================== */

.site-footer {
  background: var(--surface-white);
  border-top: 1px solid var(--border-hairline);
  padding-block: 48px 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-hairline);
}

.footer-brand-desc {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--slate-body);
  max-width: 44ch;
}

.footer-taglines {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--slate-body);
  transition: color 150ms var(--ease-ui);
}

.footer-links a:hover {
  color: var(--blue-royal);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--slate-muted);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--whatsapp-green);
  color: #052312;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.36);
  transition: transform 180ms var(--ease-ui), background-color 180ms var(--ease-ui);
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: wa-pulse-ring 2.6s var(--ease-out-expo) infinite;
  pointer-events: none;
}

.floating-whatsapp:hover {
  background: var(--whatsapp-green-hover);
  transform: translateY(-2px);
}

.floating-whatsapp svg {
  width: 26px;
  height: 26px;
}

@keyframes wa-pulse-ring {
  0% {
    transform: scale(0.96);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.24);
    opacity: 0;
  }
  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

.phone-slide.is-prev,
.phone-slide.is-next {
  pointer-events: auto;
  cursor: pointer;
}

.phone-slide.is-prev:hover {
  opacity: 0.65;
  transform: translateX(-114px) scale(0.86);
}

.phone-slide.is-next:hover {
  opacity: 0.65;
  transform: translateX(114px) scale(0.86);
}

/* ==========================================================================
   PORTFOLIO CAROUSEL (EXEMPLES.HTML)
   ========================================================================== */

.ex-carousel-shell {
  background: var(--surface-white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.ex-carousel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.ex-carousel-counter {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-deep);
  font-variant-numeric: tabular-nums;
}

.ex-carousel-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.ex-carousel-track {
  display: flex;
  transition: transform 540ms var(--ease-out-expo);
  will-change: transform;
}

.ex-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  padding: 6px 2px;
}

.ex-carousel-media {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(25, 169, 229, 0.14), rgba(16, 185, 129, 0.08) 65%, transparent 82%),
    var(--bg-alabaster);
  border: 1px solid var(--border-hairline);
}

.ex-carousel-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.ex-carousel-body p {
  color: var(--slate-body);
  font-size: 1rem;
  max-width: 52ch;
  margin-bottom: 22px;
}

.ex-carousel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ex-carousel-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ==========================================================================
   MINIMAL SCROLL & INTERACTION ANIMATIONS
   ========================================================================== */

.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 460ms var(--ease-out-expo),
    transform 460ms var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-modal.is-open .lightbox-dialog {
  animation: camweb-modal-in 260ms var(--ease-out-expo) both;
}

.faq-item.is-open .faq-panel {
  animation: camweb-fade-down 220ms var(--ease-out-expo) both;
}

@keyframes camweb-modal-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes camweb-fade-down {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 88px;
  z-index: 79;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--navy-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elevated);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 200ms var(--ease-ui),
    transform 220ms var(--ease-out-expo),
    background-color 160ms var(--ease-ui),
    color 160ms var(--ease-ui);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy-deep);
  color: var(--surface-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   SNAPPY PAGE LOADER (450MS TOP PROGRESS BAR + BRIEF BRAND FADE)
   ========================================================================== */

.cw-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 130ms var(--ease-ui), transform 130ms var(--ease-ui);
}

html.cw-loading .cw-loader,
html.cw-loader-finishing .cw-loader {
  display: flex;
}

html.cw-loading .cw-loader {
  opacity: 1;
}

html.cw-loader-finishing .cw-loader {
  opacity: 0;
  transform: translateY(-6px);
}

html.cw-loader-done .cw-loader {
  display: none;
}

.cw-loader-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(20, 38, 74, 0.08);
  overflow: hidden;
  z-index: 302;
}

.cw-loader-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--blue-bright) 0%,
    var(--blue-royal) 55%,
    var(--emerald-accent) 100%
  );
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

html.cw-loading .cw-loader-bar {
  animation: cw-progress-sweep 320ms var(--ease-out-expo) forwards;
}

html.cw-loader-finishing .cw-loader-bar {
  transform: scaleX(1);
}

.cw-loader-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-subtle);
  animation: cw-brand-fade-in 220ms var(--ease-out-expo) both;
}

.cw-loader-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy-deep);
}

/* Forward navigation exit bar kick-off */
html.cw-leaving .cw-loader {
  display: block;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
}

html.cw-leaving .cw-loader-brand {
  display: none;
}

html.cw-leaving .cw-loader-bar {
  animation: cw-progress-leave 240ms var(--ease-out-expo) forwards;
}

@keyframes cw-progress-sweep {
  0% {
    transform: scaleX(0.08);
  }
  55% {
    transform: scaleX(0.72);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes cw-progress-leave {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(0.55);
  }
}

@keyframes cw-brand-fade-in {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

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

  .bento-card--wide {
    grid-template-columns: 1fr;
  }

  .bento-card--half {
    grid-column: span 12;
  }

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

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-row-features {
    padding-inline: 0;
    padding-block: 18px;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
  }

  .transparency-grid,
  .quote-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .header-actions .lang-switch,
  .header-actions .btn--whatsapp {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

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

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

  .lightbox-dialog,
  .ex-carousel-slide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .showcase-stage {
    height: 440px;
  }

  .phone-slide {
    width: 206px;
  }

  .phone-slide.is-prev {
    transform: translateX(-82px) scale(0.84);
  }

  .phone-slide.is-next {
    transform: translateX(82px) scale(0.84);
  }

  .demos-grid,
  .pricing-features {
    grid-template-columns: 1fr;
  }

  .hero-ctas .btn,
  .ex-carousel-actions .btn,
  .timeline-footer-action .btn,
  .cta-banner .btn {
    width: 100%;
  }

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

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  .back-to-top {
    right: 17px;
    bottom: 74px;
    width: 42px;
    height: 42px;
  }

  body {
    padding-bottom: 64px;
  }
}

/* ==========================================================================
   REDUCED MOTION COMPLIANCE
   ========================================================================== */

@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;
  }

  .js-reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .showcase-glow {
    animation: none;
  }

  .floating-whatsapp::before {
    animation: none;
    display: none;
  }

  .cw-loader {
    display: none !important;
  }
}
