@font-face {
  font-family: 'Sora';
  src: url('fonts/sora-variable.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-variable.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #121317;
  --surface: #1D1F26;
  --surface-alt: #23262D;
  --red: #DE2431;
  --red-soft: rgba(222, 36, 49, .14);
  --paper: #F6F9F9;
  --white: #FFFFFF;
  --text-soft: #C7CBD3;
  --text-mute: #7A7F8C;
  --line: rgba(246, 249, 249, .12);
  --ink-soft: #4A4D55;
  --ink-mute: #8A8D94;
  --line-dark: rgba(18, 19, 23, .1);
  --radius: 18px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
}

.pill .blip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--paper);
  animation: pulse-dot 2s ease-in-out infinite;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--paper);
}

h1 strong, h2 strong, h3 strong { font-weight: 700; color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { box-shadow: 0 0 0 6px var(--red-soft); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 19, 23, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
nav ul { list-style: none; display: flex; gap: 32px; }
nav a {
  color: var(--text-soft); text-decoration: none; font-size: 14px;
  font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase;
  transition: color .2s ease;
}
nav a:hover { color: var(--red); }
@media (max-width: 760px) { nav ul { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-radar {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; z-index: 0;
  top: 48%; left: 80%; transform: translate(-50%, -50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--red-soft) 0%, transparent 70%);
  filter: blur(50px);
  animation: pulse-glow 7s ease-in-out infinite;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: left; max-width: 760px; }
.hero-content .pill { margin-bottom: 28px; }
.hero-content h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.2; margin-bottom: 24px; }
.hero-content p { font-size: 20px; color: var(--text-soft); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections general ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .mono-tag { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.25; }

/* ---------- Light sections (branco de verdade, ritmo com o preto) ---------- */
.section-light {
  position: relative;
  background: var(--white);
  color: var(--bg);
  overflow: hidden;
}
.section-light h2, .section-light h3 { color: var(--bg); }
.section-light h2 strong, .section-light h3 strong { color: var(--red); }
.section-light p { color: var(--ink-soft); }
.section-light .mono-tag { color: var(--ink-mute); }
.section-light .container { position: relative; z-index: 1; }

.section-shape {
  position: absolute; top: -420px; right: -260px;
  width: 900px; height: 900px; border-radius: 50%;
  background: var(--red);
  z-index: 0;
}
.section-shape.left { right: auto; left: -320px; top: auto; bottom: -460px; }

.section-light .spec-card {
  background: var(--white); border: 1px solid var(--line-dark);
  box-shadow: 0 20px 45px -30px rgba(18,19,23,.18);
}
.section-light .spec-card:hover { border-color: var(--red); box-shadow: 0 24px 50px -28px rgba(18,19,23,.24); }
.section-light .spec-card p { color: var(--ink-soft); }

@media (max-width: 640px) {
  .section-shape { width: 560px; height: 560px; top: -260px; right: -220px; }
  .section-shape.left { width: 440px; height: 440px; bottom: -340px; left: -200px; }
}

/* ---------- Red sections (mesmo ritmo, agora com o vermelho como fundo) ---------- */
.section-red {
  position: relative;
  background: var(--red);
  color: var(--paper);
  overflow: hidden;
}
.section-red h2, .section-red h3 { color: var(--paper); }
.section-red h2 strong, .section-red h3 strong { color: var(--bg); }
.section-red .mono-tag { color: rgba(246, 249, 249, .75); }
.section-red .container { position: relative; z-index: 1; }

/* reveal-on-scroll: hidden only if JS is present (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Problema (specs cards) ---------- */
.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 860px) { .specs-grid { grid-template-columns: 1fr; } }
.spec-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.spec-card:hover { transform: translateY(-5px); border-color: rgba(222,36,49,.4); box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.spec-card .mono-tag { display: block; margin-bottom: 14px; }
.spec-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.spec-card p { color: var(--text-soft); font-size: 15px; }

/* ---------- Serviços (blocos pretos sobre fundo vermelho) ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: svc;
}
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  position: relative; overflow: hidden;
  counter-increment: svc;
  background: var(--bg); border: none; border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card::before {
  content: counter(svc, decimal-leading-zero);
  position: absolute; top: -18px; right: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 110px; line-height: 1;
  color: rgba(246,249,249,.05);
  pointer-events: none;
}
.service-icon {
  position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon .b { width: 16px; height: 16px; border-radius: 5px; background: var(--red); }
.service-card h3 { position: relative; font-size: 21px; margin-bottom: 10px; }
.service-card p { position: relative; color: var(--text-soft); font-size: 15px; flex: 1; }

/* ---------- Configurador ---------- */
.configurator {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px;
}
@media (max-width: 900px) { .configurator { grid-template-columns: 1fr; padding: 28px; } }

.config-group { margin-bottom: 32px; }
.config-group:last-child { margin-bottom: 0; }
.config-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; display: block; }
.config-options { display: flex; gap: 10px; flex-wrap: wrap; }

.opt-btn {
  background: var(--surface-alt); border: 1px solid var(--line); color: var(--text-soft);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 13px 20px; border-radius: 12px; cursor: pointer;
  transition: all .2s ease;
}
.opt-btn:hover { border-color: var(--red); }
.opt-btn.active {
  background: var(--red); border-color: var(--red); color: var(--paper);
}

.config-summary {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.config-summary .mono-tag { margin-bottom: 20px; }
.summary-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; margin-bottom: 20px; min-height: 40px; }
.chip {
  background: var(--red-soft); color: var(--paper); border: 1px solid rgba(222,36,49,.4);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  animation: chip-in .3s ease;
}
@keyframes chip-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.summary-note { font-size: 14px; color: var(--text-soft); margin-bottom: 24px; }

/* ---------- Como funciona ---------- */
.processo-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .processo-layout { grid-template-columns: 1fr; } }
.processo-img { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; }
.processo-img img { width: 100%; height: 100%; object-fit: cover; }

.steps-panel {
  position: relative; z-index: 2;
  background: var(--white);
  padding-bottom: 12px;
}
@media (max-width: 640px) {
  .steps-panel { padding: 4px 4px 40px; }
}
.steps { display: flex; flex-direction: column; gap: 32px; }
.step { position: relative; padding-left: 60px; }
.step .n {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--red-soft); color: var(--red);
  font-family: var(--font-mono); font-weight: 500; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; }
.section-light .step p { color: var(--ink-soft); }
.section-light .step .n { background: var(--white); color: var(--red); box-shadow: 0 4px 14px -6px rgba(18,19,23,.25); }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative; text-align: center; overflow: hidden;
  padding: 160px 0;
  background: var(--bg);
}
.cta-shape {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 820px; height: 820px; border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0%, rgba(222,36,49,.3) 45%, transparent 72%);
  animation: pulse-glow 8s ease-in-out infinite;
  pointer-events: none;
}
.cta-mark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 620px; height: 620px;
  background: url('assets/logo.png') center / contain no-repeat;
  opacity: .06;
  pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(32px, 4.8vw, 52px); max-width: 760px; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
footer .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
footer .mono-tag { color: var(--text-mute); }

/* ---------- Keyframes ---------- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .8; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

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