/* ============================================================
   Gabriel Rodrigues — v3
   Preto / branco / vermelho vibrante. Estética de "engenharia de
   precisão": grid técnico, luz pontual em vez de gradiente cobrindo
   a tela, tipografia monoespaçada em labels/metadata.
   ============================================================ */

:root {
  --bg: #050505;
  --bg-raised: #0d0d10;
  --bg-card: #15151a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f5f6;
  --text-soft: rgba(245, 245, 246, 0.7);
  --text-mute: rgba(245, 245, 246, 0.45);

  --red: #ff2b38;
  --red-hot: #ff5c66;
  --red-deep: #e11d2e;
  --red-dim: rgba(255, 43, 56, 0.14);

  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-mono: "SFMono-Regular", "IBM Plex Mono", "JetBrains Mono", Consolas, Menlo, monospace;

  --container: 1180px;
  --radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* seleção de texto na cor da marca */
::selection {
  background: var(--red);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--red); }
mark {
  background: none;
  color: var(--text);
  position: relative;
  padding: 0 .06em;
}
mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .22em;
  background: var(--red-dim);
  z-index: -1;
  border-bottom: 1.5px solid var(--red);
  transform-origin: left center;
}
/* o sublinhado "se desenha" quando o elemento revela */
.reveal mark::after {
  transform: scaleX(0);
  transition: transform .7s var(--ease) .35s;
}
.reveal.is-visible mark::after { transform: scaleX(1); }
/* no hero, desenha após o decode do título */
.hero-title mark::after {
  transform: scaleX(0);
  animation: mark-draw .8s var(--ease) 1.55s forwards;
}
@keyframes mark-draw { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .reveal mark::after,
  .hero-title mark::after {
    transform: none;
    animation: none;
    transition: none;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #0a0a0a;
  padding: 10px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Barra de progresso de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-hot));
  box-shadow: 0 0 10px rgba(255, 43, 56, 0.6);
  z-index: 150;
  pointer-events: none;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px 1px var(--red);
  flex: none;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-dot { animation: none; }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 5, 0);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14.5px;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.nav-cta:hover {
  border-color: var(--red);
  background: var(--red-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  margin: 0 auto;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 68px;
  left: 0; right: 0; bottom: 0;
  padding: 8px 24px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow-y: auto;
}
.mobile-menu a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta { color: var(--red); font-weight: 600; }
.mobile-menu.is-open { display: flex; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 170px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 30%, transparent 75%);
  opacity: .5;
}
.hero-glow {
  position: absolute;
  top: -220px; left: 50%;
  width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--red-dim), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-rain {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .5;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero-title {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero-title-line { display: block; }
.glyph.is-scrambling {
  color: var(--red);
  text-shadow: 0 0 18px rgba(255, 43, 56, 0.85), 0 0 42px rgba(255, 43, 56, 0.4);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* entrada em cascata do hero (depois que o decode começa) */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-sub { animation: rise-in .7s var(--ease) .25s both; }
.hero-actions { animation: rise-in .7s var(--ease) .45s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-sub, .hero-actions { animation: none; }
}
@media (max-width: 640px) {
  .hero { padding: 140px 0 72px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn svg { transition: transform .18s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  position: relative;
  overflow: hidden;
  color: var(--text);
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(20, 12, 13, 0.55), rgba(16, 9, 10, 0.65)) padding-box,
    linear-gradient(120deg,
      rgba(255, 92, 102, 0.8) 0%,
      rgba(255, 43, 56, 0.3) 35%,
      rgba(255, 255, 255, 0.12) 55%,
      rgba(255, 43, 56, 0.5) 80%,
      rgba(225, 29, 46, 0.85) 100%) border-box;
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow:
    0 6px 26px -8px rgba(255, 43, 56, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* pequena luz vermelha desfocada dentro do vidro */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(255, 122, 130, 0.75) 0%,
    rgba(255, 43, 56, 0.4) 45%,
    transparent 100%);
  filter: blur(14px);
  pointer-events: none;
}
.btn-primary > * { position: relative; }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 34px -8px rgba(255, 43, 56, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover::before {
  filter: blur(12px);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text-mute);
  transform: translateY(-1px);
}

/* ============================================================
   Stack strip
   ============================================================ */
.stack-strip {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.stack-wide {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.stack-wide::-webkit-scrollbar { display: none; }
.stack-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 34px;
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
  width: max-content;
  min-width: 100%;
}
.stack-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(245, 245, 246, 0.62);
  filter: grayscale(1);
  transition: color .25s var(--ease), opacity .25s var(--ease);
  cursor: default;
}
.stack-logo svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.stack-logo span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.stack-logo:hover {
  color: var(--text);
  transform: translateY(-2px) scale(1.06);
}
.stack-logo {
  transition: color .25s var(--ease), transform .25s var(--ease);
}

@media (max-width: 640px) {
  .stack-list { gap: 12px 22px; }
  .stack-logo svg { width: 24px; height: 24px; }
  .stack-logo span { font-size: 13px; }
}

/* ============================================================
   Sections generic
   ============================================================ */
.section {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

/* Serviços: superfície elevada com luz caindo do topo */
#servicos {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
    var(--bg-raised);
}
/* Trabalho: céu noturno (canvas de estrelas) + brilho vermelho discreto */
.section-work {
  overflow: hidden;
  background:
    radial-gradient(ellipse 40% 45% at 88% 8%, rgba(255, 43, 56, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #0b0b0e 100%);
}
.night-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.section-work .container { position: relative; z-index: 1; }
/* Processo: superfície elevada + malha de pontos reativa ao mouse (canvas) */
#processo {
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 50% 105%, rgba(255, 43, 56, 0.08), transparent 70%),
    var(--bg-raised);
}
.process-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#processo .container { position: relative; z-index: 1; }
/* Contato: volta ao preto profundo para o card brilhar */
.cta-section {
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(255, 255, 255, 0.03), transparent 70%),
    var(--bg);
}
.section-head { margin-bottom: 48px; }
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-sub {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 58ch;
  margin: 14px 0 0;
}

/* ---------- Garantias (confiança): texto + site de exemplo ---------- */
#garantias {
  background:
    radial-gradient(ellipse 50% 50% at 12% 0%, rgba(255, 43, 56, 0.06), transparent 70%),
    var(--bg);
}
.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.trust-copy .section-sub { margin-bottom: 36px; }

.trust-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.trust-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--red);
  background: rgba(255, 43, 56, 0.06);
  margin-top: 2px;
}
.trust-steps h3 {
  font-size: 16.5px;
  margin: 0 0 5px;
}
.trust-steps p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  max-width: 46ch;
}
/* o passo do pagamento é a promessa mais forte */
.trust-step--highlight .trust-icon {
  border-color: var(--red);
  box-shadow: 0 0 18px -4px rgba(255, 43, 56, 0.55);
}
.trust-step--highlight h3 { color: var(--red-hot); }

/* ----- site de exemplo (mockup de navegador, CSS puro) ----- */
.trust-preview { position: relative; }
/* aurora arco-íris girando atrás da janela (estilo Vercel) */
.trust-preview::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    #ff2b38, #ff8a00, #ffd600, #35d07f,
    #00b3ff, #7b61ff, #ff2b8f, #ff2b38
  );
  border-radius: 50%;
  filter: blur(56px) saturate(1.2);
  opacity: .32;
  animation: aurora-spin 10s linear infinite;
  pointer-events: none;
}
@keyframes aurora-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-preview::before { animation: none; }
}
.browser {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0c0c0f;
  overflow: hidden;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.8),
    0 10px 44px -14px rgba(255, 43, 56, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.browser-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.browser-dot:first-child { background: rgba(255, 43, 56, 0.75); }
.browser-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 12px;
  background: rgba(0, 0, 0, 0.3);
}
.browser-body { padding: 22px 24px 26px; }

/* esqueleto do site de exemplo */
.bw-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.bw-logo {
  width: 54px; height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}
.bw-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.bw-links i {
  width: 30px; height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}
.bw-navbtn {
  width: 58px; height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.bw-hero { display: flex; flex-direction: column; align-items: flex-start; }
.bw-h1 {
  width: 78%; height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.26);
  margin-bottom: 9px;
}
.bw-h1--short { width: 52%; }
.bw-p {
  width: 64%; height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 7px;
}
.bw-p--short { width: 44%; }
.bw-cta {
  width: 108px; height: 26px;
  border-radius: 7px;
  margin-top: 18px;
  background: linear-gradient(120deg, var(--red), var(--red-deep));
  box-shadow: 0 4px 18px -4px rgba(255, 43, 56, 0.6);
}
.bw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}
.bw-cards i {
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%);
}

/* brilho varrendo o site de exemplo de tempos em tempos */
.browser::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 60%;
  left: -80%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.05) 45%, rgba(255, 43, 56, 0.07) 55%, transparent);
  animation: browser-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes browser-sheen {
  0%, 55% { left: -80%; }
  85%, 100% { left: 120%; }
}
@media (prefers-reduced-motion: reduce) {
  .browser::after { animation: none; }
}

@media (max-width: 960px) {
  .trust-layout { grid-template-columns: 1fr; gap: 48px; }
  .trust-preview { max-width: 520px; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* stagger: irmãos revelam em cascata */
.service-grid .reveal:nth-child(2),
.work-list .reveal:nth-child(2),
.plan-grid .reveal:nth-child(2),
.process-list .reveal:nth-child(2) { transition-delay: .12s; }
.service-grid .reveal:nth-child(3),
.work-list .reveal:nth-child(3),
.plan-grid .reveal:nth-child(3),
.process-list .reveal:nth-child(3) { transition-delay: .24s; }
.process-list .reveal:nth-child(4) { transition-delay: .36s; }

/* ---------- Statements (frases de impacto) ---------- */
.statement {
  position: relative;
  padding: 130px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 48% 70% at 50% 50%, rgba(255, 43, 56, 0.09), transparent 72%),
    var(--bg);
}
/* fios de luz saindo do centro para as bordas */
.statement::before,
.statement::after {
  content: "";
  position: absolute;
  top: 50%; height: 1px;
  width: min(16vw, 200px);
  background: linear-gradient(90deg, transparent, rgba(255, 43, 56, 0.5));
}
.statement::before { left: 0; transform: scaleX(-1); }
.statement::after { right: 0; }
.statement-big {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.statement-sub {
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 600;
  color: var(--text-soft);
  margin: 0;
}
.statement .statement-sub.reveal { transition-delay: .18s; }
.statement .statement-sub.reveal mark::after { transition-delay: .55s; }
/* z-index cria stacking context: o sublinhado do mark (z -1) fica acima do fundo da seção */
.statement .container { position: relative; z-index: 1; }

/* ---------- Statement com imagem (Simples por fora) ---------- */
.statement--interior { padding: 90px 0; }
.statement--interior .statement-big {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.12;
  margin-bottom: 18px;
}
.statement--interior .statement-sub {
  font-size: clamp(20px, 2.8vw, 30px);
}
/* palavra "selecionada" como um cursor selecionando texto */
.text-selected {
  background: rgba(255, 43, 56, 0.4);
  color: var(--text);
  padding: 0.04em 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.statement-interior-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  text-align: left;
}
.statement--interior .statement-big { margin-bottom: 10px; }
.statement-figure {
  margin: 0;
  position: relative;
  justify-self: center;
}
.statement-figure img {
  width: min(100%, 520px);
  max-height: 560px;
  object-fit: cover;
  display: block;
  /* bordas dissolvem no fundo preto: fade nas 4 arestas */
  -webkit-mask-image:
    linear-gradient(to right, transparent, black 22%, black 78%, transparent),
    linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, black 22%, black 78%, transparent),
    linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-composite: intersect;
}
/* luz vermelha reforçando a fusão com o fundo */
.statement-figure::before {
  content: "";
  position: absolute;
  inset: 6%;
  background: radial-gradient(closest-side, rgba(255, 43, 56, 0.14), transparent 75%);
  filter: blur(38px);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 860px) {
  .statement-interior-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }
  .statement-figure img { max-height: 420px; }
}

/* ---------- Colmeia (favos brancos com glow) ---------- */
.hive {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hive use {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* cantos arredondados por card (o overflow fica livre para a luz vazar) */
@media (min-width: 861px) {
  .service-grid .service-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .service-grid .service-card:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
}
@media (max-width: 860px) {
  .service-grid .service-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .service-grid .service-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}
.service-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 40%), var(--bg-card);
  padding: 32px 28px;
  position: relative;
  transition: background .25s var(--ease), box-shadow .9s ease-in-out;
}
/* luz externa acompanhando o card aceso */
.service-card.is-lit {
  box-shadow:
    0 0 70px -12px rgba(255, 43, 56, 0.5),
    0 0 140px -30px rgba(255, 43, 56, 0.35);
}
/* fio vermelho que se desenha no topo do card ao passar o mouse */
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-hot));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.service-card:hover { background: #191920; }
.service-card:hover::before { transform: scaleX(1); }

/* luz vermelha itinerante: acende um card por vez (classe via JS) */
.service-card::after {
  content: "";
  position: absolute;
  top: -30%; left: 50%;
  width: 80%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side,
    rgba(255, 92, 102, 0.34) 0%,
    rgba(255, 43, 56, 0.16) 45%,
    transparent 100%);
  filter: blur(26px);
  opacity: 0;
  transition: opacity .9s ease-in-out;
  pointer-events: none;
}
.service-card.is-lit::after { opacity: 1; }
.service-card.is-lit::before { transform: scaleX(1); }
.service-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
}
.service-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0 0 20px;
}
.service-tags {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 8px;
}

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

/* ---------- Work ---------- */
.work-list { display: flex; flex-direction: column; }
.work-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}
.work-list a:last-child { border-bottom: 1px solid var(--line); }
.work-row:hover {
  background: var(--bg-card);
  padding-left: 28px;
}
.work-row-main { display: flex; flex-direction: column; gap: 6px; }
.work-year {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mute);
}
.work-name { font-size: 19px; margin: 0; }
.work-desc { font-size: 14px; color: var(--text-soft); margin: 0; max-width: 46ch; }
.work-row-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.work-row-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 8px;
  white-space: nowrap;
}
.work-row-arrow {
  color: var(--text-mute);
  transition: transform .2s var(--ease), color .2s var(--ease);
  flex: none;
}
.work-row:hover .work-row-arrow {
  color: var(--red);
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .work-row { grid-template-columns: 1fr; row-gap: 12px; }
  .work-row-tags { justify-content: flex-start; }
  .work-row-arrow { display: none; }
}

/* ---------- Promo box (anúncio) ---------- */
.promo-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  padding: 40px 44px;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(rgba(18, 12, 13, 0.55), rgba(14, 9, 10, 0.62)) padding-box,
    linear-gradient(120deg,
      rgba(255, 92, 102, 0.85) 0%,
      rgba(255, 43, 56, 0.35) 22%,
      rgba(255, 255, 255, 0.12) 46%,
      rgba(255, 43, 56, 0.55) 72%,
      rgba(225, 29, 46, 0.9) 100%) border-box;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  overflow: hidden;
  box-shadow:
    0 10px 44px -10px rgba(255, 43, 56, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* luz vermelha central, desfocada — parece expandir pelo caixote todo */
@keyframes glow-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.promo-glow, .plan-glow {
  animation: glow-breathe 4.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .promo-glow, .plan-glow { animation: none; }
}
.promo-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 46%; height: 190%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(255, 122, 130, 0.8) 0%,
    rgba(255, 43, 56, 0.45) 30%,
    rgba(255, 43, 56, 0.12) 62%,
    transparent 100%);
  filter: blur(48px);
  pointer-events: none;
}
.promo-content { position: relative; max-width: 52ch; }
.promo-title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
  text-shadow: 0 0 24px rgba(255, 43, 56, 0.35);
}
.promo-sub {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
}
.promo-btn { position: relative; flex: none; }

@media (max-width: 860px) {
  .promo-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px;
  }
}

/* ---------- Process ---------- */
.process-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
/* liquid glass: a luz da malha de pontos atravessa o vidro */
.process-item {
  position: relative;
  background: linear-gradient(rgba(20, 15, 16, 0.4), rgba(13, 10, 11, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 28px;
  display: flex;
  gap: 18px;
  transition: border-color .25s var(--ease);
}
.process-item:hover { border-color: rgba(255, 92, 102, 0.4); }
.process-item h3 { font-size: 17px; margin: 0 0 8px; }
.process-item p { font-size: 14px; color: var(--text-soft); margin: 0; }

@media (max-width: 720px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ---------- CTA (fundo vermelho da imagem do cavalo) ---------- */
.cta-section {
  border-bottom: none;
  padding: 0;
  overflow: hidden;
  /* tons amostrados de assets/cavalo.jpeg (topo escuro → base viva) */
  background: linear-gradient(180deg, #780b16 0%, #a40f21 55%, #bd1222 100%);
}
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}
.cta-figure {
  margin: 0;
  justify-self: center;
}
.cta-figure img {
  width: min(100%, 480px);
  max-height: 620px;
  object-fit: cover;
  display: block;
  /* funde a foto no fundo vermelho da seção */
  -webkit-mask-image:
    linear-gradient(to right, transparent, black 14%, black 86%, transparent),
    linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, black 14%, black 86%, transparent),
    linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  mask-composite: intersect;
}
.cta-content { padding: 96px 0; }
.cta-title {
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 0 0 14px;
  color: #fff;
}
.cta-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 48ch;
  margin: 0 0 32px;
}
/* botões sobre o fundo vermelho */
.btn-dark {
  background: #0a0a0a;
  color: #fff;
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.7);
}
.btn-dark:hover {
  background: #1c1c1f;
  transform: translateY(-1px);
}
.btn-ghost--light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost--light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; gap: 0; }
  .cta-figure { order: 2; }
  .cta-figure img { max-height: 440px; }
  .cta-content { order: 1; padding: 72px 0 24px; text-align: center; }
  .cta-content .cta-sub { margin-left: auto; margin-right: auto; }
  .cta-actions { justify-content: center; }
}

/* ============================================================
   Página Aprender — planos
   ============================================================ */
.hero-compact { padding: 150px 0 72px; }

#planos {
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
    var(--bg-raised);
}
/* Porsche dissolvendo no fundo, atrás dos planos */
.planos-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.planos-bg img {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: min(48%, 640px);
  object-fit: cover;
  object-position: left center;
  opacity: 0.72;
  /* fade longo para a direita: a foto parece se estender pelo fundo */
  -webkit-mask-image:
    linear-gradient(to right, black 40%, transparent 98%),
    linear-gradient(to bottom, transparent, black 12%, black 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, black 40%, transparent 98%),
    linear-gradient(to bottom, transparent, black 12%, black 86%, transparent);
  mask-composite: intersect;
}
#planos .container { position: relative; z-index: 1; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 40%), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.plan-kind {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 14px;
}
.plan-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.plan-price {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1;
}
.plan-currency {
  font-size: 18px;
  vertical-align: super;
  margin-right: 4px;
  color: var(--text-soft);
}
.plan-desc {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0 0 22px;
}
.plan-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-soft);
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 6px;
  border-left: 1.6px solid var(--red);
  border-bottom: 1.6px solid var(--red);
  transform: rotate(-45deg);
}
.plan-btn {
  margin-top: auto;
  justify-content: center;
}

/* destaque: mesmo vidro + luz da caixa de anúncio */
.plan-card--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(18, 12, 13, 0.55), rgba(14, 9, 10, 0.62)) padding-box,
    linear-gradient(120deg,
      rgba(255, 92, 102, 0.85) 0%,
      rgba(255, 43, 56, 0.35) 22%,
      rgba(255, 255, 255, 0.12) 46%,
      rgba(255, 43, 56, 0.55) 72%,
      rgba(225, 29, 46, 0.9) 100%) border-box;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow:
    0 10px 44px -10px rgba(255, 43, 56, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.plan-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 80%; height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(255, 122, 130, 0.5) 0%,
    rgba(255, 43, 56, 0.28) 45%,
    transparent 100%);
  filter: blur(48px);
  pointer-events: none;
}
.plan-card--featured > * { position: relative; }
.plan-badge {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--red-dim);
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 5px 12px;
  margin: 0;
}

.plan-note {
  margin: 40px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-mute);
  max-width: 60ch;
}
.plan-note a {
  color: var(--red-hot);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 92, 102, 0.4);
}
.plan-note a:hover { color: var(--red); border-bottom-color: var(--red); }

@media (max-width: 960px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-brand-name {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
}
.footer-blurb {
  font-size: 13.5px;
  color: var(--text-mute);
  margin: 0;
  max-width: 30ch;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-copy,
.footer-made {
  font-size: 12.5px;
  color: var(--text-mute);
  margin: 0;
  font-family: var(--font-mono);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
