/* ============================================================
   Hermes-Arco — identidade visual ARCO
   Paleta extraída de arcolancamentos.com (styles-BXaltR1i.css)
   ============================================================ */

:root {
  --background: #020a05;
  --foreground: #ecf9ee;
  --card: #05130c;
  --card-foreground: #ecf9ee;
  --border: #182f2099;
  --muted: #0b1a12;
  --muted-foreground: #94ac98;
  --input: #0d1f16;
  --accent: #4dff63;
  --accent-foreground: #000803;
  --gradient-neon: linear-gradient(135deg, #4dff63, #00d89d);
  --gradient-hero: radial-gradient(ellipse at top, #00230799, transparent 60%), linear-gradient(180deg, #000502, #020a05);
  --shadow-neon: 0 0 60px #4dff63b3;
  --shadow-neon-sm: 0 0 24px #4dff6355;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 1rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hero gradient background */
.hero-bg {
  background: var(--gradient-hero);
  position: relative;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: #020a05cc;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img, .brand svg {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
}

.brand .brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  display: block;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

/* ---------- MOBILE: cabeçalho omitido (nav não cabe em telas pequenas) ---------- */
@media (max-width: 620px) {
  .nav { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  border: none;
}

.btn-neon {
  background: var(--gradient-neon);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-neon-sm);
}

.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

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

.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }

/* ---------- HERO ---------- */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero .badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 .grad {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted-foreground);
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.hero p.lead.purpose {
  font-size: 1rem;
  max-width: 760px;
  margin-bottom: 2rem;
  padding: 1.1rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  line-height: 1.65;
}

.hero p.lead.purpose strong {
  color: var(--accent);
}

.hero .cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-neon);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- SECTIONS ---------- */
section.block { padding: 5rem 0; }
section.block.alt { background: var(--muted); }

.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.sec-head .kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.sec-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sec-head p {
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

/* ---------- CARDS GRID ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: #4dff6355;
  transform: translateY(-3px);
}

.card .icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-neon-sm);
}

.card .icon-box svg {
  width: 26px;
  height: 26px;
  color: var(--accent-foreground);
  stroke-width: 2;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

/* ---------- CHEGA DE (list) ---------- */
.pain-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.pain-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.pain-list .x {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #ff2d3911;
  border: 1px solid #ff2d3966;
  color: #ff6568;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ---------- PILARES (hub) ---------- */
.pilares {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (max-width: 860px) {
  .pilares { grid-template-columns: 1fr; }
  .pilares .connector { display: none; }
}

.pilar {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  transition: border-color 0.2s;
}

.pilar:hover { border-color: #4dff6355; }

.pilar .num {
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--gradient-neon);
  color: var(--accent-foreground);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neon-sm);
}

.pilar h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.pilar p { color: var(--muted-foreground); font-size: 0.9rem; }

.connector {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  opacity: 0.6;
}

.hub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  background: var(--gradient-hero);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.5rem);
  padding: 2rem 2.25rem;
}

.hub .hub-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-neon);
}

.hub h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.hub h3 .grad {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub p { color: var(--muted-foreground); }

/* ---------- CAPACIDADES ---------- */
.cap-card .icon-box { margin-bottom: 1rem; }

.cap-card h3 { font-size: 1.05rem; }

/* ---------- QUEM SOMOS ---------- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.about h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.about p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.about-stats .stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.about-stats .stat .n {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-stats .stat .l {
  color: var(--muted-foreground);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.about-side {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.5rem);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-side::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: #4dff6311;
  filter: blur(40px);
}

.about-side h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.about-side p { color: var(--muted-foreground); font-size: 0.95rem; margin-bottom: 1rem; }
.about-side .list { list-style: none; display: grid; gap: 0.6rem; margin-top: 1rem; }
.about-side .list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--foreground);
  font-size: 0.95rem;
}
.about-side .list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

/* ---------- CTA FINAL ---------- */
.cta-final {
  text-align: center;
  padding: 5.5rem 0;
  background: var(--gradient-hero);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #4dff6311, transparent 70%);
  pointer-events: none;
}

.cta-final h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-final h2 .grad {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-final p {
  color: var(--muted-foreground);
  max-width: 560px;
  margin: 0 auto 2.25rem;
  font-size: 1.05rem;
}

.cta-final .note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--background);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer .brand { font-size: 1rem; }

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

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

.footer .copy {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  opacity: 0.8;
}

/* ---------- LEGAL PAGES ---------- */
.legal {
  padding: 4rem 0 5rem;
}

.legal .legal-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.5rem);
  padding: 3rem;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.legal p, .legal li {
  color: var(--muted-foreground);
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

.legal ul, .legal ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal a { color: var(--accent); }

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal .back:hover { color: var(--accent); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-icon { animation: none; }
}

/* ============================================================
   TRIANGULAÇÃO DOS 3 PILARES (interativa, arraste para girar)
   ============================================================ */

.tri-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 560px;
  margin: 0 auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.tri-wrap.dragging { cursor: grabbing; }

.tri-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tri-lines line {
  stroke: #4dff6344;
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  transition: stroke 0.3s;
}

.tri-wrap:hover .tri-lines line { stroke: #4dff6377; }

.tri-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  pointer-events: none;
}

.tri-center img {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  box-shadow: var(--shadow-neon);
  animation: float 5s ease-in-out infinite;
}

.tri-center-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.tri-node {
  position: absolute;
  width: 196px;
  transform: translate(-50%, -50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.1rem;
  text-align: center;
  z-index: 2;
  transition: left 0.15s ease-out, top 0.15s ease-out, border-color 0.2s;
  will-change: left, top;
  animation: nodeFloat 6s ease-in-out infinite;
}

#tri-n1 { animation-delay: 0s; }
#tri-n2 { animation-delay: 2s; }
#tri-n3 { animation-delay: 4s; }

@keyframes nodeFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-9px); }
}

.tri-node:hover { border-color: #4dff6355; }

.tri-node .num {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  background: var(--gradient-neon);
  color: var(--accent-foreground);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neon-sm);
}

.tri-node h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.tri-node p { color: var(--muted-foreground); font-size: 0.84rem; line-height: 1.5; }

.tri-hint {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

@media (max-width: 620px) {
  .tri-wrap { height: 480px; }
  .tri-node { width: 160px; padding: 1rem 0.8rem; }
  .tri-node p { font-size: 0.78rem; }
  .tri-center img { width: 60px; height: 60px; }
}

/* ============================================================
   CARD ESPECIAL (reservado p/ principal necessidade)
   ============================================================ */

.card-special {
  border-color: #ff660066;
  background: linear-gradient(160deg, #ff66000f, var(--card) 55%);
}

.card-special:hover { border-color: #ff6600cc; }

.card-special .icon-box {
  background: linear-gradient(135deg, #ff6600, #ff8844);
  box-shadow: 0 0 24px #ff660044;
}

.card-special h3 { color: #ff9d55; }
