:root {
  --bg: #050914;
  --bg-soft: #0b1222;
  --card: rgba(14, 23, 42, 0.75);
  --border: rgba(125, 211, 252, 0.25);
  --text: #e6eef8;
  --muted: #9fb2c8;
  --accent: #18a9ff;
  --accent-2: #3fd0ff;
  --accent-3: #0f5fff;
  --radius: 18px;
  --container: 1140px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --hover-duration: 0.45s;
  --hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Sora", "Segoe UI", sans-serif;
  background: linear-gradient(
    to bottom,
    #000000 0%,
    #000000 30%,
    #01050f 52%,
    #020b1f 76%,
    #04163a 100%
  );
  line-height: 1.6;
}

.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  display: block;
}

.blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  display: none;
}

.blur-circle-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -200px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.blur-circle-2 {
  width: 440px;
  height: 440px;
  right: -120px;
  top: 58%;
  background: linear-gradient(140deg, var(--accent-3), var(--accent));
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(58, 106, 196, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 106, 196, 0.032) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 18%, transparent 82%);
}

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

.container {
  width: min(96%, var(--container));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(93, 134, 194, 0.2);
  background: rgba(4, 9, 20, 0.82);
  overflow: visible;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
  padding: 2px 0 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  margin: -40px 0 -38px;
}

.logo-image {
  width: 292px;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: translateY(-2px);
  display: block;
  transition: none;
}

.footer-logo .logo-image {
  width: 300px;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.12);
  transform-origin: left center;
}

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

.main-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  min-width: 132px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  white-space: nowrap;
  transition: transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease),
    filter var(--hover-duration) var(--hover-ease);
}

.main-nav a.nav-restricted {
  border: none;
  color: #000;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  box-shadow: none;
}

.main-nav a.nav-restricted:visited {
  color: #000;
}

.main-nav a.nav-restricted:hover,
.main-nav a.nav-restricted:focus,
.main-nav a.nav-restricted:active {
  color: #fff;
  filter: brightness(1.03);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  padding-top: 0;
  padding-bottom: 0;
}

#servicos.section {
  padding-top: 0;
  margin-top: -92px;
  position: relative;
  z-index: 4;
}

#servicos .section-head {
  margin-top: -38px;
  margin-bottom: 64px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

#servicos .services-grid {
  margin-top: 16px;
}

.hero-stack {
  display: grid;
  gap: 26px;
}

.hero-banner {
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0) 72%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 5vw, 72px);
  top: clamp(26px, 5vw, 64px);
  max-width: min(700px, 68vw);
  display: grid;
  gap: 0;
}

.hero-overlay > .eyebrow,
.hero-overlay > h1,
.hero-overlay > .hero-subtitle {
  opacity: 0;
  translate: -54px 0;
  animation: hero-slide-right-left 0.82s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  will-change: translate, opacity;
}

.hero-overlay > .eyebrow {
  animation-delay: 0.12s;
}

.hero-overlay > h1 {
  animation-delay: 0.32s;
}

.hero-overlay > .hero-subtitle {
  animation-delay: 0.52s;
}

.hero-overlay .hero-actions a {
  opacity: 0;
  translate: -54px 0;
  animation: hero-slide-right-left 0.82s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  will-change: translate, opacity;
}

.hero-overlay .hero-actions a:nth-child(1) {
  animation-delay: 0.72s;
}

.hero-overlay .hero-actions a:nth-child(2) {
  animation-delay: 0.9s;
}

.hero-overlay .eyebrow {
  margin-bottom: 10px;
}

.hero-overlay h1 {
  margin: 0;
  color: #eaf2ff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.hero-banner img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  display: block;
  animation: hero-image-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.68rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  letter-spacing: -0.7px;
  margin-bottom: 16px;
  max-width: 18ch;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 64ch;
  margin: 0 0 30px;
}

.hero-overlay .hero-subtitle {
  margin: 10px 0 22px;
  color: #d6e7ff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.hero-overlay .btn-secondary {
  background: rgba(2, 11, 24, 0.65);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease),
    color var(--hover-duration) var(--hover-ease);
}

.btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.btn-primary {
  color: #021124;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  color: #fff;
  box-shadow: 0 12px 26px rgba(24, 169, 255, 0.34);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(15, 29, 54, 0.55);
  color: var(--text);
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  max-width: 20ch;
}

.cards-grid {
  display: grid;
  gap: 18px;
}

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

.highlights-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

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

.services-grid,
.highlights-grid,
.portfolio-grid,
.steps-grid,
.testimonials-grid {
  margin-top: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.highlight {
  text-align: center;
}

.portfolio-card {
  position: relative;
  min-height: 250px;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(11, 22, 44, 0.95), rgba(8, 14, 28, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease);
}

.portfolio-card > * {
  position: relative;
  z-index: 1;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 169, 255, 0.3), transparent 70%);
}

.portfolio-type {
  margin: 0 0 12px;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
}

.portfolio-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

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

.portfolio-media {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  margin-bottom: 14px;
}

.portfolio-description {
  margin-top: 2px;
}

.portfolio-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 999px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: rgba(16, 31, 57, 0.8);
  color: #dcecff;
  font-size: 0.86rem;
  font-weight: 600;
}

.portfolio-files {
  font-size: 0.82rem;
  color: #a9bfd9;
}

.step {
  background: rgba(9, 20, 40, 0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease);
}

.step-number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-2);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.step h3 {
  margin-bottom: 8px;
}

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

blockquote.card {
  margin: 0;
}

blockquote p {
  margin-bottom: 14px;
}

cite {
  color: #c8d9ee;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}

.cta-section {
  padding-top: 24px;
}

.cta-box {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(130deg, rgba(11, 26, 53, 0.92), rgba(7, 17, 34, 0.95));
  box-shadow: var(--shadow);
  text-align: center;
  padding: 44px 20px;
  transition: transform var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible,
.main-nav .nav-cta:active {
  transform: translateY(-2px) scale(1.07);
  box-shadow: 0 12px 26px rgba(14, 38, 75, 0.45);
  color: #fff;
}

.card:hover,
.card:focus-within,
.portfolio-card:hover,
.portfolio-card:focus-within,
.step:hover,
.step:focus-within,
.cta-box:hover,
.cta-box:focus-within {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(125, 211, 252, 0.58);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.42);
}

.reveal.is-visible.card:hover,
.reveal.is-visible.card:focus-within,
.reveal.is-visible.portfolio-card:hover,
.reveal.is-visible.portfolio-card:focus-within,
.reveal.is-visible.step:hover,
.reveal.is-visible.step:focus-within,
.reveal.is-visible.cta-box:hover,
.reveal.is-visible.cta-box:focus-within {
  transform: translateY(-3px) scale(1.03);
}

.cta-box h2 {
  margin-bottom: 14px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.cta-box p {
  margin: 0 auto 26px;
  max-width: 62ch;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(93, 134, 194, 0.22);
  background: rgba(4, 9, 20, 0.92);
  padding-top: 14px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 8px;
}

.footer-wrap > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 360px);
  margin-left: 0;
  padding-top: 0;
}

.footer-logo {
  margin-bottom: 8px;
  overflow: visible;
  margin-left: -52px;
  transform: translateY(22px);
}

.footer-text {
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}

.footer-contacts p {
  margin: 0 0 6px;
  color: var(--muted);
}

.copyright {
  margin: 14px auto 0;
  max-width: var(--container);
  padding: 0 0 24px;
  color: #8ea4c0;
  text-align: center;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

@keyframes hero-appear {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-slide-right-left {
  from {
    opacity: 0;
    translate: -54px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes hero-image-rise {
  from {
    opacity: 0;
    transform: translateY(70px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-content,
.hero-panel {
  animation: hero-appear 0.8s ease forwards;
}

@media (max-width: 1080px) {
  .hero-banner img {
    height: auto;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .steps-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  html,
  body {
    overflow-x: hidden;
  }

  .hero {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .hero-stack {
    gap: 0;
  }

  .hero-banner {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0 !important;
    border-radius: 0;
    overflow: hidden;
    display: block !important;
    min-height: 560px;
  }

  .hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(1, 5, 14, 0.08) 0%,
      rgba(1, 5, 14, 0.48) 36%,
      rgba(1, 5, 14, 0.96) 100%
    );
    pointer-events: none;
    z-index: 1;
  }

  .hero-banner img {
    width: 100%;
    height: clamp(520px, 86vh, 620px);
    min-height: 520px;
    object-fit: cover;
    object-position: 72% 0;
  }

  .hero-overlay {
    position: absolute !important;
    left: 16px !important;
    right: 16px !important;
    max-width: none;
    top: auto !important;
    bottom: 18px;
    margin-top: 0;
    padding: 0;
    z-index: 2;
    background: none;
  }

  .hero-overlay h1 {
    font-size: clamp(1.65rem, 7.6vw, 2.15rem);
    max-width: 9ch;
  }

  .hero-overlay .hero-subtitle {
    margin: 8px 0 14px;
    font-size: 0.92rem;
    max-width: 24ch;
    color: #dceaff;
  }

  .hero-overlay > .eyebrow,
  .hero-overlay > h1,
  .hero-overlay > .hero-subtitle,
  .hero-overlay .hero-actions a {
    animation: none;
    opacity: 1;
    translate: 0 0;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 4px;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #servicos.section {
    margin-top: 34px;
    padding-top: 26px;
    z-index: auto;
  }

  #servicos .section-head {
    margin-top: 0;
    margin-bottom: 36px;
    text-shadow: none;
  }

  #servicos .services-grid {
    margin-top: 0;
  }

  .header-wrap {
    min-height: 82px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .site-header .logo {
    min-height: 72px;
    height: 72px;
    overflow: visible;
    align-items: center;
    line-height: 0;
  }

  .site-header .logo-image {
    width: auto;
    height: 62px;
    max-width: 260px;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transform: none !important;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 88px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(7, 15, 30, 0.98);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav a {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
  }

  .main-nav a.nav-cta {
    min-width: 0;
  }

  .main-nav .nav-restricted {
    margin-top: 0;
    width: 100%;
    padding: 9px 10px;
  }

  .main-nav a:hover {
    background: rgba(24, 169, 255, 0.12);
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section:not(.hero) {
    padding: 76px 0;
  }

  .footer-wrap {
    flex-direction: column;
  }
}

@media (max-width: 660px) {
  .services-grid,
  .highlights-grid,
  .portfolio-grid,
  .steps-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-overlay {
    margin-top: -24px;
    padding: 0 14px 10px;
  }

  .hero-overlay h1 {
    font-size: clamp(1.9rem, 11vw, 2.35rem);
  }

  .hero-banner img {
    height: 215px;
    min-height: 215px;
    object-position: 76% -4px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  #servicos.section {
    margin-top: 28px;
    padding-top: 28px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-wrap > div:first-child {
    width: 100%;
    margin-left: 0;
    padding-top: 0;
    align-items: center;
  }

  .footer-logo {
    margin-left: 0;
    transform: none;
    align-self: center;
  }

  .footer-logo .logo-image {
    width: min(280px, 78vw);
    transform: none;
    object-position: center;
  }

  .footer-text,
  .footer-contacts,
  .footer-contacts p {
    text-align: center;
  }

  .footer-contacts {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner img {
    animation: none;
  }

  .hero-overlay > .eyebrow,
  .hero-overlay > h1,
  .hero-overlay > .hero-subtitle,
  .hero-overlay .hero-actions a {
    animation: none;
    opacity: 1;
    translate: 0 0;
  }
}
