/* ═══════════════════════════════════════════════════════════════
   CaliRP — Landing  ·  "California / warm editorial"
═══════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #0b0a08;
    --bg-2:      #16130f;
    --panel:     rgba(24, 20, 15, .7);
    --card:      rgba(255, 250, 240, .04);
    --text:      #f7f3ea;
    --muted:     #b3aa95;
    --dim:       #7d745f;
    --line:      rgba(255, 240, 210, .12);
    --line-2:    rgba(255, 240, 210, .22);
    --gold:      #f5c33c;
    --gold-2:    #ffdb6f;
    --gold-deep: #e0a91e;
    --sky:       #6db3e6;
    --font:      'Familjen Grotesk', system-ui, Arial, sans-serif;
    --font-d:    'Bricolage Grotesque', Georgia, serif;
    --mono:      'Space Mono', ui-monospace, monospace;
    --ease:      cubic-bezier(.16, 1, .3, 1);
}

html { min-height: 100%; }

body {
    min-height: 100svh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* brak zaznaczania tekstu na całej stronie */
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
    -webkit-tap-highlight-color: transparent;
}
input, textarea { -webkit-user-select: text; user-select: text; }

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── TŁO ───────────────────────────────────────────────────────── */
.bg {
    position: fixed; inset: 0; z-index: -3; pointer-events: none;
    background:
        radial-gradient(1100px 640px at 50% -12%, rgba(245, 195, 60, .14), transparent 62%),
        radial-gradient(900px 700px at 12% 108%, rgba(224, 169, 30, .10), transparent 60%),
        radial-gradient(760px 620px at 92% 96%, rgba(109, 179, 230, .07), transparent 58%),
        var(--bg);
}
.bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0,0,0,.5) 100%); }
#petals { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ── UKŁAD ─────────────────────────────────────────────────────── */
.landing { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 46px 18px 60px; gap: 40px; }
.landing-card { width: min(540px, 100%); display: grid; justify-items: center; gap: 18px; }

/* ── HERO / OBRAZ + STATUS ─────────────────────────────────────── */
.media-frame {
    position: relative;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 7px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    box-shadow: 0 40px 90px -34px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
    overflow: hidden;
}
.media-frame img { width: 100%; height: auto; border-radius: 18px; }

/* status nałożony na dolny brzeg zdjęcia */
.hero-status {
    position: absolute; left: 18px; bottom: 18px;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(12, 10, 8, .58);
    backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 10px 30px -12px rgba(0,0,0,.7);
    font-size: 12.5px; font-weight: 600; color: var(--text);
    letter-spacing: -.01em;
}
.hero-status .rp { font-weight: 700; }
.hero-status .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.3); }
.hero-status .hs-players { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.hero-status .hs-max { color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #45d67a; box-shadow: 0 0 9px rgba(69, 214, 122, .6); }
.status-dot.off { background: #ff5f56; box-shadow: 0 0 9px rgba(255, 95, 86, .55); }

/* ── PRZYCISKI (CTA) ───────────────────────────────────────────── */
.actions { width: 100%; display: grid; gap: 12px; }

.cta {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 14px 18px; min-height: 68px;
    border-radius: 18px; text-align: left;
    transition: transform .18s var(--ease), border-color .18s, box-shadow .2s, background .18s;
}
.cta-ic { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; }
.cta-ic svg { width: 21px; height: 21px; }
.cta-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cta-txt b { font-family: var(--font-d); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.cta-txt small { font-size: 12.5px; font-weight: 500; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-go { flex-shrink: 0; width: 20px; height: 20px; opacity: .55; transition: transform .22s var(--ease), opacity .2s; }
.cta:hover .cta-go { transform: translateX(4px); opacity: 1; }

/* Panel — sekundarny, szklany */
.cta-ghost { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)); color: var(--text); }
.cta-ghost .cta-ic { border: 1px solid var(--line); background: rgba(245, 195, 60, .1); color: var(--gold); }
.cta-ghost:hover { transform: translateY(-2px); border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); box-shadow: 0 16px 36px -20px rgba(0,0,0,.8); }

/* Discord — główny, złoty */
.cta-discord {
    background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
    color: #1c1606;
    box-shadow: 0 20px 44px -20px rgba(245, 195, 60, .6), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.cta-discord .cta-ic { background: rgba(28, 22, 6, .12); color: #1c1606; }
.cta-discord .cta-txt small { opacity: .6; }
.cta-discord::after { content: ""; position: absolute; top: 0; left: -60%; width: 42%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg); transition: left .6s ease; }
.cta-discord:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 26px 54px -20px rgba(245, 195, 60, .72), inset 0 1px 0 rgba(255, 255, 255, .65); }
.cta-discord:hover::after { left: 130%; }
.cta:active { transform: translateY(0); }

/* ── FAQ / BAZA WIEDZY ─────────────────────────────────────────── */
.faq { width: min(720px, 100%); }
.faq-head { text-align: center; margin-bottom: 26px; }
.faq-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.faq-head h2 { font-family: var(--font-d); font-size: clamp(26px, 5vw, 38px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.faq-head p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

.faq-groups { display: flex; flex-direction: column; gap: 26px; }
.faq-group { display: flex; flex-direction: column; gap: 8px; }
.faq-gh { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); padding: 0 4px 4px; }
.faq-gic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: rgba(245,195,60,.08); color: var(--gold); }
.faq-gic svg { width: 15px; height: 15px; }

.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; transition: border-color .25s, background .25s; }
.faq-item.open { border-color: var(--line-2); background: rgba(255, 250, 240, .055); }
.faq-item:hover:not(.open) { border-color: rgba(255,240,210,.17); }
.faq-q { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; background: transparent; color: var(--text); text-align: left; font-family: var(--font); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.faq-q > span { flex: 1; }
.chev { flex-shrink: 0; width: 19px; height: 19px; color: var(--dim); transition: transform .35s var(--ease), color .25s; }
.faq-item.open .chev { transform: rotate(180deg); color: var(--gold); }

.faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a { overflow: hidden; min-height: 0; }
.faq-a > :first-child { margin-top: 0; }
.faq-a { padding: 0 18px; }
.faq-item.open .faq-a { padding: 2px 18px 20px; }

/* treść odpowiedzi */
.faq-a p { color: var(--muted); font-size: 14px; line-height: 1.62; margin-top: 10px; }
.faq-a p b { color: var(--text); font-weight: 700; }
.faq-a ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.faq-a li { position: relative; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.faq-a li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.faq-a li b { color: var(--text); }
.glos-h, .reg-h { font-family: var(--font-d); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-top: 18px; }

/* słownik */
.glos { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.glos > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 13px; background: var(--bg-2); }
.glos dt { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--gold-2); }
.glos dd { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* taryfikator kar */
.bans { margin-top: 12px; display: grid; grid-template-columns: 1fr; gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.ban { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; background: var(--bg-2); }
.ban .bn { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ban .bt { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--gold-2); white-space: nowrap; }

/* ── STOPKA ────────────────────────────────────────────────────── */
.landing-foot { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12.5px; font-weight: 500; }
.landing-foot .foot-dot { opacity: .5; }

/* ── MODAL KODU ────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .74); backdrop-filter: blur(14px); }
.modal { width: min(410px, 100%); border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); padding: 28px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.modal h2 { font-family: var(--font-d); font-size: 25px; line-height: 1; letter-spacing: -.03em; }
.modal p { margin-top: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.modal-input { width: 100%; min-height: 56px; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: #0a0908; color: var(--text); text-align: center; font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.modal-input:focus { border-color: rgba(245, 195, 60, .7); }
.modal-error { display: none; margin-top: 10px; color: #ff6b6b; font-size: 14px; font-weight: 700; }
.modal-submit { width: 100%; min-height: 56px; margin-top: 14px; border: 0; border-radius: 14px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1405; font-family: var(--font-d); font-size: 16px; font-weight: 700; transition: filter .14s ease, transform .14s ease; }
.modal-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.modal-submit:disabled { opacity: .65; cursor: wait; }
.modal-close { width: 100%; min-height: 46px; margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--muted); font-weight: 600; }

@media (max-width: 560px) {
    .landing { padding: 28px 14px 48px; gap: 32px; }
    .cta-txt small { font-size: 12px; }
    .glos { grid-template-columns: 1fr; }
    .hero-status { left: 14px; bottom: 14px; }
}
