/* ============================================================
   RAITO STUDIO — Landing
   Dark premium / tech. Light is the brand metaphor.
   ============================================================ */

:root {
  /* Surfaces — near-black, faintly warm */
  --bg:        #08080a;
  --bg-2:      #0d0d10;
  --surface:   #131318;
  --surface-2: #1a1a20;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* Ink */
  --text:    #f4f4f5;
  --muted:   #9a9aa3;
  --faint:   #5e5e68;

  /* Brand red — the spark of light */
  --red:        #f5333a;
  --red-bright: #ff4147;
  --red-deep:   #c01018;
  --red-glow:   rgba(245, 51, 58, 0.55);
  --red-soft:   rgba(245, 51, 58, 0.12);

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Manrope", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Shared type ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--red);
  box-shadow: 0 0 14px var(--red-glow);
  display: inline-block;
  flex: none;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }

.section-title {
  font-size: clamp(30px, 4.6vw, 56px);
  text-wrap: balance;
  margin-top: 22px;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 56ch;
  margin-top: 20px;
  text-wrap: pretty;
}

.red { color: var(--red-bright); }

section { position: relative; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

/* Wordmark */
.wordmark { display: inline-flex; align-items: baseline; gap: 12px; user-select: none; }
.wordmark .mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.wordmark .mark .i {
  position: relative;
  color: var(--text);
}
.wordmark .mark .i::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}
.wordmark .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color .25s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }
.nav-links .nav-only { }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform .2s var(--ease), background .25s, border-color .25s, box-shadow .3s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 10px 40px -8px var(--red-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: clamp(86px, 12vh, 130px);
}

/* the grid + spotlight live in here */
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  /* base grid very faint */
  opacity: 0.5;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 92%);
}

/* spotlight that follows the mouse — "the light reveals the structure" */
.hero-spot {
  position: absolute; inset: 0;
  background:
    radial-gradient(420px 420px at var(--mx, 50%) var(--my, 40%),
      rgba(245, 51, 58, 0.16), transparent 70%);
  background-image:
    radial-gradient(circle at var(--mx,50%) var(--my,40%), var(--red) 1px, transparent 1.6px);
  background-size: 64px 64px;
  background-position: 0 0;
  mask-image: radial-gradient(300px 300px at var(--mx, 50%) var(--my, 40%), #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(300px 300px at var(--mx, 50%) var(--my, 40%), #000 0%, transparent 70%);
  transition: opacity .4s;
}

/* sweeping light beam */
.hero-beam {
  position: absolute;
  top: -30%; left: 50%;
  width: 140%; height: 160%;
  transform: translateX(-50%) rotate(18deg);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,51,58,0.0) 42%,
    rgba(245,51,58,0.10) 50%,
    rgba(255,255,255,0.04) 51%,
    transparent 60%);
  filter: blur(6px);
  animation: beamSweep 9s var(--ease) infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes beamSweep {
  0%   { transform: translateX(-90%) rotate(18deg); opacity: 0; }
  18%  { opacity: 1; }
  50%  { opacity: 1; }
  100% { transform: translateX(40%) rotate(18deg); opacity: 0; }
}

.hero-glow {
  position: absolute;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  left: -16vw; top: -22vw;
  background: radial-gradient(circle, var(--red-soft), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

/* vignette bottom for legibility */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
  z-index: 1; pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 980px; }

.hero h1 {
  font-size: clamp(44px, 8vw, 104px);
  letter-spacing: -0.035em;
  margin-top: 26px;
}
.hero h1 .light { position: relative; white-space: nowrap; }
.hero h1 .light .dot {
  display: inline-block;
  width: 0.16em; height: 0.16em;
  background: var(--red);
  border-radius: 1px;
  box-shadow: 0 0 28px var(--red-glow), 0 0 60px var(--red-glow);
  vertical-align: 0.55em;
  margin-left: 0.04em;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.45 } }

.hero p.hero-lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  max-width: 58ch;
  margin-top: 28px;
  text-wrap: pretty;
}
.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-meta .item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .item b {
  font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.hero-meta .item b::before {
  content: ""; width: 6px; height: 6px; background: var(--red); flex: none;
}
.hero-meta .item span { font-size: 13.5px; color: var(--faint); padding-left: 15px; }

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--red), transparent); animation: cueGrow 2s var(--ease) infinite; transform-origin: top; }
@keyframes cueGrow { 0%,100%{ transform: scaleY(.4); opacity:.5 } 50%{ transform: scaleY(1); opacity:1 } }

/* ============================================================
   GENERIC SECTION SPACING
   ============================================================ */
.block { padding-block: clamp(80px, 11vw, 150px); }
.block-head { max-width: 760px; }

/* ============================================================
   DIFERENCIAL — marquee + statement
   ============================================================ */
.diff {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.diff-card {
  background: var(--bg-2);
  padding: 40px 34px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .35s var(--ease);
  position: relative;
}
.diff-card:hover { background: var(--surface); }
.diff-card .num {
  font-family: var(--mono); font-size: 12px; color: var(--red); letter-spacing: 0.1em;
}
.diff-card h3 { font-size: 23px; line-height: 1.15; }
.diff-card p { color: var(--muted); font-size: 15.5px; margin-top: auto; text-wrap: pretty; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services-list { margin-top: 60px; border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease);
  position: relative;
}
.service::before {
  content: "";
  position: absolute; left: -100%; top: 0; bottom: 0; width: 100%;
  background: linear-gradient(90deg, var(--red-soft), transparent);
  transition: left .5s var(--ease);
  z-index: -1;
}
.service:hover::before { left: 0; }
.service:hover { padding-left: 20px; }
.service .idx { font-family: var(--mono); font-size: 14px; color: var(--faint); }
.service:hover .idx { color: var(--red); }
.service .body h3 { font-size: clamp(24px, 3vw, 34px); }
.service .body p { color: var(--muted); margin-top: 10px; max-width: 60ch; font-size: 15.5px; }
.service .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.service .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
  color: var(--muted); border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 2px;
}
.service .arrow {
  width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; transition: all .3s var(--ease); flex: none;
}
.service:hover .arrow { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }
.service .arrow svg { width: 20px; height: 20px; }

/* ============================================================
   PROCESSO
   ============================================================ */
.process { background: var(--bg-2); border-top: 1px solid var(--line); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: var(--bg-2);
  padding: 34px 28px 40px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}
.step .ph {
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  color: var(--red);
}
.step .stepnum {
  font-family: var(--display); font-weight: 700;
  font-size: 60px; line-height: 1; color: var(--surface-2);
  position: absolute; right: 16px; bottom: 8px; z-index: 0;
  transition: color .35s;
}
.step:hover .stepnum { color: var(--red-soft); }
.step h3 { font-size: 21px; z-index: 1; }
.step p { color: var(--muted); font-size: 14.5px; z-index: 1; text-wrap: pretty; }

/* ============================================================
   PORTFÓLIO
   ============================================================ */
.work-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.work-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .35s, transform .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.work-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.work-shot {
  position: relative; display: block;
  aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.work-card:hover .work-shot img { transform: scale(1.045); }
.work-shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,10,0.55), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.work-card:hover .work-shot::after { opacity: 1; }
.work-visit {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--body); font-weight: 600; font-size: 13px; color: #fff;
  background: var(--red); padding: 8px 14px; border-radius: 100px;
  box-shadow: 0 8px 24px -6px var(--red-glow);
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.work-card:hover .work-visit { opacity: 1; transform: none; }
.work-visit svg { width: 14px; height: 14px; }

.work-info { padding: 24px 26px 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.work-info h3 { font-size: 21px; }
.work-info p { color: var(--muted); font-size: 14px; margin-top: 6px; text-wrap: pretty; }
.work-info .type { font-family: var(--mono); font-size: 11px; color: var(--red); letter-spacing: .06em; flex: none; white-space: nowrap; padding-top: 4px; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 26px 26px; margin-top: auto; }
.work-tags .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
  color: var(--muted); border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 2px;
}

/* Featured full-width case (wide flow) — show full image, no crop */
.work-feature { grid-column: 1 / -1; }
.work-feature .work-shot { aspect-ratio: auto; height: auto; background: #0d0d11; }
.work-feature .work-shot img { width: 100%; height: auto; display: block; object-fit: contain; }
.work-feature:hover .work-shot img { transform: none; }
.work-feature .work-shot::before {
  content: "Destaque";
  position: absolute; top: 16px; left: 16px; z-index: 1;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); background: rgba(8,8,10,0.7); border: 1px solid var(--red-soft);
  padding: 6px 11px; border-radius: 2px; backdrop-filter: blur(6px);
}

.work-cta {
  margin-top: 40px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--surface), var(--bg-2));
  border-radius: 3px;
  padding: clamp(30px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.work-cta h3 { font-size: clamp(22px, 2.6vw, 30px); max-width: 22ch; }
.work-cta p { color: var(--muted); margin-top: 8px; max-width: 46ch; }

/* ============================================================
   SOBRE / PROPÓSITO
   ============================================================ */
.about { border-top: 1px solid var(--line); overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-copy h2 { font-size: clamp(28px, 4vw, 50px); }
.about-copy .big {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -0.01em;
  margin-top: 28px; text-wrap: pretty;
}
.about-copy .big em { color: var(--red-bright); font-style: normal; }
.about-copy p { color: var(--muted); margin-top: 22px; max-width: 56ch; }

.values { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--bg); padding: 24px 26px; display: flex; gap: 18px; align-items: flex-start; }
.value .sw { width: 22px; height: 22px; flex: none; margin-top: 3px; border: 1px solid var(--line-2); }
.value .sw.red { background: var(--red); border-color: var(--red); box-shadow: 0 0 18px var(--red-glow); }
.value .sw.white { background: var(--text); border-color: var(--text); }
.value .sw.black { background: #050506; }
.value h4 { font-family: var(--display); font-weight: 600; font-size: 16px; }
.value p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact { border-top: 1px solid var(--line); background: var(--bg-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy h2 { font-size: clamp(30px, 4.6vw, 60px); }
.contact-copy .lead { color: var(--muted); margin-top: 22px; max-width: 44ch; }

.wa-card {
  margin-top: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3px;
  padding: 26px;
  display: flex; align-items: center; gap: 18px;
  transition: border-color .3s, transform .3s var(--ease);
}
.wa-card:hover { border-color: var(--red); transform: translateY(-3px); }
.wa-ic {
  width: 52px; height: 52px; border-radius: 50%; background: var(--red-soft);
  display: grid; place-items: center; flex: none;
}
.wa-ic svg { width: 26px; height: 26px; }
.wa-card .t b { font-family: var(--display); font-size: 16px; display: block; }
.wa-card .t span { color: var(--muted); font-size: 14px; }
.wa-card .go { margin-left: auto; color: var(--red); font-family: var(--mono); font-size: 13px; }

/* Form */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field-label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.input, .textarea, .select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--body);
  font-size: 15.5px;
  padding: 14px 16px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
  background: var(--bg-2);
}
.textarea { resize: vertical; min-height: 120px; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9aa3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--body); font-size: 14px;
  border: 1px solid var(--line-2); background: var(--bg);
  color: var(--muted); padding: 10px 16px; border-radius: 2px; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.form .btn-primary { justify-content: center; margin-top: 4px; }
.form-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 60px 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .big-mark {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(60px, 16vw, 200px); line-height: .8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  margin-top: 40px; user-select: none;
}
.footer .big-mark .i { color: var(--red); -webkit-text-stroke: 0; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .h { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.footer-col a, .footer-col span { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint); font-family: var(--mono); letter-spacing: .04em;
}

/* ============================================================
   LGPD / CONFORMIDADE
   ============================================================ */
.lgpd { border-top: 1px solid var(--line); background: var(--bg-2); }
.lgpd-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.lgpd-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); background: var(--red-soft); border: 1px solid var(--red-soft);
  padding: 8px 14px; border-radius: 100px; margin-bottom: 22px;
}
.lgpd-badge svg { width: 15px; height: 15px; }
.lgpd-copy .section-title { margin-top: 0; }
.lgpd-points { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.lgpd-point { background: var(--bg-2); padding: 26px 28px; display: flex; gap: 20px; align-items: flex-start; transition: background .3s var(--ease); }
.lgpd-point:hover { background: var(--surface); }
.lgpd-point .lp-num { font-family: var(--mono); font-size: 12px; color: var(--red); padding-top: 3px; flex: none; }
.lgpd-point h4 { font-family: var(--display); font-weight: 600; font-size: 18px; }
.lgpd-point p { color: var(--muted); font-size: 14.5px; margin-top: 5px; text-wrap: pretty; }

/* ============================================================
   FLOATING CTA — site inteiro
   ============================================================ */
.float-cta {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 16px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  box-shadow: 0 16px 44px -10px var(--red-glow), 0 4px 16px rgba(0,0,0,0.4);
  cursor: pointer;
  /* hidden until past hero */
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.96);
  transition: opacity .45s var(--ease), transform .45s var(--ease),
              visibility .45s, background .25s, box-shadow .3s, padding .4s var(--ease);
}
.float-cta.show { opacity: 1; visibility: visible; transform: none; }
.float-cta:hover { background: var(--red-bright); box-shadow: 0 22px 56px -10px var(--red-glow), 0 6px 20px rgba(0,0,0,0.5); }
.float-cta:active { transform: translateY(1px); }
/* sobe acima do aviso de cookies enquanto ele estiver aberto */
.float-cta.cookie-up { bottom: clamp(88px, 12vw, 104px); }

.float-cta .fc-ic {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.16);
  border-radius: 50%;
  position: relative;
}
.float-cta .fc-ic svg { width: 19px; height: 19px; }
/* pulsing ring to draw the eye */
.float-cta .fc-ic::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  animation: fcPulse 2.4s ease-out infinite;
}
@keyframes fcPulse {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
.float-cta .fc-text { white-space: nowrap; }

/* shrink to icon-only on small screens */
@media (max-width: 560px) {
  .float-cta { padding: 12px; gap: 0; }
  .float-cta .fc-text { display: none; }
  .float-cta .fc-ic { width: 30px; height: 30px; }
}

/* ============================================================
   COOKIE BANNER (LGPD — opt-in funcional)
   ============================================================ */
.cookie {
  position: fixed;
  left: 0; right: 0;
  margin-inline: auto;
  bottom: clamp(12px, 2vw, 20px);
  z-index: 95;
  width: min(880px, calc(100vw - 28px));
  background: rgba(19, 19, 24, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: 0 16px 44px -18px rgba(0,0,0,0.75);
  padding: 14px 16px;
  transform: translateY(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s;
}
.cookie.show { opacity: 1; transform: none; visibility: visible; }

/* compact single-row bar */
.cookie-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-head { display: flex; align-items: center; gap: 10px; flex: none; }
.cookie-head .ic {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center;
  background: var(--red-soft); border-radius: 7px;
}
.cookie-head .ic svg { width: 15px; height: 15px; }
.cookie-head b { font-family: var(--display); font-weight: 600; font-size: 14px; white-space: nowrap; }
.cookie p { color: var(--muted); font-size: 13px; line-height: 1.45; flex: 1 1 240px; min-width: 200px; margin: 0; }
.cookie p a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 2px; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; align-items: center; }
.cookie-actions .btn { padding: 9px 16px; font-size: 13.5px; }
.cookie-actions .btn-ghost { border-color: var(--line-2); }
.cookie .pref-toggle {
  background: none; border: none; color: var(--faint); font-family: var(--mono);
  font-size: 11px; letter-spacing: .05em; padding: 4px 6px;
  text-decoration: underline; text-underline-offset: 3px; transition: color .2s; white-space: nowrap;
}
.cookie .pref-toggle:hover { color: var(--text); }

/* preferences (granular) — expand above the bar */
.cookie-prefs { display: none; flex-direction: column; gap: 1px; margin-bottom: 14px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cookie.expanded .cookie-prefs { display: flex; }
.pref-row { background: var(--surface-2); padding: 13px 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pref-row .pt b { font-family: var(--display); font-weight: 600; font-size: 13.5px; display: block; }
.pref-row .pt span { color: var(--faint); font-size: 12px; }
/* toggle switch */
.switch { position: relative; width: 40px; height: 22px; flex: none; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: 100px; transition: background .25s, border-color .25s; }
.switch .track::after { content: ""; position: absolute; top: 50%; left: 3px; transform: translateY(-50%); width: 14px; height: 14px; background: var(--muted); border-radius: 50%; transition: transform .25s, background .25s; }
.switch input:checked + .track { background: var(--red-soft); border-color: var(--red); }
.switch input:checked + .track::after { transform: translateY(-50%) translateX(16px); background: var(--red-bright); }
.switch input:disabled + .track { opacity: .55; cursor: not-allowed; }
.switch input:disabled { cursor: not-allowed; }

@media (max-width: 620px) {
  .cookie { width: calc(100vw - 20px); padding: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 auto; justify-content: center; }
  .cookie .pref-toggle { margin-left: auto; }
}

/* ============================================================
   GLOBAL FX — grain + scroll progress + skip link
   ============================================================ */
.grain {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  box-shadow: 0 0 12px var(--red-glow);
  transition: width .1s linear;
  pointer-events: none;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 2px;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 14px; outline: none; }

/* ============================================================
   HERO CANVAS — constellation of light
   ============================================================ */
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .9;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 50% 0%, var(--red-soft), transparent 60%),
    var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: clamp(28px, 4vw, 46px) clamp(20px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 2px;
  background: var(--red); box-shadow: 0 0 12px var(--red-glow);
}
.stat-num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-num.stat-inf { color: var(--red-bright); }
.stat-label {
  font-family: var(--display); font-weight: 600; font-size: 15px; margin-top: 8px;
}
.stat-sub { color: var(--faint); font-size: 13px; }

/* ============================================================
   TECH MARQUEE
   ============================================================ */
.techbar {
  padding-block: clamp(46px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.techbar-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint); text-align: center; margin-bottom: 34px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.techbar-label::before, .techbar-label::after {
  content: ""; height: 1px; width: clamp(30px, 10vw, 120px);
  background: linear-gradient(90deg, transparent, var(--line-2));
}
.techbar-label::after { background: linear-gradient(90deg, var(--line-2), transparent); }
.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tlogo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600; font-size: 19px;
  color: var(--muted); padding: 0 clamp(26px, 4vw, 52px);
  white-space: nowrap; transition: color .25s;
}
.tlogo:hover { color: var(--text); }
.tlogo svg { width: 26px; height: 26px; flex: none; color: var(--faint); transition: color .25s; }
.tlogo:hover svg { color: var(--red-bright); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.faq-head { position: sticky; top: 96px; }
.faq-head .section-title { margin-top: 18px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px;
  font-family: var(--display); font-weight: 600; font-size: clamp(17px, 2vw, 21px);
  color: var(--text); transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red-bright); }
.faq-ic { position: relative; width: 18px; height: 18px; flex: none; }
.faq-ic::before, .faq-ic::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--red);
  transition: transform .3s var(--ease), opacity .3s;
}
.faq-ic::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-ic::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-ic::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq-body { padding: 0 4px 26px; }
.faq-body p { color: var(--muted); font-size: 15.5px; max-width: 62ch; text-wrap: pretty; }
.faq-item[open] .faq-body { animation: faqOpen .4s var(--ease); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   NEW-SECTION RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tlogo { font-size: 16px; }
  .tlogo svg { width: 22px; height: 22px; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links .nav-only { display: none; }
  .diff-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .lgpd-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .service { grid-template-columns: 1fr; gap: 14px; }
  .service .idx { display: none; }
  .service .arrow { display: none; }
  .steps { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px; }
  .hero { padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
