/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Design tokens ---------- */
:root {
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #34d399;

  --shadow-color: 240 60% 3%;
  --shadow-sm: 0 2px 8px hsl(var(--shadow-color) / 0.3);
  --shadow-md: 0 12px 32px -8px hsl(var(--shadow-color) / 0.45);
  --shadow-lg: 0 24px 60px -12px hsl(var(--shadow-color) / 0.55);

  /* Dark theme (default) */
  --bg: #0a0c12;
  --bg-elevated: #0f121a;
  --surface: #141824;
  --surface-2: #1a1f2e;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --text-muted: #a3aabd;
  --text-faint: #6b7284;
  --header-bg: rgba(10, 12, 18, 0.75);
  --grad-text: linear-gradient(100deg, #a78bfa, #7c5cff 35%, #22d3ee 80%);
  --hero-glow-1: rgba(124, 92, 255, 0.35);
  --hero-glow-2: rgba(34, 211, 238, 0.22);
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef0f7;
  --border: rgba(16, 22, 41, 0.09);
  --border-strong: rgba(16, 22, 41, 0.16);
  --text: #12141f;
  --text-muted: #4c5266;
  --text-faint: #7a8096;
  --header-bg: rgba(246, 247, 251, 0.8);
  --accent: #6d28d9;
  --accent-2: #0e7490;
  --accent-3: #0f9d68;
  --grad-text: linear-gradient(100deg, #6d28d9, #7c3aed 40%, #0e7490 90%);
  --shadow-color: 230 30% 70%;
  --hero-glow-1: rgba(109, 40, 217, 0.16);
  --hero-glow-2: rgba(14, 116, 144, 0.14);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fb;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-2: #eef0f7;
    --border: rgba(16, 22, 41, 0.09);
    --border-strong: rgba(16, 22, 41, 0.16);
    --text: #12141f;
    --text-muted: #4c5266;
    --text-faint: #7a8096;
    --header-bg: rgba(246, 247, 251, 0.8);
    --accent: #6d28d9;
    --accent-2: #0e7490;
    --accent-3: #0f9d68;
    --grad-text: linear-gradient(100deg, #6d28d9, #7c3aed 40%, #0e7490 90%);
    --shadow-color: 230 30% 70%;
    --hero-glow-1: rgba(109, 40, 217, 0.16);
    --hero-glow-2: rgba(14, 116, 144, 0.14);
  }
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 30ch; }
.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62ch;
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.logo-text em { font-style: normal; color: var(--text-muted); font-weight: 500; }
.logo-dot { color: var(--accent-2); }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { color: var(--accent-2); border-color: var(--accent-2); }
.icon-sun, .icon-moon { display: none; }
:root:not([data-theme="light"]) .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .icon-sun { display: none; }
  :root:not([data-theme]) .icon-moon { display: block; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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: 168px 0 88px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 700px;
  background:
    radial-gradient(480px 320px at 15% 20%, var(--hero-glow-1), transparent 70%),
    radial-gradient(520px 360px at 85% 10%, var(--hero-glow-2), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner { max-width: 840px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin-top: 6px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 62ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.15rem; }
.hero-stats span { font-size: 0.86rem; color: var(--text-faint); }

/* ---------- Strip ---------- */
.strip {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 20px 0;
  overflow: hidden;
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-faint);
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-elevated); }
.section h2 { margin-top: 4px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; margin-top: 48px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.team-grid { grid-template-columns: repeat(3, 1fr); }
.diff-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 1.3rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Cases ---------- */
.cases-list { display: flex; flex-direction: column; gap: 64px; margin-top: 56px; }
.case-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.case-card.reverse .case-media { order: 2; }
.case-card.reverse .case-body { order: 1; }

.case-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.case-media img { width: 100%; height: auto; }
.case-media-pair { display: flex; flex-direction: column; gap: 10px; border: none; box-shadow: none; overflow: visible; }
.case-media-pair img { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }

.case-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.case-body h3 { font-size: 1.6rem; margin-bottom: 12px; }
.case-body > p { color: var(--text-muted); margin-bottom: 18px; }
.case-highlights { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.case-highlights li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: var(--text);
}
.case-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.case-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.case-stack span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ---------- Team / process ---------- */
.process-timeline {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}
.process-timeline li { display: flex; gap: 16px; }
.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.process-timeline h4 { font-size: 1rem; margin-bottom: 6px; }
.process-timeline p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- IA section ---------- */
.ia-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
  margin-top: 8px;
}
.ia-layout > div:first-child { position: sticky; top: 110px; }
.ia-features { display: flex; flex-direction: column; gap: 18px; }
.ia-features li {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ia-features li:hover { border-color: var(--border-strong); transform: translateX(4px); }
.ia-features h4 { font-size: 1rem; margin-bottom: 6px; }
.ia-features p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Diferenciais ---------- */
.diff-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.diff-item strong { font-family: var(--font-display); font-size: 1.02rem; }
.diff-item span { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- CTA / Contato ---------- */
.section-cta {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, var(--hero-glow-1), transparent 70%),
    var(--bg-elevated);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner .section-lead { text-align: center; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-faint); font-size: 0.88rem; margin-top: 10px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 22px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid, .team-grid, .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .ia-layout { grid-template-columns: 1fr; }
  .ia-layout > div:first-child { position: static; }
  .case-card, .case-card.reverse { grid-template-columns: 1fr; }
  .case-card.reverse .case-media, .case-card.reverse .case-body { order: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header[data-open="true"] .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    inset-inline: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 18px;
  }

  .header-actions .btn-sm { display: none; }

  .hero { padding: 128px 0 64px; }
  .section { padding: 72px 0; }
  .services-grid, .team-grid, .diff-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
