:root {
  --bg: #0f0f14;
  --bg-elevated: #17171f;
  --bg-elevated-2: #1d1d27;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-muted: #a1a1ad;
  --accent-start: #4f46e5;
  --accent-end: #a855f7;
  --alert: #e31e24;
  --radius: 16px;
  --container-width: 1120px;
  --font-heading: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 16px; color: var(--text-muted); }

a { color: inherit; }

.gradient-text {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */

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

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

.brand-logo { height: 22px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  padding: 9px 18px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

/* Hero */

.hero {
  position: relative;
  padding: 96px 0 140px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(circle at 30% 0%, rgba(79, 70, 229, 0.35), transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-end);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-card {
  position: relative;
  max-width: var(--container-width);
  margin: 56px auto 0;
  padding: 0 24px;
}

.hero-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 480px;
}

.hero-card-inner strong { display: block; margin-bottom: 4px; }
.hero-card-inner p { margin: 0; font-size: 0.9rem; }

.hero-card-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.2);
}

/* Sections */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-elevated); }

.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
}

.section-cta { text-align: center; }
.section-cta .section-lead { margin-left: auto; margin-right: auto; }

/* Card grid */

.card-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

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

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.section-alt .card { background: var(--bg-elevated-2); }

.card-index {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-end);
  margin-bottom: 12px;
}

.card p:last-child { margin-bottom: 0; }

/* Flow diagram */

.flow {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1 1 220px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.flow-step-highlight {
  border-color: transparent;
  background: linear-gradient(160deg, rgba(79, 70, 229, 0.25), rgba(168, 85, 247, 0.15));
}

.flow-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.flow-step p { margin-bottom: 0; font-size: 0.92rem; }

.flow-arrow {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-arrow svg {
  width: 100%;
  height: 24px;
  stroke: var(--accent-end);
  stroke-width: 2;
  fill: none;
}

.flow-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-weight: 500;
  color: var(--text);
}

.dot-alert {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--alert);
  flex-shrink: 0;
}

/* Product cards */

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.product-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

.product-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: -8px;
  margin-bottom: 20px;
}

.product-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-end);
}

.product-card-soon { opacity: 0.75; }
.product-soon-text { font-size: 0.92rem; }

.product-note {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.badge-alert {
  background: rgba(227, 30, 36, 0.15);
  color: #ff6b6f;
}

.badge-neutral {
  background: rgba(79, 70, 229, 0.15);
  color: #b4aeff;
}

.badge-soon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.badge-apura {
  background: rgba(14, 159, 110, 0.15);
  color: #22c58d;
}

/* Acento verde exclusivo do card APURA, sem tocar nas variáveis globais */

.product-card--apura .product-icon-fallback {
  background: linear-gradient(135deg, #0e9f6e, #0b7a55);
}

.product-card--apura .product-list li::before {
  background: #22c58d;
}

.product-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-end);
}

.product-card--apura .product-link {
  color: #22c58d;
}

/* Confianca */

.confianca-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.confianca-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.confianca-list h3 { margin-bottom: 6px; }
.confianca-list p { margin: 0; font-size: 0.95rem; }

/* Sobre */

.sobre-inner { max-width: 720px; }
.sobre-inner p { font-size: 1.05rem; }

/* Contact form */

.contact-form {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-end);
}

.contact-form .btn { align-self: flex-start; }

.contact-fallback {
  margin-top: 24px;
  font-size: 0.9rem;
}

.contact-fallback a {
  color: var(--accent-end);
  text-decoration: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-logo { height: 16px; opacity: 0.8; }

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-nav a { text-decoration: none; color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); }

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 860px) {
  .card-grid.three,
  .card-grid.two { grid-template-columns: 1fr; }
  .confianca-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); flex: 0 0 32px; width: 48px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }

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

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .nav-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .hero { padding: 64px 0 96px; }
  .section { padding: 64px 0; }
}
