:root {
  --bg: #080808;
  --surface: #101010;
  --surface-light: #171717;
  --white: #f5f5f5;
  --gray: #a1a1a1;
  --line: rgba(255, 255, 255, .12);
  --silver: #c5c5c5;
  --max: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

::selection {
  background: #eee;
  color: #080808;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.top-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, #666, transparent);
  opacity: .8;
}

/* CABEÇALHO */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-header {
  width: 66px;
  height: 66px;
  justify-content: center;
}

.logo-perfil {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  object-position: center;
}

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

.nav-links a {
  color: #c0c0c0;
  font-size: 13px;
  transition: color .2s;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 24px;
  height: 24px;
}

/* BOTÕES */

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform .25s, background .25s, border-color .25s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  color: #090909;
  background: #f3f3f3;
}

.button-light:hover {
  background: #d5d5d5;
}

.button-outline {
  border-color: rgba(255, 255, 255, .24);
  background: transparent;
  color: white;
}

.button-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, .06);
}

/* INÍCIO */

.hero {
  min-height: 670px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 76% 42%, rgba(170, 170, 170, .12), transparent 34%),
    radial-gradient(ellipse at 10% 90%, rgba(100, 100, 100, .08), transparent 35%),
    #080808;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to right, transparent, black);
  -webkit-mask-image: linear-gradient(to right, transparent, black);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 45px;
  padding-top: 75px;
  padding-bottom: 85px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c6c6c6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #ddd;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.12;
}

.hero h1 {
  margin-top: 25px;
  font-size: clamp(42px, 5.6vw, 76px);
  font-weight: 600;
  letter-spacing: -3.8px;
}

.hero h1 span {
  display: block;
  color: #969696;
}

.hero-description {
  max-width: 490px;
  margin-top: 24px;
  color: #aaa;
  font-size: 15px;
  line-height: 1.9;
}

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

.hero-note {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8f8f8f;
  font-size: 11px;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: #eee;
  border-radius: 50%;
}

.hero-visual {
  min-height: 390px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.orbit {
  width: min(100%, 380px);
  aspect-ratio: 1;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  transform: rotate(-25deg) scaleY(.83);
}

.orbit::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 16%;
  left: 14%;
  width: 9px;
  height: 9px;
  background: #eee;
  border-radius: 50%;
  box-shadow: 0 0 25px #fff;
}

/* LOGO COMPLETA NO DESTAQUE PRINCIPAL */

.hero-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 360px);
  max-height: 300px;
  height: auto;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

.visual-tag {
  position: absolute;
  right: 0;
  bottom: 25px;
  padding: 12px 16px;
  background: rgba(17, 17, 17, .9);
  border: 1px solid var(--line);
  color: #bbb;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-align: center;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* SEÇÕES */

section {
  padding: 105px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-top: 18px;
  font-size: clamp(32px, 4vw, 49px);
  letter-spacing: -2px;
}

.section-heading p {
  max-width: 550px;
  margin-top: 17px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.9;
}

/* SERVIÇOS */

.services {
  background: #0b0b0b;
}

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

.service-card {
  min-height: 285px;
  position: relative;
  padding: 27px 23px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #141414, #0b0b0b);
  transition: transform .3s, border-color .3s, background .3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #777;
  background: linear-gradient(145deg, #1c1c1c, #0b0b0b);
}

.service-number {
  position: absolute;
  top: 24px;
  right: 23px;
  color: #666;
  font-size: 11px;
}

.service-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid #424242;
  color: #eee;
}

.service-icon .icon {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-top: 28px;
  font-size: 18px;
  letter-spacing: -.5px;
}

.service-card p {
  margin-top: 12px;
  color: #999;
  font-size: 12px;
  line-height: 1.8;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: #ddd;
  font-size: 11px;
  font-weight: 700;
}

.service-link .icon {
  width: 15px;
  height: 15px;
}

.service-link:hover {
  color: white;
}

/* SOBRE */

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 90px;
}

.about-mark {
  min-height: 370px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(circle at center, #252525 0, #101010 38%, #090909 75%);
}

.about-mark::before,
.about-mark::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, .14);
  transform: rotate(45deg);
  pointer-events: none;
}

.about-mark::after {
  width: 180px;
  height: 180px;
  border-color: rgba(255, 255, 255, .22);
}

/* LOGO COMPLETA NA SEÇÃO SOBRE */

.about-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(82%, 360px);
  max-height: 280px;
  height: auto;
  object-fit: contain;
}

.about-copy h2 {
  margin-top: 18px;
  font-size: clamp(33px, 4vw, 48px);
  letter-spacing: -2px;
}

.about-copy > p {
  margin-top: 20px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.95;
}

.feature-list {
  margin-top: 27px;
  display: grid;
  gap: 18px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: #ddd;
  font-size: 13px;
}

.feature-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #aaa;
  border: 1px solid var(--line);
}

.feature-icon .icon {
  width: 17px;
  height: 17px;
}

.feature strong {
  display: block;
  margin-bottom: 3px;
}

.feature p {
  color: #999;
  line-height: 1.7;
}

/* PORTFÓLIO */

.portfolio {
  background: #0b0b0b;
  border-block: 1px solid var(--line);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101010;
  transition: transform .25s, border-color .25s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #666;
}

.project-preview {
  min-height: 225px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #333, transparent 65%), linear-gradient(145deg, #1d1d1d, #090909);
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.preview-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.preview-content strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 29px;
  letter-spacing: -1px;
}

.preview-content strong span {
  color: #999;
}

.preview-content small {
  color: #aaa;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project-info {
  padding: 22px;
}

.project-info h3 {
  font-size: 17px;
}

.project-info p {
  margin-top: 9px;
  color: #999;
  font-size: 12px;
  line-height: 1.8;
}

.portfolio-note {
  margin-top: 24px;
  color: #888;
  font-size: 12px;
}

/* CONTATO */

.cta {
  padding: 90px 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 68px 40px;
  text-align: center;
  border: 1px solid #373737;
  background: radial-gradient(ellipse at 50% 120%, rgba(220, 220, 220, .12), transparent 55%), #101010;
}

.cta-panel::before {
  content: "APS";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%);
  color: rgba(255, 255, 255, .025);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(180px, 35vw, 360px);
  font-weight: 700;
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  margin-top: 17px;
  font-size: clamp(32px, 4vw, 49px);
  letter-spacing: -2px;
}

.cta-panel p {
  max-width: 500px;
  margin: 17px auto 28px;
  color: #aaa;
  font-size: 14px;
}

/* RODAPÉ */

footer {
  padding: 35px 0 24px;
  border-top: 1px solid var(--line);
  background: #070707;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-bottom: 28px;
}

.brand-footer {
  max-width: 300px;
}

.logo-completa {
  display: block;
  width: 240px;
  max-width: 100%;
  max-height: 100px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #aaa;
  font-size: 12px;
}

.footer-links a:hover {
  color: white;
}

.footer-links .icon {
  width: 13px;
  height: 13px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #777;
  font-size: 11px;
}

/* BOTÃO FLUTUANTE */

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 23px;
  bottom: 23px;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border: 1px solid #666;
  border-radius: 50%;
  background: #f1f1f1;
  color: #090909;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  transition: transform .2s, background .2s;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  background: white;
}

.whatsapp-float .icon {
  width: 25px;
  height: 25px;
}

/* ANIMAÇÕES */

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

.reveal.visible,
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* TABLETS */

@media (max-width: 950px) {
  .nav-links {
    gap: 17px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .desktop-quote {
    padding-inline: 14px;
    font-size: 12px;
  }

  .hero-inner {
    gap: 15px;
  }

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

  .about-grid {
    gap: 45px;
  }

  .logo-completa {
    width: 210px;
  }
}

/* CELULARES */

@media (max-width: 720px) {
  html {
    scroll-padding-top: 78px;
  }

  .container {
    width: min(calc(100% - 36px), var(--max));
  }

  .nav {
    min-height: 72px;
    gap: 12px;
  }

  .brand-header {
    width: 58px;
    height: 58px;
  }

  .logo-perfil {
    width: 51px;
    height: 51px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav > .button {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 22px;
    background: #0a0a0a;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open,
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 65px;
    padding-bottom: 35px;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 65px);
    letter-spacing: -2.8px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    padding-inline: 15px;
  }

  .hero-visual {
    min-height: 290px;
  }

  .orbit {
    width: 275px;
  }

  .hero-logo {
    width: min(82%, 310px);
    max-height: 230px;
  }

  .visual-tag {
    right: 0;
    bottom: 5px;
    left: 0;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 10px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .about-copy h2 {
    letter-spacing: -1.5px;
  }

  .service-grid {
    gap: 10px;
  }

  .service-card {
    min-height: 270px;
    padding: 20px 16px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-number {
    top: 19px;
    right: 15px;
    font-size: 10px;
  }

  .service-link {
    line-height: 1.5;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-mark {
    min-height: 280px;
  }

  .about-logo {
    width: min(78%, 300px);
    max-height: 220px;
  }

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

  .project-preview {
    min-height: 210px;
  }

  .cta {
    padding: 65px 0;
  }

  .cta-panel {
    padding: 55px 20px;
  }

  .cta-panel .button {
    padding: 12px 16px;
    line-height: 1.5;
  }

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

  .logo-completa {
    width: 220px;
    max-height: 90px;
  }

  .footer-links {
    gap: 14px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    line-height: 1.7;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* CELULARES PEQUENOS */

@media (max-width: 380px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: 41px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .service-card {
    padding: 17px 12px;
  }

  .service-number {
    position: static;
    display: block;
    margin-bottom: 14px;
  }

  .service-card h3 {
    margin-top: 20px;
    font-size: 15px;
  }

  .service-card p {
    font-size: 11px;
  }

  .logo-completa {
    width: 190px;
  }
}

/* ACESSIBILIDADE */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
