/* AUTIS Agência Digital — Stylesheet 2025 */

/* ─── Variables ───────────────────────────────── */
:root {
  --bg: #07071c;
  --bg-surface: #0d0d28;
  --bg-card: rgba(255,255,255,0.035);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(124,58,237,0.45);

  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --cyan: #06b6d4;
  --cyan-light: #67e8f9;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --green: #10b981;
  --green-light: #34d399;

  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --grad-brand: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #06b6d4 100%);
  --grad-cta: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  --grad-card: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(6,182,212,0.04) 100%);
  --grad-hero-orb1: radial-gradient(ellipse 70% 50% at 80% 10%, rgba(124,58,237,0.18) 0%, transparent 70%);
  --grad-hero-orb2: radial-gradient(ellipse 60% 40% at 10% 90%, rgba(6,182,212,0.10) 0%, transparent 60%);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow: 0 24px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px rgba(124,58,237,0.15);
  --shadow-glow-cyan: 0 0 60px rgba(6,182,212,0.12);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --t: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ───────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--t); }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ─── Noise Texture ───────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

/* ─── Typography ──────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

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

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-light);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 40px;
  padding: 6px 16px;
  margin-bottom: 1.2rem;
}

/* ─── Container & Layout ──────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { max-width: 600px; margin: 0 auto; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-xl);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  transition: var(--t);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: white;
  box-shadow: 0 4px 24px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(124,58,237,0.45);
  color: white;
}

.btn-orange {
  background: var(--grad-cta);
  color: white;
  box-shadow: 0 4px 24px rgba(234,88,12,0.35);
}
.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(234,88,12,0.45);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet-light);
  background: rgba(124,58,237,0.08);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: 0.84rem; }

/* ─── Navbar ──────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7, 7, 28, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--t);
}
.navbar.scrolled {
  background: rgba(7, 7, 28, 0.96);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo img { height: 40px; width: auto; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 0;
}
.nav-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--t);
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--text); }
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--grad-cta);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(234,88,12,0.3);
  transition: var(--t);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234,88,12,0.4);
  color: white;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: var(--t);
}
.nav-toggle:hover { border-color: var(--violet); color: var(--violet-light); }

/* ─── Cards ───────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: var(--t);
  border-radius: inherit;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}
.icon-violet { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.2); color: var(--violet-light); }
.icon-cyan   { background: rgba(6,182,212,0.15);  border: 1px solid rgba(6,182,212,0.2);  color: var(--cyan-light); }
.icon-orange { background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.2); color: #fb923c; }
.icon-green  { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.2); color: var(--green-light); }

.card h4 { font-size: 1.05rem; margin-bottom: 0.55rem; }
.card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── Stat Block ──────────────────────────────── */
.stat-block { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ─── Marquee ─────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 0;
}
.marquee-track {
  display: flex;
  gap: 1rem;
  animation: marquee 36s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.1rem 0.55rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--t);
  cursor: default;
}
.marquee-item:hover {
  border-color: rgba(124,58,237,0.35);
  color: var(--text);
  background: rgba(124,58,237,0.06);
}
/* Badge circular com inicial — substitua por <img> quando tiver os logos */
.marquee-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0;
}
.ml-v { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.ml-c { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.ml-o { background: linear-gradient(135deg, #ea580c, #f97316); }
.ml-g { background: linear-gradient(135deg, #059669, #10b981); }
/* Quando for imagem real: .marquee-logo img { width:100%; height:100%; object-fit:contain; border-radius:50%; } */

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Testimonial Card ────────────────────────── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 3px solid var(--violet);
  transition: var(--t);
  height: 100%;
}
.testimonial-card:hover {
  border-left-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.testimonial-quote {
  color: var(--violet-light);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.2rem;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Forms ───────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--t);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.04);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.08);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }

/* ─── Page Hero ───────────────────────────────── */
.page-hero {
  padding-top: 140px;
  padding-bottom: 5rem;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(124,58,237,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(6,182,212,0.08) 0%, transparent 60%),
    var(--bg);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.2rem; }
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Divider ─────────────────────────────────── */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), rgba(6,182,212,0.3), transparent);
  margin: 0;
  border: none;
}

/* ─── Surface section ─────────────────────────── */
.bg-surface { background: var(--bg-surface); }
.bg-gradient-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,58,237,0.07) 0%, transparent 70%),
    var(--bg-surface);
}

/* ─── Pill Tag ────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 40px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.15);
  color: var(--violet-light);
}
.tag.cyan { background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.15); color: var(--cyan-light); }
.tag.orange { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.15); color: #fb923c; }

/* ─── WhatsApp Float ──────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  border-radius: 40px;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(37,211,102,0.35);
  transition: var(--t);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37,211,102,0.45);
  color: white;
}
.whatsapp-float i { font-size: 1.2rem; }

/* ─── Scroll to Top ───────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--t);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.scroll-top:hover { border-color: var(--violet); color: var(--violet-light); }
.scroll-top.visible { opacity: 1; transform: translateY(0); }

/* ─── Footer ──────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 38px; margin-bottom: 1rem; }
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.7;
  max-width: 270px;
  margin-bottom: 1.4rem;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--t);
}
.footer-socials a:hover {
  background: rgba(124,58,237,0.1);
  border-color: var(--violet);
  color: var(--violet-light);
}
.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.87rem;
}
.footer-col ul li a:hover { color: var(--violet-light); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.87rem;
  margin-bottom: 0.65rem;
}
.footer-contact-item i { color: var(--violet-light); width: 14px; margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

/* ─── Utility ─────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--text-secondary); }
.fw-bold { font-weight: 700; }

/* ─── Animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.2); }
  50%       { box-shadow: 0 0 40px rgba(124,58,237,0.35); }
}
.animate-fadeup { animation: fadeUp 0.7s ease both; }

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(7, 7, 28, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 0;
    z-index: 999;
  }
  .nav-menu.open li { border-bottom: 1px solid var(--border); }
  .nav-menu.open li:last-child { border: none; }
  .nav-menu.open a { display: block; padding: 1rem 0; font-size: 1rem; }
  .nav-cta.desktop { display: none; }

  section { padding: 4rem 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .whatsapp-float span { display: none; }
  .whatsapp-float { border-radius: 50%; padding: 14px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; justify-content: center; }
}
