/* veles_microsite.css – Veles-specific styles.
   Requires gods.css (loaded first). */

/* -------------------------
   Veles colour tokens
   Deep earth · tarnished gold · old bark
-------------------------- */
:root {
  --bg: #0D0B08;
  --amber: #9B7B2A;
  --bark: #4A3520;
}

/* -------------------------
   Background layers
-------------------------- */
.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 35% at 50% 100%, rgba(155, 123, 42, 0.10), transparent 65%),
    radial-gradient(circle at 18% 45%, rgba(74, 53, 16, 0.14), transparent 48%),
    linear-gradient(180deg, #110e08, #090805);
}

.bg-fog {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 65%, rgba(90, 68, 22, 0.10), transparent 52%),
    radial-gradient(circle at 75% 38%, rgba(50, 60, 30, 0.07), transparent 55%);
  filter: blur(24px);
  opacity: 0.90;
  animation: fogDrift 28s ease-in-out infinite;
}

@keyframes fogDrift {
  0%,100% { transform: translate3d(0,0,0) scale(1.02); }
  50%      { transform: translate3d(-2%, 1.5%, 0) scale(1.07); }
}

.bg-leaves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 38%, rgba(0,0,0,0.70) 100%);
}

/* -------------------------
   Top chips
-------------------------- */
.rune-chip {
  font-family: "Cinzel", serif;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(13, 11, 8, 0.55);
  border: 1px solid rgba(155, 123, 42, 0.32);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
}

.rune-chip.subtle {
  letter-spacing: 0.08em;
  color: var(--muted);
  border-color: rgba(155, 123, 42, 0.16);
}

/* -------------------------
   Column page layout
-------------------------- */
.veles-page {
  position: relative;
  z-index: 5;
}

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0 0 40px 0;
  padding-top: var(--nav-h);
  overflow: hidden;
  position: relative;
}

/* -------------------------
   Root SVG ornaments (unique to Veles)
   World-tree roots rising from the earth — Veles rules Nav, beneath the roots
-------------------------- */
.root {
  position: absolute;
  pointer-events: none;
  bottom: 0;
  width: clamp(180px, 26vw, 360px);
  height: auto;
  overflow: visible;
}

.root.left  { left: 0;  transform-origin: bottom left; }
.root.right { right: 0; transform-origin: bottom right; }

.root .root-main {
  fill: none;
  stroke: rgba(155, 123, 42, 0.48);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(155, 123, 42, 0.28));
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation:
    rootGrowMain 14s cubic-bezier(.15,.85,.25,1) forwards,
    rootGlow 6s ease-in-out 14s infinite;
}

.root .root-branch {
  fill: none;
  stroke: rgba(120, 92, 28, 0.40);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
  animation: rootGrowBranch 11s cubic-bezier(.15,.85,.25,1) forwards 3s;
}

.root .root-twig {
  fill: none;
  stroke: rgba(88, 64, 16, 0.32);
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: rootGrowTwig 8s cubic-bezier(.15,.85,.25,1) forwards 5.5s;
}

@keyframes rootGrowMain {
  0%   { stroke-dashoffset: 900; opacity: 0; }
  4%   { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes rootGrowBranch {
  0%   { stroke-dashoffset: 450; opacity: 0; }
  4%   { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes rootGrowTwig {
  0%   { stroke-dashoffset: 220; opacity: 0; }
  5%   { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes rootGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(155, 123, 42, 0.20)); }
  50%       { filter: drop-shadow(0 0 14px rgba(155, 123, 42, 0.50)); }
}

.landing-inner {
  width: var(--maxw);
  max-width: 1100px;
  text-align: center;
  padding-top: 70px;
  position: relative;
  z-index: 2;
}

.landing-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(4rem, 9vw, 7rem);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 80px rgba(155, 123, 42, 0.50),
    0 0 160px rgba(100, 75, 22, 0.25),
    0 18px 60px rgba(0,0,0,0.80);
}

.nadpis {
  font-size: clamp(2.2rem, 2.4vw + 1rem, 3.2rem);
  margin-bottom: 12px;
}

.step-dot {
  background: rgba(155, 123, 42, 0.38);
  box-shadow: 0 0 0 6px rgba(155, 123, 42, 0.10);
  border: 1px solid rgba(155, 123, 42, 0.28);
}

/* -------------------------
   Buttons
-------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(13, 11, 8, 0.28);
  color: var(--text);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 123, 42, 0.24);
}

.btn-primary {
  background: rgba(155, 123, 42, 0.20);
  border-color: rgb(155, 123, 42);
  box-shadow: 0 14px 40px rgba(155, 123, 42, 0.18);
}

.btn-ghost {
  background: rgba(74, 53, 16, 0.18);
  border-color: rgba(155, 123, 42, 0.30);
}

/* -------------------------
   Stat grid
-------------------------- */
.stat-card {
  position: relative;
  border: 1px solid rgba(155, 123, 42, 0.14);
  border-radius: 14px;
  padding: 14px;
}

/* Top-left corner accent */
.boxik::before {
  content: '';
  position: absolute;
  top: -7px;
  left: -7px;
  width: 30px;
  height: 30px;
  border-top: 1px solid rgba(155, 123, 42, 0.52);
  border-left: 1px solid rgba(155, 123, 42, 0.52);
  pointer-events: none;
  z-index: 1;
}

/* Bottom-right corner accent */
.boxik::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 30px;
  height: 30px;
  border-bottom: 1px solid rgba(155, 123, 42, 0.52);
  border-right: 1px solid rgba(155, 123, 42, 0.52);
  pointer-events: none;
  z-index: 1;
}

.stat-k {
  color: rgba(194, 184, 163, 0.88);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -------------------------
   Symbol grid
-------------------------- */
.symbol {
  border: 1px solid rgba(155, 123, 42, 0.14);
  border-radius: 14px;
  padding: 16px;
  min-height: 170px;
  position: relative;
}

/* -------------------------
   Timeline
-------------------------- */
.step {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(155, 123, 42, 0.14);
  border-radius: 14px;
  padding: 14px 14px 14px 16px;
}

/* -------------------------
   Scrying pool interaction (unique to Veles)
-------------------------- */
.pool-wrap {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.pool {
  height: min(340px, 38vh);
  border-radius: 18px;
  border: 1px solid rgba(155, 123, 42, 0.20);
  background:
    radial-gradient(circle at 50% 85%, rgba(155, 123, 42, 0.18), transparent 50%),
    radial-gradient(circle at 30% 30%, rgba(50, 40, 15, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(9, 7, 4, 0.97), rgba(25, 18, 5, 0.60));
  box-shadow: 0 30px 90px rgba(0,0,0,0.65);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.pool-ripple {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(155, 123, 42, 0.50),
    rgba(120, 90, 28, 0.22) 42%,
    rgba(60, 45, 12, 0.10) 68%,
    transparent 85%
  );
  opacity: 0;
  transition: opacity 100ms ease;
  pointer-events: none;
}

.pool.is-gazing .pool-ripple {
  opacity: 1;
}

.pool-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 60%,
    rgba(155, 123, 42, 0.24),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.pool.is-gazing .pool-glow {
  opacity: 1;
}

.pool-rune {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(3.6rem, 7vw, 5rem);
  color: rgba(212, 175, 55, 0.92);
  text-shadow:
    0 0 40px rgba(155, 123, 42, 0.90),
    0 0 80px rgba(120, 90, 28, 0.45),
    0 18px 60px rgba(0,0,0,0.75);
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  position: relative;
  z-index: 2;
}

.pool.is-gazing .pool-rune {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pool-help {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(194, 184, 163, 0.70);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.07);
  pointer-events: none;
  white-space: nowrap;
}

/* -------------------------
   Video element
-------------------------- */
.veles-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: #000;
}

/* -------------------------
NAVBAR CUSTOM
-------------------------- */
.navbar {
  background-color: rgba(13, 11, 8, 0.80);
}

.navbar.scrolled {
  background-color: rgba(13, 11, 8, 0.28);
}

.nav-links a:hover {
  background: rgba(155, 123, 42, 0.22);
}

/* Mobile nav background */
@media (max-width: 950px) {
  .nav-links {
    background-color: rgba(10, 8, 5, 0.96);
  }
}

/* -------------------------
CONTACT CUSTOM
-------------------------- */
.kontakty-dotaznik textarea:focus {
  box-shadow: 0 0 0 6px rgba(155, 123, 42, 0.16);
}

.kontakty-dotaznik button {
  background: #7A5E1E;
  color: #E9D8A6;
}

.kontakty-dotaznik button:hover {
  background: #9B7B2A;
}

.form-status {
  color: rgba(194, 184, 163, 0.85);
}

.ornament-frame {
  border: 1px solid rgba(155, 123, 42, 0.42);
  background: rgba(0, 0, 0, 0.40);
  animation: earthBorderGlow 5s ease-in-out infinite;
}

.ornament-frame::before,
.ornament-frame::after {
  border: 1px solid rgba(155, 123, 42, 0.52);
}

@keyframes earthBorderGlow {
  0% {
    box-shadow:
      0 0 10px rgba(155, 123, 42, 0.16),
      inset 0 0 10px rgba(155, 123, 42, 0.10);
  }
  50% {
    box-shadow:
      0 0 26px rgba(155, 123, 42, 0.44),
      inset 0 0 18px rgba(155, 123, 42, 0.24);
  }
  100% {
    box-shadow:
      0 0 10px rgba(155, 123, 42, 0.16),
      inset 0 0 10px rgba(155, 123, 42, 0.10);
  }
}
