/* G2W Cloud — site de apresentação
   Sistema de design: fundo verde-quase-preto (não preto neutro), trilhas de
   circuito como elemento conector entre seções (extensão literal da marca —
   o próprio emblema já é uma nuvem com trilhas de PCB), Chakra Petch (cantos
   cortados, personalidade de placa de circuito) pros títulos. */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #060f0a;
  --bg-raised: #0d1c13;
  --bg-raised-2: #112620;
  --green-deep: #163d22;
  --green-brand: #3c6c42;
  --green-bright: #5ee08a;
  --green-glow: rgba(94, 224, 138, 0.35);
  --ink: #eaf6ee;
  --ink-muted: #86a690;
  --ink-faint: #719276; /* ajustado pra passar WCAG AA (4.5:1+) contra --bg e --bg-raised — achado no /code-review */
  --border: #1c3327;
  --radius: 10px;
  --font-display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --max-width: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(60, 108, 66, 0.25), transparent 60%),
    radial-gradient(ellipse 700px 500px at 0% 100%, rgba(22, 61, 34, 0.3), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-bright); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Cabeçalho / navegação ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 15, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand img { height: 30px; width: auto; }
.brand strong { color: var(--green-bright); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-brand), #2c5335);
  color: #f4fff7;
  box-shadow: 0 0 0 1px var(--green-deep), 0 8px 24px -8px var(--green-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--green-bright), 0 10px 30px -6px var(--green-glow); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--green-bright); color: var(--green-bright); }

/* ---------- Trilha de circuito (elemento de assinatura) ---------- */

.trace {
  width: 100%;
  height: 48px;
  display: block;
  margin: 0 auto;
}
.trace path {
  fill: none;
  stroke: var(--green-deep);
  stroke-width: 2;
}
.trace .pulse {
  stroke: var(--green-bright);
  stroke-width: 2;
  stroke-dasharray: 6 340;
  animation: trace-flow 5s linear infinite;
  filter: drop-shadow(0 0 4px var(--green-bright));
}
.trace circle { fill: var(--green-deep); }
@keyframes trace-flow {
  to { stroke-dashoffset: -700; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--green-bright);
}
h1.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
h1.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--green-bright), #a6f5c2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img {
  max-width: 480px;
  width: 100%;
  filter: drop-shadow(0 0 60px var(--green-glow));
  animation: float 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Seções gerais ---------- */

section { padding: 64px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before { display: none; }
h2.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}
.section-sub { color: var(--ink-muted); margin: 0; }

/* ---------- Grade de recursos ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
}
.feature {
  padding: 32px 22px;
  border-right: 1px solid var(--border);
  text-align: left;
}
.feature:last-child { border-right: none; }
.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--green-bright);
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.feature p {
  font-size: 0.87rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { border-right: none; border-bottom: 1px solid var(--border); }
  .feature:nth-child(2n) { border-left: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature:nth-child(2n) { border-left: none; }
  .feature { border-bottom: 1px solid var(--border); }
}

/* ---------- Confiança / operação própria ---------- */

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.trust-copy h2 { text-align: left; margin-bottom: 16px; }
.trust-copy p { color: var(--ink-muted); margin: 0 0 16px; }
.trust-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.trust-list li {
  display: flex;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--ink);
}
.trust-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--green-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.trust-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink-muted);
}
.trust-panel .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.trust-panel .row:last-child { border-bottom: none; }
.trust-panel .row span:last-child { color: var(--green-bright); }

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

/* ---------- CTA de download final ---------- */

.cta-band {
  text-align: center;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 32px;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--ink-muted); margin: 0 0 28px; }

/* ---------- Rodapé ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--ink); }
.footer-fine { font-size: 0.8rem; color: var(--ink-faint); }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 280px; }
  .nav-links { display: none; }
  .wrap { padding: 0 20px; }
  section { padding: 48px 0; }
  .trust-copy h2 { text-align: center; }
}

/* ---------- Página de download ---------- */

.download-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.download-card .platform-icon {
  width: 48px; height: 48px; flex-shrink: 0; color: var(--green-bright);
}
.download-card .details { flex: 1; }
.download-card h3 { font-family: var(--font-display); margin: 0 0 4px; font-size: 1.1rem; }
.download-card .meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); }
.download-card.disabled { opacity: 0.55; }
.download-card.disabled .btn { pointer-events: none; }
.hash-block {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  word-break: break-all;
  margin-top: 6px;
}

.page-hero {
  padding: 56px 0 40px;
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 14px;
}
.page-hero p { color: var(--ink-muted); max-width: 50ch; margin: 0 auto; }

.content-narrow { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h3 { font-family: var(--font-display); font-size: 1.02rem; margin: 0 0 8px; }
.faq-item p { color: var(--ink-muted); margin: 0; }
