:root {
  --bg: #07070d;
  --bg-soft: #0d0d16;
  --panel: rgba(21, 20, 32, 0.78);
  --panel-strong: #151421;
  --text: #f4f4f7;
  --muted: #a7a3b7;
  --line: rgba(255,255,255,0.10);
  --purple: #8b5cf6;
  --purple-2: #a855f7;
  --gray: #9797a3;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0,0,0,0.35);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.25), transparent 34%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.16), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 10, 16, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 45px rgba(0,0,0,0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo,
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--purple), #3f3f46);
  font-weight: 900;
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.32);
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  letter-spacing: -0.4px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 14px;
  transition: 0.25s ease;
}

.nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
}

.hero {
  min-height: calc(100vh - 90px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 28px;
  position: relative;
}

.hero-bg-grid {
  position: absolute;
  inset: 80px 0 40px;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle, #000 0%, transparent 75%);
  opacity: 0.55;
}

.hero-content,
.hero-card,
.section,
.cta,
.page-hero,
.footer {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--purple-2);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.88;
  letter-spacing: -5px;
  margin-bottom: 24px;
  white-space: nowrap;
}

.hero-text,
.page-hero p,
.section-text p,
.section-head p,
.cta p,
.card p,
.service p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 700px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: 0.25s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  color: #fff;
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.25);
}

.btn.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-3px);
}

.hero-card,
.card,
.contact-form {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.hero-card h2 {
  font-size: 36px;
  letter-spacing: -1.8px;
}

.hero-card span:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.status-dot {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 24px #22c55e;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.section h2,
.cta h2 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -2.5px;
  line-height: 1;
}

.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

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

.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255,255,255,0.045);
}

.stats-grid strong {
  display: block;
  font-size: 26px;
  margin-bottom: 10px;
}

.stats-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-height: 230px;
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.45);
}

.project-card b {
  display: inline-block;
  margin-top: 18px;
  color: var(--purple-2);
}

.tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.045);
}

.service span {
  color: var(--purple-2);
  font-weight: 900;
}

.cta {
  width: min(1180px, calc(100% - 32px));
  margin: 60px auto;
  padding: 70px;
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(139,92,246,0.28), rgba(255,255,255,0.045)),
    rgba(255,255,255,0.035);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 28px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  color: #fff;
  padding: 15px 16px;
  border-radius: 16px;
  outline: none;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.text-link {
  color: var(--purple-2);
  font-weight: 800;
}

.page {
  padding-top: 58px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 40px;
}

.page-hero p {
  max-width: 820px;
  font-size: 18px;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 50px auto 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer div {
  display: flex;
  gap: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 90px 0;
  }

  .hero h1,
  .page-hero h1 {
    white-space: normal;
    letter-spacing: -3px;
  }

  .stats-grid,
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(10,10,16,0.95);
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .nav.open {
    display: flex;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 48px;
  }

  .stats-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 36px;
  }

  .footer {
    flex-direction: column;
  }
}


/* ===== RESPONSIVIDADE EXTRA EM TODAS AS PÁGINAS ===== */
img, svg, video {
  max-width: 100%;
}

body {
  -webkit-text-size-adjust: 100%;
}

.brand span {
  min-width: 0;
}

.brand strong {
  max-width: 48vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-content {
  min-width: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 100%;
  overflow-wrap: normal;
}

@media (max-width: 1180px) {
  .hero,
  .section,
  .cta,
  .page-hero,
  .footer,
  .topbar {
    width: min(100% - 28px, 1060px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 860px) {
  .topbar {
    width: calc(100% - 22px);
    top: 10px;
    margin-top: 10px;
  }

  .brand-logo,
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 14px;
    max-width: 58vw;
  }

  .brand small {
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 76px 0 54px;
    grid-template-columns: 1fr;
  }

  .hero-bg-grid {
    inset: 40px 0;
  }

  .hero h1,
  .page-hero h1 {
    white-space: normal;
    font-size: clamp(42px, 13vw, 72px);
    line-height: 0.95;
    letter-spacing: -2.5px;
  }

  .hero-text,
  .page-hero p {
    font-size: 16px;
  }

  .section {
    padding: 62px 0;
  }

  .section h2,
  .cta h2 {
    font-size: clamp(30px, 9vw, 48px);
  }

  .service {
    grid-template-columns: 52px 1fr;
    padding: 20px;
  }

  .page {
    padding-top: 34px;
  }

  .page-hero {
    padding: 64px 0 20px;
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cursor-glow {
    display: none;
  }

  .topbar {
    padding: 12px;
    border-radius: 18px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo,
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 12.5px;
    letter-spacing: -0.2px;
    max-width: 54vw;
  }

  .brand small {
    display: none;
  }

  .nav {
    top: 64px;
  }

  .nav a {
    width: 100%;
    padding: 13px 14px;
  }

  .hero {
    width: calc(100% - 22px);
    padding-top: 62px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(38px, 14vw, 54px);
    letter-spacing: -2px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-card,
  .card,
  .contact-form {
    padding: 22px;
    border-radius: 22px;
  }

  .hero-card h2 {
    font-size: 30px;
  }

  .stats-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service span {
    font-size: 13px;
  }

  .cta {
    margin: 34px auto;
    padding: 28px 22px;
    border-radius: 26px;
  }

  .footer div {
    flex-wrap: wrap;
  }

  input,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .brand strong {
    max-width: 48vw;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
    letter-spacing: -1.5px;
  }

  .hero-text,
  .page-hero p,
  .section-text p,
  .section-head p,
  .cta p,
  .card p,
  .service p {
    font-size: 14px;
  }
}


/* === AJUSTE PROFISSIONAL HERO CARD === */
.hero {
  align-items: start;
  margin-top: 40px;
}

.hero-card {
  margin-top: 120px;
}

@media (max-width: 860px) {
  .hero-card {
    margin-top: 40px;
  }
}
