/* =========================================
   RANCER EVOLUTION — MONAD PURPLE GLOW THEME
   (deep violet base + cyan/purple glow)
========================================= */

:root{
  --bg: radial-gradient(circle at 10% 0%, #1a0035 0%, #260144 45%, #02010a 100%);
  --ink:#f4f5ff;
  --muted:#a0a4c7;

  /* monad core */
  --accent:#8b5cf6;    /* purple core */
  --accent2:#22d3ee;   /* cyan glow */

  --border:rgba(139, 92, 246, .55);

  --header-h:64px;
  --footer-h:56px;
  --radius:16px;

  --shadow-1:0 16px 40px rgba(5,0,20,.85);
}

*{box-sizing:border-box;}
html,body{height:100%; scroll-behavior:smooth;}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  background-attachment:fixed;
  min-height:100vh;
}

/* =========================================
   HEADER
========================================= */

header.site-header{
  position:fixed;
  inset:0 0 auto 0;
  height:var(--header-h);
  z-index:1000;
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 16px 10px 18px;
  border-bottom:1px solid rgba(167,139,250,.7);
  backdrop-filter:saturate(160%) blur(16px);
  box-shadow:0 16px 40px rgba(8,0,20,.9);
}
header.site-header::after{
  content:"";
  position:absolute;
  inset:-40px -80px auto auto;
  width:210px; height:210px;
  background:
    radial-gradient(circle, rgba(34,211,238,.35) 0%, rgba(0,0,0,0) 65%);
  pointer-events:none;
  filter:blur(6px);
  z-index:0;
}

.brand{
  position:relative;
  display:flex;
  align-items:center;
  gap:.5rem;
  font-weight:700;
  letter-spacing:.2px;
  text-transform:uppercase;
  z-index:2;
}
.brand::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: url("assets/rancer-logo.jpg") center/cover no-repeat;
  border: 1px solid rgba(174,203,255,.5);
  box-shadow:
    0 0 15px rgba(139,92,246,.8),
    0 0 30px rgba(14,165,233,.35),
    inset 0 0 8px rgba(255,255,255,.08);
  flex-shrink: 0;
}

/* soft pulsing glow around logo */
@keyframes brandPulse {
  0%,100% { filter:drop-shadow(0 0 16px rgba(34,211,238,.9)); }
  50%     { filter:drop-shadow(0 0 26px rgba(139,92,246,1)); }
}
.brand::before{ animation:brandPulse 3.4s ease-in-out infinite; }

.brand span{ color:var(--accent2); }

/* NAV DESKTOP */
nav.site-nav{
  margin-left:auto;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  z-index:2;
}
nav.site-nav a{
  color:var(--muted);
  text-decoration:none;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:.78rem;
  transition:all .18s ease-out;
}
nav.site-nav a:hover{
  color:var(--ink);
  background:radial-gradient(circle at 10% 20%, rgba(167,139,250,.2), transparent 70%);
  border-color:rgba(167,139,250,.7);
  box-shadow:0 9px 24px rgba(88,28,135,.55);
}
nav.site-nav a.active{
  color:#020617;
  background:linear-gradient(120deg, var(--accent) 0%, var(--accent2) 70%);
  border-color:rgba(224,231,255,1);
  box-shadow:0 10px 28px rgba(88,28,135,.7);
}

/* HAMBURGER (mobile) */
.hamburger{
  display:none;
  margin-left:auto;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(167,139,250,.8);
  background:radial-gradient(circle, rgba(139,92,246,.45), rgba(20,4,50,.98));
  cursor:pointer;
  place-items:center;
  box-shadow:0 18px 35px rgba(8,0,20,.75);
  z-index:2;
}
.hamburger .bars{
  width:22px; height:2px;
  background:var(--ink);
  position:relative;
  transition:.18s;
}
.hamburger .bars::before,
.hamburger .bars::after{
  content:"";
  width:22px; height:2px;
  background:var(--ink);
  position:absolute;
  transition:.2s;
}
.hamburger .bars::before{ top:-7px; }
.hamburger .bars::after{ top:7px; }
.hamburger.active .bars{ background:transparent; }
.hamburger.active .bars::before{ top:0; transform:rotate(45deg); }
.hamburger.active .bars::after{ top:0; transform:rotate(-45deg); }

/* DROPDOWN MENU (mobile) */
.menu-panel{
  position:fixed;
  top:var(--header-h);
  right:16px;
  width:230px;
  background:
    radial-gradient(circle at 20% 0%, rgba(34,211,238,.35), transparent 65%),
    radial-gradient(circle at 90% 0%, rgba(139,92,246,.4), transparent 80%),
    linear-gradient(180deg, rgba(15,18,42,.98), rgba(18,5,48,.98));
  border:1px solid rgba(167,139,250,.8);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 22px 70px rgba(5,0,20,.95);
  max-height:0;
  opacity:0;
  transform:translateY(-10px);
  transition:max-height .3s ease, opacity .25s ease, transform .25s ease;
  backdrop-filter:blur(16px);
  z-index:1200;
}
.menu-panel.open{
  max-height:420px;
  opacity:1;
  transform:translateY(0);
}
.menu-panel::before{
  content:"Navigation";
  display:block;
  padding:10px 14px 6px;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(226,232,255,.9);
  border-bottom:1px solid rgba(167,139,250,.55);
}
.menu-list{
  list-style:none;
  margin:0;
  padding:0;
}
.menu-list li{
  border-bottom:1px solid rgba(56,21,112,.9);
}
.menu-list a{
  display:block;
  padding:10px 14px;
  font-size:.8rem;
  text-decoration:none;
  color:var(--ink);
  transition:.15s;
}
.menu-list a:hover{
  background:radial-gradient(circle at 10% 20%, rgba(34,211,238,.22), transparent 70%);
}

/* =========================================
   CONSTELLATION BACKGROUND
========================================= */

#constellationCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
}

/* =========================================
   MAIN WRAPPER & SECTION
========================================= */

main#app{
  min-height:100%;
  max-width:1100px;
  margin:0 auto;
  padding:calc(var(--header-h) + 20px) 18px calc(var(--footer-h) + 24px);
}

section{
  position:relative;
  padding:56px 0;
  z-index:1;
}

.wrap{
  position:relative;
  max-width:1100px;
  margin-inline:auto;
  padding:26px 18px 32px;
  border-radius:20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(139,92,246,.35), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(34,211,238,.24), transparent 60%),
    rgba(18,5,48,.95);
  border:1px solid rgba(139,92,246,.8);
  backdrop-filter:blur(12px);
  box-shadow:var(--shadow-1);
}

section h2,
section h3{
  margin:0 0 14px;
  font-size:22px;
  color:var(--accent);
}
section p.lead{
  margin:0 0 18px;
  color:var(--muted);
  max-width:720px;
}

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

.hero{
  position:relative;
  padding:80px 0 64px;
  overflow:hidden;
}
.hero h2{
  font-size:clamp(28px,4vw,42px);
  margin-bottom:10px;
  color:var(--ink);
  text-shadow:0 0 22px rgba(139,92,246,.8);
}
.hero p{
  margin:0 0 20px;
  max-width:720px;
  color:var(--muted);
  font-size:1.02rem;
}

/* galaxy-ish glows */
.hero::before,
.hero::after{
  content:"";
  position:absolute;
  border-radius:999px;
  filter:blur(40px);
  opacity:.6;
  pointer-events:none;
}
.hero::before{
  width:320px; height:260px;
  top:-80px; right:-40px;
  background:radial-gradient(circle, rgba(139,92,246,.98) 0%, rgba(18,5,48,0) 70%);
}
.hero::after{
  width:260px; height:230px;
  bottom:-90px; left:-40px;
  background:radial-gradient(circle, rgba(34,211,238,.9) 0%, rgba(18,5,48,0) 70%);
}

/* Buttons */
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.btn{
  display:inline-block;
  padding:11px 18px;
  border-radius:999px;
  border:1px solid rgba(167,139,250,.8);
  background:linear-gradient(120deg, #8b5cf6, #22d3ee);
  color:#f9fafb;
  font-weight:600;
  font-size:.9rem;
  box-shadow:0 8px 24px rgba(18,5,48,.95);
  transition:all .22s ease;
}
.btn:hover{
  transform:translateY(-2px);
  background:linear-gradient(120deg, #a855f7, #22d3ee);
  box-shadow:0 12px 34px rgba(88,28,135,.95);
}
.btn.ghost{
  background:rgba(15,6,40,.82);
  color:var(--accent2);
  border-color:rgba(34,211,238,.8);
}

.section-title {
  margin-top: 40px;
}

.section-title:first-child {
  margin-top: 0; /* title pertama tidak diberi jarak */
}

/* =========================================
   GRID & ROAD
========================================= */

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
@media (max-width:900px){
  .grid-2{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .grid-3{ grid-template-columns:1fr; }
}

/* Roadmap */
.road{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
.step{
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(139,92,246,.9);
  background:
    radial-gradient(circle at 0% 0%, rgba(167,139,250,.42), transparent 60%),
    linear-gradient(180deg, rgba(18,5,48,.98), rgba(18,5,48,.95));
  box-shadow:0 8px 22px rgba(10,3,30,.96);
}
.step h4{
  margin:0 0 6px;
  color:var(--accent2);
  font-size:.95rem;
}
.step p,
.step ul{
  margin:0;
  color:var(--muted);
}
.step ul{ margin-top:6px; padding-left:18px; }

@media (max-width:900px){
  .road{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .road{ grid-template-columns:1fr; }
}

/* =========================================
   CARD (general)
========================================= */

.card{
  position:relative;
  border-radius:16px;
  padding:16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(167,139,250,.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34,211,238,.2), transparent 65%),
    linear-gradient(180deg, rgba(18,5,48,.98), rgba(18,5,48,.94));
  border:1px solid rgba(191, 219, 254, .9);
  box-shadow:
    0 14px 32px rgba(10,3,30,1),
    inset 0 1px 0 rgba(248,250,252,.1);
  backdrop-filter:blur(8px);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border .18s ease;
}
.card::after{
  content:"";
  position:absolute;
  top:-140%;
  left:-50%;
  width:200%;
  height:150%;
  background:linear-gradient(130deg,
    rgba(255,255,255,0) 0%,
    rgba(191,219,254,.35) 45%,
    rgba(255,255,255,0) 80%);
  transform:rotate(3deg);
  animation:cardScan 10s linear infinite;
  pointer-events:none;
  opacity:0;
}
@keyframes cardScan{
  0%{ transform:translateY(0) rotate(3deg); opacity:0;}
  15%{ opacity:.8; }
  40%{ transform:translateY(140%) rotate(3deg); opacity:0;}
  100%{ opacity:0; }
}
.card:hover{
  transform:translateY(-4px);
  border-color:rgba(224,231,255,.98);
  box-shadow:0 22px 50px rgba(10,3,30,1);
}

/* =========================================
   TOAST
========================================= */
.toast{
  position:fixed;
  right:20px;
  bottom:calc(var(--footer-h) + 16px);
  padding:10px 12px 10px 40px;
  border-radius:14px;
  background:radial-gradient(circle at 12px 12px,
    rgba(167,139,250,.98),
    rgba(18,5,48,.98) 60%);
  border:1px solid rgba(224,231,255,.95);
  color:var(--ink);
  font-size:.7rem;
  box-shadow:0 14px 40px rgba(10,3,30,1);
  display:none;
}
.toast.show{ display:block; }

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

footer.site-footer{
  position:fixed;
  inset:auto 0 0 0;
  height:var(--footer-h);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  background:linear-gradient(0deg, #1a0035f2, #02010a);
  border-top:1px solid rgba(88,28,135,.9);
  color:var(--muted);
  font-size:.7rem;
  backdrop-filter:blur(12px);
  z-index:40;
}

/* =========================================
   RESPONSIVE TOGGLES
========================================= */

@media (max-width:768px){
  nav.site-nav{ display:none; }
  .hamburger{ display:grid; }
  main#app{
    padding:calc(var(--header-h) + 14px) 14px calc(var(--footer-h) + 18px);
  }
}
@media (max-width:600px){
  .menu-panel{ width:200px; right:10px; }
}
@media (max-width:540px){
  .menu-panel{ width:220px; right:10px; }
}