:root {
  --bg: #070b1a;
  --bg-2: #0c1230;
  --bg-3: #141b45;
  --line: rgba(140, 150, 255, .18);
  --text: #f3f4fb;
  --muted: #b4b8d6;
  --blue: #1fa2ff;
  --indigo: #4b2bff;
  --violet: #7b3bff;
  --pink: #c06bff;
  --grad: linear-gradient(90deg, #1fa2ff 0%, #4b5bff 45%, #8a3bff 100%);
  --light: #f4f5fb;
  --ink: #0b1030;
  --radius: 18px;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8rem;
}
.note {
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1.1;
  color: #e3e4ff;
  transform: rotate(-8deg);
  margin: 0;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(90deg, #5a2bff, #1fa2ff);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(75, 91, 255, .8);
}
.btn-outline { border: 1.5px solid rgba(160, 170, 255, .55); color: var(--text); }
.btn-outline:hover { background: rgba(120, 130, 255, .12); }
.btn-sm { padding: .6rem 1.2rem; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 26, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand img { height: 46px; width: auto; }
.menu { display: flex; gap: 2.2rem; font-size: .9rem; color: var(--muted); }
.menu a { padding: .4rem 0; border-bottom: 2px solid transparent; transition: color .2s; }
.menu a:hover, .menu a.active { color: var(--blue); }
.menu a.active { border-color: var(--blue); }

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 0;
  background:
    radial-gradient(700px 500px at 75% 35%, rgba(75, 43, 255, .35), transparent 70%),
    radial-gradient(500px 400px at 10% 90%, rgba(31, 162, 255, .12), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.3fr; align-items: end; gap: 2rem; }
.hero-copy { padding-bottom: 5rem; }
.tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border: 1px solid rgba(200, 205, 255, .5);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); font-weight: 800; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 30rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.8rem; font-size: .8rem; line-height: 1.3; }
.hero-points li { display: flex; align-items: center; gap: .6rem; }
.hero-points small { color: var(--muted); }
.ico { color: #6b7bff; }
.ico svg { width: 30px; height: 30px; }
.pi svg { width: 24px; height: 24px; }
.ci svg { width: 22px; height: 22px; color: #cfd6ff; }

.hero-art { position: relative; min-height: 640px; }
.note-hero { position: absolute; right: 0; top: 10px; z-index: 3; }
.crew { position: relative; height: 640px; }
.crew .c {
  position: absolute;
  bottom: 0;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5));
}
.crew .c-back  { left: 14%; height: 86%; width: auto; bottom: 40px; z-index: 1; }
.crew .c-front { left: 40%; height: 92%; width: auto; bottom: 0; z-index: 2; }

/* Sobre */
.about {
  background: linear-gradient(90deg, #0a0f2a, var(--bg-2));
  border-top: 1px solid var(--line);
  padding: 5rem 0;
}
.about-grid { display: grid; grid-template-columns: .8fr 1.1fr 1fr; gap: 3rem; align-items: center; }
.about-art { position: relative; }
.about-art img { position: relative; width: 78%; margin-inline: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.about h2, .services h2, .cta h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; }
.about-copy p { color: var(--muted); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.pillars li { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
.pillars strong { color: var(--text); font-size: 1rem; margin: .7rem 0 .2rem; }
.pi {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--indigo);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #8fb0ff;
  background: rgba(75, 43, 255, .12);
}

/* Serviços */
.services { background: var(--bg); padding: 5rem 0; border-top: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: .9fr 2fr; gap: 3rem; }
.services-head p { color: var(--muted); }
.services-head .note { color: #e3e4ff; margin: 2rem 0 0 1rem; }
.services-char { width: 62%; margin: -1rem 0 0 auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-content: center; }
.card {
  background: linear-gradient(180deg, rgba(30, 38, 90, .55), rgba(14, 19, 50, .55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(120, 130, 255, .55); }
.card h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.card p { margin: 0; font-size: .88rem; color: var(--muted); }
.ci {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 162, 255, .25), rgba(123, 59, 255, .35));
  font-size: 1.2rem;
}

/* CTA */
.cta {
  position: relative;
  background:
    radial-gradient(600px 400px at 70% 60%, rgba(75, 43, 255, .4), transparent 70%),
    linear-gradient(90deg, #0a0f2a, #120f3d);
  border-top: 1px solid var(--line);
  padding-top: 4rem;
  overflow: hidden;
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.cta-copy { padding-bottom: 4rem; }
.cta-copy p { color: var(--muted); }
.contact-line a { color: var(--text); border-bottom: 1px solid var(--line); }
.cta-art { position: relative; height: 440px; }
.cta-art .d { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); height: 108%; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }

/* Footer */
.site-footer { background: #05081a; border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; font-size: .85rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-top img { height: 42px; width: auto; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--muted); }
.footer-top nav a:hover { color: var(--blue); }
.motto { color: var(--muted); font-size: .8rem; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; color: #8a8fb4; font-size: .78rem; }
.footer-legal p { margin: 0; }

/* Página de texto (privacidade) */
.legal-page { padding: 4rem 0 5rem; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page a { color: var(--blue); }

/* Responsivo */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1.4fr; }
  .pillars { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu { display: none; }
  .hero { padding-top: 2.5rem; }
  .hero-grid, .cta-grid, .services-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { min-height: 0; }
  .crew { height: 100vw; max-height: 640px; }
  .hero h1 br { display: none; }
  .note-hero { font-size: 1.3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 220px; margin-inline: auto; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .services-head .note, .services-char { display: none; }
  .cta-copy { padding-bottom: 0; }
  .cta-art { height: 80vw; max-height: 420px; }
  .note-cta { font-size: 1.3rem; }
}
@media (max-width: 540px) {
  .nav .btn-sm { display: none; }
  .cards { grid-template-columns: 1fr; }
  .hero-points { gap: 1rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* Itens de grid podem encolher abaixo do conteúdo (evita rolagem horizontal no celular) */
.hero-grid > *, .about-grid > *, .services-grid > *, .cta-grid > *, .cards > * { min-width: 0; }
@media (max-width: 540px) {
  .cta .btn-primary { font-size: .85rem; padding: .9rem 1.2rem; }
}

/* Seções claras (equilíbrio com as escuras) */
.section-light {
  background: var(--light);
  color: var(--ink);
  border-top: 0;
}
.section-light p, .section-light .pillars li { color: #4a5078; }
.section-light .pillars strong { color: var(--ink); }
.section-light .eyebrow { color: var(--indigo); }
.section-light .btn-outline { color: var(--ink); border-color: rgba(75, 43, 255, .45); }
.section-light .btn-outline:hover { background: rgba(75, 43, 255, .08); }
.section-light .pi { background: #fff; color: var(--indigo); box-shadow: 0 6px 16px -8px rgba(75, 43, 255, .4); }
.section-light .about-art img { filter: drop-shadow(0 20px 25px rgba(11, 16, 48, .25)); }

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); }
.section-light .section-head p { color: #4a5078; }
.services .cards { grid-template-columns: repeat(3, 1fr); }

/* Processo */
.process { padding: 5rem 0; }
.process h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.steps li {
  background: #fff;
  border: 1px solid #e3e5f3;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 12px 30px -20px rgba(11, 16, 48, .35);
}
.steps h3 { font-size: 1.1rem; margin: .8rem 0 .3rem; }
.steps p { margin: 0; font-size: .9rem; }
.num { font-weight: 800; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 1024px) {
  .services .cards, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .services .cards, .steps { grid-template-columns: 1fr; }
  .section-head { text-align: left; }
}
@media (max-width: 860px) {
  .note-hero { display: none; }
  .crew .c-back { left: 4%; }
  .crew .c-front { left: 34%; }
}

/* Símbolo da logo atrás dos personagens */
.emblem {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 82%;
  height: auto;
  transform: translate(-50%, -52%);
  pointer-events: none;
  filter: drop-shadow(0 25px 45px rgba(75, 43, 255, .35));
}
.about-art { isolation: isolate; }
.about-art img:not(.emblem) { z-index: 1; }
.emblem-hero { width: 62%; left: 54%; top: 44%; opacity: .95; }
.section-light .emblem { filter: drop-shadow(0 25px 40px rgba(75, 43, 255, .25)); }
.about-art .emblem { position: absolute; width: 88%; margin: 0; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; }

/* ---------- Menu mobile ---------- */
.nav-toggle { display: none; }

/* ---------- Mobile (refinado) ---------- */
@media (max-width: 860px) {
  .nav { height: 64px; }
  .brand img { height: 38px; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .25s, opacity .25s;
    content: "";
  }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
  .menu-open .nav-toggle span { background: transparent; }
  .menu-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: .5rem 16px 1.2rem;
    background: rgba(7, 11, 26, .97);
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .menu { visibility: visible; opacity: 1; transform: none; }
  .menu a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .menu a.active { border-color: var(--line); }
  .nav .btn-sm { display: none; }

  /* Hero */
  .hero { padding-top: 2rem; }
  .tag { font-size: .62rem; letter-spacing: .06em; padding: .4rem .7rem; margin-bottom: 1.1rem; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .lead { font-size: 1rem; }
  .actions { flex-direction: column; gap: .75rem; margin: 1.6rem 0; }
  .actions .btn { justify-content: center; width: 100%; }
  .hero-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    text-align: center;
    font-size: .78rem;
  }
  .hero-points li { flex-direction: column; gap: .35rem; }
  .hero-points small { font-size: .7rem; }
  .crew { height: 92vw; max-height: 520px; margin-top: 1rem; }
  .emblem-hero { width: 66%; left: 56%; }

  /* Seções */
  .about, .services, .process { padding: 3.5rem 0; }
  .about h2, .services h2, .cta h2, .process h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .section-head { margin-bottom: 2rem; text-align: left; }
  .about-grid { gap: 2rem; }
  .about-art { max-width: 150px; }
  .about-art .emblem { width: 100%; }

  /* Cartões horizontais: ícone/número à esquerda */
  .services .cards, .steps { grid-template-columns: 1fr; gap: .75rem; }
  .card, .steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 1rem;
    align-items: start;
    padding: 1.1rem 1.2rem;
  }
  .card .ci, .steps .num { grid-row: span 2; }
  .card h3, .steps h3 { margin: .1rem 0 .25rem; font-size: 1rem; }
  .steps .num { font-size: 1.4rem; line-height: 1.2; }

  /* CTA */
  .cta { padding-top: 3.5rem; }
  .cta-art { height: 300px; margin-top: 1rem; }
  .cta .btn-primary { font-size: .9rem; }

  /* Rodapé */
  .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 1.2rem; }
  .footer-top nav { justify-content: center; gap: .6rem 1.2rem; }
  .footer-legal { text-align: center; }
}

@media (min-width: 541px) and (max-width: 860px) {
  .services .cards, .steps { grid-template-columns: 1fr 1fr; }
  .hero-copy { max-width: 560px; }
}

/* CTA: mascote da cintura para cima (o resto fica cortado na borda da seção) */
.cta-art { overflow: hidden; }
.cta-art .d { top: 24px; bottom: auto; height: 180%; }
@media (max-width: 860px) {
  .cta-art { height: 360px; }
  .cta-art .d { top: 16px; height: 185%; }
}
