/* =========================================================================
   EG Treinamentos — Hub de acesso
   Identidade: azul-marinho + prata + dourado
   Fundo animado, marca d'água do logo, cartões em vidro (glassmorphism)
   ========================================================================= */

:root {
  --azul: #1a3a6c;
  --azul-esc: #12203f;
  --azul-prof: #0a1628;
  --azul-med: #2563eb;
  --azul-clr: #3b82f6;
  --dourado: #c8a84e;
  --dourado-clr: #e0c878;
  --dourado-esc: #a8863a;
  --prata: #c7cfda;
  --prata-clr: #eef2f8;
  --texto: #0f172a;
  --texto2: #475569;
  --texto3: #94a3b8;
  --bg: #f4f7fb;
  --card: #ffffff;
  --sombra: 0 4px 20px rgba(15, 42, 92, .10);
  --sombra-hover: 0 18px 44px rgba(15, 42, 92, .22);
  --raio: 18px;
  --ouro-grad: linear-gradient(135deg, var(--dourado-clr), var(--dourado) 45%, var(--dourado-esc));
  --prata-grad: linear-gradient(135deg, #f4f7fb, var(--prata) 50%, #9aa6b8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--texto);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===================== FUNDO ANIMADO ===================== */

#fundoAnimado {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #0a1628 0%, #1a3a6c 42%, #2563eb 100%);
  background-size: 220% 220%;
  animation: gradienteVivo 22s ease-in-out infinite;
}

@keyframes gradienteVivo {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* pontilhado sutil por cima do gradiente */
#fundoAnimado::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect fill="url(%23g)" width="100" height="100"/></svg>');
  pointer-events: none;
}

/* formas flutuantes */
.forma {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: .05;
  pointer-events: none;
}
.forma.f1 { width: 520px; height: 520px; top: -170px; right: -130px; animation: flutua1 26s ease-in-out infinite; }
.forma.f2 { width: 320px; height: 320px; bottom: -90px; left: -70px; animation: flutua2 32s ease-in-out infinite; }
.forma.f3 { width: 210px; height: 210px; top: 42%; left: 14%; opacity: .035; animation: flutua1 38s ease-in-out infinite reverse; }
.forma.f4 {
  width: 260px; height: 260px; bottom: 22%; right: 12%;
  background: radial-gradient(circle, rgba(200, 168, 78, .55), transparent 68%);
  opacity: .30; animation: flutua2 30s ease-in-out infinite;
}

@keyframes flutua1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-36px, 40px) scale(1.08); }
}
@keyframes flutua2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(44px, -34px) scale(1.10); }
}

/* marca d'água com o logo da EG */
#marcaAgua {
  position: fixed;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(72vw, 760px);
  opacity: .045;
  pointer-events: none;
  filter: grayscale(1) brightness(2.4);
  animation: pulsaMarca 14s ease-in-out infinite;
}
@keyframes pulsaMarca {
  0%, 100% { opacity: .040; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .070; transform: translate(-50%, -50%) scale(1.04); }
}

/* ===================== CABEÇALHO ===================== */

.topo {
  position: relative;
  padding: 26px 20px 30px;
  color: #fff;
}

.topo-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 2; }

.marca { display: flex; align-items: center; gap: 14px; justify-content: center; }

.marca-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, .10);
  padding: 6px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .30), inset 0 0 0 1px rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  transition: transform .3s ease;
}
.marca:hover .marca-logo { transform: rotate(-4deg) scale(1.05); }

.marca-txt { text-align: left; }
.marca-nome {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .4px;
  line-height: 1.12;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .30);
}
.marca-sub {
  font-size: .74rem;
  color: var(--dourado-clr);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 600;
}

.topo h1 {
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  font-weight: 700;
  margin: 26px 0 10px;
  letter-spacing: .4px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}
.topo h1 .ouro {
  background: var(--ouro-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topo > .topo-inner > p {
  text-align: center;
  color: rgba(255, 255, 255, .80);
  font-size: clamp(.88rem, 2.4vw, 1.02rem);
  max-width: 640px;
  margin: 0 auto;
}

/* selo "sistema conjugado" */
.selo {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.selo span {
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--dourado-clr);
  background: rgba(200, 168, 78, .14);
  border: 1px solid rgba(200, 168, 78, .38);
  padding: 5px 13px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}

/* estatísticas */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 6vw, 58px);
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: clamp(1.5rem, 4.6vw, 2.15rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .30);
}
.hero-stat .lab {
  font-size: .68rem;
  color: rgba(255, 255, 255, .62);
  font-weight: 600;
  letter-spacing: .7px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ===================== CORPO ===================== */

main {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px 44px;
  position: relative;
  z-index: 2;
}

.acessos {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .acessos { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ---- cartão em vidro ---- */
.cartao {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--raio);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--sombra), inset 0 0 0 1px rgba(255, 255, 255, .55);
  transition: transform .22s ease, box-shadow .22s ease;
  isolation: isolate;
}
.cartao::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ouro-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s ease;
  z-index: 3;
}
.cartao:hover, .cartao:focus-visible { transform: translateY(-6px); box-shadow: var(--sombra-hover); outline: none; }
.cartao:hover::before, .cartao:focus-visible::before { transform: scaleX(1); }
.cartao:focus-visible { outline: 3px solid var(--dourado-clr); outline-offset: 3px; }

.cartao-topo {
  padding: 20px 20px 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cartao-topo::after {
  content: "";
  position: absolute;
  right: -34px; bottom: -46px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.cartao-icone {
  width: 50px; height: 50px;
  border-radius: 14px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.32rem;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.cartao h2 { font-size: 1.10rem; font-weight: 800; line-height: 1.24; }
.cartao-etq {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  opacity: .90;
  font-weight: 700;
  color: var(--dourado-clr);
}

.t-sst { background: linear-gradient(135deg, var(--azul-esc), var(--azul)); }
.t-aluno { background: linear-gradient(135deg, var(--azul), var(--azul-med)); }
.t-catalogo { background: linear-gradient(135deg, #b8721c, #e67e22); }

.cartao-corpo { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.cartao-corpo > p { font-size: .88rem; color: var(--texto2); flex: 1; }

.lista { list-style: none; margin: 14px 0 0; }
.lista li { font-size: .83rem; color: var(--texto2); padding: 5px 0 5px 23px; position: relative; }
.lista li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0; top: 5px;
  font-size: .70rem;
  color: var(--dourado);
}

.cartao-acao {
  margin-top: 18px;
  padding: 13px;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
  font-size: .90rem;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: filter .18s ease, gap .18s ease;
}
.cartao:hover .cartao-acao { filter: brightness(.96); gap: 13px; }
.a-sst { background: #e8eefb; color: #1a3a6c; }
.a-aluno { background: #e6efff; color: #1d4ed8; }
.a-catalogo { background: #fdf0e2; color: #b8721c; }

/* ===================== FAIXA (marquee) ===================== */

.faixa {
  margin-top: 34px;
  background: var(--ouro-grad);
  color: #1a2b47;
  overflow: hidden;
  white-space: nowrap;
  padding: 11px 0;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(200, 168, 78, .30);
}
.faixa-trilha {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: correFaixa 34s linear infinite;
}
.faixa:hover .faixa-trilha { animation-play-state: paused; }
.faixa-trilha span { font-size: .82rem; font-weight: 800; padding: 0 26px; letter-spacing: .4px; }
.faixa-trilha span::before { content: "★"; margin-right: 26px; opacity: .65; }

@keyframes correFaixa {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================== AVISO / RODAPÉ ===================== */

.aviso {
  margin-top: 26px;
  background: #fff;
  border-radius: 14px;
  padding: 17px 19px;
  border-left: 4px solid var(--dourado);
  box-shadow: var(--sombra);
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.aviso i { color: var(--dourado); font-size: 1.08rem; margin-top: 2px; }
.aviso p { font-size: .84rem; color: var(--texto2); }
.aviso strong { color: var(--texto); }
.aviso kbd {
  background: var(--prata-clr);
  border: 1px solid var(--prata);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: .80rem;
  font-weight: 700;
  color: var(--azul);
  font-family: inherit;
}

footer {
  position: relative;
  z-index: 2;
  background: rgba(10, 22, 40, .92);
  color: #9fb4d4;
  text-align: center;
  padding: 20px 16px;
  font-size: .78rem;
  line-height: 1.75;
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(200, 168, 78, .22);
}
footer strong { color: var(--dourado-clr); }

/* ===================== ANIMAÇÃO DE ENTRADA ===================== */

.surge {
  opacity: 0;
  transform: translateY(22px);
  animation: surge .62s cubic-bezier(.22, .68, .36, 1) forwards;
}
.surge.d1 { animation-delay: .06s; }
.surge.d2 { animation-delay: .16s; }
.surge.d3 { animation-delay: .26s; }
@keyframes surge {
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== CELULAR ===================== */

@media (max-width: 520px) {
  .topo { padding: 20px 14px 24px; }
  .marca-logo { width: 54px; height: 54px; }
  .marca-nome { font-size: 1.24rem; }
  main { padding: 6px 12px 34px; }
  .cartao-topo { padding: 16px 16px 14px; }
  .cartao-corpo { padding: 16px; }
  .cartao-acao { padding: 15px; }
  .hero-stats { gap: 22px; }
  #marcaAgua { width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
