/*
    ══════════════════════════════════════════════════════════════════
      HavicRP  |  havic_website
      Ten System został stworzony przez: The_Trawnik dla Serwera HavicRP!
      Autor: The_Trawnik  |  https://thetrawnik.dev
      KOPIOWANIE / RESELL TYCH PLIKÓW / DUMPOWANIE JEST SUROWO ZAKAZANE!
    ══════════════════════════════════════════════════════════════════
*/

:root {
    --bg: #02040c;
    --bg-2: #050b1f;
    --panel: rgba(10, 18, 42, 0.7);
    --panel-2: rgba(16, 28, 62, 0.6);
    --border: rgba(120, 160, 255, 0.12);
    --text: #eef2ff;
    --muted: #8b95b5;
    --accent: #2563ff;
    --accent-2: #5cb8ff;
    --grad: linear-gradient(135deg, #2563ff 0%, #3b82ff 50%, #5cb8ff 100%);
    --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: radial-gradient(ellipse at 20% 0%, #0b1d52 0%, var(--bg-2) 40%, var(--bg) 100%) fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

#bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 6vw;
    background: rgba(2, 4, 12, 0.6);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 18px rgba(37, 99, 255, 0.5); }
.logo span { font-family: 'Rajdhani', sans-serif; font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.logo b { color: var(--accent-2); }

.links { display: flex; gap: 24px; margin-left: auto; }
.links a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.links a:hover { color: var(--text); }

.btn-nav {
    padding: 10px 16px;
    border-radius: 12px;
    background: #5865f2;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.35);
}

.burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 18px; cursor: pointer; }

.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 4vw;
    padding: 9vh 6vw 6vh;
    min-height: 88vh;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 255, 0.12);
    border: 1px solid rgba(92, 184, 255, 0.25);
    font-size: 13px;
    font-weight: 600;
    color: #c7d7ff;
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; }
.dot.on { background: #22c55e; box-shadow: 0 0 12px #22c55e; animation: blink 1.6s infinite; }
.dot.off { background: #ef4444; }
@keyframes blink { 50% { opacity: 0.4; } }

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(44px, 6.2vw, 92px);
    line-height: 0.98;
    margin: 22px 0 18px;
    letter-spacing: 1px;
}

.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 17px; line-height: 1.7; color: #b8c3e3; max-width: 640px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 22px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn.primary { background: var(--grad); border: none; box-shadow: 0 14px 34px rgba(37, 99, 255, 0.45); }
.btn.ghost { background: var(--panel); font-family: ui-monospace, monospace; font-size: 14px; }

.hero-stats { display: flex; gap: 34px; }
.hero-stats b { display: block; font-family: 'Rajdhani', sans-serif; font-size: 36px; }
.hero-stats span { font-size: 13px; color: var(--muted); }

.hero { overflow-x: clip; }
section[id] { scroll-margin-top: 72px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { position: relative; width: min(440px, 80%); border-radius: 26%; box-shadow: 0 0 90px rgba(37, 99, 255, 0.55), 0 40px 80px rgba(0, 0, 0, 0.6); animation: float 6s ease-in-out infinite; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(92, 184, 255, 0.25); }
.r1 { width: 115%; aspect-ratio: 1; animation: spin 30s linear infinite; border-top-color: #5cb8ff; }
.r2 { width: 135%; aspect-ratio: 1; animation: spin 50s linear infinite reverse; border-bottom-color: #2563ff; opacity: 0.5; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }

.section { padding: 9vh 6vw; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-2); }
.section-head h2 { font-family: 'Rajdhani', sans-serif; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 10px 0 12px; }
.section-head p { color: #a8b3d4; font-size: 16px; line-height: 1.6; }

.status-strip { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; padding-top: 0; }

.status-card, .step, .feature, .faction, .stat-card, .table-card, .apply, .acc-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.status-card { padding: 24px; }
.sc-head { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.sc-head i { color: var(--accent-2); margin-right: 6px; }
.sc-online { display: flex; align-items: baseline; gap: 10px; }
.sc-online .big { font-family: 'Rajdhani', sans-serif; font-size: 64px; font-weight: 700; line-height: 1; }
.sc-online span:last-child { color: var(--muted); }
.bar { height: 8px; margin: 14px 0; border-radius: 8px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar div { height: 100%; width: 0; background: var(--grad); transition: width 0.8s; }
.sc-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 130px; overflow: auto; }
.sc-list span { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 12px; color: #c7d2f0; }

.steps { display: grid; gap: 12px; }
.step { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.step i { width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: rgba(37, 99, 255, 0.15); color: var(--accent-2); font-size: 20px; }
.step b { display: block; margin-bottom: 3px; }
.step span { font-size: 14px; color: var(--muted); }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feature { padding: 24px; transition: transform 0.2s, border-color 0.2s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(92, 184, 255, 0.4); }
.feature i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--grad); font-size: 21px; margin-bottom: 16px; box-shadow: 0 10px 24px rgba(37, 99, 255, 0.35); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14px; line-height: 1.6; color: #a8b3d4; }

.factions { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.faction { position: relative; padding: 26px; overflow: hidden; }
.faction::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c); }
.faction i { font-size: 30px; color: var(--c); margin-bottom: 14px; }
.faction h3 { font-family: 'Rajdhani', sans-serif; font-size: 26px; margin-bottom: 8px; }
.faction p { font-size: 14px; line-height: 1.6; color: #a8b3d4; margin-bottom: 16px; }
.faction span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: #c7d2f0; }

.stats-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.stat-card { padding: 22px; text-align: center; }
.stat-card i { font-size: 24px; color: var(--accent-2); margin-bottom: 10px; }
.stat-card b { display: block; font-family: 'Rajdhani', sans-serif; font-size: 38px; }
.stat-card span { font-size: 13px; color: var(--muted); }

.tables { grid-template-columns: repeat(3, 1fr); }
.table-card { padding: 22px; }
.table-card h3 { font-size: 16px; margin-bottom: 14px; }
.table-card h3 i { color: #facc15; margin-right: 8px; }
.table-card ol, .table-card ul { list-style: none; counter-reset: r; }
.table-card li { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 10px; font-size: 14px; }
.table-card ol li { counter-increment: r; }
.table-card ol li::before { content: counter(r); width: 26px; color: var(--muted); font-weight: 800; }
.table-card li:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.table-card li span:first-of-type { flex: 1; }
.table-card li em { font-style: normal; font-weight: 700; color: #4ade80; }
.table-card .g { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(37, 99, 255, 0.2); color: #93c5fd; }

.accordion { display: flex; flex-direction: column; gap: 10px; max-width: 980px; }
.acc-item { overflow: hidden; }
.acc-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 16px; }
.acc-head i { color: var(--accent-2); transition: transform 0.25s; }
.acc-item.open .acc-head i { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 22px 20px; color: #b8c3e3; font-size: 14.5px; line-height: 1.7; }
.acc-item.open .acc-body { display: block; }
.acc-body ol, .acc-body ul { padding-left: 20px; }
.acc-body li { margin-bottom: 6px; }
.acc-body b { color: var(--text); }

.apply { padding: 28px; max-width: 980px; display: flex; flex-direction: column; gap: 16px; }
.apply .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apply .row.three { grid-template-columns: 1fr 0.5fr 1fr; }
.apply label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: #c7d2f0; }
.apply label small { font-weight: 500; color: var(--muted); }
.apply input, .apply select, .apply textarea {
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(2, 4, 12, 0.6);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    resize: vertical;
}
.apply input:focus, .apply select:focus, .apply textarea:focus { border-color: rgba(92, 184, 255, 0.6); }
.apply select option { background: #0a1124; }
.apply-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.apply-note { padding: 12px 16px; border-radius: 12px; background: rgba(37, 99, 255, 0.1); border: 1px solid rgba(92, 184, 255, 0.25); color: #c7d2f0; font-size: 13.5px; line-height: 1.6; }
.apply-note i { color: var(--accent-2); margin-right: 6px; }
#apply-msg { font-size: 14px; }
#apply-msg.ok { color: #4ade80; }
#apply-msg.err { color: #f87171; }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 40px 6vw; border-top: 1px solid var(--border); background: rgba(2, 4, 12, 0.6); }
.f-brand { display: flex; align-items: center; gap: 12px; }
.f-brand img { width: 46px; border-radius: 12px; }
.f-brand b { font-family: 'Rajdhani', sans-serif; font-size: 22px; letter-spacing: 2px; }
.f-brand b span { color: var(--accent-2); }
.f-brand p { font-size: 13px; color: var(--muted); }
.f-links { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.f-links a:hover { color: var(--text); }
.f-credit { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.6; }
.f-credit a b { color: var(--accent-2); }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120px); padding: 14px 22px; border-radius: 14px; background: rgba(10, 18, 42, 0.95); border: 1px solid var(--border); font-size: 14px; font-weight: 600; transition: transform 0.3s; z-index: 60; }
.toast.show { transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; text-align: left; }
    .hero-art { order: -1; }
    .hero-art img { width: 260px; }
    .r1 { width: 320px; }
    .r2 { width: 370px; }
    .status-strip, .tables { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer { grid-template-columns: 1fr; text-align: center; }
    .f-brand { justify-content: center; }
    .f-links { justify-content: center; }
    .f-credit { text-align: center; }
}

@media (max-width: 760px) {
    .nav { padding: 12px 16px; gap: 12px; }
    .links { display: none; position: absolute; top: 68px; left: 16px; right: 16px; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: rgba(5, 10, 26, 0.97); border: 1px solid var(--border); }
    .links.open { display: flex; }
    .links a { padding: 10px; }
    .btn-nav { display: none; }
    .burger { display: block; }
    .hero, .section { padding-left: 16px; padding-right: 16px; }
    .hero-stats { gap: 20px; }
    .apply .row, .apply .row.three { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .btn.ghost { font-size: 12px; }
    .factions, .features { grid-template-columns: 1fr; }
}
