/* =====================================================
   NERYTH SYSTEM v2 — Dark Editorial
   Aesthetic: preto profundo, verde elétrico, branco
   Fonts: Space Grotesk (display) + Instrument Serif (em)
          + JetBrains Mono (técnico)
   ===================================================== */

:root {
  --bg: #08090a;
  --bg-2: #0e1012;
  --bg-3: #16181c;
  --surface: #1c1e22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f4;
  --text-mute: #8a8d92;
  --text-soft: #b8bbc0;
  --accent: #b8ff3a;       /* verde elétrico osciloscópio */
  --accent-glow: rgba(184, 255, 58, 0.4);
  --warn: #ff5b3a;

  --sans: 'Space Grotesk', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1320px;
  --pad-x: clamp(20px, 4vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

::selection { background: var(--accent); color: var(--bg); }

/* Scrollbar custom */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Focus visível e elegante */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Spotlight cursor (não invasivo) */
.spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 255, 58, 0.06) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

@media (max-width: 980px) {
  .spotlight { display: none; }
}

/* Barra de progresso de scroll */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--accent-glow);
  width: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Background effects */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.gradient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, rgba(184, 255, 58, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(184, 255, 58, 0.04), transparent 50%);
}

/* ============= NAV ============= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 10, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }

.logo:hover .logo-mark {
  animation: logoSpin 0.6s cubic-bezier(.16,1,.3,1);
}

@keyframes logoSpin {
  0% { transform: rotate(0); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg); }
}

.logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 3px;
}

.logo-mark svg { width: 22px; height: 22px; }

.logo-text {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-text sup {
  font-size: 9px;
  font-weight: 400;
  color: var(--text-mute);
  margin-left: 1px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 0;
  color: var(--text-soft);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-links .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s;
}

.btn-nav:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* Hamburguer escondido no desktop */
.nav-toggle { display: none; }

.btn-dot {
  width: 7px; height: 7px;
  background: var(--bg);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

/* ============= HERO ============= */
.hero {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--pad-x) clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  animation: fadeIn 0.6s ease backwards;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-label {
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

.meta-val {
  color: var(--text);
  letter-spacing: 0.02em;
}

.meta-pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(64px, 13vw, 200px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin: 20px 0;
}

.hero-title > span {
  display: block;
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(.16,1,.3,1) forwards;
}

.line-1 { animation-delay: 0.05s; }
.line-2 { animation-delay: 0.15s; padding-left: clamp(40px, 8vw, 120px); }
.line-3 { animation-delay: 0.25s; padding-left: clamp(20px, 4vw, 60px); }
.line-4 { animation-delay: 0.35s; padding-left: clamp(60px, 12vw, 200px); }

.hero-title em {
  font-size: 0.95em;
  color: var(--accent);
}

.strike {
  position: relative;
  display: inline-block;
}

.strike::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%;
  top: 52%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: strike 0.6s cubic-bezier(.7,0,.3,1) 1.2s forwards;
}

@keyframes strike {
  to { transform: scaleX(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-right {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-top: 20px;
  align-items: end;
  animation: fadeIn 0.8s ease 0.8s backwards;
}

.hero-desc {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.4;
  color: var(--text-soft);
  max-width: 540px;
  letter-spacing: -0.01em;
}

.hero-desc em { color: var(--text); }

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--accent);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
  letter-spacing: -0.01em;
  box-shadow: 0 0 0 0 var(--accent-glow);
  position: relative;
}

.btn-primary:hover {
  background: var(--text);
  padding-right: 30px;
  box-shadow: 0 20px 40px -10px var(--accent-glow), 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-primary .arrow {
  transition: transform 0.25s;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  transition: all 0.2s;
}

.btn-ghost:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  animation: fadeIn 0.8s ease 1s backwards;
}

.hb-stat {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--line);
  position: relative;
}

.hb-stat:last-child { border-right: none; }
.hb-stat:first-child { padding-left: 0; }
.hb-stat:not(:first-child) { padding-left: 24px; }

.hb-num {
  font-family: var(--sans);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hb-unit {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.4em;
  color: var(--accent);
  margin-left: 4px;
  vertical-align: top;
}

.hb-lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ============= TICKER ============= */
.ticker {
  position: relative;
  z-index: 2;
  background: var(--accent);
  color: var(--bg);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--bg);
  border-bottom: 1px solid var(--bg);
}

.ticker-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: scroll 45s linear infinite;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.t-sep {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============= SECTION HEAD ============= */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(100px, 14vw, 160px) var(--pad-x);
}

.section-head {
  margin-bottom: clamp(60px, 8vw, 100px);
  max-width: 900px;
}

.sh-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.sh-meta.center { justify-content: center; }

.sh-num {
  color: var(--accent);
  font-weight: 500;
}

.sh-tag {
  color: var(--text-mute);
}

.sh-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 200px;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.section-title em {
  color: var(--accent);
  font-size: 1.05em;
}

.section-desc {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.5;
}

/* ============= SERVIÇOS ============= */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.srv {
  background: var(--bg);
  padding: 48px 40px;
  position: relative;
  transition: background 0.4s ease;
  overflow: hidden;
}

.srv::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}

.srv:hover {
  background: var(--bg-2);
}

.srv:hover::after {
  transform: scaleX(1);
}

.srv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.srv-num { color: var(--accent); }
.srv-cat { color: var(--text-mute); }

.srv h3 {
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.srv h3 em { color: var(--accent); }

.srv > p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 440px;
}

.srv ul {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.srv li {
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
  padding: 6px 0;
  letter-spacing: 0.01em;
}

.srv li span {
  color: var(--accent);
}

/* ============= PROCESSO ============= */
.process {
  position: relative;
  z-index: 2;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(100px, 14vw, 160px) var(--pad-x);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.pstep {
  position: relative;
  padding-top: 32px;
  border-top: 2px solid var(--line);
  transition: border-color 0.3s;
}

.pstep:hover { border-top-color: var(--accent); }

.pstep-num {
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}

.pstep h3 {
  font-family: var(--sans);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.pstep p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 24px;
}

.pstep-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ============= BIG STAT ============= */
.big-stat {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}

.big-stat::before,
.big-stat::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.big-stat::before { top: 0; }
.big-stat::after { bottom: 0; }

.bs-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.bs-pre, .bs-pos {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

.bs-pos { max-width: 400px; line-height: 1.5; }

.bs-num {
  font-family: var(--sans);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--accent);
  text-shadow: 0 0 60px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}

.bs-foot {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  font-style: italic;
  margin-top: 8px;
}

/* ============= PORTFOLIO ============= */
.port-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.port-card {
  padding: 36px 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
}

.port-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.port-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: var(--bg-3);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-glow);
}

.port-card:hover::before {
  transform: translateX(100%);
}

.port-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--accent) 0%, #d4ff5e 100%);
  color: var(--bg);
  border-color: var(--accent);
  padding: 48px 48px 40px;
}

.port-card.featured:hover {
  transform: translateY(-4px);
  background: var(--accent);
}

.pc-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 24px;
}

.port-card.featured .pc-tag { color: var(--bg); opacity: 0.6; }

.port-card h3 {
  font-family: var(--sans);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.port-card.featured h3 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.port-card.featured h3 em { color: var(--bg); }

.port-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 20px;
}

.port-card.featured p {
  color: var(--bg);
  opacity: 0.85;
  font-size: 17px;
  max-width: 600px;
  margin-bottom: 32px;
}

.pc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(8, 9, 10, 0.2);
}

.pc-meta div {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bg);
  line-height: 1.6;
}

.pc-meta span {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.pc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-stack span {
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ============= TESTIFY ============= */
.testify {
  position: relative;
  z-index: 2;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.testify-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(100px, 14vw, 160px) var(--pad-x);
  text-align: center;
}

.testify-title {
  font-family: var(--sans);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: 80px;
}

.testify-title em {
  font-size: 1.05em;
  color: var(--accent);
}

.testify-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}

.testify blockquote {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.testify blockquote p {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
  margin-bottom: 24px;
  color: var(--text);
  font-style: italic;
  letter-spacing: -0.015em;
}

.testify blockquote footer {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

/* ============= FAQ ============= */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.section-head.sticky {
  position: sticky;
  top: 100px;
  align-self: start;
  margin-bottom: 0;
}

.faq-list { }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-q-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

.faq-q {
  font-family: var(--sans);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.faq-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  transition: all 0.3s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  transition: transform 0.3s;
}

.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; }

.faq-item[open] .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-body {
  padding: 0 0 32px 56px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 640px;
}

/* ============= CONTATO ============= */
.contact {
  position: relative;
  z-index: 2;
  background: var(--accent);
  color: var(--bg);
  padding: clamp(100px, 14vw, 160px) var(--pad-x);
}

.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact .sh-meta {
  color: var(--bg);
}
.contact .sh-num,
.contact .sh-tag { color: var(--bg); }
.contact .sh-line { background: rgba(8,9,10,0.2); }

.contact-title {
  font-family: var(--sans);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 32px;
  color: var(--bg);
}

.contact-title em {
  font-size: 1.05em;
  color: var(--bg);
}

.contact-desc {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.45;
  max-width: 460px;
  margin-bottom: 60px;
  color: var(--bg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(8,9,10,0.25);
}

.ci-line {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(8,9,10,0.15);
}

.ci-line span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(8,9,10,0.6);
}

.ci-line a, .ci-line em {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--bg);
}

.ci-line em {
  font-family: var(--serif);
  font-weight: 400;
}

.status-on {
  color: var(--bg) !important;
}

/* Form */
.contact-form {
  background: var(--bg);
  color: var(--text);
  padding: 40px;
  border-radius: 12px;
}

.ff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ff-field { display: block; }
.ff-field.full { grid-column: span 2; }

.ff-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 10px;
}

.ff-field input,
.ff-field select,
.ff-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  transition: all 0.2s;
}

.ff-field input::placeholder,
.ff-field textarea::placeholder { color: var(--text-mute); }

.ff-field input:focus,
.ff-field select:focus,
.ff-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-3);
}

.ff-field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--sans);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 28px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-submit:hover {
  background: var(--text);
  padding-right: 32px;
}

.btn-submit:hover .bs-arrow { transform: translateX(3px); }
.bs-arrow { transition: transform 0.2s; }

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  min-height: 18px;
  letter-spacing: 0.02em;
}

.form-status.success { color: var(--accent); }
.form-status.error { color: var(--warn); }

/* ============= FOOTER ============= */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-mega {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(60px, 8vw, 100px) var(--pad-x) 60px;
  font-family: var(--sans);
  font-size: clamp(80px, 18vw, 260px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.06em;
  border-bottom: 1px solid var(--line);
}

.fm-word { color: var(--text); }
.fm-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--pad-x) 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.fg-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 16px;
  font-weight: 500;
}

.fg-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s;
}

.fg-col a:hover { color: var(--accent); }

.fg-brand p {
  font-family: var(--sans);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}

.fg-brand em { color: var(--accent); }

.fs-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.fs-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 1.5s ease infinite;
}

.fs-version {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

.fb-mid { font-style: italic; }

/* ============= RESPONSIVE ============= */
/* ============= RESPONSIVE — TABLET (≤980px) ============= */
@media (max-width: 980px) {
  .hero {
    padding: clamp(40px, 6vw, 70px) var(--pad-x);
  }

  .hero-title {
    font-size: clamp(56px, 13vw, 110px);
  }

  .line-2, .line-3, .line-4 {
    padding-left: 0;
  }

  .hero-right {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-cta {
    align-items: flex-start;
  }

  .hero-bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .hb-stat:nth-child(2) { border-right: none; }
  .hb-stat:nth-child(3) { padding-left: 0; }
  .hb-stat:nth-child(3), .hb-stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .services {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .port-grid {
    grid-template-columns: 1fr;
  }

  .port-card.featured {
    grid-column: span 1;
  }

  .testify-grid {
    grid-template-columns: 1fr;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-head.sticky {
    position: relative;
    top: 0;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============= RESPONSIVE — MOBILE (≤720px) ============= */
@media (max-width: 720px) {
  :root {
    --pad-x: 20px;
  }

  /* === NAV — menu hamburguer === */
  .nav-inner {
    padding: 14px var(--pad-x);
    gap: 12px;
  }

  .logo-text { font-size: 15px; }
  .logo-text sup { display: none; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-mark svg { width: 18px; height: 18px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px var(--pad-x) 20px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin-right: -8px;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .btn-nav {
    padding: 8px 12px 8px 10px;
    font-size: 12px;
    gap: 6px;
  }

  .btn-nav span:not(.btn-dot) { display: none; }
  .btn-nav .btn-dot { width: 8px; height: 8px; }

  /* === HERO === */
  .hero {
    padding: 32px var(--pad-x) 48px;
    gap: 24px;
  }

  .hero-meta {
    gap: 14px;
    font-size: 10px;
  }

  .hero-title {
    font-size: clamp(44px, 13vw, 64px);
    line-height: 0.9;
    margin: 12px 0;
    letter-spacing: -0.04em;
  }

  .hero-title em { font-size: 0.95em; }

  .strike::after {
    height: 3px;
    top: 55%;
  }

  .hero-desc {
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-cta {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 14px;
  }

  .btn-ghost { padding: 14px 20px; }

  .hero-bottom {
    margin-top: 40px;
    grid-template-columns: 1fr 1fr;
  }

  .hb-stat {
    padding: 20px 16px 20px 0;
  }
  .hb-stat:nth-child(odd) { padding-left: 0; }
  .hb-stat:nth-child(even) { padding-left: 16px; padding-right: 0; }

  .hb-num {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hb-lbl {
    font-size: 10px;
    margin-top: 8px;
  }

  /* === TICKER === */
  .ticker { padding: 14px 0; }
  .ticker-track {
    font-size: 12px;
    gap: 18px;
    animation-duration: 30s;
  }
  .t-sep { font-size: 14px; }

  /* === SECTIONS === */
  .section {
    padding: 70px var(--pad-x);
  }

  .section-head {
    margin-bottom: 48px;
  }

  .sh-meta {
    gap: 10px;
    margin-bottom: 20px;
    font-size: 10px;
  }

  .sh-line { display: none; }

  .section-title {
    font-size: clamp(42px, 11vw, 64px);
    line-height: 0.95;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
  }

  .section-desc {
    font-size: 15px;
    line-height: 1.5;
  }

  /* === SERVIÇOS === */
  .srv {
    padding: 36px 24px;
  }

  .srv-head {
    margin-bottom: 24px;
    font-size: 10px;
  }

  .srv h3 {
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .srv > p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .srv li {
    font-size: 11px;
    padding: 5px 0;
  }

  /* === PROCESSO === */
  .process-inner {
    padding: 70px var(--pad-x);
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pstep {
    padding-top: 24px;
  }

  .pstep-num {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .pstep h3 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .pstep p { font-size: 14px; margin-bottom: 16px; }

  .pstep h3 br { display: none; }

  /* === BIG STAT === */
  .big-stat {
    padding: 60px var(--pad-x);
  }

  .bs-pre, .bs-pos {
    font-size: 11px;
    max-width: 280px;
  }

  .bs-num {
    font-size: clamp(96px, 28vw, 160px);
    line-height: 0.9;
  }

  /* === PORTFOLIO === */
  .port-grid {
    gap: 16px;
  }

  .port-card {
    padding: 28px 24px;
    border-radius: 6px;
  }

  .port-card.featured {
    padding: 32px 24px;
  }

  .port-card.featured h3 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.02;
    margin-bottom: 18px;
  }

  .port-card.featured h3 br { display: none; }

  .port-card.featured p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .port-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .port-card p { font-size: 13px; margin-bottom: 16px; }

  .pc-meta {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 20px;
  }

  .pc-meta div { font-size: 11px; }
  .pc-stack span { font-size: 9px; padding: 3px 8px; }

  /* === TESTIFY === */
  .testify-inner {
    padding: 70px var(--pad-x);
  }

  .testify-title {
    font-size: clamp(72px, 22vw, 120px);
    margin-bottom: 48px;
    line-height: 0.85;
  }

  .testify-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .testify blockquote {
    padding: 24px 0;
  }

  .testify blockquote p {
    font-size: 19px;
    margin-bottom: 16px;
  }

  /* === FAQ === */
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-head.sticky {
    position: relative;
    top: 0;
    margin-bottom: 16px;
  }

  .faq-item summary {
    grid-template-columns: 32px 1fr 28px;
    gap: 12px;
    padding: 22px 0;
  }

  .faq-q {
    font-size: 17px;
    line-height: 1.25;
  }

  .faq-q-num { font-size: 10px; }

  .faq-icon {
    width: 28px; height: 28px;
  }

  .faq-icon::before { width: 10px; }
  .faq-icon::after { height: 10px; }

  .faq-body {
    padding: 0 0 24px 44px;
    font-size: 14px;
    line-height: 1.55;
  }

  /* === CONTATO === */
  .contact {
    padding: 70px var(--pad-x);
  }

  .contact-title {
    font-size: clamp(48px, 13vw, 72px);
    margin-bottom: 20px;
    line-height: 0.95;
  }

  .contact-desc {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .contact-info { margin-bottom: 32px; }

  .ci-line {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .ci-line span { font-size: 10px; }
  .ci-line a, .ci-line em {
    font-size: 14px;
    word-break: break-all;
  }

  .contact-form {
    padding: 28px 22px;
    border-radius: 10px;
  }

  .ff-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ff-field.full { grid-column: span 1; }

  /* INPUTS — font-size 16px IMPORTANTE pra iOS não dar zoom */
  .ff-field input,
  .ff-field select,
  .ff-field textarea {
    font-size: 16px;
    padding: 13px 14px;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px 22px;
    font-size: 14px;
    margin-top: 20px;
  }

  /* === FOOTER === */
  .footer-mega {
    flex-direction: column;
    gap: 4px;
    padding: 50px var(--pad-x) 40px;
    font-size: clamp(56px, 18vw, 92px);
    line-height: 0.9;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px var(--pad-x) 30px;
  }

  .fg-brand p {
    font-size: 17px;
    line-height: 1.35;
  }

  .fg-brand p br { display: none; }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding: 18px var(--pad-x);
    text-align: center;
    font-size: 10px;
  }

  /* Desabilita efeitos pesados no mobile */
  .spotlight { display: none; }
  .gradient-mesh { opacity: 0.5; }
  .scroll-progress { height: 2px; }
}

/* ============= RESPONSIVE — SMALL MOBILE (≤400px) ============= */
@media (max-width: 400px) {
  .hero-title {
    font-size: clamp(38px, 12vw, 52px);
  }

  .section-title {
    font-size: clamp(36px, 10vw, 52px);
  }

  .contact-title {
    font-size: clamp(40px, 12vw, 60px);
  }

  .testify-title {
    font-size: clamp(60px, 20vw, 90px);
  }

  .hero-bottom { grid-template-columns: 1fr 1fr; }

  .hb-num { font-size: clamp(28px, 8vw, 38px); }

  .footer-mega {
    font-size: clamp(48px, 16vw, 72px);
  }

  .bs-num {
    font-size: clamp(80px, 26vw, 120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track, .meta-pulse, .fs-dot, .btn-dot { animation: none; }
}
