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

:root {
  --bg: #120a1f;
  --bg-alt: #1a0f2e;
  --card-bg: rgba(168, 85, 247, 0.07);
  --border: rgba(168, 85, 247, 0.25);
  --text: #f5f2fb;
  --text-muted: #b3a8c7;
  --purple: #a855f7;
  --pink: #f472b6;
  --orange: #fb923c;
  --gradient: linear-gradient(135deg, var(--purple), var(--pink) 60%, var(--orange));
  --radius: 18px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.65;
}

h1, h2, h3, h4, .logo, .btn { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--purple);
  color: #12081f;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ===== TIPOGRAFIA ===== */
.eyebrow {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow.center { display: block; text-align: center; }

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.section-title-left { margin-bottom: 12px; }

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 16px;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 44px;
}
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #12081f;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--card-bg); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 10, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
}
.logo span { color: var(--pink); }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(168,85,247,0.25), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(244,114,182,0.18), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(251,146,60,0.12), transparent 50%);
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto 24px;
}
.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

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

/* ===== SOBRE ===== */
.sobre { padding: 100px 0; }

.sobre-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.sobre-grid p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sobre-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mini-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.mini-card-wide { grid-column: span 2; }

.mini-icon { font-size: 1.5rem; display: block; margin-bottom: 10px; }
.mini-card h4 { font-family: 'Segoe UI', sans-serif; margin-bottom: 8px; }
.mini-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== PILARES ===== */
.pilar { padding: 100px 0; }
.pilar-alt { background: var(--bg-alt); }

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
}
.card h3 {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.card p { color: var(--text-muted); font-size: 0.92rem; }

/* PILAR 3 */
.pilar3-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.pilar3-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover; /* Vai enquadrar a arte perfeitamente mantendo a proporção */
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.mini-list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.mini-list-item strong {
  display: block;
  font-family: 'Segoe UI', sans-serif;
  margin-bottom: 4px;
}
.mini-list-item span { color: var(--text-muted); font-size: 0.92rem; }

/* PILAR 4 - FLOW */
.flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 36px;
}
.flow-step {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  color: #12081f;
  padding: 22px 60px 22px 32px; /* Aumentado o padding-right para dar folga ao texto perto do bico */
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}
.flow-1 { background: linear-gradient(90deg, var(--purple), #7c3aed); }
.flow-2 { background: linear-gradient(90deg, #7c3aed, var(--pink)); }
.flow-3 { background: linear-gradient(90deg, var(--pink), var(--orange)); }
.flow-note { margin-bottom: 0; }

/* ===== PROCESSO ===== */
.processo { padding: 100px 0; }

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

.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  display: inline-block;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.step h3 {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
}
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== DIFERENCIAIS ===== */
.diferenciais { padding: 100px 0; background: var(--bg-alt); }

.diferenciais-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.diferenciais-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover; /* Faz a imagem preencher o espaço mantendo a proporção */
  object-position: left top; /* Mantém o foco no topo esquerdo, onde o código começa */
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.dif-list { display: flex; flex-direction: column; gap: 22px; margin-top: 20px; }
.dif-item h4 { font-family: 'Segoe UI', sans-serif; margin-bottom: 6px; }
.dif-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ===== PORTFÓLIO ===== */
.portfolio { padding: 100px 0; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #110922;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
}

.portfolio-img {
  width: 100%;
  height: 240px; /* Altura fixa ideal para manter a grade alinhada */
  object-fit: cover; /* Recorta e enquadra a imagem sem distorcer */
  display: block;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #fff;
}

.portfolio-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== CONTATO ===== */
.contato { padding: 100px 0; background: var(--bg-alt); }

.contato-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.contato-grid p { color: var(--text-muted); margin-bottom: 28px; max-width: 460px; }

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.info-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-label {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.info-value {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  transition: color 0.2s ease;
}
.info-value:hover { color: var(--pink); }

/* ===== FOOTER ===== */
.footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; }

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(18, 10, 31, 0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }
  .nav-links.nav-open { display: flex; }

  .nav { position: relative; flex-wrap: wrap; }
  .nav-cta {
    order: 4;
    width: 100%;
    margin-top: 12px;
    text-align: center;
    display: none;
  }
  .nav-links.nav-open + .nav-cta { display: inline-block; }

  .sobre-grid, .pilar3-grid, .diferenciais-grid, .contato-grid { grid-template-columns: 1fr; }
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pilar3-image { order: -1; }
}

@media (max-width: 560px) {
  .cards-3, .cards-4, .steps-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .sobre-cards { grid-template-columns: 1fr; }
  .mini-card-wide { grid-column: span 1; }
  .flow-step { clip-path: none; border-radius: 10px; }
}