:root {
  --bg: #050814;
  --bg-elevated: rgba(13, 18, 38, 0.9);
  --bg-accent: #0b1024;
  --primary: #4f46e5;
  --primary-soft: rgba(79, 70, 229, 0.1);
  --primary-bright: #818cf8;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --card-bg: rgba(15, 23, 42, 0.85);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 50%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Layout básico */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.85), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo span {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #22c55e);
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.6);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.35), rgba(15, 23, 42, 0.96));
  color: #e5e7eb !important;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
}

/* HERO */
.hero {
  padding: 5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero h1 span {
  background: linear-gradient(135deg, #818cf8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 35rem;
  font-size: 0.98rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #eef2ff;
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 60px rgba(79, 70, 229, 0.75);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.btn.full-width {
  width: 100%;
}

.hero-metrics {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.metric-number {
  font-size: 1.4rem;
  font-weight: 600;
}

.metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Painel lateral */
.hero-panel {
  background: radial-gradient(circle at top, rgba(55, 65, 81, 0.4), rgba(15, 23, 42, 0.96));
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.status-pill {
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(52, 211, 153, 0.7);
  color: #bbf7d0;
  font-size: 0.68rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.4));
}

.status-pill.small {
  padding: 0.1rem 0.5rem;
  font-size: 0.65rem;
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.8);
}

.panel-section h3 {
  font-size: 0.9rem;
  margin: 0 0 0.65rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.panel-kpi {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.panel-kpi span {
  display: block;
  font-size: 0.7rem;
  color: #e5e7eb;
  margin-bottom: 0.35rem;
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 1);
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #4ade80, #a3e635);
}

.panel-kpi small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Seções genéricas */
.section {
  padding: 4.5rem 0 3.5rem;
}

.section-accent {
  background: radial-gradient(circle at top left, #020617 0, #020617 20%, #020617 100%);
  position: relative;
}

.section-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(79, 70, 229, 0.18), transparent 55%),
              radial-gradient(circle at 85% 0%, rgba(34, 197, 94, 0.18), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.section-accent > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: left;
  max-width: 40rem;
  margin-bottom: 2.1rem;
}

.section-header h2 {
  font-size: 1.7rem;
  margin: 0.2rem 0 0.4rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--card-bg);
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.85);
  border-color: rgba(129, 140, 248, 0.75);
  background: rgba(15, 23, 42, 0.96);
}

.card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}

.card ul li {
  font-size: 0.85rem;
  color: #e5e7eb;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-bright);
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.split p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.split ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.split ul li {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.3rem;
  padding-left: 1rem;
  position: relative;
}

.split ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--primary-bright);
}

/* Estatísticas verticais */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.stat-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

/* Steps / metodologia */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.step {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  border: 1px solid var(--border-subtle);
}

.step-number {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.step p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Resultados */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.result-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.3rem 1.2rem;
}

.result-card h3 {
  margin-top: 0;
  font-size: 0.98rem;
}

.result-value {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0.2rem 0 0.5rem;
  background: linear-gradient(135deg, #818cf8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.result-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tag {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.7rem;
  color: #e5e7eb;
  margin-top: 0.4rem;
}

.cases-highlight {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.4rem 1.2rem;
}

.cases-highlight h3 {
  margin-top: 0;
  font-size: 1.02rem;
}

.cases-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cases-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.2rem;
}

.case-item h4 {
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.case-item p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.stack-group {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.3rem 1.2rem;
}

.stack-group h3 {
  margin-top: 0;
  font-size: 0.96rem;
}

.stack-group p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.stack-tags span {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.96);
}

/* Sobre */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.quote {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  border-left: 3px solid rgba(129, 140, 248, 0.9);
  padding-left: 0.7rem;
}

.location {
  grid-column: span 2;
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 0.7rem 0.75rem;
  font-size: 0.8rem;
}

.location span {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
}

details {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 0.9rem;
}

summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  color: #e5e7eb;
}

details p {
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* CTA / Contato */
.section-cta {
  background: radial-gradient(circle at center, #020617 0, #000 75%);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.cta-text h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.cta-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}

.contact-channels .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.contact-channels a,
.contact-channels span {
  font-size: 0.9rem;
}

.small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Formulário */
.contact-form {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6);
}

textarea {
  resize: vertical;
}

.form-feedback {
  font-size: 0.78rem;
  margin-top: 0.5rem;
  color: #bbf7d0;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 1.5rem;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 18rem;
}

.footer-cols {
  display: flex;
  gap: 3rem;
}

.footer-cols h4 {
  font-size: 0.86rem;
  margin: 0 0 0.4rem;
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cols li {
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
}

.footer-cols a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.6rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cases-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-channels {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-cols {
    gap: 2rem;
  }

  .site-header {
    backdrop-filter: blur(12px);
  }

  .main-nav {
    position: absolute;
    inset: 64px 0 auto 0;
    background: rgba(2, 6, 23, 0.98);
    padding: 0.7rem 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cols {
    flex-direction: column;
  }

  .hero {
    padding-top: 4rem;
  }
}