/* =========================================================
   Classic Automação — stylesheet
   Fluid, framework-free CSS. Breakpoints: <768 mobile,
   768–1024 tablet, 1024–1440 desktop, >1440 desktop grande.
   Typography scales fluidly with clamp() between 375px and
   1440px viewports so there are no hard jumps in-between.
   ========================================================= */

/* ---------- Registered custom properties (so transitions keep re-triggering on every change, not just the first) ---------- */
@property --tilt-x {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --tilt-y {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --card-lift {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #061826;
  --surface: #173247;
  --cream: #FFFFFF;
  --green: #2AEAB9;
  --ink: #061826;

  --glass-bg:
    linear-gradient(135deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .03) 30%, transparent 52%),
    rgba(23, 50, 71, .20);
  --glass-bg-strong:
    linear-gradient(135deg, rgba(255, 255, 255, .065) 0%, rgba(255, 255, 255, .018) 30%, transparent 50%),
    rgba(23, 50, 71, .46);
  --glass-border: rgba(255, 255, 255, .11);
  --glass-border-hover: rgba(255, 255, 255, .2);
  --glass-highlight: rgba(255, 255, 255, .12);
  --glass-blur: 18px;
  --glass-saturation: 115%;
  --glass-backdrop-brightness: 90%;
  --glass-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 1px 0 0 rgba(255, 255, 255, .025),
    0 20px 56px rgba(6, 24, 38, .32);

  --border-1: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.1);
  --border-3: rgba(255, 255, 255, 0.14);
  --border-4: rgba(255, 255, 255, 0.2);
  --border-5: rgba(255, 255, 255, 0.24);

  --border-dark-1: rgba(6, 24, 38, 0.14);
  --border-dark-2: rgba(6, 24, 38, 0.2);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-watermark: 'Poppins', sans-serif;
  --font-nav: 'Krona One', sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --container-w: min(90vw, 1400px);
  --hero-photo-lift: clamp(60px, 5vw, 78px);
}

/* fluid() helper values are hand-authored per element via clamp() below */

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: var(--container-w);
  margin-inline: auto;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.preloader__icon {
  position: relative;
  width: clamp(64px, 12vw, 110px);
  aspect-ratio: 141 / 173;
}
.preloader__icon-track,
.preloader__icon-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preloader__icon-track { opacity: .14; }
.preloader__icon-fill {
  clip-path: inset(100% 0 0 0);
  filter: drop-shadow(0 0 18px rgba(42, 234, 185, .35));
}
.preloader__percent {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .15em;
  color: var(--cream);
  opacity: .8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 1.8em;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1.3px solid transparent;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn:active { transform: translateY(0) scale(.99); }

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}
.btn--primary:hover { background: var(--green); border-color: var(--green); opacity: .75; }

.btn--ghost {
  background: transparent;
  border-color: var(--border-5);
  color: var(--cream);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--cream); }

.btn--outline {
  background: transparent;
  border-color: var(--border-5);
  color: var(--cream);
}
.btn--outline:hover { background: rgba(255, 255, 255, .06); border-color: var(--cream); }

.btn--whatsapp {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(42, 234, 185, .35);
  color: var(--cream);
}
.btn--whatsapp:hover { background: rgba(42, 234, 185, .12); border-color: var(--green); }

.btn--block { width: 100%; }

.btn--nav {
  padding: .8em 1.6em;
  font-size: 12px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55em 1.1em;
  border-radius: 999px;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.pill-link:hover { transform: scale(1.05); background: var(--green); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: clamp(14px, 2vw, 24px) clamp(16px, 4vw, 48px);
  transition: transform .32s var(--ease), padding .32s var(--ease);
}
.site-header__inner {
  max-width: 1600px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.site-header__logo-full {
  height: clamp(30px, 4vw, 40px);
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.site-header__logo-icon {
  position: absolute;
  left: 0;
  top: 50%;
  height: 88%;
  width: auto;
  filter: brightness(0) invert(1);
  transform: translateY(-50%) scale(1);
  transition: transform .4s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled .site-header__logo-full {
  opacity: 0;
  transform: translateX(-18px);
  pointer-events: none;
}
.site-header.is-scrolled .site-header__logo-icon {
  transform: translateY(-50%) scale(1.5);
}

.site-nav {
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: .85em 1.8em;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  box-shadow: var(--glass-shadow);
}
.site-nav__link {
  font-family: var(--font-nav);
  font-size: 12px;
  color: var(--cream);
  position: relative;
  transition: color .25s var(--ease);
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav__link:hover { color: var(--green); }
.site-nav__link:hover::after { transform: scaleX(1); }

.menu-toggle {
  position: relative;
  z-index: 450;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(23, 50, 71, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1025px) {
  .site-header.is-scrolled .site-nav,
  .site-header.is-scrolled .btn--nav {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }
  .btn--nav {
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  z-index: 0;
  padding-top: clamp(64px, 6vw, 100px);
  padding-bottom: 0;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,.03), transparent 70%);
}
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
  z-index: 0;
  pointer-events: none;
}
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 38, .86), rgba(6, 24, 38, .68));
  z-index: 1;
  pointer-events: none;
}
.hero__watermark {
  font-family: var(--font-watermark);
  font-weight: 700;
  color: var(--green);
  text-align: center;
  font-size: clamp(60px, 17.8vw, 339px);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: -0.78em;
  position: relative;

  z-index: 2; /* ATRÁS DA FOTO */

  user-select: none;
}

.hero__photo-wrap {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  overflow: hidden;

  z-index: 3; /* FOTO NA FRENTE */

  opacity: 0;
  transform: translateY(220px);
  transition: opacity 3.8s cubic-bezier(.16, 1, .3, 1),
              transform 3.8s cubic-bezier(.16, 1, .3, 1);
}
.hero__photo-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero__photo {
  --hero-photo-blur: 0px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: blur(var(--hero-photo-blur));
  will-change: filter;
}
.hero__photo-wrap::after {
  display: none;
}
.hero__overlay {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(30%, 27vw, 27%);
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.4vw, 22px);
  padding-inline: 1rem;
}
.hero__headline {
  text-align: center;
}
.hero__headline-line {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cream);
  font-size: clamp(26px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.hero__cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Marquee ---------- */
.marquee {
  background: linear-gradient(90deg, var(--bg) 0%, var(--surface) 56%, rgba(42, 234, 185, .3) 100%);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(42, 234, 185, .22);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  padding: clamp(8px, 1.2vw, 14px) 0;
  margin-block-start: calc(var(--hero-photo-lift) * -1);
  position: relative;
  z-index: 4;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 1.6vw, 1.5rem);
  padding-right: clamp(.85rem, 1.6vw, 1.5rem);
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: -.02em;
  color: var(--cream);
  white-space: nowrap;
}
.marquee__bullet {
  width: clamp(16px, 1.8vw, 24px);
  height: auto;
  filter: brightness(0) saturate(100%) invert(83%) sepia(36%) saturate(1308%) hue-rotate(111deg) brightness(98%) contrast(91%);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  margin-bottom: clamp(16px, 2vw, 24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cream);
  display: inline-block;
}
.eyebrow--dark { color: rgba(6, 24, 38, .8); }
.eyebrow__dot--dark { background: var(--ink); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: clamp(16px, 2vw, 24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.section-title--dark { color: var(--ink); }

.rotating-words {
  position: relative;
  display: block;
  width: 100%;
  height: 2.04em;
  overflow: hidden;
}
.rotating-words__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--green);
  opacity: 0;
  transform: translateY(60%);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  will-change: transform, opacity;
}
.rotating-words__item.is-active {
  opacity: 1;
  transform: translateY(0);
}
.rotating-words__item.is-leaving {
  opacity: 0;
  transform: translateY(-60%);
}

.section-lede {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  color: rgba(255, 255, 255, .85);
  max-width: 34em;
  line-height: 1.55;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.section-lede--dark { color: rgba(6, 24, 38, .8); }

/* ---------- Cursor reveal on display titles ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor-reveal-title {
    --title-reveal-base: var(--cream);
    --title-reveal-accent: var(--green);
    --title-reveal-hot: #FFFFFF;
    --title-reveal-size: clamp(90px, 9vw, 145px);
    transition: filter .25s var(--ease);
  }
  .cursor-reveal-title.is-cursor-reveal-active {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: radial-gradient(
      circle var(--title-reveal-size) at var(--title-reveal-x, 50%) var(--title-reveal-y, 50%),
      var(--title-reveal-hot) 0%,
      var(--title-reveal-accent) 30%,
      var(--title-reveal-base) 72%
    );
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 16px rgba(42, 234, 185, .16));
  }
  .hero__watermark.cursor-reveal-title {
    --title-reveal-base: var(--green);
    --title-reveal-accent: var(--cream);
    --title-reveal-hot: #FFFFFF;
    --title-reveal-size: clamp(130px, 13vw, 210px);
  }
  .section-title--dark.cursor-reveal-title {
    --title-reveal-base: var(--ink);
  }
  .planos__title.cursor-reveal-title {
    --title-reveal-size: clamp(130px, 13vw, 210px);
    pointer-events: auto;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-revealed { opacity: 1; transform: none; }

/* ---------- Processos ---------- */
.processos {
  --process-end-gap: clamp(32px, 4vw, 56px);
  padding-block-start: clamp(24px, 4vw, 56px);
  padding-block-end: var(--process-end-gap);
  position: relative;
  isolation: isolate;
}
.processos::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: clamp(300px, 31vw, 460px) 0 7%;
  background:
    radial-gradient(ellipse 36% 18% at 27% 14%, rgba(42, 234, 185, .105), transparent 72%),
    radial-gradient(ellipse 30% 24% at 54% 48%, rgba(42, 234, 185, .075), transparent 76%),
    radial-gradient(ellipse 32% 20% at 23% 82%, rgba(42, 234, 185, .065), transparent 74%);
  pointer-events: none;
}
.processos > .container {
  position: relative;
  z-index: 1;
}
.process-list {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 40px);
  padding-left: clamp(48px, 8vw, 112px);
  border-left: 1px solid var(--border-2);
  --p: 0;
}
.process-list__beam {
  position: absolute;
  left: -2px;
  top: 0;
  width: 4px;
  height: calc(var(--p, 0) * 100% + var(--p, 0) * var(--process-end-gap));
  background: linear-gradient(to bottom, transparent, var(--green) 65%, var(--green));
  box-shadow: 0 0 16px 2px rgba(42, 234, 185, .8), 0 0 40px 6px rgba(42, 234, 185, .35);
  pointer-events: none;
  will-change: height;
}
.process-list__burst {
  position: absolute;
  left: -1px;
  top: calc(100% + var(--process-end-gap));
  z-index: 4;
  width: min(76vw, 980px);
  height: clamp(72px, 8vw, 112px);
  transform-origin: left center;
  transform: translate(-5%, -54%) scaleX(clamp(.08, calc((var(--p, 0) - .84) * 6.25), 1));
  background: radial-gradient(ellipse 72% 38% at 9% 50%, rgba(42, 234, 185, .38) 0%, rgba(42, 234, 185, .15) 38%, rgba(42, 234, 185, .045) 58%, transparent 76%);
  filter: blur(10px);
  opacity: clamp(0, calc((var(--p, 0) - .82) * 5.56), 1);
  pointer-events: none;
  will-change: transform, opacity;
}
.process-item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(28px, 4vw, 40px) 1fr;
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
}
.process-item__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--cream);
  position: absolute;
  left: clamp(-40px, -6vw, -56px);
  top: clamp(22px, 2.4vw, 33px);
}
.process-item__card {
  grid-column: 1 / -1;
  width: min(100%, 760px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 85% 52% at 4% -18%, rgba(255, 255, 255, .04) 0%, transparent 58%),
    var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 33px);
  box-shadow: var(--glass-shadow);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.process-item__card::before,
.pricing-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .022) 18%, transparent 36%),
    radial-gradient(ellipse 58% 15% at 48% 0%, rgba(255, 255, 255, .065), transparent 72%);
  pointer-events: none;
}
.process-item__card > * {
  position: relative;
  z-index: 1;
}
.process-item__card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}
.process-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -.03em;
  color: var(--cream);
  margin-bottom: .6em;
}
.process-item__text {
  font-size: clamp(14px, 1vw, 15.5px);
  color: rgba(255, 255, 255, .85);
  line-height: 1.65;
  max-width: 46em;
  margin-bottom: 1.4em;
}
.process-item__more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: clamp(14px, 1vw, 15.5px);
  color: rgba(255, 255, 255, .65);
  line-height: 1.65;
  max-width: 46em;
  transition: max-height .4s var(--ease), opacity .3s var(--ease), margin-bottom .4s var(--ease);
}
.process-item.is-open .process-item__more {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 1.4em;
}
.process-item__toggle span {
  display: inline-block;
  transition: transform .3s var(--ease);
}
.process-item.is-open .process-item__toggle span {
  transform: rotate(45deg);
}

/* ---------- Casos reais ---------- */
.casos {
  background: var(--cream);
  border-radius: clamp(24px, 4vw, 40px);
  margin: 0 clamp(0px, 1vw, 8px) 0;
  padding-block: clamp(60px, 9vw, 120px);
  position: relative;
  z-index: 3;
}
.case-list {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--border-dark-1);
}
.case-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding-block: clamp(24px, 3.4vw, 42px);
  border-bottom: 1px solid var(--border-dark-1);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.case-item > * { min-width: 0; }
.case-item:hover { opacity: .72; }
.case-list .case-item:nth-child(2) { transition-delay: .12s; }
.case-list .case-item:nth-child(3) { transition-delay: .24s; }
.case-item__number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(6, 24, 38, .9);
}
.case-item__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 42px);
  letter-spacing: -.04em;
  color: var(--ink);
  margin-bottom: .25em;
}
.case-item__desc {
  font-size: clamp(13px, .95vw, 14.5px);
  color: rgba(6, 24, 38, .85);
  line-height: 1.65;
  max-width: 34em;
}
.case-item__tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tag {
  border: 1px solid var(--border-dark-2);
  border-radius: 999px;
  padding: .4em 1em;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
}
.case-item__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  gap: .4em;
  white-space: nowrap;
}
.case-item__link span {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.case-item:hover .case-item__link span {
  transform: translateX(4px);
}

/* ---------- Planos ---------- */
.planos {
  position: relative;
  padding-block-start: clamp(70px, 10vw, 150px);
  padding-block-end: clamp(36px, 4.5vw, 68px);
  overflow: hidden;
  isolation: isolate;
}
.planos::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 12% 0 3%;
  background:
    radial-gradient(ellipse 29% 52% at 14% 58%, rgba(42, 234, 185, .09), transparent 74%),
    radial-gradient(ellipse 30% 56% at 50% 56%, rgba(42, 234, 185, .09), transparent 76%),
    radial-gradient(ellipse 28% 50% at 88% 55%, rgba(42, 234, 185, .08), transparent 74%);
  pointer-events: none;
}
.planos > .container {
  position: relative;
  z-index: 1;
}
.planos__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream);
  font-size: clamp(60px, 26.5vw, 410px);
  line-height: .9;
  letter-spacing: -.03em;
  text-align: center;
  margin-bottom: -.4em;
  pointer-events: none;

   transform: translateY(-70px);
}
.pricing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 28px);
  align-items: stretch;
}
.pricing-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) brightness(var(--glass-backdrop-brightness));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) brightness(var(--glass-backdrop-brightness));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: clamp(24px, 2.4vw, 36px);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--card-lift, 0px));
  transition: transform .3s var(--ease), border-color .3s var(--ease), opacity .5s var(--ease);
}
.pricing-card > :not(.luz-lanterna) {
  z-index: 1;
}
.pricing-card.reveal:not(.is-revealed) {
  transform: translateY(28px);
}
.pricing-card.reveal.is-revealed {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--card-lift, 0px));
}
.pricing-grid .pricing-card:nth-child(2) { transition-delay: .12s; }
.pricing-grid .pricing-card:nth-child(3) { transition-delay: .24s; }

.luz-lanterna {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(42, 234, 185, .22), transparent 70%);
  pointer-events: none;
}
.pricing-card:hover .luz-lanterna { opacity: 1; }
.pricing-card--featured {
  border-color: rgba(42, 234, 185, .42);
}
.pricing-card--featured .pricing-card__label {
  padding-right: 100px;
}
.pricing-card__badge {
  position: absolute;
  top: clamp(16px, 1.6vw, 22px);
  right: clamp(16px, 1.6vw, 22px);
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45em 1em;
  border-radius: 999px;
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42, 234, 185, .45); }
  50% { box-shadow: 0 0 0 7px rgba(42, 234, 185, 0); }
}
.pricing-card__header { margin-bottom: 1.4em; }
.pricing-card__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -.03em;
  margin-bottom: .5em;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -.04em;
  margin-bottom: .3em;
}
.pricing-card__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .65);
}
.pricing-card__desc {
  font-size: clamp(13px, .95vw, 14.5px);
  color: rgba(255, 255, 255, .85);
  line-height: 1.7;
  margin-bottom: 1.4em;
}
.pricing-card__list {
  border-top: 1px solid var(--border-2);
  padding-top: 1.2em;
  display: flex;
  flex-direction: column;
  gap: .9em;
  flex: 1;
}
.pricing-card__list li {
  display: flex;
  gap: .8em;
  font-size: clamp(13px, .95vw, 14.5px);
  color: var(--cream);
  line-height: 1.4;
}
.pricing-card__list li span {
  color: var(--green);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.pricing-card__footer {
  border-top: 1px solid var(--border-2);
  margin-top: 1.6em;
  padding-top: 1.6em;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.pricing-card__note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.5;
}
.planos__footnote {
  text-align: center;
  max-width: 40em;
  margin: clamp(40px, 5vw, 64px) auto 0;
  color: rgba(255, 255, 255, .85);
  font-size: clamp(14px, 1vw, 16px);
}

/* ---------- Contato ---------- */
.contato {
  --contato-robot-lift: 160px;
  --contato-robot-y: 0px;
  position: relative;
  z-index: 3;
  padding-block-start: clamp(20px, 3vw, 44px);
  padding-block-end: 0;
}
.contato__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
  z-index: 0;
  pointer-events: none;
}
.contato__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 38, .86), rgba(6, 24, 38, .68));
  z-index: 1;
  pointer-events: none;
}
.contato__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .85fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.contato__art,
.contato__content {
  min-width: 0;
}
.contato__art {
  position: relative;
  z-index: 1;
  align-self: end;
  transform: translate3d(0, var(--contato-robot-y), 0);
  will-change: transform;
}
.contato__art img {
  width: 150%;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-70%);
}
.contato__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: .95;
  letter-spacing: -.045em;
  margin-bottom: .5em;
}
.contato__text {
  font-size: clamp(14px, 1vw, 15.5px);
  color: rgba(255, 255, 255, .85);
  line-height: 1.7;
  max-width: 34em;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.contato__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.contato__cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-radius: clamp(32px, 6vw, 80px) clamp(32px, 6vw, 80px) 0 0;
  padding-block: clamp(22px, 1.8vw, 28px) clamp(16px, 1.6vw, 24px);
}
.site-footer__email {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 43px);
  letter-spacing: -.04em;
  color: var(--cream);
  display: inline-block;
  margin-bottom: clamp(18px, 2vw, 28px);
  transition: color .25s var(--ease);
}
.site-footer__email::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-footer__email:hover { color: var(--green); }
.site-footer__email:hover::after { transform: scaleX(1); }
.site-footer__columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(18px, 1.8vw, 24px);
}
.footer-col { display: flex; flex-direction: column; gap: .9em; min-width: 120px; }
.footer-col__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
  margin-bottom: .3em;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: var(--cream); }
.site-footer__divider {
  border-top: 1px solid var(--border-2);
}

/* =========================================================
   Breakpoints — structural changes only (typography is fluid)
   ========================================================= */

/* Tablet and below: collapse nav into a mobile menu */
@media (max-width: 1024px) {
  .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(6, 24, 38, .98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    z-index: 400;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-nav__list {
    flex-direction: column;
    background: none;
    border: none;
    padding: 0;
    gap: 2rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .site-nav__link { font-size: 18px; }
  .menu-toggle { display: flex; }
  .btn--nav { display: none; }

  .contato { --contato-robot-lift: 84px; }
  .contato__grid { grid-template-columns: 1fr; }
  .contato__art { order: 2; max-width: 480px; margin-inline: auto; }
  .contato__content { order: 1; text-align: center; }
  .contato__cta { align-items: center; }
  .contato__text { margin-inline: auto; }
}

/* Tablet: pricing grid to 1 column keeps readable cards, 2-col from 900 up handled below */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--featured { grid-column: 1 / -1; }
}

/* Mobile: stack case items, simplify hero spacing */
@media (max-width: 767px) {
  :root { --hero-photo-lift: 34px; }

  .site-header.is-hidden-mobile {
    transform: translateY(-115%);
  }
  .site-header.is-scrolled {
    padding: 10px 12px;
  }
  .site-header.is-scrolled .site-header__logo {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
  .site-header.is-scrolled .menu-toggle {
    width: 44px;
    height: 44px;
    background: var(--glass-bg-strong);
    border-color: var(--glass-border);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    box-shadow: var(--glass-shadow);
  }

  .contato { --contato-robot-lift: 48px; }

  .hero__overlay { bottom: 14%; gap: clamp(10px, 3vw, 16px); }
  .hero__headline-line { font-size: clamp(22px, 6.5vw, 32px); }
  .case-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "body"
      "tags"
      "link";
    row-gap: .75rem;
  }
  .case-item__number { grid-area: num; }
  .case-item__body { grid-area: body; }
  .case-item__tags { grid-area: tags; justify-content: flex-start; }
  .case-item__link { grid-area: link; justify-self: start; }

  .process-list { padding-left: 40px; }
  .process-item__number { left: -32px; font-size: 15px; }

  .site-footer__columns { gap: 2.5rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo {
    filter: none;
    will-change: auto;
  }

  .contato__art {
    transform: none;
    will-change: auto;
  }
}

/* Small phones */
@media (max-width: 380px) {
  :root { --container-w: 92vw; }
}
