:root {
  --bg: #03060d;
  --panel: rgba(12, 20, 32, 0.6);
  --panel-solid: #09101d;
  --blue: #078cff;
  --blue-glow: rgba(7, 140, 255, 0.4);
  --cyan: #27c7ff;
  --gold: #d6a83d;
  --gold-light: #fbe3a1;
  --gold-glow: rgba(214, 168, 61, 0.35);
  --white: #f5f8ff;
  --muted: #9aa8bc;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(214, 168, 61, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth; 
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(7, 140, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(214, 168, 61, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
}

.gold { 
  color: var(--gold-light);
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blue { color: var(--blue); }

.section-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.eyebrow {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #078cff 0%, #d6a83d 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(7, 140, 255, 0.3);
  border: none;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d6a83d 0%, #078cff 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(214, 168, 61, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  border: 1px solid var(--gold-glow);
  color: var(--gold-light);
  background: rgba(8, 14, 23, 0.7);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(214, 168, 61, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(214, 168, 61, 0.2);
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 6, 13, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.nav {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: flex;
  align-items: center;
  width: 190px;
  height: 70px;
  flex-shrink: 0;
}

.logo-slot {
  width: 100%;
  height: 65px;
  display: flex;
  align-items: center;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.logo-fallback {
  display: none;
  line-height: 1;
}

.logo-fallback strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.4rem;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #fff, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-fallback small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 4px;
  color: var(--gold-light);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* HERO */

.hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #03060cf0 0%, #03060cd0 45%, #03060c60 100%),
    url("https://images.unsplash.com/photo-1501389906726-5f4e3b1f2c3b?auto=format&fit=crop&w=2000&q=85") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 75% 45%, var(--blue-glow), transparent 50%),
    radial-gradient(ellipse at 20% 80%, var(--gold-glow), transparent 40%);
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(4.2rem, 9.5vw, 7.5rem);
  line-height: 0.85;
  text-transform: uppercase;
  margin: 22px 0;
  font-weight: 900;
  letter-spacing: 1px;
}

.hero h1 span {
  display: block;
  color: var(--gold-light);
  text-shadow: 0 0 35px var(--gold-glow);
  background: linear-gradient(180deg, #ffffff 0%, var(--gold-light) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #cdd6e4;
  max-width: 580px;
  font-size: 1.05rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 35px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 45px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}

/* DIFERENCIAIS / STATS */

.stats {
  background: rgba(6, 11, 20, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 35px 0;
}

.stat {
  padding: 10px 25px;
  border-right: 1px solid var(--line);
  transition: transform 0.3s;
}

.stat:hover {
  transform: translateY(-2px);
}

.stat:first-child { padding-left: 0; }
.stat:last-child { border: 0; }

.stat strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 5px;
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* SEÇÕES GERAIS */

section {
  padding: 110px 0;
}

.section-copy {
  color: var(--muted);
  max-width: 620px;
  margin-top: 15px;
  font-size: 1rem;
}

/* SERVIÇOS */

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 300px;
  padding: 32px 26px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  transition: transform 0.6s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--line-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(214, 168, 61, 0.1);
  background: rgba(16, 27, 44, 0.7);
}

.service-card:hover::before {
  transform: scale(2);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  background: rgba(214, 168, 61, 0.08);
  border-radius: var(--radius-md);
  color: var(--gold-light);
  font-size: 1.8rem;
  margin-bottom: 25px;
  box-shadow: inset 0 0 15px rgba(214, 168, 61, 0.1);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 25px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  transition: gap 0.3s;
}

.service-card:hover .card-link {
  gap: 10px;
  color: #fff;
}

/* SOBRE */

.about {
  background: linear-gradient(180deg, rgba(8, 13, 20, 0.9) 0%, var(--bg) 100%);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  min-height: 480px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: url("https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=1200&q=85") center/cover;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #03060dd0 0%, transparent 60%);
}

.visual-tag {
  position: absolute;
  z-index: 2;
  bottom: 25px;
  left: 25px;
  right: 25px;
  padding: 24px;
  background: rgba(6, 16, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(15px);
}

.visual-tag strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  color: var(--gold-light);
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.visual-tag p {
  color: var(--muted);
  font-size: 0.85rem;
}

.about-copy .section-title {
  margin: 18px 0;
}

.about-copy > p {
  color: var(--muted);
  margin-bottom: 25px;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.benefit i {
  color: var(--gold-light);
  font-size: 1.1rem;
  font-style: normal;
}

/* PORTFÓLIO */

.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 20px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.project:first-child {
  grid-row: span 2;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project:hover img {
  transform: scale(1.08);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 6, 13, 0.9) 0%, transparent 60%);
  transition: opacity 0.3s;
}

.project-info {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 20px;
  right: 20px;
  transform: translateY(5px);
  transition: transform 0.3s ease;
}

.project:hover .project-info {
  transform: translateY(0);
}

.project-info small {
  color: var(--gold-light);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 2px;
}

.project-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

/* CHAMADA FINAL (CTA) */

.cta-band {
  padding-top: 20px;
}

.cta-inner {
  padding: 65px;
  border-radius: 28px;
  border: 1px solid var(--line-gold);
  background: 
    radial-gradient(ellipse at 90% 20%, rgba(214, 168, 61, 0.25), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(7, 140, 255, 0.15), transparent 50%),
    linear-gradient(115deg, #0d1a2b, #050912);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.cta-inner h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  text-transform: uppercase;
  line-height: 0.95;
  max-width: 700px;
  font-weight: 800;
}

.cta-inner p {
  color: var(--muted);
  margin: 22px 0 32px;
  max-width: 620px;
  font-size: 1.05rem;
}

/* RODAPÉ */

footer {
  background: #020408;
  border-top: 1px solid var(--line);
  padding: 60px 0 25px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 45px;
}

.footer-about {
  max-width: 320px;
}

.footer-about p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 18px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  color: var(--gold-light);
  font-weight: 800;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 10px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #5c6b80;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ANIMAÇÕES / REVEAL FLUIDO */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
              transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVIDADE */

@media (max-width: 950px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav {
    height: 75px;
  }

  .brand {
    width: 150px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(3, 6, 13, 0.96);
    backdrop-filter: blur(20px);
    padding: 25px;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 580px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 14vw, 5rem);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 15px !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  section {
    padding: 70px 0;
  }

  .services-head,
  .portfolio-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 340px;
    order: 2;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px 180px;
  }

  .project:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .cta-inner {
    padding: 35px 24px;
  }

  .footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .hero-actions .btn {
    width: 100%;
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    display: flex;
    flex-direction: column;
  }

  .project {
    height: 220px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-about {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}