/* ===========================
   VARIÁVEIS E BASE GLOBAL
=========================== */
:root {
  --bg-body: #050816;
  --bg-elevated: #0b1220;
  --bg-elevated-alt: #070f1e;
  --primary: #38bdf8;      /* azul claro */
  --primary-soft: rgba(56, 189, 248, 0.12);
  --accent: #facc15;       /* dourado */
  --accent-soft: rgba(250, 204, 21, 0.14);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.24);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --max-width: 1120px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
}

/* Reset simples */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1220 0, #020617 52%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Containers e seções reutilizáveis */
.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.25rem;
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.7rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 520px;
}

/* Grade de seções genérica */
.section-grid {
  display: grid;
  gap: 2rem;
}

/* ===========================
   CABEÇALHO / NAVEGAÇÃO
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.82), transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #38bdf8, #1d4ed8 60%, #0f172a 100%);
  color: #f9fafb;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
}

/* Navegação desktop */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.main-nav a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  transform: translateY(-1px);
}

.main-nav .nav-cta {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #0b1120;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.45);
}

.main-nav .nav-cta:hover {
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
}

/* Botão mobile */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  padding: 0;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform var(--transition-med), opacity var(--transition-med);
}

/* Ícone hamburguer animado */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===========================
   HERO
=========================== */
.hero {
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.hero-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lado direito do Hero */
.hero-highlight {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.4), transparent 55%),
    radial-gradient(circle at bottom right, rgba(250, 204, 21, 0.45), transparent 55%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  font-size: 1.15rem;
}

.hero-card p {
  color: var(--text-main);
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

/* ===========================
   CARDS E GRIDS
=========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.8);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background var(--transition-med);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.2), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.7);
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.99), rgba(15, 23, 42, 0.98));
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.9);
}

.card:hover::before {
  opacity: 1;
}

/* Card de produto (variação leve, se quiser) */
.product-card h3 {
  font-size: 1rem;
}

.card-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

/* ===========================
   BOTÕES REUTILIZÁVEIS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-med), color var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), transform var(--transition-med);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #0b1120;
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: radial-gradient(circle at top left, #22c55e, #16a34a);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.55);
}

.btn-whatsapp:hover {
  background: radial-gradient(circle at top left, #4ade80, #16a34a);
}

.section-actions {
  margin-top: 2rem;
}

/* ===========================
   CONTEÚDOS E CTA
=========================== */
.content-highlight {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  padding: 1.25rem 1.2rem;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text-muted);
}

/* CTA final */
.cta-section {
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.98), #020617);
  border-top: 1px solid rgba(56, 189, 248, 0.5);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-subtitle {
  color: var(--text-muted);
  max-width: 460px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===========================
   RODAPÉ
=========================== */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, #020617, #000);
  padding-top: 2rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer-name {
  font-weight: 600;
  color: var(--text-main);
}

.footer-role {
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  padding: 0.75rem 0 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* ===========================
   RESPONSIVIDADE
=========================== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr);
  }

  .hero-highlight {
    margin-top: 1.75rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  /* Menu vira mobile */
  .main-nav {
    position: absolute;
    inset: 58px 1.25rem auto 1.25rem;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.3rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .main-nav.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    padding: 0.65rem 0;
  }

  .section {
    padding: 3.2rem 0;
  }

  .cards-grid,
  .cards-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-card {
    padding: 1.5rem 1.3rem;
  }
}
