/* style.css - NOVA Roleplay (flat structure) */
:root{
  --bg0:#070812;
  --bg1:#0a1026;
  --text:#eaf0ff;
  --muted:#a8b3d6;
  --aqua:#61f6ff;
  --violet:#b266ff;
  --pink:#ff4fd8;
  --glow: 0 0 18px rgba(97,246,255,.45);
  --glow-strong: 0 0 32px rgba(97,246,255,.65);
  --radius: 18px;
  --max: 1120px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --border: 1px solid rgba(255,255,255,.08);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% -10%, rgba(97,246,255,.18), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(178,102,255,.16), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1) 45%, #06060d);
  overflow-x:hidden;
}

/* Global background logo watermark */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: url("assets/novalogo.png") center / 55% no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all content stays above watermark */
body > *{
  position: relative;
  z-index: 1;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.skip-link{
  position:absolute; left:-999px; top:12px;
  background:#fff; color:#000; padding:10px 12px; border-radius:10px; z-index:9999;
}
.skip-link:focus{ left:12px; }

.container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }
.section{ padding:56px 0; position:relative; }
.section-title{
  font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem);
  letter-spacing:.5px;
  margin:0 0 22px;
}
.kicker{ color:var(--muted); margin: 8px 0 0; }

header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6,7,14,.78), rgba(6,7,14,.35));
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand .logo{
  width:44px; height:44px; border-radius:14px; overflow:hidden;
  box-shadow: var(--glow);
  border: 1px solid rgba(255,255,255,.12);
  transform: translateZ(0);
}
.brand .brand-text{
  display:flex; flex-direction:column; line-height:1.1;
}
.brand .brand-text strong{ font-size: 0.98rem; letter-spacing:.4px; }
.brand .brand-text span{ font-size: 0.82rem; color: var(--muted); }

.navlinks{ display:flex; align-items:center; gap:18px; }
.navlinks a{
  font-size:.92rem; color:rgba(234,240,255,.86);
  padding:8px 10px; border-radius:12px;
  transition: transform .2s ease, background .2s ease;
}
.navlinks a:hover{ background: rgba(255,255,255,.06); transform: translateY(-1px); }

.badges{ display:flex; gap:8px; }
.badge{
  font-size: .72rem;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.badge.new{ box-shadow: 0 0 0 1px rgba(97,246,255,.12), 0 0 24px rgba(97,246,255,.18); }
.badge.whitelisted{ box-shadow: 0 0 0 1px rgba(178,102,255,.14), 0 0 24px rgba(178,102,255,.16); }

.hero{
  min-height: calc(100vh - 70px);
  display:grid;
  place-items:center;
  padding: 56px 0 64px;
  position:relative;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:-40px;
  background:
    radial-gradient(900px 500px at 15% 15%, rgba(97,246,255,.22), transparent 60%),
    radial-gradient(850px 520px at 85% 15%, rgba(255,79,216,.18), transparent 60%),
    radial-gradient(900px 620px at 55% 80%, rgba(178,102,255,.22), transparent 60%),
    conic-gradient(from 210deg at 50% 50%, rgba(97,246,255,.08), rgba(255,79,216,.06), rgba(178,102,255,.08), rgba(97,246,255,.08));
  opacity:.9;
  animation: gradientFlow 12s ease-in-out infinite;
}
.hero canvas#particles{
  position:absolute; inset:0;
  width:100%; height:100%;
  display:block;
  opacity:.8;
}

.hero-inner{
  position:relative;
  width:min(var(--max), calc(100% - 40px));
  display:grid;
  gap: 34px;
  align-items:center;
}
@media (min-width: 860px){
  .hero-inner{ grid-template-columns: 1.1fr .9fr; }
}

.card{
  background: linear-gradient(180deg, rgba(18, 22, 45, 0.55), rgba(10, 12, 26, 0.42));
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 46px rgba(0,0,0,.38);
  backdrop-filter: blur(12px);
  padding: 18px;
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
}
.glow-border{ position:relative; }
.glow-border::after{
  content:"";
  position:absolute; inset:-1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(97,246,255,.30), rgba(178,102,255,.22), rgba(255,79,216,.22));
  opacity:.22;
  filter: blur(10px);
  pointer-events:none;
}
.glow-text{
  text-shadow: 0 0 22px rgba(97,246,255,.25), 0 0 46px rgba(178,102,255,.12);
}

.hero-card{ padding: 26px; }
.hero-title{
  margin: 0 0 10px;
  font-size: clamp(2rem, 1.2rem + 2.7vw, 3.35rem);
  letter-spacing: .4px;
  line-height:1.06;
}
.tagline{
  margin: 0 0 18px;
  color: rgba(234,240,255,.9);
  font-weight: 700;
  font-size: clamp(1.02rem, .92rem + .6vw, 1.25rem);
}
.hero-desc{
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height:1.6;
  max-width: 60ch;
}

.cta-row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top: 8px; }
.btn{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  border-radius: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 800;
  letter-spacing: .3px;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  user-select:none;
  overflow:hidden;
}
.btn:focus{ outline: none; box-shadow: 0 0 0 4px rgba(97,246,255,.18); }
.btn:hover{ transform: translateY(-2px); background: rgba(255,255,255,.08); }
.btn:active{ transform: translateY(0px) scale(.99); }
.btn.primary{
  background: linear-gradient(135deg, rgba(97,246,255,.18), rgba(178,102,255,.14));
  box-shadow: var(--glow);
}
.btn.primary:hover{ box-shadow: var(--glow-strong); }
.btn.discord{
  background: linear-gradient(135deg, rgba(88,101,242,.28), rgba(97,246,255,.10));
  border-color: rgba(88,101,242,.32);
}
.btn.discord:hover{ box-shadow: 0 0 22px rgba(88,101,242,.35); }
.btn .sub{ font-size:.78rem; font-weight:700; color: rgba(234,240,255,.78); }
.btn .label{ display:flex; flex-direction:column; align-items:flex-start; line-height:1.1; }
.btn svg{ width:20px; height:20px; flex:0 0 20px; opacity:.95; }

.scroll-indicator{
  position:absolute; left:50%; bottom:1px; transform: translateX(-50%);
  display:flex; flex-direction:column; gap:8px; align-items:center;
  color: rgba(234,240,255,.75);
  font-size: .8rem;
  user-select:none;
}
.scroll-indicator .mouse{
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,.22);
  border-radius: 999px;
  position:relative;
  box-shadow: 0 0 18px rgba(97,246,255,.12);
}
.scroll-indicator .dot{
  width:6px; height:6px; border-radius: 999px;
  background: rgba(97,246,255,.85);
  position:absolute; left:50%; top:10px; transform:translateX(-50%);
  animation: scrollDot 1.2s ease-in-out infinite;
}

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

.stats .card{ padding:22px; }
.stat{ display:flex; flex-direction:column; gap:8px; }
.stat .value{
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: .5px;
  text-shadow: 0 0 18px rgba(97,246,255,.14);
}
.stat .label{ color: rgba(234,240,255,.85); font-weight: 750; }
.stat .meta{ color: var(--muted); font-size:.86rem; }

.features .card{ padding:20px; transition: transform .2s ease, box-shadow .2s ease; }
.features .card:hover{ transform: translateY(-4px); box-shadow: 0 22px 70px rgba(0,0,0,.5); }

.icon{
  width:44px; height:44px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 20px rgba(97,246,255,.10);
  margin-bottom: 12px;
}
.icon svg{ width:22px; height:22px; }

.blog-feed .post{ display:flex; flex-direction:column; gap:10px; }
.post .top{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:baseline; }
.post .date{ color: var(--muted); font-size:.86rem; }
.post .summary{ color: var(--muted); line-height:1.6; margin:0; }
.post a.read-more{
  align-self:flex-start;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.post a.read-more:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(97,246,255,.12);
  background: rgba(255,255,255,.08);
}

.footer{
  padding: 34px 0 48px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  font-size: .92rem;
}
.footer .row{
  display:flex; gap:14px; justify-content:space-between; flex-wrap:wrap;
  align-items:center;
}
.footer .mini{ display:flex; align-items:center; gap:10px; }
.footer .mini img{ width:34px; height:34px; border-radius: 12px; box-shadow: var(--glow); }

hr.sep{
  border:none;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  margin: 20px 0 0;
}

/* Scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible{ opacity:1; transform: translateY(0); }

/* Logo entrance + pulse */
.logo-anim{ animation: logoEnter .9s ease both, glowPulse 2.2s ease-in-out infinite; }

@keyframes gradientFlow{
  0%{ transform: translate3d(0,0,0) scale(1.05) rotate(0deg); filter: saturate(1); }
  50%{ transform: translate3d(-1.2%, -1.2%,0) scale(1.08) rotate(1.2deg); filter: saturate(1.15); }
  100%{ transform: translate3d(0,0,0) scale(1.05) rotate(0deg); filter: saturate(1); }
}
@keyframes scrollDot{
  0%{ transform: translate(-50%, 0); opacity:.6; }
  45%{ transform: translate(-50%, 10px); opacity:1; }
  100%{ transform: translate(-50%, 0); opacity:.6; }
}
@keyframes logoEnter{
  0%{ opacity:0; transform: translateY(10px) scale(.92); filter: blur(4px); }
  100%{ opacity:1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes glowPulse{
  0%,100%{ box-shadow: 0 0 18px rgba(97,246,255,.35); }
  50%{ box-shadow: 0 0 34px rgba(97,246,255,.65); }
}

/* Ripple */
.ripple{
  position:absolute;
  border-radius: 999px;
  transform: scale(0);
  animation: ripple .65s ease-out forwards;
  background: rgba(255,255,255,.24);
  pointer-events:none;
}
@keyframes ripple{ to{ transform: scale(18); opacity: 0; } }

/* Custom scrollbar */
::-webkit-scrollbar{ width: 12px; }
::-webkit-scrollbar-track{ background: rgba(255,255,255,.04); }
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(97,246,255,.35), rgba(178,102,255,.30));
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,.35);
}
::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, rgba(97,246,255,.45), rgba(178,102,255,.40));
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-bg, .scroll-indicator .dot{ animation:none !important; }
  .reveal{ transition:none; }
  .btn{ transition:none; }
}

/* Highlighted blocks */
.highlight-card{
  border: 1px solid rgba(97,246,255,.22);
  box-shadow: 0 0 0 1px rgba(97,246,255,.10), 0 0 34px rgba(97,246,255,.14);
}
.highlight-card::after{
  opacity: .32;
}
