/* ====== Luna static styles ====== */
:root {
  --bg: #09090f;
  --fg: #f3f0ff;
  --muted: #9b96b8;
  --border: rgba(180,160,255,0.12);
  --luna-purple: #b07cff;
  --luna-blue: #6e8cff;
  --luna-cyan: #7fe7ff;
  --luna-pink: #ff8ed1;
  --gradient-primary: linear-gradient(135deg, #b07cff, #6e8cff);
  --gradient-text: linear-gradient(135deg, #f0e9ff, #7fe7ff, #b07cff);
}
* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(176,124,255,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(110,140,255,0.14), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(127,231,255,0.08), transparent 60%);
  background-attachment: fixed;
}
h1, h2, h3, h4 { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.02em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

/* utilities */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
}
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glow-purple {
  box-shadow: 0 0 40px rgba(176,124,255,0.4), inset 0 0 20px rgba(176,124,255,0.1);
}
.btn-luna {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, var(--luna-purple), var(--luna-blue));
  color: white;
  box-shadow: 0 0 30px rgba(176,124,255,0.5), 0 10px 40px rgba(176,124,255,0.3);
  transition: all .3s ease;
  cursor: pointer;
}
.btn-luna:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(176,124,255,0.7), 0 15px 50px rgba(176,124,255,0.5); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* particles */
.particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -10; }

/* navbar */
.navbar { position: sticky; top: 0; z-index: 50; width: 100%; }
.nav-inner-wrap { border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--luna-purple), var(--luna-blue));
  display: grid; place-items: center;
}
.brand-text { font-size: 20px; font-weight: 700; letter-spacing: .2em; font-family: "Space Grotesk", sans-serif; }
.nav-links { display: none; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }
.menu-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.mobile-menu { display: none; border-top: 1px solid rgba(255,255,255,0.05); padding: 16px 24px; }
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu a { font-size: 14px; font-weight: 500; color: var(--muted); }
.mobile-menu a:hover { color: var(--fg); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}
@media (min-width: 640px) {
  .nav-cta { display: inline-flex; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: 64px 24px 96px; }
@media (min-width: 640px) { .hero { padding: 96px 24px 128px; } }
.hero-glow-purple {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 700px; max-width: 100vw; max-height: 100vw;
  background: radial-gradient(circle, rgba(176,124,255,0.35), transparent 60%);
  filter: blur(40px); z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-glow-moon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 420px; height: 420px; max-width: 90vw; max-height: 90vw;
  background: radial-gradient(circle, rgba(240,230,255,0.35), rgba(127,231,255,0.15) 40%, transparent 70%);
  z-index: -1;
}
.hero-inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }

.avatar-wrap { position: relative; width: 288px; height: 288px; display: grid; place-items: center; margin-bottom: 40px; }
@media (min-width: 640px) { .avatar-wrap { width: 384px; height: 384px; } }
.ring { position: absolute; border-radius: 50%; }
.ring-1 { inset: 0; border: 1px solid rgba(176,124,255,0.3); }
.ring-2 { inset: 24px; border: 1px solid rgba(127,231,255,0.2); }
.ring-3 { inset: 48px; border: 1px solid rgba(110,140,255,0.25); }
.ring-conic {
  position: absolute; inset: -16px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(176,124,255,0.4), transparent 60%);
  opacity: .6; filter: blur(16px);
}
.spin-slow { animation: spin-slow 30s linear infinite; }
.spin-reverse { animation: spin-reverse 20s linear infinite; }
.avatar-float { position: relative; z-index: 1; animation: float 6s ease-in-out infinite; }
.avatar-img {
  width: 240px; height: 240px; border-radius: 50%;
  object-fit: cover; object-position: top;
  filter: drop-shadow(0 0 60px rgba(176,124,255,0.6));
}
@media (min-width: 640px) { .avatar-img { width: 320px; height: 320px; } }
.dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; left: 50%; transform: translateX(-50%); }
.dot-top { top: 0; background: var(--luna-cyan); box-shadow: 0 0 12px rgba(127,231,255,0.8); }
.dot-bottom { bottom: 0; background: var(--luna-purple); box-shadow: 0 0 12px rgba(176,124,255,0.8); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; font-weight: 500; color: var(--luna-cyan);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--luna-cyan); animation: pulse 2s ease-in-out infinite; }
.hero-title { margin-top: 24px; font-size: 88px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
@media (min-width: 640px) { .hero-title { font-size: 112px; } }
@media (min-width: 768px) { .hero-title { font-size: 144px; } }
.hero-sub { margin-top: 16px; font-size: 22px; font-weight: 500; color: rgba(243,240,255,0.9); }
@media (min-width: 640px) { .hero-sub { font-size: 26px; } }
.hero-tagline { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 560px; }
@media (min-width: 640px) { .hero-tagline { font-size: 16px; } }
.hero-cta { margin-top: 40px; }

/* stats */
.stats { padding: 48px 24px; }
@media (min-width: 640px) { .stats { padding: 80px 24px; } }
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.stat {
  position: relative; overflow: hidden; padding: 24px; border-radius: 16px;
  transition: all .3s;
}
.stat:hover { border-color: rgba(176,124,255,0.4); box-shadow: 0 0 40px rgba(176,124,255,0.35); }
.stat-val { font-size: 32px; font-weight: 700; font-family: "Space Grotesk", sans-serif; }
@media (min-width: 640px) { .stat-val { font-size: 40px; } }
.stat-label { margin-top: 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (min-width: 640px) { .stat-label { font-size: 14px; } }

/* features */
.features { padding: 80px 24px; }
@media (min-width: 640px) { .features { padding: 112px 24px; } }
.section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 20px; font-size: 36px; }
@media (min-width: 640px) { .section-head h2 { font-size: 48px; } }
.section-head p { margin-top: 16px; color: var(--muted); }
.feature-grid {
  max-width: 1280px; margin: 56px auto 0;
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature {
  position: relative; overflow: hidden; padding: 24px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all .3s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(176,124,255,0.5); box-shadow: 0 0 50px rgba(176,124,255,0.3); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(176,124,255,0.3), rgba(110,140,255,0.2));
  border: 1px solid rgba(176,124,255,0.3);
  display: grid; place-items: center; color: var(--luna-cyan);
}
.feature h3 { margin-top: 20px; font-size: 18px; color: var(--fg); }
.feature p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* footer */
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 48px 24px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-cols { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-blurb { margin-top: 16px; max-width: 320px; font-size: 14px; color: var(--muted); }
.footer h4 { font-size: 14px; color: var(--fg); }
.footer-links { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--muted);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.heart { color: var(--luna-pink); }

/* animations */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0); } }
@keyframes pulse-glow { 0%,100% { opacity: .5; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.05); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fade-up .8s ease-out both; }

/* ============ Commands page ============ */
.commands-body { position: relative; }
.cmd-bg-glow-1 {
  position: fixed; top: -160px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px; max-width: 100vw;
  background: rgba(176,124,255,0.2); border-radius: 50%; filter: blur(120px);
  z-index: -1; pointer-events: none;
}
.cmd-bg-glow-2 {
  position: fixed; bottom: 0; right: 0;
  width: 600px; height: 400px; max-width: 100vw;
  background: rgba(110,140,255,0.15); border-radius: 50%; filter: blur(120px);
  z-index: -1; pointer-events: none;
}
.back-link { font-size: 14px; font-weight: 500; color: var(--muted); }
.back-link:hover { color: var(--fg); }

.cmd-main { max-width: 1280px; margin: 0 auto; padding: 48px 24px 96px; }
.cmd-head { text-align: center; }
.kbd { background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; font-family: ui-monospace, monospace; }
.kbd-cyan { color: var(--luna-cyan); font-family: ui-monospace, monospace; }
.cmd-head h1 { margin-top: 20px; font-size: 36px; }
@media (min-width: 640px) { .cmd-head h1 { font-size: 48px; } }
.cmd-head p { margin: 12px auto 0; max-width: 640px; color: var(--muted); }

.cmd-search-wrap { max-width: 560px; margin: 32px auto 0; }
.cmd-search {
  width: 100%; padding: 12px 20px; border-radius: 999px;
  background: rgba(255,255,255,0.05); color: var(--fg);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 14px; outline: none; transition: border-color .2s;
}
.cmd-search:focus { border-color: rgba(176,124,255,0.5); }

.cmd-layout { margin-top: 40px; display: grid; gap: 32px; }
@media (min-width: 1024px) { .cmd-layout { grid-template-columns: 260px 1fr; } }

.cmd-sidebar ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
@media (min-width: 1024px) {
  .cmd-sidebar { position: sticky; top: 96px; align-self: start; }
  .cmd-sidebar ul { flex-direction: column; overflow: visible; padding-bottom: 0; }
}
.cmd-sidebar button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: max-content;
  padding: 10px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  transition: all .2s;
}
.cmd-sidebar button:hover { color: var(--fg); border-color: rgba(255,255,255,0.1); }
.cmd-sidebar button.active {
  background: linear-gradient(90deg, rgba(176,124,255,0.3), rgba(110,140,255,0.2));
  color: white; border-color: rgba(176,124,255,0.4);
  box-shadow: 0 0 40px rgba(176,124,255,0.4);
}
.cmd-sidebar .count { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 10px; background: rgba(255,255,255,0.05); color: var(--muted); }
.cmd-sidebar button.active .count { background: rgba(255,255,255,0.15); color: white; }

#cmd-list { display: grid; gap: 12px; }
@media (min-width: 640px) { #cmd-list { grid-template-columns: repeat(2, 1fr); } }
.cmd-card {
  position: relative; overflow: hidden; padding: 20px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  transition: all .3s;
}
.cmd-card:hover { transform: translateY(-2px); border-color: rgba(176,124,255,0.4); }
.cmd-name { font-family: ui-monospace, monospace; font-size: 16px; font-weight: 600; color: white; }
.cmd-name .prefix { color: var(--luna-cyan); }
.cmd-desc { margin-top: 8px; font-size: 14px; color: var(--muted); }
.cmd-usage {
  margin-top: 12px; padding: 8px 12px; border-radius: 8px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05);
  font-family: ui-monospace, monospace; font-size: 12px; color: rgba(127,231,255,0.9);
}
.cmd-empty {
  padding: 40px; border-radius: 16px; text-align: center; color: var(--muted);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  grid-column: 1 / -1;
}
/* Shooting Stars */

.shooting-stars{
    position:fixed;
    inset:0;
    pointer-events:none;
    overflow:hidden;
    z-index:-1;
}

.shooting-star{
    position:absolute;

    width:180px;
    height:2px;

    background:
    linear-gradient(
        90deg,
        rgba(103,232,249,1),
        rgba(139,92,246,.8),
        transparent
    );

    border-radius:999px;

    filter:blur(.5px);

    transform:rotate(-35deg);

    animation:shoot 4s linear forwards;
}

.shooting-star::before{
    content:"";

    position:absolute;

    right:0;
    top:-3px;

    width:8px;
    height:8px;

    border-radius:50%;

    background:#67e8f9;

    box-shadow:
    0 0 15px #67e8f9,
    0 0 30px #8b5cf6;
}

@keyframes shoot{

    from{
        opacity:1;
        transform:
        translate3d(0,0,0)
        rotate(-35deg);
    }

    to{
        opacity:0;
        transform:
        translate3d(-1200px,800px,0)
        rotate(-35deg);
    }

}
.luna-player{
    width:min(900px,90%);
    margin:40px auto 0;

    display:flex;
    align-items:center;
    gap:20px;

    padding:18px;

    border-radius:28px;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.04),
        rgba(255,255,255,.02)
    );

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(25px);

    box-shadow:
    0 0 50px rgba(139,92,246,.15);
}

.player-cover{
    width:80px;
    height:80px;

    border-radius:20px;

    object-fit:cover;
}

.player-info{
    flex:1;
}

.player-title{
    font-size:1.15rem;
    font-weight:700;
    color:white;
}

.player-artist{
    color:#9ca3af;
    margin-top:4px;
}

.player-progress{
    height:6px;
    margin-top:14px;

    border-radius:999px;

    background:
    rgba(255,255,255,.08);

    overflow:hidden;
}

.player-progress-bar{
    width:0%;

    height:100%;

    background:
    linear-gradient(
        90deg,
        #67e8f9,
        #8b5cf6
    );
}

.player-time{
    margin-top:8px;

    display:flex;
    justify-content:space-between;

    color:#9ca3af;
    font-size:.85rem;
}

.player-controls button{
    width:60px;
    height:60px;

    border:none;
    cursor:pointer;

    border-radius:50%;

    color:white;

    font-size:20px;

    background:
    linear-gradient(
        135deg,
        #8b5cf6,
        #6366f1
    );

    box-shadow:
    0 0 25px rgba(139,92,246,.4);
}
.page{
    min-height:100vh;
    position:relative;
}

.page-main{
    max-width:1200px;
    margin:auto;
    padding:120px 20px 80px;
}

.page-hero{
    text-align:center;
    max-width:800px;
    margin:auto;
}

.page-hero h1{
    font-size:clamp(3rem,8vw,5rem);
    margin-top:20px;
}

.page-hero p{
    color:var(--muted-foreground,#9ca3af);
    max-width:650px;
    margin:20px auto 0;
}

.container{
    max-width:1200px;
    margin:auto;
    padding:0 20px;
}

.mini-header{
    position:sticky;
    top:20px;
    z-index:50;
    margin:20px;
    border-radius:20px;
}

.icon{
    width:20px;
    height:20px;
}

.info-card{
    padding:24px;
    border-radius:20px;
    text-align:center;
}

.icon-box{
    width:60px;
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 16px;
    border-radius:16px;
    background:rgba(255,255,255,.05);
}

.brand-mark{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.brand-word{
    font-weight:700;
    letter-spacing:2px;
}

.back-home{
    color:#9ca3af;
    text-decoration:none;
    font-weight:600;
    transition:.25s;
}

.back-home:hover{
    color:#c084fc;
}
.lava-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.back-home{
    color:rgba(255,255,255,.7);
    text-decoration:none;
    font-weight:600;
    transition:.25s;
}

.back-home:hover{
    color:#b388ff;
}
.navbar{
    position:fixed;
    top:20px;
    left:0;
    width:100%;
    z-index:9999;
    padding:0 24px;
}

.nav-inner-wrap{
    max-width:1800px;
    margin:0 auto;

    border-radius:24px;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.06),
        rgba(255,255,255,.02)
    );

    backdrop-filter:blur(25px);
    -webkit-backdrop-filter:blur(25px);

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
        0 0 40px rgba(139,92,246,.12);
}

.lava-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 30px;
}