:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --gold-primary: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);
    --red-live: #ff0050;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, #1a1a1a 0%, #050505 60%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography & Utils */
.gold-text { 
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

/* Navigation */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.glass-nav {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-logo .dot { color: var(--gold-primary); font-size: 2.5rem; line-height: 0; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background: var(--gold-primary);
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover::after { width: 100%; }

.live-blink { color: var(--red-live) !important; font-weight: 700; animation: blink 2s infinite; }

/* Buttons */
.btn {
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4); }

.btn-outline {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
}
.btn-outline:hover { background: var(--gold-primary); color: #000; }

.btn-red {
    background: var(--red-live);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.logo-wrapper {
    position: relative;
    margin-bottom: 40px;
    display: inline-block;
}

.main-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    position: relative;
    border: 4px solid #1a1a1a;
}

.logo-ring {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 1px solid var(--gold-primary);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    opacity: 0.3;
}

.ring-live {
    border-color: var(--red-live);
    box-shadow: 0 0 30px rgba(255, 0, 80, 0.3);
    animation: pulse-ring 2s infinite;
}

.live-badge {
    position: absolute;
    bottom: 5px; left: 50%;
    transform: translateX(-50%);
    background: var(--red-live);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider-gold {
    width: 60px; height: 3px;
    background: var(--gold-primary);
    margin: 0 auto 30px;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions { display: flex; gap: 20px; justify-content: center; }

/* Sections */
.section { padding: 100px 0; }
.section-title { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 60px; font-size: 1.1rem; }

/* Cards Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(212, 175, 55, 0.3);
}

.icon-box {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    height: 60px; width: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    margin-left: auto; margin-right: auto;
}

.icon-box.warn { color: #ff4757; background: rgba(255, 71, 87, 0.1); }
.warn-card:hover { border-color: rgba(255, 71, 87, 0.3); }

.glass-card h4 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 15px; }
.glass-card p { color: var(--text-muted); font-size: 0.95rem; }
.glass-card strong { color: var(--text-white); }

/* Live Widget */
.tiktok-widget-frame {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 25px;
    padding: 3px;
    background: linear-gradient(45deg, var(--gold-primary), transparent, var(--gold-primary));
    position: relative;
}

.widget-content {
    background: #111;
    border-radius: 22px;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.tiktok-bg-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18rem;
    color: rgba(255, 255, 255, 0.03);
}

.widget-overlay { position: relative; z-index: 2; }
.live-indicator {
    position: absolute; top: 20px; left: 20px;
    background: rgba(0,0,0,0.6);
    padding: 5px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.dot-indicator { width: 8px; height: 8px; background: var(--red-live); border-radius: 50%; animation: blink 1s infinite; }

/* Footer */
.footer {
    border-top: var(--glass-border);
    background: #020202;
    padding: 80px 0 40px;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-white);
    margin: 0 10px 40px;
    font-size: 1.2rem;
    transition: var(--transition);
}
.social-link:hover { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); }

.company-info {
    margin: 30px auto;
    color: #666;
    font-size: 0.85rem;
    max-width: 600px;
    line-height: 1.8;
}
.company-name { color: var(--text-white); font-weight: 600; margin-bottom: 5px; }
.company-ids span { display: inline-block; margin: 0 8px; }
.corehost-link { color: #555; text-decoration: none; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }
.corehost-link:hover { color: var(--gold-primary); }

/* --- Style dla Widgetu OFFLINE vs LIVE --- */

/* Ramka Live - Czerwona/Złota */
.frame-live {
    background: linear-gradient(45deg, var(--red-live), transparent, var(--gold-primary));
    box-shadow: 0 0 30px rgba(255, 0, 80, 0.2);
}

/* Ramka Offline - Szara/Stonowana */
.frame-offline {
    background: linear-gradient(45deg, #444, transparent, #666);
    box-shadow: none;
    border: 1px solid #333;
}

/* Wskaźnik LIVE (Czerwony + Mruganie) */
.ind-live {
    background: rgba(255, 0, 80, 0.2);
    border: 1px solid var(--red-live);
    color: var(--red-live);
}
.ind-live .dot-indicator {
    background: var(--red-live);
    animation: blink 1s infinite;
}

/* Wskaźnik OFFLINE (Szary + Brak animacji) */
.ind-offline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #666;
    color: #aaa;
}
.ind-offline .dot-indicator {
    background: #666;
    box-shadow: none;
    animation: none; /* Brak mrugania */
}

/* Dostosowanie przycisku obserwowania */
.btn-gold {
    font-weight: 700;
}

/* Animations */
/* Zmieniamy opacity na 1, żeby elementy były widoczne od razu, nawet bez JS */
.scroll-anim { opacity: 1 !important; transform: translateY(0) !important; transition: 0.8s ease-out; }
.scroll-anim.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.1); opacity: 0; } }

/* Mobile */
.mobile-menu-icon { display: none; cursor: pointer; }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-icon { display: block; color: var(--gold-primary); }
    .hamburger span { display: block; width: 30px; height: 2px; background: var(--gold-primary); margin: 6px 0; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .company-ids span { display: block; margin: 2px 0; }
}

