/* Palm Springs Roleplay promo site.
   Brand comes from the server itself: the neon green of the in-game HUD (#3dff6e) on near-black,
   with the palm logo. Typography per the gaming pairing: Russo One for display, Chakra Petch for
   text. Everything is token-driven so a rebrand is a single block. */

:root {
    /* brand */
    --green: #3dff6e;
    --green-dim: #2ad157;
    --green-glow: rgba(61, 255, 110, .45);
    --amber: #ffc53d;

    /* surfaces */
    --bg: #070a08;
    --bg-alt: #0b0f0c;
    --card: #101512;
    --card-hover: #141b16;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(61, 255, 110, .32);

    /* type */
    --fg: #e8ede9;
    --muted: rgba(232, 237, 233, .68);
    --faint: rgba(232, 237, 233, .44);
    --display: 'Russo One', system-ui, sans-serif;
    --body: 'Chakra Petch', system-ui, -apple-system, sans-serif;

    /* rhythm */
    --wrap: 1180px;
    --r: 14px;
    --t: 220ms cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.08rem; color: var(--muted); }

.eyebrow {
    font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--green); margin: 0 0 .9em;
}

.skip {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--green); color: #05140a; padding: .7em 1.2em; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: .78em 1.45em; border-radius: 10px; border: 1px solid transparent;
    font-family: var(--body); font-size: .96rem; font-weight: 700; letter-spacing: .03em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background var(--t), border-color var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.btn-lg { padding: .95em 1.9em; font-size: 1.02rem; }
.btn .ico { width: 1.1em; height: 1.1em; fill: currentColor; stroke: none; flex: none; }

.btn-primary { background: var(--green); color: #05140a; box-shadow: 0 0 0 rgba(61, 255, 110, 0); }
.btn-primary:hover { background: #59ff85; transform: translateY(-2px); box-shadow: 0 10px 28px -8px var(--green-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(61, 255, 110, .08); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }

/* ---------- nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
}
.nav.stuck { background: rgba(7, 10, 8, .9); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text b { font-family: var(--display); font-size: 1rem; font-weight: 400; letter-spacing: .02em; }
.brand-text i { font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }

.menu { display: flex; align-items: center; gap: 1.7rem; }
.menu > a:not(.btn) {
    text-decoration: none; font-size: .93rem; font-weight: 600; color: var(--muted);
    transition: color var(--t);
}
.menu > a:not(.btn):hover { color: var(--green); }

.burger { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--fg); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 100svh; padding: 120px 0 70px; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(70% 55% at 50% 0%, rgba(61, 255, 110, .13), transparent 70%),
        radial-gradient(40% 40% at 85% 80%, rgba(61, 255, 110, .07), transparent 70%),
        var(--bg);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
    opacity: .5;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; }
.hero-title { margin-bottom: .32em; }
.glow { color: var(--green); text-shadow: 0 0 28px var(--green-glow); }
.hero-sub { font-size: 1.16rem; color: var(--muted); max-width: 58ch; margin-bottom: 2.1em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- live status ---------- */
.status {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .7rem;
    margin-top: 2.4rem; padding: .65rem 1rem;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 999px;
    font-size: .9rem;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.status[data-state="online"] .status-dot { background: var(--green); box-shadow: 0 0 10px var(--green-glow); animation: pulse 2.4s ease-in-out infinite; }
.status[data-state="offline"] .status-dot { background: #ff5a5a; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.status-text { color: var(--muted); }
.status[data-state="online"] .status-text { color: var(--fg); }
.status-sep { width: 1px; height: 15px; background: var(--line); }
.status-ip { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; color: var(--faint); }
.copy {
    background: none; border: 0; padding: .2em .4em; border-radius: 6px; cursor: pointer;
    font-family: var(--body); font-size: .85rem; font-weight: 700; color: var(--green);
    transition: background var(--t);
}
.copy:hover { background: rgba(61, 255, 110, .12); }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 118px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 3.2rem; }

.grid-2 { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats li { background: var(--card); padding: 1.7rem 1.3rem; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.1rem; color: var(--green); line-height: 1; margin-bottom: .35rem; }
.stats span { font-size: .87rem; color: var(--faint); }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(282px, 1fr)); gap: 1.1rem; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    padding: 1.9rem 1.6rem;
    transition: background var(--t), border-color var(--t), transform var(--t);
}
.card:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-4px); }
.card-ico { width: 30px; height: 30px; margin-bottom: 1.1rem; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- departments ---------- */
.depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.1rem; }
.dept {
    position: relative; display: block; text-decoration: none;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    padding: 1.9rem 1.6rem 1.6rem; overflow: hidden;
    transition: background var(--t), border-color var(--t), transform var(--t);
}
.dept:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-4px); }
.dept-bar { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--green); opacity: .55; transition: opacity var(--t); }
.dept:hover .dept-bar { opacity: 1; box-shadow: 0 0 14px var(--green-glow); }
.dept p { color: var(--muted); font-size: .95rem; }
.dept-go { display: inline-flex; align-items: center; gap: .45em; font-size: .88rem; font-weight: 700; color: var(--green); }
.dept-go .ico { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t); }
.dept:hover .dept-go .ico { transform: translateX(4px); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.6rem; counter-reset: s; }
.steps li { position: relative; padding-top: 3.6rem; }
.step-n {
    position: absolute; top: 0; left: 0;
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 1px solid var(--line-strong); border-radius: 12px;
    font-family: var(--display); font-size: 1.1rem; color: var(--green);
    background: rgba(61, 255, 110, .06);
}
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
.steps a { color: var(--green); }
.join-cta { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- final cta ---------- */
.cta { padding: clamp(70px, 9vw, 110px) 0; background: var(--bg-alt); border-top: 1px solid var(--line); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta img { border-radius: 50%; margin-bottom: 1.5rem; }
.cta p { color: var(--muted); margin-bottom: 2rem; }
.cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { padding: 3.2rem 0 2.6rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 1.8rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { border-radius: 50%; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand b { font-family: var(--display); font-weight: 400; font-size: .94rem; }
.footer-brand i { font-style: normal; font-size: .76rem; color: var(--green); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { text-decoration: none; font-size: .9rem; color: var(--muted); transition: color var(--t); }
.footer-links a:hover { color: var(--green); }
.footer-fine { margin: 0; font-size: .8rem; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
    .burger { display: block; }
    .menu {
        position: fixed; inset: 74px 0 auto; z-index: 99;
        flex-direction: column; align-items: stretch; gap: .4rem;
        padding: 1.2rem 20px 1.8rem;
        background: rgba(7, 10, 8, .98); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: transform var(--t), opacity var(--t);
    }
    .menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .menu > a:not(.btn) { padding: .7em 0; border-bottom: 1px solid var(--line); }
    .menu .btn { margin-top: .6rem; }
    .stats { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding: 110px 0 64px; }
}
@media (max-width: 420px) {
    body { font-size: 16px; }
    .hero-cta .btn, .join-cta .btn { width: 100%; }
    .status { width: 100%; border-radius: var(--r); justify-content: flex-start; }
}


/* ---------- store band on the home page ---------- */
.store-band { padding: clamp(46px, 6vw, 68px) 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.store-band-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.5rem, 3vw, 2.4rem);
    background: linear-gradient(120deg, rgba(61, 255, 110, .09), rgba(61, 255, 110, .02) 60%, transparent);
    border: 1px solid var(--line-strong); border-radius: var(--r);
}
.store-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .35em; }
.store-band p:not(.eyebrow) { margin: 0; max-width: 54ch; color: var(--muted); font-size: .98rem; }
.store-band .btn { flex: none; }
@media (max-width: 780px) {
    .store-band-inner { flex-direction: column; align-items: flex-start; }
    .store-band .btn { width: 100%; }
}
