/* ============================================================
   METAVERSE — stylesheet
   Abordagem MOBILE-FIRST: estilos-base = mobile,
   media queries (min-width) progressivamente ligam o layout desktop.
   ============================================================ */

:root {
  --bg: #07040f;
  --bg-alt: #1c1a20;
  --yellow: #f5d800;
  --yellow-hover: #ffe94d;
  --white: #ffffff;
  --grey-text: #a9a6b3;
  --placeholder: #d9d9d9;
  --placeholder-text: #111111;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-full: 999px;

  --container: 1240px;
  --gutter: 24px;

  --font-display: "Space Grotesk", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --transition: 220ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

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

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Reusable placeholder ---------- */
.placeholder {
  background: var(--placeholder);
  color: var(--placeholder-text);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition);
}
.btn-primary {
  background: var(--yellow);
  color: #100e00;
}
.btn-primary:hover { background: var(--yellow-hover); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  margin-bottom: 5rem;
  justify-content: space-between;
  padding-block: 18px;
}
.logo {margin-top: 2rem; width: 320px; height: 90px; flex-shrink: 0; }

.nav-desktop { display: none; }
.cta-img{
  position: relative;
  left: 5%;
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile nav overlay ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px var(--gutter);
  transform: translateX(100%);
  transition: transform 320ms ease;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav-close {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--white);
  padding: 8px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  margin-top: 22vh;
}
.mobile-nav-links a {
  font-size: 22px;
  color: #e7e6ee;
  font-weight: 500;
  transition: color var(--transition);
}
.mobile-nav-links a:hover { color: var(--yellow); }

body.nav-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-block: 28px 56px; overflow: hidden; }

.hero-glow {
  position: absolute;
  left: -20%;
  bottom: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(150, 70, 230, 0.45), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero h1 {
  font-size: clamp(34px, 8vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero p {
  margin-top: 18px;
  color: var(--grey-text);
  font-size: 16px;
  line-height: 1.6;
}

.hero .btn { margin-top: 26px; }

.hero-media {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-lg);
}

/* ============================================================
   PROJECT
   ============================================================ */
.project { background: var(--bg-alt); padding-block: 56px; }

.project-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-cards {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.project-cards::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 78%;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
}

.project-copy h2 {
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 700;
}
.project-copy p {
  margin-top: 18px;
  color: var(--grey-text);
  font-size: 15px;
  line-height: 1.7;
}
.project-copy p + p { margin-top: 16px; }

/* decorative triangles: hidden on mobile to keep things clean & lightweight */
.tri { display: none; }

/* ============================================================
   BANNER
   ============================================================ */
.banner {
  width: 100%;
  height: 48px;
  margin-block: 40px;
  border-radius: var(--radius-full);
}

/* ============================================================
   CTA
   ============================================================ */
.cta { padding-block: 20px 60px; }

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.cta-copy h2 {
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 700;
  line-height: 1.15;
}
.cta-copy .btn { margin-top: 22px; }

.cta-media {
  order: 3;
  width: 5rem;
  height: 1rem;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
}

.cta-copy { order: 1; }
.cta-copy .btn { order: 2; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding-block: 40px 28px; }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo { width: 120px; height: 60px;  position: relative; left: 25%;}
.footer-banner { height: 64px; border-radius: var(--radius-full); }

.copyright {
  margin-top: 18px;
  text-align: center;
  color: var(--grey-text);
  font-size: 12px;
}


/* ============================================================
   DESKTOP  (≥ 880px)
   ============================================================ */
@media (min-width: 880px) {
  .menu-toggle { display: none; }
  .nav-desktop {
    display: flex;
    gap: 48px;
    font-size: 17px;
  }
  .nav-desktop a { transition: color var(--transition); }
  .nav-desktop a:hover { color: var(--yellow); }

  .logo { width: 180px; height: 78px; }

  /* Hero */
  .hero { padding-block: 40px 100px; }
  .hero-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 60px;
  }
  .hero-content { max-width: 460px; flex-shrink: 0; }
  .hero p { max-width: 400px; }
  .hero-media { flex: 1; aspect-ratio: 4 / 5; max-height: 620px; }

  /* Project */
  .project { padding-block: 100px; }
  .project-inner { flex-direction: row-reverse; align-items: center; gap: 80px; }
  .project-copy { flex: 1; max-width: 480px; }
  .project-copy p { font-size: 16px; }

  .project-cards {
    flex: 0 0 400px;
    flex-direction: column;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 24px;
  }
  .card { flex: none; }
  .card-1 { width: 260px; height: 170px; margin-left: 70px; }
  .card-2 { width: 280px; height: 200px; }
  .card-3 { width: 270px; height: 180px; margin-left: 100px; }

  .tri {
    display: block;
    position: absolute;
    height: auto;
    color: var(--white);
  }
  .tri-1 { top: 30px;  left: -66px; width: 34px; opacity: .3;  transform: rotate(-8deg); }
  .tri-2 { top: 210px; left: -100px; width: 26px; opacity: .22; transform: rotate(4deg); }
  .tri-3 { top: 430px; left: -34px; width: 40px; opacity: .3;  transform: rotate(-4deg); }

  /* Banner */
  .banner { height: 130px; margin-block: 60px; }

  /* CTA */
  .cta { padding-block: 40px 120px; }
  .cta-inner { flex-direction: row; text-align: left; align-items: center; gap: 70px; }
  .cta-media { order: 0; flex: 0 0 380px; aspect-ratio: 3 / 4; }
  .cta-copy { order: 0; flex: 1; }
  .cta-copy .btn { order: 0; }

  .tri-4, .tri-5, .tri-6, .tri-7, .tri-solid {
    display: block;
    position: absolute;
    height: auto;
    color: var(--white);
  }
  .tri-4    { top: -6px;   right: 34px;  width: 30px; opacity: .35; transform: rotate(10deg); }
  .tri-5    { top: 76px;   right: -18px; width: 36px; opacity: .4;  transform: rotate(-6deg); }
  .tri-6    { bottom: 34px; right: 100px; width: 40px; opacity: .3;  transform: rotate(8deg); }
  .tri-7    { bottom: -10px; right: 6px;  width: 30px; opacity: .35; transform: rotate(-10deg); }
  .tri-solid{ bottom: 96px; right: 268px; width: 22px; opacity: 1; }

  /* Footer */
  .site-footer { padding-block: 56px 32px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .footer-logo { width: 120px; height: 60px; flex-shrink: 0; position: relative; left: 0; }
  .footer-banner { flex: 1; height: 76px; }
  .copyright { margin-top: 28px; text-align: right; }

  /* Construction */
  .construction { padding-block: 70px 110px; }
  .construction-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "content media" "btn media";
    text-align: left;
    align-items: center;
    gap: 0 90px;
  }
  .construction-content { grid-area: content; max-width: 480px; }
  .construction-btn { grid-area: btn; align-self: start; justify-self: start; margin-top: 26px; }
  .construction-media { grid-area: media; max-height: 640px; }
}
