:root {
  --overlay: rgba(0, 0, 0, 0.55);
  --text: #f3f4f6;
  --muted: #d1d5db;
  --accent: #5865f2; /* Discord-ish */
  --accent-hover: #4752c4;
}

@font-face {
  font-family: 'Alkhemikal';
  src: url('assets/fonts/Alkhemikal.ttf') format('truetype');
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100svh;    /* usa o “small viewport” que respeita barras móveis */
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: var(--text);
  background: #0b0f14;
  overflow-x: hidden;
}

html, body {
  height: auto;          /* evita lock de 100% em mobile */
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* conteúdo principal expande para empurrar o footer */
body > main {
  flex: 1 0 auto;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
}
.background::before {
  /* Background image layer */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/big_tree.png');
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.05);
  transform: scale(1.05); /* counteract blur shrink */
}
.background::after {
  /* Dark overlay */ 
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.75));
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: 140px;
  text-align: center;
  gap: 12px;
}
.logo-wrap {
  display: inline-block;
  animation: kom-float 8s ease-in-out infinite;
  padding: 6px;
  will-change: transform;
}

.logo {
  height: clamp(180px, 40vh, 40vh);
  width: auto;
  object-fit: contain;
  transform-origin: 50% 55%;
  animation: kom-breathe 6s linear infinite;
  will-change: transform, filter;
}

/* respiração fluida tipo seno: cresce rápido, contrai devagar */
@keyframes kom-breathe {
  0% {
    transform: scale(1);
    filter:
      drop-shadow(0 6px 16px rgba(0,0,0,0.6))
      brightness(1)
      contrast(1)
      saturate(1);
  }
  15% {
    transform: scale(1.025);
    filter:
      drop-shadow(0 7px 18px rgba(255,210,120,0.18))
      brightness(1.05)
      contrast(1.03)
      saturate(1.02);
  }
  35% {
    transform: scale(1.055);
    filter:
      drop-shadow(0 9px 24px rgba(255,210,120,0.3))
      brightness(1.1)
      contrast(1.06)
      saturate(1.04);
  }
  50% {
    transform: scale(1.07);
    filter:
      drop-shadow(0 10px 28px rgba(255,210,120,0.35))
      brightness(1.15)
      contrast(1.08)
      saturate(1.06);
  }
  65% {
    transform: scale(1.055);
    filter:
      drop-shadow(0 9px 24px rgba(255,210,120,0.3))
      brightness(1.1)
      contrast(1.06)
      saturate(1.04);
  }
  85% {
    transform: scale(1.025);
    filter:
      drop-shadow(0 7px 18px rgba(255,210,120,0.18))
      brightness(1.05)
      contrast(1.03)
      saturate(1.02);
  }
  100% {
    transform: scale(1);
    filter:
      drop-shadow(0 6px 16px rgba(0,0,0,0.6))
      brightness(1)
      contrast(1)
      saturate(1);
  }
}

/* flutuação independente */
@keyframes kom-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* pausa no hover */
.logo-wrap:hover .logo { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .logo, .logo-wrap { animation: none !important; }
}



.title {
  margin: 8px 0 0;
  font-size: clamp(24px, 4.5vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  font-family: 'Alkhemikal', 'MedievalSharp', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

.subtitle {
  margin: 4px 0 16px;
  font-size: clamp(1vw, 1.5vw, 2vw);
  color: var(--muted);
  letter-spacing: 0.5px;
  font-weight: 500;
  font-family: 'Alkhemikal', 'MedievalSharp', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

.cta {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 20px rgba(88,101,242,0.35);
}
.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(88,101,242,0.45);
}
.cta:active {
  transform: translateY(0);
}

.footer {
  flex-shrink: 0;
  position: static !important;
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  color: #9ca3af;
  font-size: 12px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

.footer .footer-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer .legal {
  color: #a3a3a3;
  opacity: 0.9;
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #9ca3af;
  transition: color 0.2s ease, transform 0.2s ease;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  color: #ffb13b;
  transform: translateY(-2px);
  background: rgba(255, 177, 59, 0.1);
  border-color: rgba(255, 177, 59, 0.3);
}

.social-links a:active {
  transform: translateY(0);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 420px) {
  .subtitle { margin-bottom: 12px; }
}

/* SEO content block */
.seo-content {
  padding: 28px 16px 80px;
}
.seo-content .container {
  max-width: 920px;
  margin: 0 auto;
}
.seo-content h2 {
  margin: 0 0 8px;
  font-size: clamp(18px, 3.2vw, 28px);
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  font-family: 'Alkhemikal','MedievalSharp','Montserrat',system-ui;
}
.seo-content p {
  margin: 8px 0 10px;
  color: #e5e7eb;
}
.seo-content .keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 0;
  margin: 10px 0 4px;
  list-style: none;
}
.seo-content .keywords li {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #e5e7eb;
}
.seo-content .note {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 14px;
}
/* ==== CLASSES ==== */
.classes {
  padding: 40px 16px 120px; /* espaço extra por causa do footer fixo */
}
.classes-container {
  max-width: 1100px;
  margin: 0 auto;
}
.classes h2 {
  margin: 0 0 12px;
  font-size: clamp(2vw, 3.4vw, 5vw);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  font-family: 'Alkhemikal','MedievalSharp','Montserrat',system-ui;
}
.classes-group {
  margin: 24px 0 10px;
  font-size: clamp(16px, 2.6vw, 20px);
  color: #e5e7eb;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.class-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 22px rgba(0,0,0,0.28);
  transition: transform 140ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  backdrop-filter: blur(3px);
}
.class-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 10px 30px rgba(0,0,0,0.38);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

.class-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.55));
}

.class-body { display: flex; flex-direction: column; gap: 6px; }
.class-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.class-name {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  font-family: 'Alkhemikal','MedievalSharp','Montserrat',system-ui;
}

.class-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  line-height: 1.6;
}
.tag-economia { background: rgba(147, 112, 219, 0.18); border-color: rgba(147,112,219,0.35); } /* roxo */
.tag-combate  { background: rgba(156, 100, 60, 0.22);  border-color: rgba(156,100,60,0.38); }  /* marrom */

.class-desc {
  margin: 0;
  color: #d6d6d6;
  font-size: 13px;
  line-height: 1.35;
}

/* responsividade */
@media (max-width: 960px) {
  .classes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .classes-grid { grid-template-columns: 1fr; }
  .class-card { padding: 10px; }
  .class-card img { width: 60px; height: 60px; }
}

/* ===== LORE / HISTÓRIA ===== */
.lore { padding: 30px 16px 10px; }
.lore-container { max-width: 1100px; margin: 0 auto; }

.lore h2 {
  margin: 0 0 12px;
  font-size: clamp(2vw, 3.4vw, 5vw);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  font-family: 'Alkhemikal','MedievalSharp','Montserrat',system-ui;
  letter-spacing: 1px;
}

.lore-intro {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.28);
  backdrop-filter: blur(3px);
  margin-bottom: 14px;
}
.lore-intro p { margin: 6px 0; }
.lore-intro .muted { color: #cbd5e1; }

.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.lore-card {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.30);
}
.lore-card h3 {
  margin: 0 0 6px;
  font-family: 'Alkhemikal','MedievalSharp','Montserrat',system-ui;
}

.lore-timeline {
  position: relative;
  margin: 6px 0 12px;
  padding-left: 10px;
  border-left: 2px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 10px;
}
.tl-item { position: relative; padding-left: 8px; }
.tl-dot {
  position: absolute; left: -11px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.tl-content h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.tl-content p { margin: 0; color: #d6d6d6; font-size: 13px; }

.lore-more {
  margin-top: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.lore-more summary {
  cursor: pointer; padding: 10px 12px; list-style: none; user-select: none; font-weight: 700;
}
.lore-more summary::-webkit-details-marker { display: none; }
.lore-more-body { padding: 0 12px 12px 12px; color: #e5e7eb; }

.lore-cta {
  margin-top: 12px;
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* Responsivo */
@media (max-width: 960px) { .lore-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .lore-grid { grid-template-columns: 1fr; } }

/* === Botão Discord — estilo dourado/luz === */
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, #ffb13b, #e0751e);
  color: #1a0000;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow:
    0 0 14px rgba(255, 163, 50, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.4px;
}

/* Hover: brilho intenso e leve elevação */
.btn-discord:hover {
  background: linear-gradient(145deg, #ffc356, #e57f22);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 22px rgba(255, 180, 60, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Pressionado */
.btn-discord:active {
  transform: scale(0.97);
  box-shadow: 0 0 10px rgba(255, 160, 40, 0.5);
}

/* brilho pulsante contínuo */
@keyframes goldenPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(255,163,50,0.45),
                inset 0 1px 0 rgba(255,255,255,0.25);
  }
  50% {
    box-shadow: 0 0 26px rgba(255,190,80,0.9),
                inset 0 1px 0 rgba(255,255,255,0.4);
  }
}
.btn-discord {
  animation: goldenPulse 4s ease-in-out infinite;
}

/* ícone */
.btn-discord .icon {
  width: 22px;
  height: 22px;
  filter: brightness(1.2) sepia(1) hue-rotate(-20deg) saturate(1.8);
  transition: transform 0.25s ease, filter 0.3s ease;
}
.btn-discord:hover .icon {
  transform: rotate(8deg) scale(1.1);
  filter: brightness(1.4) sepia(1) hue-rotate(-10deg) saturate(2);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* smooth nativo para âncoras */
html { scroll-behavior: smooth; }

/* garante referência para posicionamento da seta */
.hero { position: relative; }

/* scroll hint */
.scroll-hint{
  position:absolute; left:50%; bottom:40px; transform:translate(-50%,0);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  opacity:.9; pointer-events:auto;
  transition: opacity .25s ease, transform .25s ease;
}
.scroll-arrow-link{ display:inline-block; transition:transform .25s ease; }
.scroll-arrow-link:hover{ transform:translateY(2px) scale(1.06); }

.scroll-arrow{
  filter: drop-shadow(0 0 6px rgba(255,160,0,.35));
  animation: arrowBounce 1.8s ease-in-out infinite;
}
@keyframes arrowBounce{
  0%,100%{ transform: translateY(0); opacity:.9; }
  50%    { transform: translateY(6px); opacity:1; }
}

.scroll-text{
  color: rgba(255,220,160,.9);
  font-size:.82rem;
  text-shadow:0 0 6px rgba(0,0,0,.5);
}

.scroll-hint.is-hidden{
  opacity:0;
  transform:translate(-50%,12px);
  pointer-events:none;
}

@media (max-width:600px){
  .hero {
    padding-bottom: 160px;
  }
}
