/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-2: #10101a;
  --bg-3: #16162a;
  --surface: #1a1a2e;
  --surface-2: #20203a;
  --border: #ffffff12;
  --border-hover: #ffffff25;
  --accent: #a3e635;
  --accent-dim: #a3e63520;
  --accent-2: #22d3ee;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.section { padding: 100px 0; }

/* ── Typography ── */
.section-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 56px;
}

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

strong { color: var(--text); font-weight: 600; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #0a0a0f;
}
.btn--primary:hover { background: #bef264; transform: translateY(-1px); }

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

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background .3s, backdrop-filter .3s;
}

.nav.scrolled {
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.02em;
}
.logo-bracket { color: var(--text-dim); }
.logo-accent { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 24px;
  font-size: 15px;
  transition: background .15s, color .15s;
}
.nav__mobile a:hover { background: var(--surface); color: var(--text); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#heroCanvas {
  width: 100%;
  height: 100%;
  opacity: .35;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 32px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.8); }
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}

.hero__accent { color: var(--accent); }

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-badge {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: .04em;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.hero__scroll span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Stats ── */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

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

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  gap: 8px;
  border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: none; }

.stat-card__num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: -.03em;
}
.stat-card__label {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 160px;
}

/* ── About ── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about__text p:last-child { margin-bottom: 0; }

.about__skills {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skill-group h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.skill-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-group li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.skill-group li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* ── Solutions ── */
.solutions { background: var(--bg-2); }

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sol-card {
  background: var(--bg-2);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .2s;
}
.sol-card:hover { background: var(--surface); }

.sol-card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.sol-card__icon svg { width: 22px; height: 22px; }

.sol-card h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.sol-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.sol-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.sol-card__tags span {
  font-size: 11px;
  font-family: var(--mono);
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ── Diferenciais ── */
.diff__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.diff-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diff-item__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .1em;
}

.diff-item h3 {
  font-size: 18px;
  font-weight: 600;
}

.diff-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Process ── */
.process { background: var(--bg-2); }

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
  padding-bottom: 40px;
}
.step:last-child { padding-bottom: 0; }

.step__line {
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-hover), transparent);
}

.step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step__content { padding-top: 8px; }
.step__content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.step__content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FAQ ── */
.faq__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .2s;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── CTA Final ── */
.cta-final {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cta-final__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.cta-final__text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.cta-final__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Contact Form ── */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ── Footer ── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
}
.footer__links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-card:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .solutions__grid { grid-template-columns: repeat(2, 1fr); }
  .diff__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .faq__inner { grid-template-columns: 1fr; gap: 48px; }
  .cta-final__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .solutions__grid { grid-template-columns: 1fr; }
  .diff__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 28px 20px; }
  .cta-final__btns { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-card:last-child { border-bottom: none; }
}
