/* =========================================================
   ZAGSZ — design tokens
   Color:  void #060a12, storm panel #0d1526, ice #eef3f8,
           steel #7c8ba1, thunder(accent) #4fd8ff, ember(rare) #ffb454
   Type:   Cinzel (display, carved/runic) + Rajdhani (body, angular)
   ========================================================= */

:root{
  --void: #060a12;
  --storm: #0d1526;
  --storm-2: #121e36;
  --ice: #eef3f8;
  --steel: #7c8ba1;
  --thunder: #4fd8ff;
  --thunder-dim: #2a7d99;
  --ember: #ffb454;
  --line: rgba(238,243,248,0.09);

  --display: 'Cinzel', serif;
  --body: 'Rajdhani', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--void);
  color: var(--ice);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: var(--display);
  font-weight: 700;
  color: var(--ice);
  margin: 0;
  letter-spacing: 0.01em;
}

p{ margin: 0; }
a{ color: inherit; }

::selection{ background: var(--thunder); color: var(--void); }

:focus-visible{
  outline: 2px solid var(--thunder);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- lightning flash overlay ---------- */
#lightning-flash{
  position: fixed; inset: 0;
  background: #cfeeff;
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  mix-blend-mode: screen;
}
#lightning-flash.strike{
  animation: flash 260ms ease-out;
}
@keyframes flash{
  0%{ opacity: 0; }
  8%{ opacity: 0.55; }
  20%{ opacity: 0.06; }
  35%{ opacity: 0.35; }
  100%{ opacity: 0; }
}

/* ---------- topbar ---------- */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 44px;
  mix-blend-mode: normal;
}
.topbar__mark{
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ice);
}
.topbar__nav{
  display: flex;
  gap: 34px;
}
.topbar__nav a{
  text-decoration: none;
  color: var(--steel);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}
.topbar__nav a:hover{ color: var(--thunder); }
.topbar__domain{
  text-decoration: none;
  font-size: 15px;
  color: var(--steel);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 2px;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease;
}
.topbar__domain:hover{ border-color: var(--thunder-dim); color: var(--thunder); }

@media (max-width: 720px){
  .topbar__nav{ display: none; }
  .topbar{ padding: 20px 22px; }
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--void);
}
#storm-canvas{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero__scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,10,18,0.15) 0%, rgba(6,10,18,0.15) 55%, rgba(6,10,18,0.95) 100%),
    linear-gradient(90deg, rgba(6,10,18,0.55) 0%, rgba(6,10,18,0.05) 45%);
  pointer-events: none;
}
.hero__content{
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 44px 120px;
  max-width: 760px;
}
.hero__eyebrow{
  color: var(--thunder);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.hero__title{
  font-size: clamp(58px, 11vw, 128px);
  line-height: 0.92;
  color: var(--ice);
  text-shadow: 0 0 60px rgba(79,216,255,0.25);
}
.hero__title-bolt{
  display: inline-block;
  color: var(--thunder);
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 6px;
}
.hero__tagline{
  margin-top: 26px;
  font-size: 21px;
  color: var(--steel);
  max-width: 540px;
  font-weight: 500;
}
.hero__tagline em{
  color: var(--ice);
  font-style: normal;
  font-weight: 700;
}
.hero__actions{
  display: flex;
  gap: 16px;
  margin-top: 40px;
}
.btn{
  display: inline-block;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 15px 28px;
  border-radius: 2px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn--primary{
  background: var(--thunder);
  color: var(--void);
  border: 1px solid var(--thunder);
}
.btn--primary:hover{ transform: translateY(-2px); background: #7fe4ff; }
.btn--ghost{
  color: var(--ice);
  border: 1px solid var(--line);
}
.btn--ghost:hover{ border-color: var(--thunder-dim); color: var(--thunder); transform: translateY(-2px); }

.hero__scroll{
  position: absolute;
  bottom: 34px; left: 44px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel);
}
.hero__scroll span{
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--thunder), transparent);
}
.hero__scroll p{ font-size: 13px; letter-spacing: 0.08em; }

@media (max-width: 720px){
  .hero__content{ padding: 0 22px 90px; }
  .hero__scroll{ left: 22px; }
}

/* ---------- story ---------- */
.story{
  background: var(--void);
  padding: 140px 44px 120px;
}
.story__rule{
  max-width: 1180px;
  margin: 0 auto 64px;
  height: 1px;
  background: var(--line);
}
.story__grid{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.story__lede h2{
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.28;
}
.story__body p{
  color: var(--steel);
  font-size: 18px;
  max-width: 62ch;
  margin-bottom: 20px;
}
.story__body p:last-of-type{ margin-bottom: 28px; }
.text-link{
  display: inline-block;
  color: var(--thunder);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid var(--thunder-dim);
  padding-bottom: 3px;
}
.text-link:hover{ color: #9be9ff; }

@media (max-width: 860px){
  .story{ padding: 90px 22px; }
  .story__grid{ grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- pillars ---------- */
.pillars{
  background: var(--storm);
  padding: 120px 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars__head{
  max-width: 1180px;
  margin: 0 auto 64px;
}
.pillars__head h2{
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 14px;
}
.pillars__head p{
  color: var(--steel);
  font-size: 18px;
}
.pillars__grid{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar{
  background: var(--storm);
  padding: 40px 30px;
  transition: background 200ms ease;
}
.pillar:hover{ background: var(--storm-2); }
.pillar__glyph{
  width: 40px; height: 40px;
  color: var(--thunder);
  margin-bottom: 24px;
}
.pillar h3{
  font-size: 21px;
  margin-bottom: 12px;
}
.pillar p{
  color: var(--steel);
  font-size: 16px;
}

@media (max-width: 980px){
  .pillars__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .pillars{ padding: 80px 22px; }
  .pillars__grid{ grid-template-columns: 1fr; }
}

/* ---------- pack (stats) ---------- */
.pack{
  background: var(--void);
  padding: 130px 44px;
  text-align: center;
}
.pack__inner{
  max-width: 900px;
  margin: 0 auto;
}
.pack h2{
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.3;
  margin-bottom: 70px;
}
.pack__stats{
  display: flex;
  justify-content: center;
  gap: 90px;
  flex-wrap: wrap;
}
.stat{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat__num{
  font-family: var(--display);
  font-size: 64px;
  font-weight: 700;
  color: var(--thunder);
  line-height: 1;
  text-shadow: 0 0 40px rgba(79,216,255,0.3);
}
.stat__label{
  margin-top: 16px;
  color: var(--steel);
  font-size: 15px;
  max-width: 16ch;
  text-align: center;
}

@media (max-width: 620px){
  .pack{ padding: 90px 22px; }
  .pack__stats{ gap: 50px; }
}

/* ---------- join ---------- */
.join{
  background: linear-gradient(180deg, var(--storm) 0%, var(--void) 100%);
  padding: 150px 44px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.join__eyebrow{
  color: var(--thunder);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.join h2{
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.2;
}
.join h2 a{
  color: var(--thunder);
  text-decoration: none;
  border-bottom: 2px solid var(--thunder-dim);
}
.join h2 a:hover{ border-color: var(--thunder); }
.join__note{
  display: block;
  margin-top: 30px;
  color: var(--steel);
  font-size: 14px;
}

@media (max-width: 620px){
  .join{ padding: 100px 22px; }
}

/* ---------- footer ---------- */
.site-footer{
  background: var(--void);
  border-top: 1px solid var(--line);
  padding: 26px 44px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--steel);
  font-size: 13px;
}

@media (max-width: 620px){
  .site-footer{ padding: 20px 22px; flex-direction: column; }
}
