/* ============================================================
   Conectasmart IA - Landing Page (versao 2)
   Design system dark-tech, mobile-first
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-elev: #0c1220;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e8edf5;
  --text-muted: #98a4b8;
  --text-dim: #6b7688;

  --accent: #22d3a5;
  --accent-2: #38bdf8;
  --accent-dark: #0e9f7c;
  --accent-glow: rgba(34, 211, 165, 0.25);

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

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

/* ============ Typography helpers ============ */

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 640px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 760px;
}

.section-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  background: rgba(34, 211, 165, 0.06);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 26px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(100deg, var(--accent), #1cb98f);
  color: #04211a;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34, 211, 165, 0.4);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ============ Header ============ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.header.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: 10px 0;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

.logo-mark { width: 30px; height: 30px; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
  position: relative;
  padding: 170px 0 100px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.hero-glow-1 {
  width: 560px; height: 560px;
  background: var(--accent);
  top: -220px; right: -140px;
  opacity: 0.16;
}

.hero-glow-2 {
  width: 480px; height: 480px;
  background: var(--accent-2);
  bottom: -260px; left: -160px;
  opacity: 0.12;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 18px;
  border-radius: 999px;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 100%;
  width: 100%;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 720px;
}

.hero-split {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 32px;
  width: 100%;
  align-items: center;
  text-align: left;
}

.hero-split .hero-subtitle {
  max-width: none;
  margin: 0;
  line-height: 1.65;
}

.hero-split-media {
  min-width: 0;
}

.hero-split-media .guia-carousel {
  margin-top: 0;
}

.hero-split-media .guia-slide {
  aspect-ratio: 16 / 10;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
  padding: 22px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 200px;
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent);
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

.hero-stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border-strong);
}

/* ============ Sections base ============ */

.section { padding: 104px 0; position: relative; }

.section-dores { background: var(--bg-elev); }

.section-metodologia { background: var(--bg-elev); }

/* ============ Cards / grids ============ */

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p { color: var(--text-muted); font-size: 0.96rem; }

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.card-icon svg { width: 26px; height: 26px; }

.card-icon-accent {
  color: var(--accent);
  border-color: var(--accent-glow);
  background: rgba(34, 211, 165, 0.07);
}

.dor-card .card-icon { color: #f0906a; border-color: rgba(240, 144, 106, 0.3); background: rgba(240, 144, 106, 0.07); }

.solucao-card-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(145deg, rgba(34, 211, 165, 0.1), rgba(56, 189, 248, 0.06));
  border-color: var(--accent-glow);
}

.solucao-card-cta .btn { align-self: flex-start; }

/* ============ Metodologia (fases) ============ */

.fases {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
}

.fase {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color var(--transition), transform var(--transition);
}

.fase:hover { border-color: var(--accent-glow); transform: translateX(4px); }

.fase-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #04211a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.fase-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.fase-body p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 14px; }

.fase-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  padding: 4px 12px;
  border-radius: 999px;
}

.fase-connector {
  width: 2px;
  height: 34px;
  margin-left: 55px;
  background: linear-gradient(var(--accent-glow), transparent);
}

/* ============ Resultados / stats ============ */

.stat {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1;
}

.stat p { color: var(--text-muted); font-size: 0.9rem; }

.resultados-destaque {
  margin-top: 40px;
  text-align: center;
  padding: 44px;
  background: linear-gradient(145deg, rgba(34, 211, 165, 0.07), rgba(56, 189, 248, 0.04));
  border-color: var(--accent-glow);
}

.resultados-destaque blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto 16px;
}

.resultados-destaque cite {
  color: var(--text-dim);
  font-style: normal;
  font-size: 0.9rem;
}

/* ============ Contato / formulario ============ */

.section-contato {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(34, 211, 165, 0.08), transparent),
    var(--bg-elev);
}

.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contato-copy { display: flex; flex-direction: column; gap: 18px; }

.contato-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.contato-bullets li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
}

.contato-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2322d3a5" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center/12px no-repeat,
    rgba(34, 211, 165, 0.12);
}

.contato-form-wrap { padding: 40px; }

.lead-form { display: flex; flex-direction: column; gap: 18px; }

.lead-form h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.form-field { display: flex; flex-direction: column; gap: 7px; }

.form-field label {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

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

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 165, 0.15);
}

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

.form-feedback {
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

.form-feedback.ok { color: var(--accent); }
.form-feedback.erro { color: #f0906a; }

/* ============ Footer ============ */

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
}

.footer-brand p { color: var(--text-dim); font-size: 0.92rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  padding-bottom: 22px;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}

/* ============ Guia carousel ============ */

.section-guia {
  background: var(--bg);
}

.guia-carousel {
  margin-top: 8px;
}

.guia-viewport {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #05080f;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.guia-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
}

.guia-track::-webkit-scrollbar {
  display: none;
}

.guia-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  aspect-ratio: 3 / 2;
  background: #05080f;
}

.guia-slide picture,
.guia-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.guia-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.72);
  color: var(--text);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
}

.guia-nav svg {
  width: 20px;
  height: 20px;
}

.guia-nav:hover,
.guia-nav:focus-visible {
  background: rgba(34, 211, 165, 0.16);
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.guia-nav:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.guia-nav-prev { left: 10px; }
.guia-nav-next { right: 10px; }

.guia-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.guia-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
}

.guia-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.guia-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width var(--transition), background var(--transition), transform var(--transition);
}

.guia-dot.is-active {
  width: 28px;
  background: var(--accent);
}

.guia-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.guia-cta-bar {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.guia-cta-btn {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* ============ Reveal animations ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-dot { animation: none; }
  .guia-track { scroll-behavior: auto; }
}

/* ============ Responsive ============ */

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .contato-inner { grid-template-columns: 1fr; gap: 44px; }

  .hero-title {
    font-size: clamp(1.45rem, 4.6vw, 2.2rem);
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hero-split .hero-subtitle {
    text-align: center;
  }
}

@media (max-width: 680px) {
  .hero-title-line {
    white-space: normal;
  }

  .section { padding: 72px 0; }

  .hero { padding: 130px 0 72px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .hero-stat-divider { display: none; }

  .hero-stats { flex-direction: column; gap: 20px; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 96px 32px 32px;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav.open { transform: translateX(0); }

  .nav-link {
    font-size: 1.05rem;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta { margin-top: 18px; width: 100%; }

  .nav-toggle { display: flex; z-index: 110; }

  .fase { flex-direction: column; gap: 18px; }

  .fase-connector { margin-left: 24px; }

  .contato-form-wrap { padding: 28px 22px; }

  .guia-nav {
    width: 40px;
    height: 40px;
  }

  .guia-nav-prev { left: 6px; }
  .guia-nav-next { right: 6px; }

  .guia-controls {
    justify-content: center;
  }

  .guia-counter {
    width: 100%;
    text-align: center;
    order: 2;
  }

  .guia-dots {
    order: 1;
    width: 100%;
  }

  .guia-cta-btn {
    max-width: none;
  }
}
