/* ==========================================================
   Malha360 — página "Em breve"
   Mesma linguagem da página atual: fundo claro, logo central,
   grade horária ao fundo. A página nunca rola: tudo cabe em 100dvh.
   ========================================================== */

:root {
  --navy: #092968;
  --blue: #0066F5;
  --ink: #34425F;
  --muted: #687390;
  --bg: #FBFCFE;
}

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

html, body {
  height: 100%;
  overflow: hidden;            /* sem barra de rolagem */
}

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, #FFFFFF 0%, rgba(255,255,255,0) 70%),
    var(--bg);
  color: var(--navy);
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== Conteúdo central ===== */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3vh 16px 1vh;
}

.brand {
  margin: 0 0 clamp(14px, 3.6vh, 36px);
  font-size: inherit;
  font-weight: inherit;
}

/* ===== Componente da logo (idêntico a logo/malha360-texto.css) ===== */
.malha360-logo {
  --malha360-navy: var(--navy);
  --malha360-blue: var(--blue);
  --malha360-size: clamp(38px, min(12.5vw, 14vh), 124px);

  display: inline-flex;
  align-items: center;
  gap: .20em;
  color: var(--malha360-navy);
  font-family: 'Montserrat', 'Segoe UI Light', sans-serif;
  font-size: var(--malha360-size);
  font-weight: 100;
  font-synthesis: none;
  line-height: 1;
  white-space: nowrap;
}
.malha360-logo__icon { display: block; flex: 0 0 auto; width: 1.245em; height: auto; overflow: visible; }
.malha360-logo__name { display: block; letter-spacing: -.025em; }
.malha360-logo__accent { color: var(--malha360-blue); }
.malha360-logo__nodes  { fill: var(--malha360-blue); }

/* ===== Textos ===== */
.tagline {
  margin: 0;
  font-size: clamp(1.0625rem, min(2.4vw, 3.2vh), 1.625rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.tagline em { font-style: normal; font-weight: 500; color: var(--blue); }

.lead {
  max-width: 35rem;
  margin: clamp(8px, 1.8vh, 16px) auto 0;
  font-size: clamp(.9375rem, min(1.35vw, 2.1vh), 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}

.rule {
  display: block;
  width: 40px;
  height: 1px;
  margin: clamp(18px, 3.6vh, 36px) auto 0;
  background: var(--navy);
  opacity: .25;
}

.soon {
  margin: clamp(12px, 2.4vh, 22px) 0 0;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.foot {
  position: relative;
  z-index: 2;
  flex: none;
  padding: 1.6vh 16px 2.6vh;
  text-align: center;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ===== Entrada da logo (mesma da página atual) ===== */
.draw path, path.draw--links { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw path { animation: draw 1.3s cubic-bezier(.65,0,.35,1) .15s forwards; }
.draw--rings path { animation-duration: .5s; animation-delay: .9s; }
.draw--rings path + path { animation-delay: 1.02s; }
path.draw--links { animation: draw .9s cubic-bezier(.65,0,.35,1) 1.25s forwards; }

.malha360-logo__nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: pop .55s cubic-bezier(.34,1.56,.64,1) forwards;
}
.malha360-logo__nodes circle:nth-child(1) { animation-delay: 1.30s; }
.malha360-logo__nodes circle:nth-child(2) { animation-delay: 1.55s; }
.malha360-logo__nodes circle:nth-child(3) { animation-delay: 1.80s; }
.malha360-logo__nodes circle:nth-child(4) { animation-delay: 1.95s; }

.malha360-logo__name { opacity: 0; animation: slide-in .9s cubic-bezier(.2,.7,.2,1) .7s forwards; }

.tagline, .lead, .rule, .soon, .foot { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.tagline { animation-delay: 1.6s; }
.lead    { animation-delay: 1.8s; }
.rule    { animation-name: rule-in; animation-delay: 2.0s; }
.soon    { animation-delay: 2.1s; }
.foot    { animation-name: fade-in; animation-delay: 2.3s; }

/* Depois de desenhada, a logo "respira": os nós pulsam de leve, em sequência */
.alive .malha360-logo__nodes circle {
  animation: pop .55s cubic-bezier(.34,1.56,.64,1) forwards, node-pulse 4.8s ease-in-out 3s infinite;
}
.alive .malha360-logo__nodes circle:nth-child(1) { animation-delay: 1.30s, 3.0s; }
.alive .malha360-logo__nodes circle:nth-child(2) { animation-delay: 1.55s, 3.3s; }
.alive .malha360-logo__nodes circle:nth-child(3) { animation-delay: 1.80s, 3.6s; }
.alive .malha360-logo__nodes circle:nth-child(4) { animation-delay: 1.95s, 3.9s; }

@keyframes draw     { to { stroke-dashoffset: 0; } }
@keyframes pop      { to { transform: scale(1); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-.15em); } to { opacity: 1; transform: none; } }
@keyframes rise     { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in  { to { opacity: 1; } }
@keyframes rule-in  { from { opacity: 0; transform: scaleX(0); } to { opacity: .25; transform: none; } }
@keyframes node-pulse {
  0%, 12%, 100% { transform: scale(1); }
  6%            { transform: scale(1.22); }
}

/* Telas baixas (celular deitado, notebooks pequenos): sobra só o essencial */
@media (max-height: 520px) {
  .lead { display: none; }
  .rule { margin-top: 14px; }
}

/* ===== Acessibilidade: menos movimento ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw path, path.draw--links { stroke-dashoffset: 0; }
  .malha360-logo__nodes circle { transform: none; }
  .malha360-logo__name, .tagline, .lead, .soon, .foot { opacity: 1; }
  .rule { opacity: .25; }
}

/* ===== Grade horária ao fundo ===== */
/* Opção 2 — Organizando: as "aulas" entram voando e depois trocam de
   lugar entre si, deslizando, como uma grade sendo ajustada. */
:root { --cw: 92px; --ch: 44px; --gap: 6px; }
.board {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 58% at 50% 47%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6) 62%, #000 82%);
          mask-image: radial-gradient(ellipse 60% 58% at 50% 47%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6) 62%, #000 82%);
}
.slot, .les {
  position: absolute; left: 0; top: 0;
  width: var(--cw); height: var(--ch);
  border-radius: 8px;
}
.slot { border: 1px solid rgba(9,41,104,.075); }
.les {
  overflow: hidden;
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.65,0,.35,1), opacity .8s ease, box-shadow .4s;
  will-change: transform;
}
.les::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: currentColor; }
.les.in { opacity: 1; }
.les.moving { box-shadow: 0 8px 18px -8px rgba(9,41,104,.35); z-index: 2; }
.c1 { background: rgba(0,102,245,.10); box-shadow: inset 0 0 0 1px rgba(0,102,245,.22); color: rgba(0,102,245,.70); }
.c2 { background: rgba(9,41,104,.065); box-shadow: inset 0 0 0 1px rgba(9,41,104,.15); color: rgba(9,41,104,.50); }
.c3 { background: rgba(0,102,245,.06); box-shadow: inset 0 0 0 1px rgba(0,102,245,.15); color: rgba(0,102,245,.45); }
@media (max-width: 600px) {
  :root { --cw: 64px; --ch: 34px; --gap: 5px; }
  .board {
    -webkit-mask-image: linear-gradient(#000 0%, #000 12%, rgba(0,0,0,.08) 30%, rgba(0,0,0,.08) 68%, #000 86%);
            mask-image: linear-gradient(#000 0%, #000 12%, rgba(0,0,0,.08) 30%, rgba(0,0,0,.08) 68%, #000 86%);
  }
}
