/* ==========================================================================
   Code Hard Studio — estilos
   Para mudar as cores do site, altere as variáveis logo abaixo.
   ========================================================================== */

:root {
  /* Tema claro (padrão) */
  --background: #ffffff;
  --surface: #f6f9f7;               /* fundo das seções alternadas */
  --foreground: #0d1a12;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --primary: #0a7d33;               /* verde dos textos, ícones e detalhes */
  --primary-2: #4ea90d;
  --primary-light: rgba(22, 163, 74, 0.1);
  --on-brand: #06250f;              /* texto sobre os botões verdes */
  --secondary: #eef4f0;
  --secondary-foreground: #14241a;
  --secondary-light: rgba(232, 241, 235, 0.75);
  --muted: #eef4f0;
  --muted-foreground: #56665c;
  --accent: #f1f6f3;
  --destructive: #dc2626;
  --border: #e1e9e4;
  --input: #d5dfd9;
  --ring: #16a34a;
  --radius: 0.9rem;
  --glow: rgba(34, 197, 94, 0.32);
  --card-shadow: 0 20px 45px -18px rgba(13, 80, 40, 0.22);
  --modal-bg: rgba(6, 16, 10, 0.86);
  --navbar-bg: rgba(255, 255, 255, 0.78);
  --hero-gradient:
    radial-gradient(circle at 18% 22%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(circle at 82% 28%, rgba(163, 230, 53, 0.13), transparent 50%),
    radial-gradient(circle at 50% 92%, rgba(16, 185, 129, 0.08), transparent 55%);
  --loading-gradient: linear-gradient(135deg, #ffffff 0%, #eef4f0 100%);
  /* Verde vivo do logo: botões e destaques */
  --brand-gradient: linear-gradient(135deg, #22e04a 0%, #9df22c 100%);
  /* Verde mais fechado: textos em degradê sobre o fundo claro */
  --text-gradient: linear-gradient(to right, #089038, #4ea90d);
  --logo-bg: #0a120d;               /* disco escuro atrás do logo */

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Sora", var(--font-sans);
  --navbar-height: 4.25rem;
}

/* Tema escuro */
.dark-theme {
  --background: #0a120d;
  --surface: #0d1811;
  --foreground: #eef6f0;
  --card: #111c15;
  --card-glass: rgba(17, 28, 21, 0.72);
  --primary: #4ade80;
  --primary-2: #a3e635;
  --primary-light: rgba(74, 222, 128, 0.14);
  --secondary: #17251c;
  --secondary-foreground: #eef6f0;
  --secondary-light: rgba(30, 46, 36, 0.7);
  --muted: #17251c;
  --muted-foreground: #9db3a4;
  --accent: #142119;
  --destructive: #f87171;
  --border: #22352a;
  --input: #2a4033;
  --ring: #4ade80;
  --glow: rgba(74, 222, 128, 0.25);
  --card-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.6);
  --modal-bg: rgba(2, 6, 4, 0.92);
  --navbar-bg: rgba(10, 18, 13, 0.72);
  --hero-gradient:
    radial-gradient(circle at 18% 22%, rgba(74, 222, 128, 0.18), transparent 55%),
    radial-gradient(circle at 82% 28%, rgba(163, 230, 53, 0.13), transparent 50%),
    radial-gradient(circle at 50% 92%, rgba(16, 185, 129, 0.12), transparent 55%);
  --loading-gradient: linear-gradient(135deg, #111c15 0%, #0a120d 100%);
  --text-gradient: linear-gradient(to right, #4ade80, #a3e635);
  --logo-bg: #050a07;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

::selection { background: #9df22c; color: #06250f; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section { padding: 5rem 1rem; }
.section-alt { background-color: var(--surface); transition: background-color 0.3s ease; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--muted-foreground);
  max-width: 38rem;
  margin: 0 auto;
}

/* ---------- Componentes ---------- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.8rem 1.5rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* brilho que atravessa o botão ao passar o mouse */
.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.button:hover::before { left: 100%; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-icon { transition: transform 0.3s ease; }
.button:hover .button-icon { transform: translateX(3px); }

.button.primary {
  background: var(--brand-gradient);
  color: var(--on-brand);
  box-shadow: 0 6px 18px -4px var(--glow);
}
.button.primary:hover { box-shadow: 0 10px 24px -4px var(--glow); }

.button.outline {
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.button.outline:hover {
  background-color: var(--accent);
  border-color: var(--ring);
}

.button.small { font-size: 0.875rem; padding: 0.5rem 1rem; }
.button.full-width { width: 100%; }
.button[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.card {
  background-color: var(--card-glass);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: 1.75rem;
  height: 100%;
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-5px);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card-title i { color: var(--primary); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--secondary-light);
  color: var(--secondary-foreground);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
}
.tag.live { color: var(--primary); background: var(--primary-light); }
.tag.live::before {
  content: "";
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.icon-circle {
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 1.15rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* Logo sobre disco escuro (o logo tem letras brancas) */
.logo-disc {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--logo-bg);
  overflow: hidden;
}
.logo-disc img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Tela de carregamento ---------- */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--loading-gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  /* some sozinha mesmo se o JavaScript falhar */
  animation: loaderOut 0.4s ease 2.5s forwards;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.loader-logo { position: relative; width: 6.5rem; height: 6.5rem; }
.loader-logo .logo-disc { width: 100%; height: 100%; padding: 0.35rem; }
.loader-logo::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid var(--primary-light);
  border-top-color: var(--ring);
  animation: spin 1s linear infinite;
}
.loader-text { font-family: var(--font-heading); font-weight: 600; color: var(--primary); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Voltar ao topo e WhatsApp ---------- */
.back-to-top,
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
}
.back-to-top {
  bottom: 1.5rem;
  background: var(--card);
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

.whatsapp-float {
  bottom: 5.2rem;
  background: #25d366;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.55);
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: var(--navbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.35);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--navbar-height);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.navbar-logo {
  width: 2.6rem;
  height: 2.6rem;
  box-shadow: 0 6px 16px -6px var(--glow);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.navbar-links a:not(.button) {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--muted-foreground);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.25s ease;
}
.navbar-links a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.navbar-links a:not(.button):hover,
.navbar-links a.active { color: var(--foreground); }
.navbar-links a:not(.button):hover::after,
.navbar-links a.active::after { width: 100%; }
.navbar-links .button { display: none; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle,
.menu-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background-color: var(--card);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.theme-toggle i { font-size: 1.1rem; transition: transform 0.3s ease; }
.theme-toggle:hover i { transform: rotate(30deg); }
.menu-toggle { display: none; color: var(--foreground); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--navbar-height) + 2.5rem) 1rem 4.5rem;
  overflow: hidden;
}

.hero-background { position: absolute; inset: 0; z-index: 0; }
.gradient-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  transition: background 0.3s ease;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(13 80 40 / 0.05)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.dark-theme .grid-overlay {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(255 255 255 / 0.05)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
}
.particles-container { position: absolute; width: 100%; height: 100%; z-index: 1; }

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 50rem;
  margin: 0 auto;
}

.hero-logo {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.5rem;
  padding: 0.4rem;
  box-shadow: 0 0 0 6px var(--primary-light), 0 18px 40px -12px var(--glow);
}
.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta { margin-bottom: 2rem; animation: fadeInUp 0.8s ease 0.3s both; }

.hero-stats {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.25rem 2rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.stat-item:not(:last-child) { padding-right: 2rem; }
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.875rem; color: var(--muted-foreground); }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  z-index: 10;
  color: var(--muted-foreground);
  animation: fadeIn 1s ease 1s both;
}
.scroll-indicator a { display: inline-flex; padding: 0.5rem; }
.bounce { animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card h3 { font-size: 1.15rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.service-card p { color: var(--muted-foreground); font-size: 0.95rem; }
.service-card:hover .icon-circle {
  background: var(--brand-gradient);
  color: var(--on-brand);
  transform: scale(1.08) rotate(-4deg);
}

/* ---------- Projetos ---------- */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: -1rem 0 2.5rem;
}
.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.filter-button:hover { border-color: var(--ring); color: var(--foreground); }
.filter-button[aria-pressed="true"] {
  background: var(--brand-gradient);
  border-color: transparent;
  color: var(--on-brand);
  box-shadow: 0 6px 16px -6px var(--glow);
}
.filter-count { font-size: 0.75rem; opacity: 0.75; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--card);
  position: relative;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
/* borda em degradê ao passar o mouse */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.project-card:hover::before,
.project-card:focus-within::before { opacity: 1; }
.project-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-8px);
  border-color: transparent;
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: var(--muted);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.project-card:hover .project-image img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(4, 14, 8, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-image:hover .project-overlay,
.project-image:focus-within .project-overlay { opacity: 1; }

.demo-button {
  background: var(--brand-gradient);
  color: var(--on-brand);
  box-shadow: 0 6px 18px -4px var(--glow);
}
.demo-button-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  background-color: rgba(6, 37, 15, 0.14);
  transition: transform 0.3s ease;
}
.demo-button:hover .demo-button-icon { transform: scale(1.2) rotate(10deg); }

.project-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}
.project-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.project-description {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
  flex: 1;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Cartão "seu projeto aqui" */
.project-card.cta-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: 2.5rem 1.5rem;
  min-height: 20rem;
  border-style: dashed;
  border-color: var(--ring);
  background: var(--primary-light);
}
.cta-card .icon-circle { background: var(--brand-gradient); color: var(--on-brand); }
.cta-card h3 { font-size: 1.25rem; font-weight: 700; }
.cta-card p { color: var(--muted-foreground); font-size: 0.95rem; max-width: 22rem; }
.cta-card .button { margin-top: 0.5rem; }

/* ---------- Como funciona ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step-card { counter-increment: step; position: relative; }
.step-card::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px -6px var(--glow);
}
.step-card h3 { font-size: 1.1rem; font-weight: 600; margin: 1.1rem 0 0.4rem; }
.step-card p { color: var(--muted-foreground); font-size: 0.95rem; }

/* ---------- Equipe ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 50rem;
  margin: 0 auto;
}
.team-card {
  text-align: center;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background-color: var(--card-glass);
  backdrop-filter: blur(8px);
  padding: 2rem 1.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.team-card:hover { box-shadow: var(--card-shadow); transform: translateY(-5px); }

.team-avatar {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.25rem;
  border-radius: 9999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--logo-bg);
  color: #5df05a;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  box-shadow: 0 0 0 5px var(--primary-light);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.team-role {
  display: block;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.team-bio { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 1.25rem; }
.team-socials { display: flex; justify-content: center; gap: 0.75rem; }
.team-social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.team-social-link:hover {
  background: var(--brand-gradient);
  color: var(--on-brand);
  transform: translateY(-3px);
}

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.contact .card:hover { transform: none; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; }
.form-group .optional { font-weight: 400; color: var(--muted-foreground); }

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: var(--card);
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}
textarea { resize: vertical; min-height: 8rem; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356665c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
}
input::placeholder,
textarea::placeholder { color: var(--muted-foreground); opacity: 0.75; }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-note { font-size: 0.85rem; color: var(--muted-foreground); text-align: center; }

.contact-info-text { color: var(--muted-foreground); margin-bottom: 1.5rem; }
.social-links { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.social-link:hover { background-color: var(--accent); transform: translateX(5px); }
.social-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 9999px;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.social-link:hover .social-icon {
  background: var(--brand-gradient);
  color: var(--on-brand);
  transform: scale(1.1);
}
.social-info h4 { font-weight: 600; font-size: 1rem; }
.social-info p { font-size: 0.875rem; color: var(--muted-foreground); }

.contact-points { display: grid; gap: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.contact-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.925rem;
  color: var(--muted-foreground);
}
.contact-points i { color: var(--primary); margin-top: 0.3rem; }

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1rem;
  width: 350px;
  max-width: calc(100% - 3rem);
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}
.toast.active { transform: translateY(0); opacity: 1; visibility: visible; }
.toast-content { display: flex; align-items: flex-start; gap: 0.75rem; }
.toast-icon { color: var(--ring); font-size: 1.25rem; margin-top: 0.1rem; }
.toast.error .toast-icon { color: var(--destructive); }
.toast-title { font-weight: 600; display: block; margin-bottom: 0.15rem; }
.toast-description { font-size: 0.875rem; color: var(--muted-foreground); }
.toast-progress {
  height: 3px;
  background: var(--brand-gradient);
  margin-top: 0.75rem;
  border-radius: 9999px;
  width: 100%;
}
.toast.active .toast-progress { animation: progress 6s linear forwards; }
.toast.error .toast-progress { background: var(--destructive); }
@keyframes progress { from { width: 100%; } to { width: 0%; } }

/* ---------- Rodapé ---------- */
.footer {
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border);
  background-color: var(--card);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; text-align: left; }
.footer-brand .logo-disc { width: 3rem; height: 3rem; }
.footer-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.footer-title { font-size: 0.85rem; color: var(--muted-foreground); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--primary); }
.footer-copyright {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
@media (min-width: 860px) {
  .footer-content { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .footer-copyright { text-align: center; }
}

/* ---------- Janela de prévia (demo) ---------- */
.preview-dialog {
  width: min(1320px, calc(100vw - 2rem));
  height: calc(100vh - 2rem);
  height: calc(100dvh - 2rem);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--card);
  color: var(--foreground);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}
.preview-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.35s ease;
}
.preview-dialog::backdrop { background: var(--modal-bg); }
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0.9rem 0.75rem 1.25rem;
  background: var(--accent);
  border-bottom: 1px solid var(--border);
}
.modal-heading { flex: 1; min-width: 0; }
.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.modal-subtitle {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.modal-tools { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.device-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
}
.device-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}
.device-toggle button[aria-pressed="true"] {
  background: var(--brand-gradient);
  color: var(--on-brand);
}

.icon-button {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.icon-button:hover { background: var(--muted); color: var(--foreground); }
.close-button { font-size: 1.1rem; }

.preview-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  background: var(--muted);
  overflow: auto;
}
.preview-iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}
.preview-stage[data-device="mobile"] { padding: 1rem; }
.preview-stage[data-device="mobile"] .preview-iframe {
  width: 390px;
  max-width: 100%;
  height: min(100%, 800px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
}
.preview-shot {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.preview-loading {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.preview-loading i { color: var(--primary); }

.preview-footer {
  flex: none;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
}
.preview-description { color: var(--muted-foreground); font-size: 0.9rem; }

/* ---------- Animações de entrada ---------- */
.js [data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--aos-delay, 0ms);
}
.js [data-aos="fade-right"] { transform: translateX(-30px); }
.js [data-aos="fade-left"] { transform: translateX(30px); }
.js [data-aos].aos-animate { opacity: 1; transform: none; }
/* depois de aparecer, o cartão volta a responder rápido ao mouse */
.js [data-aos].aos-done { transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }

/* ---------- Barra de rolagem ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ring); }

/* ==========================================================================
   Telas maiores e menores
   ========================================================================== */
@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

@media (min-width: 901px) {
  .navbar-actions .button { display: inline-flex; }
}

@media (max-width: 900px) {
  .navbar-actions .button { display: none; }
  .menu-toggle { display: flex; }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1.25rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.4);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a:not(.button) {
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
  }
  .navbar-links a:not(.button)::after { display: none; }
  .navbar-links .button { display: inline-flex; margin-top: 1rem; }
}

@media (max-width: 767px) {
  section { padding: 4rem 1rem; }
  .section-header { margin-bottom: 2.5rem; }
  .hero-stats { gap: 0.75rem 1.25rem; padding: 1rem 1.25rem; }
  .stat-item:not(:last-child) { padding-right: 1.25rem; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.78rem; }
  .hero-logo { width: 5.75rem; height: 5.75rem; }

  .preview-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .device-toggle { display: none; }
  .preview-stage[data-device="mobile"] { padding: 0; }
  .preview-stage[data-device="mobile"] .preview-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .open-external span { display: none; }
  .toast { left: 0.75rem; bottom: 0.75rem; max-width: calc(100% - 1.5rem); }
}

@media (max-width: 420px) {
  .navbar-brand-text { font-size: 0.95rem; }
  .hero-buttons .button { width: 100%; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-item:not(:last-child) { padding-right: 0; }
}

@media (max-height: 820px) {
  .scroll-indicator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-aos] { opacity: 1; transform: none; }
}
