/* =====================
   LAYOUT — nav, hero, marquee, footer, cursor, progress, sound btn
   ===================== */

/* ---- Sound button ---- */
#sbtn {
  position: fixed;
  top: 22px; right: 22px;
  z-index: 200;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--l);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s;
}
#sbtn:hover { background: rgba(255,255,255,.12); }
#sbtn svg { width: 16px; height: 16px; stroke: var(--w); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.bars { display: flex; align-items: center; gap: 2px; height: 16px; }
.bar { width: 2px; background: var(--w); border-radius: 1px; animation: bA var(--d) ease-in-out infinite alternate; }
.bar:nth-child(1) { height: 4px;  --d: .4s; }
.bar:nth-child(2) { height: 10px; --d: .6s; animation-delay: .1s; }
.bar:nth-child(3) { height: 14px; --d: .5s; animation-delay: .05s; }
.bar:nth-child(4) { height: 8px;  --d: .7s; animation-delay: .15s; }
.bar:nth-child(5) { height: 5px;  --d: .45s; animation-delay: .08s; }
@keyframes bA { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.mico { display: none; }
body.muted .bars { display: none; }
body.muted .mico { display: block; }

/* ---- Cursor ---- */
#cur {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--w);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  transition: width .25s, height .25s;
}
#curR {
  position: fixed;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: all .13s ease-out;
}

/* ---- Progress bar ---- */
#prog {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  background: rgba(255,255,255,.45);
  z-index: 1001;
  width: 0;
  transition: width .07s linear;
}

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 52px;
  transition: background .4s;
}
nav.sc {
  background: rgba(8,8,8,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--l);
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.5px;
  color: var(--w);
  text-decoration: none;
}
.nl { display: flex; gap: 36px; list-style: none; }
.nl a {
  color: rgba(244,243,239,.5);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .3s;
  position: relative;
}
.nl a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--w);
  transform: scaleX(0);
  transition: transform .3s;
}
.nl a:hover { color: var(--w); }
.nl a:hover::after { transform: scaleX(1); }
.ncta { background: var(--w) !important; color: var(--k) !important; padding: 9px 20px; border-radius: 100px; font-weight: 500 !important; }
.ncta::after { display: none !important; }
.ncta:hover { background: var(--a) !important; }

/* ---- Hero ---- */
#hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 52px 80px;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--l) 1px, transparent 1px),
    linear-gradient(90deg, var(--l) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 0%, transparent 100%);
  opacity: .6;
  animation: gridDrift 20s ease-in-out infinite alternate;
}
@keyframes gridDrift { from { transform: translate(0,0); } to { transform: translate(-20px,-10px); } }
.hero-bg-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 65% 35%, rgba(212,201,180,.055) 0%, transparent 70%);
}
.hc { position: relative; z-index: 2; }

.htag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 28px;
  opacity: 0;
  animation: fu .7s .2s forwards;
}
.hdot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: pu 2s infinite; }
@keyframes pu { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.5); } }

h1.ht {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 6.2vw, 90px);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.03em;
  margin-bottom: 36px;
  max-width: 1000px;
  opacity: 0;
  animation: fu .85s .32s forwards;
}
h1.ht em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(244,243,239,.3); }

.hb {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  opacity: 0;
  animation: fu .85s .48s forwards;
}
.hd { font-size: 16px; line-height: 1.75; color: rgba(244,243,239,.48); max-width: 400px; font-weight: 300; }
.ha { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
@keyframes fu { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Marquee ---- */
.mq {
  overflow: hidden;
  border-top: 1px solid var(--l);
  border-bottom: 1px solid var(--l);
  padding: 16px 0;
  background: rgba(255,255,255,.012);
}
.mt { display: flex; animation: mq 28s linear infinite; width: max-content; }
.mi {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 26px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(244,243,239,.22);
  white-space: nowrap;
}
.ms { width: 3px; height: 3px; background: var(--g); border-radius: 50%; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--l);
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.flog { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 19px; color: var(--w); }
.fcp { font-size: 12px; color: var(--g); }
.fli { display: flex; gap: 26px; list-style: none; }
.fli a { font-size: 12px; color: rgba(244,243,239,.35); text-decoration: none; transition: color .3s; }
.fli a:hover { color: var(--w); }

/* ---- Hamburguer (site principal mobile) ---- */
#mob-menu-btn {
  display: none;
  background: transparent; border: none; cursor: pointer;
  color: var(--w); padding: 4px;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
#mob-menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--w); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
#mob-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#mob-menu-btn.open span:nth-child(2) { opacity: 0; }
#mob-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mob-menu {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(8,8,8,.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
#mob-menu.open { opacity: 1; pointer-events: all; }
#mob-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 32px; font-weight: 800;
  color: rgba(244,243,239,.35);
  text-decoration: none; letter-spacing: -.03em;
  padding: 6px 32px;
  transition: color .2s;
  display: block; text-align: center;
}
#mob-menu a:hover, #mob-menu a:active { color: var(--w); }
#mob-menu .mob-cta {
  margin-top: 20px; padding: 13px 36px;
  background: var(--w); color: var(--k);
  border-radius: 100px; font-size: 16px; font-weight: 600;
}
#mob-menu .mob-cta:hover { background: var(--a); color: var(--k); }
#mob-menu .mob-portal {
  font-size: 13px; font-weight: 400;
  color: rgba(244,243,239,.3); letter-spacing: .08em;
  text-transform: uppercase; margin-top: 8px;
}
#mob-menu .mob-portal:hover { color: rgba(244,243,239,.6); }

/* ---- Responsivo ---- */
@media (max-width: 900px) {
  /* Desativa cursor no mobile */
  body { cursor: auto !important; }
  #cur, #curR { display: none !important; }

  /* Botão de som — esconde no mobile */
  #sbtn { display: none; }

  /* Nav */
  nav { padding: 16px 20px; }
  .nl { display: none; }
  #mob-menu-btn { display: flex; }

  /* Hero */
  #hero { padding: 0 20px 56px; }
  .hb { flex-direction: column; align-items: flex-start; }
  .ht {
    font-size: clamp(22px, 9.2vw, 90px) !important;
    line-height: .95 !important;
    max-width: 100% !important;
  }

  /* Footer */
  footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}
