:root {
  --bg: #000000;
  --bg-soft: #09090b;
  --card: #111111;
  --card-2: #18181b;
  --text: #ffffff;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --border: rgba(255,255,255,0.06);
  --light: #e2e8f0;
  --light-strong: #ffffff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

.navbar.scrolled {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,.28);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 24px;
  height: 24px;
  color: #cbd5e1;
  display: inline-flex;
  transition: opacity .35s ease;
}

.brand-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: -0.02em;
  transition: opacity .35s ease;
}

.navbar:not(.scrolled) .brand-icon,
.navbar:not(.scrolled) .brand-text {
  opacity: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .25s ease, background .25s ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--light-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-light {
  background: var(--light);
  color: #000 !important;
  font-weight: 600;
}

.btn-light:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 12px 30px rgba(226,232,240,.18);
}

.btn-dark {
  background: rgba(23, 23, 23, 0.95);
  color: #cbd5e1;
  border: 1px solid rgba(71,85,105,.7);
}

.btn-dark:hover {
  background: rgba(30,41,59,.5);
  color: #fff;
}

.btn-small {
  padding: 10px 20px;
  font-size: .875rem;
}

.btn-large {
  padding: 18px 32px;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  padding: 10px 24px 24px;
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  color: #cbd5e1;
  padding: 12px 0;
  font-weight: 500;
}

.mobile-cta {
  margin-top: 6px;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
  background: #000;
}

.hero-pattern,
.hero-overlay,
.hero-line {
  position: absolute;
  inset: 0;
}

.hero-pattern {
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  background: linear-gradient(to bottom, #000 0%, rgba(9,9,11,.92) 45%, #000 100%);
}

.hero-line {
  left: 0;
  right: 0;
  height: 1px;
  transform-origin: center;
  animation: lineGrow 1.5s ease forwards;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin: 0 auto 44px;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-badge {
  display: table;
  margin: 0 auto 28px;
  padding: 10px 18px;

  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(148,163,184,.03);

  color: #f1f5f9;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;

  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  text-align: center;
  margin: 40px auto 0;
}

.hero h1 {
  margin:0 0 26px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height:1.1;
  letter-spacing:-0.04em;
}

.hero h1 span {
  background: linear-gradient(to right, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle{
  margin:0 auto 40px;
  max-width:720px;
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  transform: translateX(-50%);
  color: #64748b;
  animation: bounceY 2s infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

.section {
  position: relative;
  padding: 96px 0 128px;
}

.section-zinc { background: #09090b; }
.section-black { background: #000; }
.section-contact {
  background: #000;
  overflow: hidden;
}

.section-heading {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-heading h2,
.about-text h2 {
  margin: 14px 0 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.about-copy p,
.contact-card p,
.portfolio-content p {
  color: var(--muted);
  line-height: 1.75;
}

.services-grid,
.portfolio-grid {
  display: grid;
  gap: 24px;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.portfolio-card,
.stat-card,
.contact-card {
  position: relative;
  background: #18181b;
  border: 1px solid rgba(39,39,42,1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, border-color .35s ease;
}

.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 32px;
}

.service-icon,
.stat-icon,
.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f1f23;
  color: #cbd5e1;
}

.service-icon svg,
.stat-icon svg,
.contact-icon svg,
.brand-icon svg,
.scroll-indicator svg,
.footer-brand-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin: 22px 0 12px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.service-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
}

.service-accent {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #94a3b8, #64748b);
  opacity: 0;
  transition: opacity .35s ease;
}

.service-card:hover .service-accent { opacity: 1; }

.service-card:hover .service-icon {
  transform: scale(1.08);
  transition: transform .3s ease;
}

/* PORTFÓLIO */
.portfolio-card {
  background: #18181b;
}

.portfolio-image-wrap {
  height: 208px;
  overflow: hidden;
  background: linear-gradient(to bottom right, #334155, #1e293b);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 22px;
}

.portfolio-content h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.portfolio-content p {
  margin: 0 0 16px;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--muted);
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  color: var(--muted);
  font-size: .82rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.meta-item svg {
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  flex: 0 0 15px;
  opacity: .8;
}

/* SOBRE */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}

.about-text span,
.about-text h2 span {
  background: linear-gradient(to right, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-text .eyebrow {
  background: none;
  color: var(--muted);
}

.about-copy {
  display: grid;
  gap: 16px;
}

.about-copy p {
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: #111111;
}

.stat-card:hover {
  background: #18181b;
}

.stat-icon {
  margin: 0 auto 18px;
}

.stat-value {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* CONTATO */
.contact-glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  background: rgba(148,163,184,.05);
  border-radius: 50%;
  filter: blur(70px);
}

.contact-glow-right {
  top: 0;
  right: 0;
}

.contact-glow-left {
  left: 0;
  bottom: 0;
}

.contact-container {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.contact-list {
  display: grid;
  gap: 24px;
}

.contact-whatsapp,
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 20px;
}

.contact-whatsapp {
  background: #22c55e;
  color: #fff;
  box-shadow: 0 12px 30px rgba(34,197,94,.18);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.contact-whatsapp:hover {
  background: #34d399;
  transform: translateY(-2px);
}

.whatsapp-icon {
  background: rgba(255,255,255,.18);
}

.contact-whatsapp strong,
.contact-card strong {
  display: block;
  font-size: 1rem;
}

.contact-whatsapp small {
  display: block;
  margin-top: 4px;
  color: rgba(240,253,244,.92);
  font-size: .875rem;
}

.contact-card p {
  margin: 4px 0 0;
}

/* FOOTER */
.footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand,
.footer-copy,
.footer-links a {
  color: #64748b;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ANIMAÇÕES */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .4s; }
.reveal-delay-4 { transition-delay: .6s; }

@keyframes bounceY {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@keyframes lineGrow {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* TABLET */
@media (max-width: 991px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-content {
    margin-top: 20px;
  }

  .hero-badge {
    height: calc(50% - 170px);
    font-size: .72rem;
    letter-spacing: .13em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section {
    padding: 88px 0 112px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .portfolio-content {
    padding: 18px;
  }

  .portfolio-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .portfolio-content p {
    font-size: .84rem;
    margin-bottom: 14px;
    line-height: 1.6;
  }

  .portfolio-meta {
    gap: 12px;
    font-size: .76rem;
  }

  .meta-item {
    gap: 5px;
  }

  .meta-item svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    flex: 0 0 14px;
  }
}