:root {
  --bg: #050505;
  --bg-alt: #0e0e0f;
  --card: #141416;
  --card-alt: #1a1a1c;
  --border: #2a2a2e;
  --text: #f0ede8;
  --text-muted: #9a9a9d;
  --accent: #ff6600;
  --accent-dark: #cc5200;
  --whatsapp: #25d366;
  --radius: 14px;
  --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.35);
}
.btn-primary:hover { background: #ff7a1a; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #06210f;
}
.btn-whatsapp:hover { background: #2fe077; }

.btn-large { padding: 16px 32px; font-size: 1.05rem; }

.icon-wpp { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}
/* Esconde a <img> automaticamente se assets/logo-full.png ainda não existir */
.brand-logo-img:not([src]),
.brand-logo-img.img-error { display: none; }

/* Texto é só um fallback: a logo-full.png já traz "TRAZOM TECNOLOGIA" desenhado */
.brand-logo-text {
  display: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1;
}
.brand-logo-text.show { display: block; }
.brand-logo-text small {
  display: block;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

.main-nav a.active {
  color: var(--accent);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 100px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 102, 0, 0.12), transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(255, 102, 0, 0.08), transparent 50%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-lead strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-tags span {
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero-tags span.tag-accent {
  color: var(--accent);
  border-color: rgba(255, 102, 0, 0.4);
  background: rgba(255, 102, 0, 0.08);
  font-weight: 600;
}

.hero-visual { display: flex; justify-content: center; }

.glow-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 30%, #1c1c1e, #000 75%);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(255, 102, 0, 0.12);
}

.ai-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(255, 102, 0, 0.4);
  background: rgba(255, 102, 0, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
}

.ai-network { width: 100%; max-width: 340px; }
.ai-network .node {
  fill: #050505;
  stroke: var(--text);
  stroke-width: 2.5;
}
.ai-network .node-accent {
  fill: var(--accent);
  stroke: var(--accent);
  filter: drop-shadow(0 0 6px rgba(255, 102, 0, 0.7));
  animation: node-pulse 2.6s ease-in-out infinite;
}
.ai-network .node-accent:nth-child(2) { animation-delay: 0.4s; }
.ai-network .node-accent:nth-child(3) { animation-delay: 0.8s; }

@keyframes node-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.ai-caption {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Seções genéricas ---------- */
section { padding: 90px 0; }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1rem;
}

/* ---------- Serviços ---------- */
.servicos { background: var(--bg-alt); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Diferenciais ---------- */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.diferencial-item {
  background: linear-gradient(160deg, var(--card-alt), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.diferencial-number {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 14px;
  opacity: 0.7;
}

.diferencial-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.diferencial-item p {
  color: var(--text-muted);
}

/* ---------- Cases ---------- */
.cases { background: var(--bg-alt); }

.case-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px;
}

.case-visual { display: flex; }

.case-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.case-info h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.case-info p { color: var(--text-muted); margin-bottom: 20px; }

.case-highlights {
  list-style: none;
  margin-bottom: 28px;
}
.case-highlights li {
  color: var(--text);
  font-size: 0.92rem;
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.case-highlights li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.case-mock {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  min-height: 220px;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.case-mock-dot:first-child { background: #ff5f57; }
.case-mock-title {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- Sobre ---------- */
.sobre-inner { max-width: 780px; text-align: center; }
.sobre-text { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Contato ---------- */
.contato {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 102, 0, 0.1), transparent 60%);
}
.contato-inner { text-align: center; }
.contato-inner .btn-large { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { pointer-events: none; }
.footer-logo-img { height: 34px; width: auto; object-fit: contain; }
.footer-logo-img:not([src]),
.footer-logo-img.img-error { display: none; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06210f;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 200;
  animation: pulse 2.4s infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .glow-card { max-width: 320px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card { grid-template-columns: 1fr; }
  .case-visual { order: -1; }
}

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

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .site-header .header-inner { position: relative; }
}
