/* =========================================
   gods.css – shared styles for all god microsites.
   Loaded before each god's own CSS file.
   ========================================= */

/* -------------------------
   Shared CSS custom properties
   (page-specific: --bg, and accent vars like --ice / --thunder)
-------------------------- */
:root {
  --text: #e9e0d4;
  --muted: rgba(233, 224, 212, 0.72);
  --gold: #D4AF37;
  --maxw: 85%;
  --ease-out: cubic-bezier(.14,.85,.2,1);
}

/* -------------------------
   Reset & base
-------------------------- */
*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  height: 100%;
}

body{
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Rubik", sans-serif;
  opacity: 0;
  transition: opacity .6s ease;
}

body.loaded{ opacity: 1; }


h1,h2,h3{
  font-family: "Cinzel", serif;
  margin: 0;
}

a{ text-decoration: none; color: inherit; }

/* -------------------------
   Background base layers
-------------------------- */
.bg{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bg-grain{
  position:absolute;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.18;
}

/* -------------------------
   Top chips
-------------------------- */
.frame-topline{
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.4s ease;
  max-width: calc(100vw - 32px);
  justify-content: center;
}

.frame-topline.rune-hidden {
  opacity: 0;
  pointer-events: none;
}

.znak {
  width: 80px;
}

/* -------------------------
   Page layout
-------------------------- */
.landing-subtitle{
  margin-top: 10px;
  font-size: clamp(1.1rem, 1.2vw + 0.6rem, 1.35rem);
  color: var(--muted);
}

.section{
  display: grid;
  place-items: center;
  padding: 120px 0 40px 0;
}

.section-inner{
  width: var(--maxw);
  max-width: 80%;
  padding: 0;
}

.lead{
  font-size: clamp(1.05rem, 1vw + 0.65rem, 1.25rem);
  line-height: 1.6;
  color: rgba(233,224,212,0.92);
}


.two-col{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.video-card{
  /* background: rgba(0,0,0,0.18); */
  /* border: 1px solid rgba(255,255,255,0.08); */
  /* border-radius: 18px; */
  display: flex;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.video-caption{
  padding: 12px 14px 14px 14px;
  color: rgba(233,224,212,0.8);
  font-size: 0.95rem;
}

/* -------------------------
   Buttons shared base
-------------------------- */
.cta-row{
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------
   Stat & symbol grids
-------------------------- */
.stat-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-v{
  margin-top: 8px;
  font-size: 1.05rem;
}

.symbol-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.symbol h3{ margin-top: 10px; }
.symbol p{ color: rgba(233,224,212,0.85); line-height: 1.5; }

.symbol-icon{
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
}
.symbol-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
}

/* -------------------------
   Timeline
-------------------------- */
.timeline{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.step-dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 6px;
}

/* -------------------------
   Reveal animation
-------------------------- */
.reveal{
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  filter: blur(10px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 900ms var(--ease-out);
  will-change: opacity, transform, filter;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}


/* Tablet – improve readability */
@media (max-width: 1024px) and (min-width: 601px) {
  .section{
    padding: 80px 0 32px 0;
  }

  .section-inner{
    max-width: 90%;
  }

  .nadpis{
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  }

  .lead{
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.7;
  }

  .stat-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .symbol-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 950px){
  .two-col{
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .symbol-grid{
    grid-template-columns: 1fr;
  }

  .section{
    padding: 64px 0 32px 0;
  }

  .frame-topline{
    top: calc(var(--nav-h) + 10px);
  }
}
@media (max-width: 705px){
  .rune-chip{
    display: none;
  }
  .rune-chip.subtle{
    display: block;
  }
}

@media (max-width: 600px) {
  .section-inner {
    max-width: 95%;
  }
}

@media (prefers-reduced-motion: reduce){
  *{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------
NAVBAR CUSTOM
-------------------------- */
@media (max-width: 1100px){
  .nav-links{
    border-bottom: 1px solid rgba(212,175,55,0.12);
  }
}

/* -------------------------
CONTACT CUSTOM
-------------------------- */
.muted{ color: var(--muted); }
