/* =========================================================
   SPIRIT OF ARK — MAIN CSS
   MERGED VERSION (main.css + layout.css)
========================================================= */

/* ================= RESET ================= */

html{
  scroll-behavior:smooth;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Orbitron',sans-serif;
}

/* ================= BODY ================= */

body{
  padding-top:80px;

  background:url('/images/spirit.jpg') center/cover no-repeat fixed;
  color:#eaffff;

  min-height:100vh;

  display:flex;
  flex-direction:column;

  overflow-x:hidden;
}

/* ================= GLOBAL ================= */

.hidden{
  display:none !important;
}

section{
  padding:60px 20px;
  text-align:center;
}

/* ================= NAVBAR ================= */

.navbar{
  position:fixed;
  top:0;
  left:0;

  width:100%;
  height:70px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:0 30px;

  background:rgba(0,0,0,0.4);

  z-index:1000;
}

/* ================= HERO ================= */

.hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  text-align:center;

  padding:100px 20px 40px;
}

.hero h1{
  font-size:clamp(2rem,5vw,3rem);

  color:#00fff7;

  text-shadow:
    0 0 10px #00fff7,
    0 0 30px rgba(0,255,247,0.6);

  margin-bottom:25px;
}

/* BUTTON WRAPPER */

.hero-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;

  gap:12px;
}

/* ================= SECTION ================= */

.section{
  position:relative;

  width:90%;
  max-width:1200px;

  margin:80px auto;
  padding:60px 20px;

  text-align:center;

  background:rgba(255,255,255,0.07);

  backdrop-filter:blur(6px);

  border-radius:20px;

  border:1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 0 20px rgba(0,255,247,0.1);

  overflow:hidden;

  z-index:1;
}

/* OVERLAY */

.section::before{
  content:"";

  position:absolute;
  inset:0;

  background:rgba(0,0,0,0.45);

  backdrop-filter:blur(4px);

  border-radius:20px;

  z-index:-1;
}

/* SECTION TITLES */

.section h2{
  font-size:2.2rem;

  margin-bottom:40px;

  color:#00fff7;

  text-shadow:
    0 0 12px #00fff7,
    0 0 30px rgba(0,255,247,0.7),
    0 0 60px rgba(0,255,247,0.4);
}

/* TITLE LINE */

.section h2::after{
  content:"";

  display:block;

  width:80px;
  height:3px;

  margin:10px auto 0;

  background:#00fff7;

  box-shadow:
    0 0 10px #00fff7;
}

/* ================= GRID SYSTEM ================= */

.grid{
  display:grid;

  grid-template-columns:
    repeat(auto-fit,minmax(200px,1fr));

  gap:20px;
}

.features{
  display:grid;

  grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

  gap:30px;

  margin-top:30px;
}

.cards{
  display:grid;

  grid-template-columns:
    repeat(auto-fit,minmax(200px,1fr));

  gap:20px;

  justify-content:center;
}

/* CLUSTER GRID */

#clusterGrid{
  display:flex;
  gap:20px;

  flex-wrap:wrap;
  justify-content:center;
}

/* ================= FEATURE BOX ================= */

.feature-box{
  padding:20px;

  border-radius:14px;

  background:rgba(0,0,0,0.4);

  backdrop-filter:blur(10px);

  border:1px solid rgba(0,255,247,0.2);

  text-align:center;

  transition:0.3s;
}

.feature-box:hover{
  transform:translateY(-5px);

  box-shadow:
    0 0 15px rgba(0,255,247,0.3);
}

/* ================= FOOTER ================= */

.footer{
  width:90%;
  max-width:1200px;

  margin:80px auto;

  padding:30px;

  border-radius:20px;

  background:rgba(0,0,0,0.5);

  backdrop-filter:blur(10px);

  border:1px solid rgba(0,255,247,0.4);
}

/* FOOTER GRID */

.footer-grid{
  display:grid;

  grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

  gap:30px;
}

/* FOOTER TITLES */

.footer h3{
  color:#00fff7;

  margin-bottom:10px;
}

/* FOOTER LINKS */

.footer a{
  display:block;

  color:#eaffff;

  text-decoration:none;

  font-size:14px;

  margin:4px 0;

  transition:0.2s;
}

.footer a:hover{
  color:#00fff7;
}

/* FOOTER BOTTOM */

.footer-bottom{
  text-align:center;

  margin-top:30px;

  font-size:13px;

  opacity:0.7;
}

.footer-bottom .legal-links{
  display:flex;

  justify-content:center;
  align-items:center;

  flex-wrap:wrap;

  gap:18px;

  margin-bottom:10px;
}

/* FOOTER LEGAL LINKS */

.footer-bottom .legal-links a{
  display:inline-block;

  color:rgba(255,255,255,0.6);

  text-decoration:none;

  font-size:13px;

  position:relative;

  transition:0.3s;
}

.footer-bottom .legal-links a::after{
  content:"";

  position:absolute;

  left:0;
  bottom:-3px;

  width:0%;
  height:2px;

  background:#00fff7;

  transition:0.3s;
}

.footer-bottom .legal-links a:hover{
  color:#00fff7;

  text-shadow:
    0 0 8px #00fff7;
}

.footer-bottom .legal-links a:hover::after{
  width:100%;
}

/* COPYRIGHT */

.footer-bottom p{
  font-size:12px;

  color:#00fff7;

  opacity:0.8;

  text-shadow:
    0 0 6px rgba(0,255,247,0.6),
    0 0 12px rgba(0,255,247,0.3);
}

/* ================= LEGAL PAGE ================= */

.legal-page{
  width:90%;
  max-width:1000px;

  margin:120px auto 40px;

  padding:30px;

  border-radius:20px;

  background:rgba(0,0,0,0.5);

  backdrop-filter:blur(10px);

  border:1px solid rgba(0,255,247,0.3);

  box-shadow:
    0 0 20px rgba(0,255,247,0.2);

  text-align:left;
}

.legal-page h1{
  color:#00fff7;

  margin-bottom:20px;

  text-shadow:
    0 0 10px #00fff7,
    0 0 30px rgba(0,255,247,0.4);
}

.legal-page a{
  color:#00fff7;

  text-decoration:none;

  transition:0.2s;
}

.legal-page a:hover{
  text-shadow:
    0 0 8px #00fff7;
}

/* ================= LEGAL NAV ================= */

.legal-nav{
  position:fixed;

  top:20px;
  left:50%;

  transform:translateX(-50%);

  display:flex;

  gap:18px;

  padding:10px 20px;

  border-radius:12px;

  background:rgba(0,0,0,0.45);

  backdrop-filter:blur(10px);

  border:1px solid rgba(0,255,247,0.25);

  box-shadow:
    0 0 15px rgba(0,255,247,0.2);

  z-index:1000;
}

/* LEGAL LINKS */

.legal-nav a{
  color:rgba(255,255,255,0.7);

  text-decoration:none;

  font-size:14px;

  position:relative;

  transition:0.25s;
}

/* HOVER */

.legal-nav a:hover{
  color:#00fff7;

  text-shadow:
    0 0 8px #00fff7;
}

/* UNDERLINE */

.legal-nav a::after{
  content:"";

  position:absolute;

  bottom:-4px;
  left:0;

  width:0%;
  height:2px;

  background:#00fff7;

  transition:0.3s;
}

.legal-nav a:hover::after{
  width:100%;
}

/* ACTIVE */

.legal-nav a.active{
  color:#00fff7;

  font-weight:bold;

  animation:activeGlow 2s infinite alternate;
}

@keyframes activeGlow{
  from{
    text-shadow:0 0 5px #00fff7;
  }

  to{
    text-shadow:0 0 15px #00fff7;
  }
}

/* ================= BACK BUTTON ================= */

.back-btn{
  display:inline-block;

  margin-bottom:20px;

  padding:8px 14px;

  border-radius:10px;

  color:#00fff7;

  text-decoration:none;

  border:1px solid rgba(0,255,247,0.4);

  background:rgba(0,255,247,0.1);

  transition:0.25s;
}

.back-btn:hover{
  background:rgba(0,255,247,0.25);

  box-shadow:
    0 0 10px rgba(0,255,247,0.5);
}

/* ================= FADE EFFECT ================= */

.fade{
  opacity:0;

  transform:translateY(30px);

  transition:all 0.6s ease;
}

.fade.show{
  opacity:1;

  transform:translateY(0);
}

/* ================= TOAST ================= */

#toast{
  position:fixed;

  top:100px;
  left:50%;

  transform:translateX(-50%);

  padding:16px 30px;

  background:#000;

  color:#ffffff !important;

  font-size:16px !important;

  font-weight:bold;

  border-radius:12px;

  border:2px solid #00fff7;

  z-index:999999;

  opacity:0;

  transition:0.3s;
}

/* SHOW */

#toast.show{
  opacity:1;
}

/* TYPES */

#toast.success{
  color:#00ff88 !important;

  border-color:#00ff88;
}

#toast.error{
  color:#ff4444 !important;

  border-color:#ff4444;
}

#toast *{
  all:unset;

  color:white !important;
}

/* ================= MOBILE ================= */

@media (max-width:768px){

  .hero-buttons{
    flex-direction:column;
  }

  .section{
    width:95%;

    padding:30px 15px;
  }

  .legal-nav{
    flex-wrap:wrap;

    width:90%;

    justify-content:center;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }
}