/* perun_microsite.css – Perun-specific styles.
   Requires gods.css (loaded first). */

/* -------------------------
Perun colour tokens
-------------------------- */
:root{
  --bg: #080b0e;
  --thunder: rgb(255, 254, 226);
}

/* -------------------------
   Background layers
-------------------------- */
.bg-gradient{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 5%, rgba(147,197,253,0.10), transparent 45%),
    radial-gradient(circle at 20% 50%, rgba(160, 204, 255, 0.18), transparent 50%),
    linear-gradient(180deg, #060a0d, #050809);
}

.bg-fog{
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(circle at 70% 30%, rgba(147,197,253,0.08), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(212,175,55,0.05), transparent 60%);
  filter: blur(22px);
  opacity: 0.80;
  animation: fogDrift 22s ease-in-out infinite;
}

@keyframes fogDrift{
  0%,100%{ transform: translate3d(0,0,0) scale(1.02); }
  50%{ transform: translate3d(2%, -1%, 0) scale(1.06); }
}

.bg-sparks{
  position:absolute;
  inset:0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.bg-vignette{
  position:absolute;
  inset:0;
  background: radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.6) 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(8, 11, 14, 0.45);
  border: 1px solid rgba(147,197,253,0.3);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
}

.rune-chip.subtle{
  letter-spacing: 0.08em;
  color: var(--muted);
  border-color: rgba(147,197,253,0.18);
}

/* -------------------------
   Column page layout
-------------------------- */
.perun-page{
  position: relative;
  z-index: 5;
  /* padding-top: var(--nav-h); */
}

.landing{
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 0 0 40px 0;
  padding-top: var(--nav-h);
  overflow: hidden;
  background-image: url("../../../img/ui/perun-cloud.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Lightning SVGs */
.lightning{
  position: absolute;
  pointer-events: none;
}

.lightning.left{
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  transform-origin: top left;
}

.lightning.right{
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  transform-origin: top right;
}

.lightning.top{
  top: 5%;
  left: 10%;
  width: 80%;
}

.lightning path{
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: strike 8s infinite 2s;
}

.lightning .bolt{
  stroke: var(--thunder);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 14px rgba(209, 230, 255, 0.9));
}

.lightning .branch{
  stroke: var(--thunder);
  stroke-width: 1;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(209, 230, 255, 0.6));
  animation-delay: 2.02s, 4.02s;
  animation-timing-function: linear, steps(2);
}

.lightning .branch:nth-child(2){
  animation-delay: 2.03s, 4.03s;
}
.lightning .branch:nth-child(3){
  animation-delay: 2.05s, 4.05s;
}

@keyframes strike{
  0%   { stroke-dashoffset: 1200; opacity: 0; }
  1%   { opacity: 1; }
  2%   { stroke-dashoffset: 0; }
  4%   { opacity: 0; }
  100% { stroke-dashoffset: 1200; opacity: 0; }
}

.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(147,197,253,0.55), 0 0 160px rgba(100,160,240,0.28), 0 18px 60px rgba(0,0,0,0.70);
}

.nadpis{
  font-size: clamp(2.2rem, 2.4vw + 1rem, 3.2rem);
  margin-bottom: 12px;
}

.step-dot {
  background: rgba(147, 197, 253, 0.35);
  box-shadow: 0 0 0 6px rgba(147,197,253, 0.10);
  border: 1px solid rgba(147,197,253,0.25);
}

/* -------------------------
   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.08);
  background: rgba(8, 11, 14, 0.25);
  color: var(--text);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(147,197,253,0.18);
}

.btn-primary{
  background: rgba(147,197,253,0.22);
  border-color: rgb(147, 197, 253);
  box-shadow: 0 14px 40px rgba(147,197,253,0.18);
}

.btn-ghost{
  background: rgba(147,197,253,0.10);
  border-color: rgba(147,197,253,0.18);
}

/* -------------------------
Stat grid
-------------------------- */
.stat-card{
  border: 1px solid rgba(185, 218, 255, 0.08);
  border-radius: 14px;
  position: relative;
  padding: 14px;
}

/* Top-left corner accent */
.boxik::before {
  content: '';
  position: absolute;
  top: -7px;
  left: -7px;
  width: 30px;
  height: 30px;
  border-top: 1px solid rgba(147, 197, 253, 0.55);
  border-left: 1px solid rgba(147, 197, 253, 0.55);
  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(147, 197, 253, 0.55);
  border-right: 1px solid rgba(147, 197, 253, 0.55);
  pointer-events: none;
  z-index: 1;
}

.stat-k{
  color: rgba(147,197,253,0.85);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -------------------------
   Symbol grid
-------------------------- */
.symbol{
  border: 1px solid rgba(185, 218, 255, 0.08);
  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(185, 218, 255, 0.08);
  border-radius: 14px;
  padding: 14px 14px 14px 16px;
}

/* -------------------------
   Thunder interaction
-------------------------- */
.thunder-wrap{
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.thunder-sky{
  height: min(340px, 38vh);
  border-radius: 18px;
  border: 1px solid rgba(147,197,253,0.22);
    background:
    radial-gradient(circle at 50% 80%, rgba(147,197,253,0.18), transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(80,110,180,0.08), transparent 45%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.95), rgba(15, 25, 50, 0.50));
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.thunder-flash{
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(64, 156, 255, 0.65),
    rgba(61, 152, 255, 0.2) 55%,
    rgba(100,160,240,0.12) 75%,
    transparent 88%
  );
  opacity: 0;
  transition: opacity 80ms ease;
  pointer-events: none;
}

.thunder-sky.is-struck .thunder-flash{
  opacity: 1;
}

.thunder-rune{
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(3.6rem, 7vw, 5rem);
  color: rgba(147,197,253,0.92);
  text-shadow: 0 0 40px rgba(147,197,253,0.6), 0 18px 60px rgba(0,0,0,0.65);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  position: relative;
  z-index: 2;
}

.thunder-sky.is-struck .thunder-rune{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.thunder-help{
  position:absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(233,224,212,0.75);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.thunder-caption{
  color: rgba(233,224,212,0.78);
}

/* -------------------------
Video element
-------------------------- */
.perun-video{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: #000;
}

/* -------------------------
NAVBAR CUSTOM
-------------------------- */
.navbar {
  background-color: rgba(16, 18, 22, 0.6);
}

.navbar.scrolled {
  background-color: rgba(16, 18, 22, 0.25);
}

.nav-links a:hover{
  background: rgba(147, 197, 253, 0.3);
}

/* Mobile nav background */
@media (max-width: 950px){
  .nav-links{
    background-color: rgba(8, 11, 14, 0.88);
  }
}

/* -------------------------
CONTACT CUSTOM
-------------------------- */
.kontakty-dotaznik textarea:focus{
  box-shadow: 0 0 0 6px rgba(147,197,253,0.16);
}

.kontakty-dotaznik button{
  background: #93c5fd;
  color: #0a1628;
}

.kontakty-dotaznik button:hover{
  background: #bfdbfe;
}

.form-status{
  color: rgba(147,197,253,0.85);
}

.ornament-frame {
    border: 1px solid rgba(147,197,253,0.45);
    background: rgba(0, 0, 0, 0.35);
    animation: thunderBorderGlow 4.5s linear infinite;
}

.ornament-frame::before,
.ornament-frame::after {
    border: 1px solid rgba(147,197,253,0.55);
}

@keyframes thunderBorderGlow {
    0% {
        box-shadow:
            0 0 10px rgba(147,197,253,0.20),
            inset 0 0 10px rgba(147,197,253,0.15);
    }
    50% {
        box-shadow:
            0 0 20px rgba(147,197,253,0.50),
            inset 0 0 15px rgba(147,197,253,0.30);
    }
    100% {
        box-shadow:
            0 0 10px rgba(147,197,253,0.20),
            inset 0 0 10px rgba(147,197,253,0.15);
    }
}