/* ============================================================
   CASTELLUM — Landing Page
   Design system + componentes + responsive
   ============================================================ */

/* -------- FONTES -------- */
@font-face {
  font-family: 'Mansory';
  src: url('assets/fonts/mansory-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Mansory';
  src: url('assets/fonts/mansory-medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Mansory';
  src: url('assets/fonts/mansory-semi-bold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Black.otf') format('opentype');
  font-weight: 900;
  font-display: swap;
}

/* -------- TOKENS -------- */
:root {
  /* Cores */
  --bg-primary: #0A0F1C;
  --bg-secondary: #0E1525;
  --bg-tertiary: #141C30;
  --surface-glass: rgba(255, 255, 255, 0.04);

  --ink-primary: #F5F7FA;
  --ink-secondary: #A8B2C8;
  --ink-tertiary: #6B7691;

  --accent-gold: #C9A961;
  --accent-gold-2: #E8C77A;
  --accent-cool: #4F7CFF;
  --accent-warm: #FF6B4A;

  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(201, 169, 97, 0.4);

  --gradient-hero: radial-gradient(120% 80% at 50% 0%, #1A2547 0%, #0A0F1C 60%);
  --gradient-gold: linear-gradient(135deg, #C9A961 0%, #E8C77A 50%, #C9A961 100%);
  --gradient-fade-r: linear-gradient(90deg, var(--bg-primary), transparent 10%, transparent 90%, var(--bg-primary));

  /* Tipografia */
  --font-display: 'Mansory', 'Outfit', system-ui, sans-serif;
  --font-body: 'Mansory', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --container-max: 1320px;
  --container-pad: clamp(20px, 5vw, 80px);
  --section-pad: clamp(96px, 12vw, 192px);

  /* Easing */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-expo: cubic-bezier(0.83, 0, 0.17, 1);
}

/* -------- RESET -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--ink-primary);
  line-height: 1.6;
  font-weight: 500;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x: hidden quebra position: sticky em descendentes (Safari).
     overflow-x: clip evita vazamento horizontal sem afetar sticky. */
  overflow-x: clip;
}
img, picture, video, svg { max-width: 100%; display: block; }
p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Selection */
::selection { background: var(--accent-gold); color: var(--bg-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* Grain overlay global (sutil) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* -------- TIPOGRAFIA -------- */
.display-xl { font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 7vw, 120px); line-height: 0.95; letter-spacing: -0.02em; }
.display-l  { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 80px); line-height: 1; letter-spacing: -0.015em; }
.display-m  { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.01em; }
.heading-l  { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; }
.heading-m  { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.3; }
.body-l     { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-secondary); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.body-m     { font-size: 17px; line-height: 1.7; color: var(--ink-secondary); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.body-s     { font-size: 15px; line-height: 1.6; color: var(--ink-tertiary); }
.label      { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-gold); }

.text-gold        { color: var(--accent-gold); }
.text-gradient    { background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-muted       { color: var(--ink-secondary); }
.text-dim         { color: var(--ink-tertiary); }

/* -------- LAYOUT -------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 2;
}
section { padding: var(--section-pad) 0; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent-gold); }

/* -------- BOTÕES -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  box-shadow: 0 12px 40px -10px rgba(201, 169, 97, 0.5);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease-out-expo);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 60px -10px rgba(201, 169, 97, 0.7); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-secondary {
  background: var(--surface-glass);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  backdrop-filter: blur(20px);
}
.btn-secondary:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.4s var(--ease-out-expo); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-xl { padding: 24px 44px; font-size: 18px; }

/* -------- LOADER -------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.12em;
  color: var(--ink-primary);
}
.loader-sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-tertiary); letter-spacing: 0.1em; }
.loader-bar {
  width: 240px;
  height: 1px;
  background: var(--border-soft);
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient-gold);
  animation: loaderFill 1.4s var(--ease-out-expo) forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* -------- CURSOR CUSTOM -------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transition: transform 0.1s linear;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
}
.cursor-ring.hover { width: 64px; height: 64px; border-color: var(--accent-gold); mix-blend-mode: normal; }
@media (max-width: 1024px) { .cursor-dot, .cursor-ring { display: none; } }

/* -------- HEADER -------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(10, 15, 28, 0);
  backdrop-filter: blur(0px);
  transition: background 0.4s, backdrop-filter 0.4s, transform 0.4s var(--ease-out-expo);
}
.header.scrolled { background: rgba(10, 15, 28, 0.7); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border-soft); }
.header.hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo img { height: 42px; width: auto; }
.header-nav { display: flex; gap: 32px; }
.header-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-secondary);
  transition: color 0.3s;
  position: relative;
}
.header-nav a:hover { color: var(--ink-primary); }
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.4s var(--ease-out-expo);
}
.header-nav a:hover::after { width: 100%; }
.header-cta { display: flex; gap: 12px; align-items: center; }
.header-cta .btn { padding: 12px 22px; font-size: 14px; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-cta .btn-secondary { display: none; }
  .menu-toggle { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
  .menu-toggle span { width: 22px; height: 2px; background: var(--ink-primary); position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink-primary); }
  .menu-toggle span::before { top: -7px; }
  .menu-toggle span::after { top: 7px; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer a { font-family: var(--font-display); font-size: 32px; color: var(--ink-primary); }

/* -------- HERO -------- */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.35;
  z-index: 2;
}
.hero::before { background: var(--accent-gold); top: -200px; left: -100px; animation: float 14s ease-in-out infinite; }
.hero::after  { background: var(--accent-cool); bottom: -200px; right: -100px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.05); }
}

/* -- HERO BG: 2 FILEIRAS HORIZONTAIS GRANDES (estilo Foes) -- */
.hero-bg-marquee {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  /* máscara radial pra texto continuar legível no centro */
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, transparent 0%, transparent 25%, rgba(0,0,0,0.5) 55%, #000 90%);
          mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, transparent 0%, transparent 25%, rgba(0,0,0,0.5) 55%, #000 90%);
  opacity: 0.28;
  transform: perspective(2000px) rotateX(2deg);
  transform-origin: center;
}
.hero-bg-marquee::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,28,0.5) 0%, transparent 25%, transparent 75%, rgba(10,15,28,0.7) 100%);
  pointer-events: none;
}
.hero-bg-row {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}
.hero-bg-row.left  { animation: bgRowLeft  60s linear infinite; }
.hero-bg-row.right { animation: bgRowRight 75s linear infinite; }
@keyframes bgRowLeft  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bgRowRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.bg-card {
  flex-shrink: 0;
  width: clamp(260px, 22vw, 340px);
  height: clamp(180px, 16vw, 220px);
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.85), rgba(14, 21, 37, 0.95));
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.5);
}
.bg-card.accent {
  background: linear-gradient(135deg, rgba(201,169,97,0.18), rgba(14, 21, 37, 0.95));
  border-color: var(--border-gold);
}
.bg-card.dark {
  background: linear-gradient(180deg, #0a0f1c, #0E1525);
}

/* Variantes visuais dos cards do hero bg */
.bg-card-head { display: flex; align-items: center; gap: 10px; }
.bg-card-mono {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,169,97,0.3), rgba(201,169,97,0.05));
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-gold);
}
.bg-card-name { font-weight: 700; font-size: 13px; color: var(--ink-primary); line-height: 1.2; }
.bg-card-spec { font-size: 11px; color: var(--ink-tertiary); margin-top: 2px; }

/* Card tipo: Mini Dashboard */
.bg-card-mini-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bg-card-mini-chart svg { width: 100%; height: 60px; }
.bg-card-mini-chart .chart-line { fill: none; stroke: var(--accent-gold); stroke-width: 2; stroke-linecap: round; }
.bg-card-mini-chart .chart-area { fill: rgba(201,169,97,0.15); }
.bg-card-kpi {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--accent-gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.bg-card-kpi-lab {
  font-size: 10px;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Card tipo: WhatsApp */
.bg-card-wpp {
  background: linear-gradient(180deg, #0a1f15, #0a0f1c);
  border-color: rgba(37,211,102,0.2);
}
.bg-card-wpp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bg-card-wpp-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.bg-card-wpp-name { font-size: 12px; font-weight: 700; color: var(--ink-primary); }
.bg-card-wpp-status { font-size: 10px; color: #25d366; }
.bg-card-wpp-bubble {
  align-self: flex-start;
  max-width: 85%;
  background: #1f2c40;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  font-size: 12px;
  color: var(--ink-primary);
  line-height: 1.3;
}
.bg-card-wpp-time {
  font-size: 9px;
  color: var(--ink-tertiary);
  align-self: flex-end;
  font-family: var(--font-mono);
}

/* Card tipo: Notificação */
.bg-card-notif {
  align-items: flex-start;
  justify-content: center;
}
.bg-card-notif-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-gold), #8b6f3b);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.bg-card-notif-title { font-size: 14px; font-weight: 700; color: var(--ink-primary); margin-top: 4px; }
.bg-card-notif-desc { font-size: 12px; color: var(--ink-secondary); line-height: 1.4; }
.bg-card-notif-time { font-family: var(--font-mono); font-size: 10px; color: var(--ink-tertiary); }

/* Card tipo: Stars review */
.bg-card-stars {
  font-size: 18px;
  color: var(--accent-gold);
  letter-spacing: 3px;
}
.bg-card-review-text {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
  font-style: italic;
}
.bg-card-review-author {
  font-size: 10px;
  color: var(--ink-tertiary);
  margin-top: auto;
}

/* Card tipo: Calendário */
.bg-card-cal {
  display: grid;
  grid-template-rows: auto 1fr;
}
.bg-card-cal-head {
  font-size: 11px;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 700;
}
.bg-card-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  align-content: start;
}
.bg-card-cal-day {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: var(--ink-tertiary);
  font-weight: 600;
}
.bg-card-cal-day.busy {
  background: var(--accent-gold);
  color: var(--bg-primary);
}
.bg-card-cal-day.today {
  background: var(--accent-cool);
  color: #fff;
}

/* Card tipo: KPI grande sozinho */
.bg-card-big-kpi {
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}
.bg-card-big-kpi .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  color: var(--accent-gold);
  letter-spacing: -0.03em;
}
.bg-card-big-kpi .lab {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

/* Card tipo: Tag */
.bg-card-tag {
  margin-top: auto;
  align-self: flex-start;
  padding: 4px 12px;
  background: rgba(201,169,97,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .hero-bg-marquee { opacity: 0.18; }
  .bg-card { width: 240px; height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-row.left, .hero-bg-row.right { animation: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 3;
}
.hero-headline { margin-bottom: 32px; }
.hero-headline .line { display: block; overflow: hidden; padding-bottom: 0.18em; }
.hero-headline .line span { display: inline-block; }
.hero-sub { max-width: 520px; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-proof { display: flex; align-items: center; gap: 16px; }
.hero-avatars { display: flex; }
.hero-avatars .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  background: var(--bg-tertiary);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-gold);
}
.hero-avatars .avatar:first-child { margin-left: 0; }
.hero-proof-text { font-size: 14px; color: var(--ink-secondary); }
.hero-proof-text strong { color: var(--ink-primary); font-weight: 700; }

.hero-image-wrap {
  position: relative;
  border-radius: 22px;
  aspect-ratio: 4/5;
  background: #0c1120;
  padding: 10px;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(201,169,97,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}
/* Inner container: clip the photo */
.hero-img-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
}
/* Vertical gold accent line — hidden */
.hero-img-vline {
  display: none;
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, transparent 65%, rgba(10,15,28,0.45));
}
.hero-image-chip {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 10px 18px;
  background: rgba(20, 28, 48, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  /* Foto vem PRIMEIRO no mobile (visualmente acima do texto) */
  .hero-image-wrap {
    order: -1;
    aspect-ratio: 4/3;
    max-width: 100%;
    margin: 0;
  }
  .hero-sub  { max-width: 100%; }
  .hero-proof { flex-wrap: wrap; gap: 12px; }
}

/* ====== PHONES (≤ 600 px) ====== */
@media (max-width: 600px) {
  /* Tipografia reduzida */
  .display-xl { font-size: clamp(32px, 8.5vw, 52px); line-height: 1.05; }
  .display-l  { font-size: clamp(26px, 7vw,   40px); line-height: 1.1;  }
  .display-m  { font-size: clamp(22px, 6vw,   34px); }

  /* Hero section */
  .hero { padding-top: 80px; padding-bottom: 32px; }
  .hero-grid { gap: 20px; }

  /* Foto 1:1 — mostra rosto + corpo inteiro, sem crop agressivo */
  .hero-image-wrap { aspect-ratio: 1/1; }
  .hero-image-wrap img { object-position: center 10%; }

  /* Texto compacto para caber botões na 1ª tela */
  .hero-headline { margin-bottom: 16px; }
  .hero-sub { display: none; }      /* parágrafo escondido no phone → libera ~170px */
  .hero-ctas { margin-bottom: 20px; }

  /* CTA buttons empilhados verticalmente */
  .hero-ctas { flex-direction: column; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-proof-text { font-size: 12px; }

  /* Botão XL — cabe na tela */
  .btn-xl { padding: 18px 28px; font-size: 16px; }

  /* CTA "Próximo paciente" — barra de busca */
  .cta-search-wrap { width: 100%; margin-bottom: 36px; }
  .cta-search-bar { padding: 10px 12px; gap: 6px; min-height: 50px; }
  /* Esconde o mini-logo "Google" dentro da barra no mobile:
     ele já aparece como logo gigante acima — duplicado & consome espaço do texto */
  .cta-search-bar-logo { display: none; }
  /* Sem borda separadora à esquerda (logo foi removido) */
  .cta-search-input { border-left: none; padding-left: 6px; }
  /* Sem ellipsis: typewriter não precisa de "..." — só mostra o que coube */
  .cta-search-text { font-size: 14px; text-overflow: clip; }
  .cta-search-cursor { height: 16px; }
  .cta-search-icons { gap: 8px; }
  .cta-search-icons svg { width: 18px; height: 18px; }

  /* Google logo menor em phones muito pequenos */
  .cta-google-logo-big { letter-spacing: -2px; }

  /* Seção CTA — texto centralizado */
  .cta-final .container { text-align: center; }
  .cta-final .eyebrow { justify-content: center; }

  /* Footer — coluna única */
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* -------- MARQUEE -------- */
.marquee {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-secondary);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-secondary), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg-secondary), transparent); }
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 48px;
}
.marquee-item::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
}
@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* -------- MANIFESTO -------- */
.manifesto { text-align: center; }
.manifesto .container { max-width: 920px; }
.manifesto-headline { margin-bottom: 48px; }
.manifesto p { margin-bottom: 28px; color: var(--ink-secondary); }
.manifesto p:last-child { margin-bottom: 0; }
.manifesto p strong { color: var(--ink-primary); font-weight: 600; }

/* -------- SERVIÇOS -------- */
.services-head { margin-bottom: 80px; max-width: 720px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.services-grid > .service-card:nth-child(4),
.services-grid > .service-card:nth-child(5) { grid-column: span 1; }
.services-grid-4 { grid-template-columns: repeat(4, 1fr) !important; gap: 20px; }

.service-card {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 36px 32px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.5s;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(201,169,97,0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
}
.service-card:hover::before { opacity: 1; }
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 32px;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.5s var(--ease-out-expo);
}
.service-card:hover::after { width: calc(60%); }
.service-num {
  color: var(--accent-gold);
  opacity: 0.22;
  position: absolute;
  top: 16px;
  right: 20px;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.service-num svg {
  width: 100%;
  height: 100%;
}
.service-title { margin-bottom: 12px; }
.service-desc { color: var(--ink-secondary); font-size: 16px; line-height: 1.6; }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 600px) {
  .service-card { min-height: auto; padding: 28px 24px; }
}

/* -------- MÉTODO C.O.R.E. (sticky letter + stories) -------- */
.method {
  background: var(--bg-secondary);
  position: relative;
  /* IMPORTANTE: overflow: hidden quebra position: sticky em qualquer descendente.
     Usar overflow-x: clip (corta só o vazamento horizontal) — não afeta sticky. */
  overflow-x: clip;
  padding: clamp(96px, 12vw, 160px) 0 clamp(96px, 12vw, 160px);
}
/* Marca C.O.R.E. gigante no fundo (em wrapper próprio com overflow) */
.method-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.method-bg::before {
  content: 'C.O.R.E.';
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(120px, 18vw, 320px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 97, 0.07);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.method > * { position: relative; z-index: 1; }

.method-head { text-align: center; margin-bottom: 80px; }
.method-acronym-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  margin-top: 16px;
}
.method-acronym-subtitle b { color: var(--accent-gold); font-weight: 700; }

/* -- Wrapper sticky -- */
.method-core {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Coluna esquerda — letra gigante sticky */
.method-sticky {
  position: sticky;
  top: 12vh;
  height: 76vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
}
.method-sticky-letter-wrap {
  position: relative;
  width: 100%;
  height: clamp(280px, 38vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.method-sticky-letter {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(240px, 32vw, 460px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
          background-clip: text;
  text-shadow: 0 0 120px rgba(201, 169, 97, 0.4);
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  filter: blur(12px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo), filter 0.7s;
}
.method-sticky-letter.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.method-sticky-letter::after {
  content: '.';
  margin-left: -0.08em;
  font-size: 0.4em;
  vertical-align: super;
  -webkit-text-fill-color: var(--accent-gold);
}
.method-sticky-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px;
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.method-sticky-meta::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out-expo);
}
.method-sticky-meta.active::before { transform: scaleX(1); }
.method-sticky-step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-tertiary);
  text-transform: uppercase;
}
.method-sticky-step b { color: var(--accent-gold); }
.method-sticky-progress {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.method-sticky-progress span {
  flex: 1;
  height: 3px;
  background: var(--border-strong);
  border-radius: 2px;
  transition: background 0.5s, transform 0.5s;
  transform-origin: left;
}
.method-sticky-progress span.done   { background: var(--accent-gold); opacity: 0.5; }
.method-sticky-progress span.active { background: var(--accent-gold); transform: scaleY(1.6); box-shadow: 0 0 12px var(--accent-gold); }

/* Coluna direita — stories empilhadas */
.method-stories {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 8vh, 96px);
  padding: 12vh 0;
}
.method-story {
  background: linear-gradient(180deg, var(--bg-tertiary), rgba(20, 28, 48, 0.6));
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.6s, transform 0.7s var(--ease-out-expo), box-shadow 0.6s;
}
.method-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(201, 169, 97, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s;
}
.method-story.in-view {
  border-color: var(--border-gold);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}
.method-story.in-view::before { opacity: 1; }
.method-story-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-tertiary);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.method-story-num b { color: var(--accent-gold); font-weight: 700; }
.method-story-num::before {
  content: attr(data-letter);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.method-story-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--ink-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.method-story-desc {
  color: var(--ink-secondary);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}
.method-story-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.method-story-bullets li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-secondary);
  transform: translateX(-12px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.method-story.in-view .method-story-bullets li {
  transform: translateX(0);
  opacity: 1;
}
.method-story.in-view .method-story-bullets li:nth-child(1) { transition-delay: 0.20s; }
.method-story.in-view .method-story-bullets li:nth-child(2) { transition-delay: 0.30s; }
.method-story.in-view .method-story-bullets li:nth-child(3) { transition-delay: 0.40s; }
.method-story.in-view .method-story-bullets li:nth-child(4) { transition-delay: 0.50s; }
.method-story-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-gold);
}

@media (max-width: 900px) {
  /* Grid → block para o sticky funcionar na coluna única */
  .method-core { grid-template-columns: 1fr; gap: 0; }

  /* Sticky compact: vira barra horizontal com as 4 letras + meta */
  .method-sticky {
    position: sticky;
    top: 80px;           /* logo abaixo do header fixo (72px) */
    z-index: 20;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
    padding: 12px 18px;
    background: rgba(10, 15, 28, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    margin-bottom: 28px;
  }

  /* Letter-wrap: flex row com as 4 letras C O R E */
  .method-sticky-letter-wrap {
    height: auto;
    width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    position: static;
  }

  /* Letras em linha, compactas */
  .method-sticky-letter {
    position: static;
    font-size: 24px;
    line-height: 1;
    opacity: 0.22;
    transform: none;
    filter: none;
    transition: opacity 0.4s, transform 0.3s;
    display: inline-block;
  }
  .method-sticky-letter.active {
    opacity: 1;
    transform: scale(1.18);
    filter: none;
  }
  .method-sticky-letter::after { display: none; } /* remove ponto decorativo */

  /* Meta box: sem fundo, inline */
  .method-sticky-meta {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    width: auto;
    overflow: hidden;
  }
  .method-sticky-meta::before { display: none; }
  .method-sticky-step { font-size: 10px; }
  .method-sticky-progress { margin-top: 6px; }

  .method-stories { padding: 0; gap: 24px; }
  .method-story   { padding: 32px 24px; min-height: auto; }
}

/* -------- DASHBOARD -------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.dashboard-copy { max-width: 560px; }
.dashboard-mockup {
  background: linear-gradient(180deg, #1a2238, #0f1626);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.6);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out-expo);
}
.dashboard-bar {
  background: rgba(0,0,0,0.3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.dashboard-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dashboard-bar .dot.red { background: #FF5F57; }
.dashboard-bar .dot.yel { background: #FEBC2E; }
.dashboard-bar .dot.grn { background: #28C840; }
.dashboard-bar .url {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-tertiary);
  padding: 4px 14px;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
}
.dashboard-body { padding: 28px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px;
}
.kpi-label { font-size: 11px; color: var(--ink-tertiary); margin-bottom: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.kpi-value { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--ink-primary); }
.kpi-delta { font-size: 12px; color: #3DD68C; font-family: var(--font-mono); }
.dashboard-chart {
  height: 160px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.dashboard-chart svg { width: 100%; height: 100%; }
.chart-line { fill: none; stroke: var(--accent-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chartGrad); opacity: 0.5; }
.chart-tooltip {
  position: absolute;
  background: var(--bg-primary);
  border: 1px solid var(--accent-gold);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-primary);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%);
}
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* -------- CHECKLIST -------- */
.checklist { background: var(--bg-secondary); }
.checklist .container { max-width: 760px; }
.checklist-head { text-align: center; margin-bottom: 48px; }
.checklist-items { display: flex; flex-direction: column; gap: 12px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  text-align: left;
  width: 100%;
}
.check-item:hover { border-color: var(--border-strong); }
.check-item.checked { border-color: var(--accent-gold); background: rgba(201,169,97,0.06); }
.check-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.check-item.checked .check-box { background: var(--accent-gold); border-color: var(--accent-gold); }
.check-box svg {
  width: 14px;
  height: 14px;
  stroke: var(--bg-primary);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.4s var(--ease-out-expo);
}
.check-item.checked .check-box svg { stroke-dashoffset: 0; }
.check-text { color: var(--ink-secondary); font-size: 17px; transition: color 0.3s; }
.check-item.checked .check-text { color: var(--ink-primary); }
.check-counter {
  margin-top: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-tertiary);
}
.check-counter strong { color: var(--accent-gold); }
.check-cta { margin-top: 32px; text-align: center; }

/* -------- CASES SLIDER -------- */
.cases { overflow: hidden; }
.cases-head { margin-bottom: 64px; max-width: 720px; }
.cases-track-wrap {
  position: relative;
  overflow: visible;
}
.cases-track {
  display: flex;
  gap: 32px;
  padding: 12px 0;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.cases-track:active { cursor: grabbing; }
.case-card {
  flex: 0 0 min(360px, 82vw);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s, transform 0.5s;
}
/* Screenshot do resultado real no topo do card */
.case-screenshot {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.case-screenshot > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  /* sem crop — imagem inteira visível, letterbox escuro nas bordas */
}
/* Badge de região — canto superior esquerdo da screenshot */
.case-region-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10,15,28,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold);
  padding: 4px 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
/* Logo Castellum — canto inferior direito da screenshot */
.case-logo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10,15,28,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: 10px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
}
.case-logo-badge img { height: 15px; width: auto; }
/* Conteúdo textual abaixo da screenshot */
.case-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.case-meta { font-size: 11px; color: var(--ink-tertiary); margin-bottom: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.case-kpis { display: flex; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; row-gap: 12px; }
/* Nota informativa abaixo dos KPIs (ex: "Junho fechado ainda em maio") */
.case-kpi-note {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
  line-height: 1.45;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(201,169,97,0.1);
  border-radius: 8px;
  border: 1px solid rgba(201,169,97,0.35);
}
.case-kpi-val { font-family: var(--font-display); font-weight: 600; font-size: 36px; color: var(--accent-gold); line-height: 1; }
.case-kpi-lab { font-size: 11px; color: var(--ink-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 5px; }
.case-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
  padding-left: 14px;
  border-left: 2px solid var(--accent-gold);
  margin-top: auto;
  padding-top: 4px;
}
/* Setas estilo Instagram */
.cases-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #0A0F1C;
  box-shadow: 0 2px 20px rgba(0,0,0,0.45);
  transition: background 0.2s, box-shadow 0.2s, transform 0.25s var(--ease-out-expo), opacity 0.2s;
  opacity: 0.85;
}
.cases-arrow:hover {
  background: #fff;
  opacity: 1;
  box-shadow: 0 4px 28px rgba(0,0,0,0.55);
  transform: translateY(-50%) scale(1.1);
}
.cases-arrow-prev { left: clamp(10px, 2vw, 28px); }
.cases-arrow-next { right: clamp(10px, 2vw, 28px); }

/* Dots estilo Instagram */
.cases-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
}
.cases-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.38s cubic-bezier(0.22,1,0.36,1);
}
.cases-dot.active {
  background: var(--accent-gold);
  width: 24px;
}
.cases-dot:hover:not(.active) { background: rgba(255,255,255,0.5); }
@media (max-width: 700px) {
  .case-card { flex: 0 0 min(300px, 84vw); }
  .case-kpi-val { font-size: 28px; }
  .case-body { padding: 20px 22px 24px; }
}

/* -------- DEPOIMENTOS WALL -------- */
.testimonials-grid {
  columns: 3;
  column-gap: 24px;
}
@media (max-width: 900px) { .testimonials-grid { columns: 2; } }

/* Mobile: scroll horizontal com snap */
@media (max-width: 600px) {
  .testimonials-grid {
    columns: unset;
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 20px;
    /* esconde a barra de rolagem mas mantém funcional */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonial {
    flex-shrink: 0;
    width: 76vw;       /* ~285px em 375px → 2ª carta fica visível ~36px */
    max-width: 280px;
    scroll-snap-align: start;
    margin-bottom: 0; /* remove margem da versão columns */
  }
  /* Força visibilidade: IntersectionObserver não dispara em scroll horizontal */
  .testimonials-grid .testimonial.reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
.testimonial {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  break-inside: avoid;
  transition: border-color 0.3s, transform 0.5s var(--ease-out-expo);
}
.testimonial:hover { border-color: var(--border-gold); transform: translateY(-4px); }
.testimonial-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #8b6f3b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-primary);
  font-size: 14px;
}
.testimonial-name { font-size: 14px; font-weight: 700; }
.testimonial-role { font-size: 12px; color: var(--ink-tertiary); }
.testimonial-stars { color: var(--accent-gold); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; line-height: 1.6; color: var(--ink-secondary); margin-bottom: 12px; }
.testimonial-channel { font-family: var(--font-mono); font-size: 11px; color: var(--ink-tertiary); }

/* -------- LOGO DISPLAY (fundador) -------- */
.bento-logo-display {
  background: linear-gradient(145deg, #08112A 0%, #0C1E45 45%, #0F264E 100%);
  border: 1px solid rgba(201,169,97,0.28);
  border-radius: 24px;
  aspect-ratio: 4/4.5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.8s var(--ease-out-expo), box-shadow 0.8s;
}
.bento-logo-display:hover { transform: scale(1.015); box-shadow: 0 60px 120px -20px rgba(0,0,0,0.8), 0 0 60px -10px rgba(201,169,97,0.08); }
.bento-logo-display::before {
  content: '';
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}
.bento-logo-display::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,17,42,0.5) 100%);
  pointer-events: none;
}
.bento-logo-display img {
  width: 68%;
  max-width: 260px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(201,169,97,0.25));
  transition: filter 0.6s;
}
.bento-logo-display:hover img { filter: drop-shadow(0 0 60px rgba(201,169,97,0.4)); }

/* -------- BRUNO BENTO -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  aspect-ratio: 4/4.5;
}
.bento-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 0.8s var(--ease-out-expo);
}
.bento-item:hover img { transform: scale(1.06); }
.bento-large { grid-row: span 2; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { margin-bottom: 20px; color: var(--ink-secondary); }
.about-mini-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border-soft); }
.about-stat { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--accent-gold); }
.about-stat-lab { font-size: 12px; color: var(--ink-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; font-family: var(--font-body); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* -------- ESPECIALIDADES -------- */
.specialties { background: var(--bg-secondary); }
.specialties-head { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; }
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .specialties-grid { grid-template-columns: repeat(2, 1fr); } }
.specialty {
  padding: 24px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-secondary);
  transition: all 0.3s var(--ease-out-expo);
  cursor: default;
}
.specialty:hover {
  border-color: var(--border-gold);
  color: var(--ink-primary);
  transform: translateY(-3px);
  background: rgba(201,169,97,0.05);
}

/* -------- STATS -------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 6vw, 80px);
  color: var(--accent-gold);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-line {
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
  margin-bottom: 16px;
}
.stat-lab { font-size: 14px; color: var(--ink-secondary); line-height: 1.4; max-width: 220px; }

/* -------- GARANTIA -------- */
.guarantee .container { max-width: 980px; }
.guarantee-card {
  background: linear-gradient(135deg, rgba(201,169,97,0.08), rgba(20,28,48,0.4));
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}
.guarantee-seal {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 46px;
  line-height: 1;
  color: var(--bg-primary);
  flex-shrink: 0;
  animation: pulseGlow 3.2s ease-in-out infinite;
}
.guarantee-seal .seal-sub {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,97,0.4); }
  50% { box-shadow: 0 0 0 24px rgba(201,169,97,0); }
}
.guarantee h2 { margin-bottom: 16px; }
.guarantee p { color: var(--ink-secondary); }
@media (max-width: 700px) {
  .guarantee-card { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .guarantee-seal { margin: 0 auto; }
}

/* -------- FAQ -------- */
.faq .container { max-width: 820px; }
.faq-head { text-align: center; margin-bottom: 56px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--border-gold); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-primary);
  transition: color 0.3s;
}
.faq-item.open .faq-q { color: var(--accent-gold); }
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--accent-gold); color: var(--accent-gold); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo);
}
.faq-a-inner { padding: 0 0 28px; color: var(--ink-secondary); max-width: 680px; }

/* -------- CTA FINAL -------- */
.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--gradient-hero);
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/photos/bruno-acao.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: grayscale(0.4);
  z-index: 0;
}
.cta-final::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, transparent, var(--bg-primary) 90%);
  z-index: 1;
}
.cta-final .container { position: relative; z-index: 2; max-width: 1060px; }
.cta-final h2 { margin-bottom: 28px; }
.cta-final p { color: var(--ink-secondary); margin-bottom: 32px; font-size: 18px; text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.cta-final-foot { margin-top: 24px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-tertiary); }

/* -------- FOOTER -------- */
.footer {
  background: var(--bg-secondary);
  padding: 96px 0 32px;
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: 'CASTELLUM';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(120px, 18vw, 320px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}
.footer-brand img { height: 80px; margin-bottom: 20px; }
.footer-brand p { color: var(--ink-tertiary); font-size: 14px; max-width: 280px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-tertiary); margin-bottom: 20px; font-weight: 700; }
.footer-col ul li { margin-bottom: 12px; font-size: 14px; }
.footer-col ul a { color: var(--ink-secondary); transition: color 0.3s; }
.footer-col ul a:hover { color: var(--accent-gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--ink-tertiary);
  position: relative;
  z-index: 2;
}
.footer-bottom .mono { font-family: var(--font-mono); }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

/* -------- ABOUT VISUAL (foto grande + logo overlay mesclado) -------- */
.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.65);
}
.about-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: none;
  display: block;
  transition: transform 0.9s var(--ease-out-expo);
}
.about-visual:hover > img { transform: scale(1.03); }
/* Gradiente inferior para fundir logo */
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,15,28,0.82) 100%);
  pointer-events: none;
}
.about-logo-blend {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 2;
}
.about-logo-blend img {
  width: 62%;
  max-width: 210px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(201,169,97,0.15));
  opacity: 0.92;
}
@media (max-width: 900px) {
  .about-logo-blend img { max-width: 130px; opacity: 0.8; }
  .about-logo-blend { padding: 20px 24px; }
}
@media (max-width: 600px) {
  .about-logo-blend img { max-width: 100px; opacity: 0.75; }
  .about-logo-blend { padding: 16px 18px; }
}

/* -------- ABOUT GALLERY (foto + logo side by side) -------- */
.about-gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.about-frame-photo {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
}
.about-frame-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: none;
  transition: transform 0.8s var(--ease-out-expo);
  display: block;
}
.about-frame-photo:hover img { transform: scale(1.04); }
.about-frame-logo {
  background: linear-gradient(145deg, #08112A 0%, #0C1E45 50%, #0F274E 100%);
  border: 1px solid rgba(201,169,97,0.28);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.about-frame-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(201,169,97,0.13) 0%, transparent 65%);
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.about-frame-logo img {
  width: 82%;
  max-width: 170px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 22px rgba(201,169,97,0.2));
}
@media (max-width: 600px) {
  .about-gallery { grid-template-columns: 1fr; }
  .about-frame-photo { aspect-ratio: 4/5; }
  .about-frame-logo { aspect-ratio: 4/3; }
}

/* -------- HERO IMAGE OVERLAYS -------- */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, transparent 55%, rgba(10,15,28,0.55) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-img-tag {
  position: absolute;
  top: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(10,15,28,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-primary);
  z-index: 4;
  white-space: nowrap;
}
.hero-img-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  flex-shrink: 0;
}
.hero-img-corner {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 26px;
  height: 26px;
  border-top: 2px solid rgba(201,169,97,0.55);
  border-right: 2px solid rgba(201,169,97,0.55);
  border-radius: 0 6px 0 0;
  z-index: 4;
  pointer-events: none;
}
.hero-img-quote-block {
  position: absolute;
  bottom: 0;
  left: 20px;
  right: auto;
  width: 205px;
  transform: translateY(50%);
  padding: 14px 16px 12px;
  background: rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  z-index: 10;
}
.hero-img-stars {
  color: var(--accent-gold);
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 7px;
}
.hero-img-quote-block p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11.5px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 7px;
  text-align: left;
  -webkit-hyphens: auto; hyphens: auto;
}
.hero-img-attr {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.hero-img-badge {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 64px;
  height: 64px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 6px 28px rgba(201,169,97,0.55), 0 0 0 3px rgba(201,169,97,0.2);
  border: 2px solid rgba(255,255,255,0.2);
}
.hero-img-badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: none;
}
.hero-img-brand-label {
  display: none;
}

/* ====== OVERLAYS DA FOTO — MOBILE/PHONE (devem ficar APÓS as definições base) ====== */

/* Tablet (≤ 900px): quote block fica DENTRO do card, sem translateY */
@media (max-width: 900px) {
  .hero-img-quote-block {
    transform: none;
    bottom: 14px;
    left: 14px;
    width: 185px;
  }
}

/* Phones (≤ 600px): overlays menores, tudo dentro do card */
@media (max-width: 600px) {
  .hero-img-tag    { top: 12px; left: 12px; font-size: 9px; padding: 5px 10px; gap: 6px; }
  .hero-img-dot    { width: 5px; height: 5px; }
  .hero-img-corner { top: 12px; right: 12px; width: 20px; height: 20px; }
  .hero-img-quote-block {
    width: 158px;
    padding: 9px 11px 8px;
    bottom: 10px;
    left: 10px;
    transform: none;
  }
  .hero-img-quote-block p { font-size: 10px; line-height: 1.4; margin-bottom: 5px; }
  .hero-img-stars  { font-size: 9px; letter-spacing: 2px; margin-bottom: 4px; }
  .hero-img-attr   { font-size: 8px; }
  .hero-img-badge  { width: 48px; height: 48px; bottom: 10px; right: 10px; }
  .hero-img-badge img { width: 60%; height: 60%; object-fit: contain; object-position: center; }
}

/* -------- CTA — O SEU PRÓXIMO PACIENTE -------- */
.cta-headline-line {
  margin-bottom: 20px;
}

/* Google logo gigante */
.cta-google-logo-big {
  font-family: 'Nunito', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: clamp(72px, 13vw, 160px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
  margin: 8px 0 20px;
  text-align: center;
}

/* Pergunta */
.cta-google-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
  text-align: center;
  color: var(--ink-primary);
}

/* Barra de busca animada */
.cta-search-wrap {
  max-width: 620px;
  margin: 0 auto 52px;
}
.cta-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 28px;
  padding: 18px 20px;
  box-shadow: 0 4px 6px rgba(32,33,36,0.28), 0 -1px 0 rgba(32,33,36,0.02), 0 1px 3px rgba(32,33,36,0.2);
  border: 1px solid rgba(32,33,36,0.08);
  min-height: 60px;
}
.cta-search-bar-logo {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  flex-shrink: 0;
}
.cta-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  border-left: 1px solid #dadce0;
  padding-left: 14px;
}
.cta-search-text {
  color: #202124;
  font-size: 16px;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.cta-search-cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: #4285F4;
  margin-left: 1px;
  vertical-align: middle;
  flex-shrink: 0;
  animation: gcursor 0.8s step-end infinite;
}
@keyframes gcursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.cta-search-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-left: 4px;
}

/* -------- FOOTER CONTACT ICONS -------- */
.footer-social-link {
  display: flex !important;
  align-items: center;
  gap: 9px;
  color: var(--ink-secondary);
  transition: color 0.3s;
  font-size: 14px;
}
.footer-social-link:hover { color: var(--accent-gold); }
.footer-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.7;
}
.footer-social-link:hover svg { opacity: 1; }

/* -------- UTIL ANIMATIONS -------- */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"].in { transition-delay: 0.08s; }
.reveal[data-delay="2"].in { transition-delay: 0.16s; }
.reveal[data-delay="3"].in { transition-delay: 0.24s; }
.reveal[data-delay="4"].in { transition-delay: 0.32s; }
.reveal[data-delay="5"].in { transition-delay: 0.4s; }

.split-char { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out-expo); }
.split-line.in .split-char { transform: translateY(0); }

/* WhatsApp floating */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease-out-expo);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  .marquee-track { animation: none; }
  .hero::before, .hero::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .split-char { transform: none; }
}
