:root {
  --bg-main: #050816;
  --bg-alt: #0b1020;
  --bg-card: #101628;
  --accent: #5d7bf8;
  --accent-soft: rgba(93, 123, 248, 0.15);
  --text-main: #f5f5f7;
  --text-muted: #c0c3d7;
  --border-soft: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1b2550 0, #050816 45%, #020308 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(93, 123, 248, 0.08), transparent 60%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header.align-left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  font-size: clamp(1.9rem, 2.2vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 0 4rem;
  color: var(--text-main);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top right, rgba(93, 123, 248, 0.26), transparent 60%),
    radial-gradient(circle at bottom left, rgba(93, 248, 222, 0.12), transparent 65%);
  opacity: 0.85;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(0, 0, 0, 0.55), transparent 55%),
    linear-gradient(to bottom, rgba(3, 6, 20, 0.95), rgba(3, 6, 20, 0.96));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(4, 7, 28, 0.85);
  border: 1px solid rgba(93, 123, 248, 0.35);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.hero-tagline::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #45f7b0;
  box-shadow: 0 0 12px rgba(69, 247, 176, 0.9);
}

.hero h1 {
  font-size: clamp(2.3rem, 3.3vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.hero-subtitle {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #5d7bf8, #4e5de7);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(35, 83, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(35, 83, 255, 0.75);
}

.btn-secondary {
  background: rgba(4, 7, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-secondary:hover {
  background: rgba(8, 12, 40, 0.95);
  transform: translateY(-1px);
}

/* Top nav */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(5, 8, 22, 0.96), rgba(5, 8, 22, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #5d7bf8, #1f2a60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.logo-text {
  font-weight: 500;
  font-size: 0.98rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover {
  color: #ffffff;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: linear-gradient(145deg, rgba(9, 13, 36, 0.98), rgba(15, 21, 48, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.card.horizontal {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
}

.about-grid p {
  color: var(--text-muted);
}

.about-photo {
  display: flex;
  justify-content: center;
}

.about-photo-card {
  background: radial-gradient(circle at top left, rgba(93, 123, 248, 0.22), rgba(5, 8, 22, 0.98));
  padding: 0.75rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  max-width: 480px;
  width: 100%;
}

.about-photo-card img {
  border-radius: 18px;
}

.about-oab {
  margin-top: 1.2rem;
  font-weight: 500;
}

/* Depoimentos */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: radial-gradient(circle at top left, rgba(93, 123, 248, 0.16), rgba(6, 10, 34, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 2.5rem;
  opacity: 0.16;
}

.testimonial-name {
  margin-top: 1rem;
  font-weight: 500;
  color: #e5e7ff;
}

/* Steps */

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.steps-list li {
  background: linear-gradient(135deg, rgba(9, 14, 40, 0.98), rgba(8, 10, 30, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border-soft);
}

.steps-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.steps-list p {
  margin: 0;
  color: var(--text-muted);
}

/* Contato */

.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
}

.ethical-note {
  margin-top: 1.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 540px;
}

/* Usucapião */

#usucapiao .cards-list .card {
  background: linear-gradient(145deg, rgba(10, 16, 46, 0.98), rgba(15, 24, 58, 0.98));
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 0 2.1rem;
  background: rgba(3, 6, 20, 0.96);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-title {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.footer-right {
  text-align: right;
}

/* Responsive */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-photo {
    order: -1;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
  }

  .nav-links {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .hero-content {
    text-align: left;
  }

  .hero-buttons {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* HERO COM FOTO AO LADO */
.hero-layout {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 5;
}

.hero-img {
  flex: 0 0 360px;
  position: relative;
  z-index: 5;
}

.hero-img img {
  width: 100%;
  max-width: 380px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  display: block;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 5;
}

@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-img {
    width: 100%;
  }

  .hero-img img {
    max-width: 100%;
  }
}