/* Domini 3D — Design System */
:root {
  --blue: #1a6dff;
  --blue-light: #4d8fff;
  --blue-dark: #0d4db8;
  --blue-glow: rgba(26, 109, 255, 0.35);
  --black: #050508;
  --black-soft: #0c0c12;
  --gray: #8b92a8;
  --gray-dark: #2a2d38;
  --white: #ffffff;
  --white-muted: #e8eaf0;

  --font: 'Outfit', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white-muted);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 4px 24px var(--blue-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--blue-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gray-dark);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue-light);
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header--hero {
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.7) 0%, transparent 100%);
}

.header.scrolled {
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.header.scrolled.header--hero {
  background: rgba(5, 5, 8, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.logo strong {
  color: var(--blue-light);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  backdrop-filter: blur(12px);
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: color var(--transition), background var(--transition);
}

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

.nav__cta {
  padding: 0.5rem 1.15rem !important;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)) !important;
  color: var(--white) !important;
  box-shadow: 0 2px 12px var(--blue-glow);
}

.nav__cta:hover {
  background: linear-gradient(135deg, var(--blue-light), var(--blue)) !important;
  transform: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2.5rem) 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(26, 109, 255, 0.18), transparent 55%),
    linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 109, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 109, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 75%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero__orb--1 {
  width: 420px;
  height: 420px;
  background: var(--blue);
  top: -8%;
  right: 15%;
  opacity: 0.22;
}

.hero__orb--2 {
  width: 320px;
  height: 320px;
  background: var(--blue-dark);
  bottom: 10%;
  left: -5%;
  opacity: 0.15;
}

.hero__wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero__copy {
  max-width: 540px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(26, 109, 255, 0.1);
  border: 1px solid rgba(26, 109, 255, 0.22);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--blue-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(2.35rem, 5.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius);
}

.hero__stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero__stat span {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-dark);
}

/* Showcase — galeria centralizada */
.hero__showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 1.75rem;
}

.hero__showcase-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 0.75rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(26, 109, 255, 0.08) inset,
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(26, 109, 255, 0.12);
  animation: showcase-float 6s ease-in-out infinite;
}

@keyframes showcase-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.65rem;
  min-height: 380px;
}

.hero__photo {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__photo--main {
  grid-row: 1 / 3;
  grid-column: 1;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__photo:hover img {
  transform: scale(1.05);
}

.hero__photo figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__showcase-badge {
  position: absolute;
  left: 50%;
  bottom: -1.25rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem 0.65rem 0.65rem;
  background: var(--black);
  border: 1px solid var(--gray-dark);
  border-radius: 100px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.hero__showcase-badge img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.hero__showcase-badge span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.hero__showcase-badge small {
  font-size: 0.72rem;
  color: var(--gray);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.hero__scroll span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Services */
.services {
  padding: 6rem 0;
  background: var(--black-soft);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--black);
  border: 1px solid var(--gray-dark);
  border-radius: var(--radius);
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(26, 109, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 109, 255, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  color: var(--blue-light);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.65;
}

.services__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.services__tags li {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  background: var(--black);
  border: 1px solid var(--gray-dark);
  border-radius: 100px;
  transition: var(--transition);
}

.services__tags li:hover {
  color: var(--blue-light);
  border-color: var(--blue);
}

/* Portfolio */
.portfolio {
  padding: 6rem 0;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.portfolio__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  border: 1px solid var(--gray-dark);
}

.portfolio__item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio__item figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.95) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio__item:hover img {
  transform: scale(1.06);
}

.portfolio__item:hover figcaption {
  opacity: 1;
}

.portfolio__item figcaption span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-light);
  margin-bottom: 0.25rem;
}

.portfolio__item figcaption h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

/* About */
.about {
  padding: 6rem 0;
  background: var(--black-soft);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__content h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.about__content p {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about__content strong {
  color: var(--white);
}

.about__list {
  margin-top: 1.5rem;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-weight: 500;
  color: var(--white-muted);
}

.about__list svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
}

.about__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__logo-wrap {
  position: relative;
  z-index: 1;
  width: 280px;
  padding: 2rem;
  background: var(--black);
  border: 1px solid var(--gray-dark);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.about__logo-wrap img {
  width: 100%;
  border-radius: 12px;
}

.about__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--blue);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

/* CTA */
.cta {
  padding: 5rem 0 6rem;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(26, 109, 255, 0.15), rgba(13, 77, 184, 0.08));
  border: 1px solid rgba(26, 109, 255, 0.25);
  border-radius: 24px;
}

.cta__text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta__text p {
  color: var(--gray);
  max-width: 480px;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--gray-dark);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo--footer img {
  width: 36px;
  height: 36px;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--gray);
}

.footer__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(26, 109, 255, 0.15);
  border-radius: 50%;
  color: var(--blue-light);
  transition: var(--transition);
}

.footer__wa:hover {
  background: var(--blue);
  color: var(--white);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: pulse-wa 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.65); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(12px);
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: flex;
}

.lightbox img {
  max-height: 85vh;
  max-width: 90vw;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox__close:hover {
  background: var(--blue);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero__wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__copy {
    max-width: none;
    text-align: center;
    margin-inline: auto;
  }

  .hero__desc {
    margin-inline: auto;
    max-width: 520px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    margin-inline: auto;
  }

  .hero__showcase-frame {
    margin-inline: auto;
  }

  .hero__scroll {
    display: none;
  }

  .about__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__list li {
    justify-content: center;
  }

  .cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta__text p {
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-dark);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

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

  .portfolio__item--tall {
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .nav {
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
  }

  .nav a {
    padding: 0;
    border-radius: 0;
    background: transparent !important;
  }

  .hero__showcase-grid {
    min-height: 320px;
  }

  .hero__showcase-badge {
    position: static;
    transform: none;
    margin: 1.25rem auto 0;
    width: fit-content;
  }

  .hero__showcase-frame {
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero__stat-divider {
    display: none;
  }

  .hero__stat {
    flex: 1 1 28%;
    text-align: center;
  }

  .hero__showcase-grid {
    min-height: 280px;
    gap: 0.5rem;
  }

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

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

  .cta__inner {
    padding: 2rem 1.5rem;
  }

  .btn--lg {
    width: 100%;
  }
}
