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

:root {
    --bg:        #0b0a08;
    --bg-2:      #16130f;
    --panel:     rgba(24, 20, 15, .66);
    --text:      #f7f3ea;
    --muted:     #b3aa95;
    --line:      rgba(255, 240, 210, .12);
    --gold:      #f5c33c;
    --gold-2:    #ffdb6f;
    --gold-deep: #e0a91e;
    --sky:       #6db3e6;
    --font:      'Inter', system-ui, Arial, sans-serif;
    --mono:      'JetBrains Mono', ui-monospace, monospace;
}

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;
}

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 { /* delikatna winieta */
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0,0,0,.5) 100%);
}

/* płatki — canvas nad tłem, pod treścią, nie łapie klików */
#petals { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ── UKŁAD ─────────────────────────────────────────────────────── */
.landing { position: relative; z-index: 1; min-height: 100svh; display: grid; place-items: center; padding: 44px 18px; }
.landing-card { width: min(540px, 100%); display: grid; justify-items: center; gap: 22px; }

/* ── HERO / OBRAZ ──────────────────────────────────────────────── */
.media-frame {
    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 ────────────────────────────────────────────────────── */
.server-status {
    display: inline-flex; align-items: center; gap: 11px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    backdrop-filter: blur(12px);
    color: var(--muted);
    font-size: 13px; font-weight: 700; letter-spacing: -.01em;
}
.server-status .rp { color: var(--text); font-weight: 800; }
.server-status .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.server-status strong { color: var(--text); font-family: var(--mono); font-size: 12px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #45d67a; box-shadow: 0 0 10px rgba(69, 214, 122, .55); }
.status-dot.off { background: #ff5f56; box-shadow: 0 0 10px rgba(255, 95, 86, .5); }

/* ── AKCJE ─────────────────────────────────────────────────────── */
.actions { width: 100%; display: grid; gap: 13px; margin-top: 2px; }

/* Panel — sekundarny, szklany */
.panel-button {
    width: 100%; min-height: 60px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: var(--text);
    font-size: 16.5px; font-weight: 700; letter-spacing: -.01em;
    display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.panel-button svg { width: 19px; height: 19px; color: var(--gold); }
.panel-button:hover { transform: translateY(-2px); border-color: rgba(255, 240, 210, .26); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); box-shadow: 0 14px 34px -18px rgba(0,0,0,.7); }
.panel-button:active { transform: translateY(0); }

/* Discord — główny, złoty CTA */
.discord-button {
    position: relative; overflow: hidden;
    width: 100%; min-height: 66px;
    border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(180deg, var(--gold-2), var(--gold) 52%, var(--gold-deep));
    color: #1c1606;
    font-size: 18px; font-weight: 900; letter-spacing: -.02em;
    box-shadow: 0 20px 46px -18px rgba(245, 195, 60, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
    transition: transform .16s ease, box-shadow .2s ease, filter .16s ease;
}
.discord-button svg { width: 24px; height: 24px; }
.discord-button::before { /* połysk u góry */
    content: ""; position: absolute; inset: 1px 16px auto; height: 40%;
    border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.55), transparent);
    pointer-events: none;
}
.discord-button::after { /* przesuwający się blask przy hoverze */
    content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-18deg); transition: left .6s ease;
}
.discord-button:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 26px 56px -18px rgba(245, 195, 60, .7), inset 0 1px 0 rgba(255, 255, 255, .7); }
.discord-button:hover::after { left: 130%; }
.discord-button:active { transform: translateY(0); }

/* ── 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-size: 26px; line-height: 1; letter-spacing: -.04em; }
.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: 800; 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-size: 16px; font-weight: 900; 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: 700; }

@media (max-width: 520px) {
    .landing { padding: 28px 14px; }
    .landing-card { gap: 18px; }
    .discord-button { font-size: 16px; min-height: 60px; }
    .panel-button { min-height: 56px; font-size: 15.5px; }
    .server-status { font-size: 12px; }
}
