
:root {
    --bg-dark: #09090b;
    --bg-darker: #020203;
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #0ea5e9; /* Sky Blue */
    --accent-glow: rgba(14, 165, 233, 0.4);
    --purple: #d946ef; /* Fuchsia */
    --purple-glow: rgba(217, 70, 239, 0.4);
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.15);
    
    --font-main: 'Poppins', sans-serif;
    --radius: 24px;
    --card-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(217, 70, 239, 0.08), transparent 25%);
    
    /* Flex layout za ceo body */
    display: flex;      
    flex-direction: column; 
    min-height: 100vh; 
}

.licenses-section, 
#hero, 
.why-us-section, 
.products-section {
    width: 100%;
}

.licenses-section {
    flex: 1 0 auto; 
    padding-bottom: 80px; 
    display: flex;
    flex-direction: column;
}

.licenses-section .container {
    flex-grow: 1;
}

/* === BACKGROUND GRID EFFECT === */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
    animation: floatOrb 10s infinite ease-in-out alternate;
    opacity: 0.6;
}
.top-orb { top: -200px; left: -100px; }

@keyframes floatOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* === NAVBAR === */
header {
    position: fixed;
    top: 0; width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 30px;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.logo-link {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: #fff; font-weight: 700; font-size: 1.3rem;
}
.logo-img { height: 35px; filter: drop-shadow(0 0 10px var(--primary-glow)); }
.highlight { color: var(--accent); }

.nav-center ul { display: flex; list-style: none; gap: 40px; }
.nav-center a {
    text-decoration: none; color: var(--text-muted); font-weight: 500;
    transition: 0.3s; font-size: 0.95rem; position: relative;
}
.nav-center a:hover, .nav-center a.active { color: #fff; }
.nav-center a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px;
    background: var(--accent); transition: 0.3s; box-shadow: 0 0 10px var(--accent);
}
.nav-center a:hover::after, .nav-center a.active::after { width: 100%; }

/* Mobile Menu */
.mobile-toggle { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Auth Profile */
.nav-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--glass-shine); cursor: pointer; transition: 0.3s; }
.nav-avatar:hover { box-shadow: 0 0 15px var(--primary); border-color: var(--primary); }

.profile-dropdown {
    position: absolute; right: 20px; top: 75px;
    background: #121215; border: 1px solid var(--glass-border);
    border-radius: 16px; width: 240px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 1001;
    animation: slideDown 0.2s ease-out;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.profile-info { padding: 16px; background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent); border-bottom: 1px solid var(--glass-border); }
.profile-name { color: #fff; font-weight: 600; }
.profile-email { font-size: 0.8rem; color: var(--text-muted); }
.profile-links button {
    width: 100%; padding: 14px 16px; text-align: left; background: none; border: none;
    color: #cbd5e1; cursor: pointer; transition: 0.2s; display: flex; gap: 10px; font-size: 0.9rem;
}
.profile-links button:hover { background: var(--glass-bg); color: #fff; padding-left: 20px; }
.hidden { display: none !important; }

#hero {
    padding: 180px 20px 80px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
    /* Hero ne mora da bude flex-grow, on ima svoju velicinu */
}

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px; font-size: 0.85rem; color: #a5b4fc;
    margin-bottom: 25px; box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.hero-content h1 {
    font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px;
    text-shadow: 0 0 50px rgba(14, 165, 233, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-content p { font-size: 1.2rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 40px; }

.hero-btns { display: flex; gap: 15px; justify-content: center; }

.btn {
    padding: 16px 32px; border-radius: 14px; text-decoration: none;
    font-weight: 600; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; cursor: pointer;
}

.btn-primary {
    background: #fff; color: #000;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 40px rgba(255,255,255,0.4); }

.btn-secondary {
    background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-3px); }

/* === WHY US (Cards) === */
.why-us-section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; width: 100%; }

.section-title { font-size: 2.5rem; margin-bottom: 10px; text-align: center; font-weight: 700; }
.subtitle { color: var(--text-muted); text-align: center; margin-bottom: 60px; font-size: 1.1rem; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.why-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    padding: 40px 30px; border-radius: var(--radius); text-align: left;
    transition: 0.4s; position: relative; overflow: hidden;
}
.why-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.why-card:hover::before { opacity: 1; }
.why-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); box-shadow: var(--card-shadow); }

.why-icon {
    font-size: 2rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px;
}
.why-card h3 { font-size: 1.4rem; margin-bottom: 12px; color: #fff; }
.why-card p { color: var(--text-muted); font-size: 0.95rem; }

.why-description {
    max-width: 800px; margin: 80px auto 0; padding: 40px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    border-radius: 20px; text-align: center; backdrop-filter: blur(10px);
}

.products-section { padding-bottom: 120px; }
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }

.plugin-card {
    background: #0e0e11;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.4s ease; 
    position: relative;
    display: flex; flex-direction: column;
    overflow: hidden;
}

.plugin-card:hover {
    transform: translateY(-12px); 
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px -10px rgba(0,0,0,0.6),
        0 0 20px rgba(99, 102, 241, 0.2); 
}

.plugin-card.purple::after { background: var(--purple-glow); }
.plugin-card.blue::after { background: var(--accent-glow); }

.plugin-card::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    border-radius: var(--radius); opacity: 0; transition: 0.4s;
    filter: blur(50px);
}
.plugin-card:hover::after { opacity: 0.3; }

.card-img-wrap {
    height: 200px; border-radius: 16px; overflow: hidden; margin-bottom: 25px;
    position: relative;
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.plugin-card:hover .card-img-wrap img { transform: scale(1.05); } /* Gentle zoom */

.card-content { flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.card-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }

.plugin-footer {
    margin-top: auto; display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--glass-border); padding-top: 20px;
}
.price { font-size: 1.3rem; font-weight: 700; color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.2); }

.btn-icon {
    width: 45px; height: 45px; background: #fff; color: #000; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.btn-icon:hover { transform: scale(1.1) rotate(45deg); }

.licenses-hero { padding-top: 180px; padding-bottom: 60px; text-align: center; }
.licenses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 30px; }

.license-card {
    background: rgba(10, 10, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px; 
    padding: 30px;
    backdrop-filter: blur(24px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.license-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: 0.4s;
}

.license-card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(99, 102, 241, 0.3); 
    box-shadow: 0 20px 50px -10px rgba(99, 102, 241, 0.25); 
}

.license-card:hover::before { transform: scaleX(1); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.product-info { display: flex; gap: 15px; align-items: center; }
.product-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--accent);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.product-title {
    font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 2px;
}
.license-date {
    font-size: 0.85rem; color: var(--text-muted); display: block;
}

.status-pill {
    padding: 6px 14px; 
    border-radius: 50px; 
    font-size: 0.7rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.status-pill.active { 
    background: rgba(34, 197, 94, 0.15); 
    color: #4ade80; 
    border: 1px solid rgba(74, 222, 128, 0.3); 
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}
.status-pill.expired { 
    background: rgba(239, 68, 68, 0.15); 
    color: #f87171; 
    border: 1px solid rgba(248, 113, 113, 0.3); 
}

.key-container label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-box {
    background: #050507; 
    border: 1px solid #222; 
    padding: 18px; 
    border-radius: 16px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.license-key-text { 
    font-family: 'Courier New', monospace; 
    font-size: 1.05rem; 
    color: var(--accent); 
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
    letter-spacing: 1px;
    font-weight: 600;
}

.copy-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 35px; height: 35px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.copy-btn:hover { background: var(--primary); transform: scale(1.1); }
.copy-btn.copied { background: #10b981; }

.card-footer { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.card-footer .btn { width: 100%; justify-content: center; background: rgba(255,255,255,0.03); }
.card-footer .btn:hover { background: var(--primary); border-color: var(--primary); }


.empty-state-container {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 600px;
    margin: 40px auto; 
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-muted), rgba(255,255,255,0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
}

.empty-state-container h3 { font-size: 1.8rem; color: #fff; margin-bottom: 10px; }
.empty-state-container p { color: var(--text-muted); margin-bottom: 30px; font-size: 1rem; max-width: 400px; }


footer { 
    background: #020203; 
    border-top: 1px solid var(--glass-border); 
    padding: 80px 0; 
    position: relative; 
    overflow: hidden; 
    margin-top: auto; 
    flex-shrink: 0;
    width: 100%;
}
footer::before {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 300px; background: radial-gradient(ellipse at bottom, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
}

.footer-logo { font-size: 1.8rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.socials { display: flex; gap: 15px; justify-content: center; margin-top: 10px; }

.socials a {
    width: 50px; height: 50px; background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: 0.3s;
}
.socials a:hover { background: #fff; color: #000; transform: translateY(-5px); box-shadow: 0 0 20px #fff; }

/* === MOBILE === */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; border-radius: 0; border: none; border-bottom: 1px solid var(--glass-border); background: rgba(9,9,11,0.95); }
    .mobile-toggle { display: block; }
    .nav-center {
        position: fixed; top: 70px; left: 0; width: 100%; height: 0; background: #09090b;
        overflow: hidden; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); z-index: 999;
    }
    .nav-center.open { height: 100vh; padding-top: 40px; }
    .nav-center ul { flex-direction: column; align-items: center; gap: 30px; }
    .nav-center a { font-size: 1.5rem; }
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
}

/* === ANIMATIONS === */
.hidden-fade { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.show-fade { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }