* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10b981;
    --secondary: #059669;
    --accent: #34d399;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f1f5f9;
    --text: #e2e8f0;
    --text-dim: #cbd5e1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar-modern {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

    .navbar-links a {
        color: var(--text-dim);
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 0.95rem;
    }

        .navbar-links a:hover {
            color: var(--primary);
        }

.btn-login-nav, .btn-register-nav {
    padding: 0.6rem 1.4rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login-nav {
    color: var(--primary);
    border: 2px solid var(--primary);
}

    .btn-login-nav:hover {
        background: var(--primary);
        color: white;
    }

.btn-register-nav {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

    .btn-register-nav:hover {
        background: var(--secondary);
        border-color: var(--secondary);
    }

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.gradient-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(15px, -15px);
    }
    50% {
        transform: translate(0, 20px);
    }
    75% {
        transform: translate(-15px, -10px);
    }
}

@keyframes floatAlt {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-20px, 10px);
    }
    50% {
        transform: translate(0, -15px);
    }
    75% {
        transform: translate(20px, 10px);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.badge-new {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-large {
    padding: 1rem 2rem;
    border-radius: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 40px rgba(99, 102, 241, 0.5);
    }

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text-dim);
}

    .btn-secondary:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    height: 400px;
    animation: slideInRight 0.8s ease-out;
}

.floating-card {
    position: absolute;
    background: rgba(16, 185, 129, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1rem;
    border-radius: 0.8rem;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    will-change: transform;
    left: 0 !important;
    top: 0 !important;
}

    .floating-card:hover {
        background: rgba(16, 185, 129, 0.15);
        border-color: var(--primary);
        box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
        z-index: 10;
    }

    .floating-card i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: var(--accent);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .floating-card:hover i {
        transform: rotate(360deg) scale(1.3);
        color: var(--primary);
        filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
    }

    .floating-card p {
        font-weight: 600;
        font-size: 0.8rem;
        line-height: 1.2;
        transition: all 0.3s ease;
    }

    .floating-card:hover p {
        color: var(--accent);
        transform: scale(1.1);
    }

.card-1 {
    top: 5%;
    left: 5%;
}

.card-2 {
    top: 25%;
    right: 15%;
}

.card-3 {
    bottom: 15%;
    left: 10%;
}

/* Dodatkowe karty - lepsze rozmieszczenie */
.floating-card:nth-child(4) {
    top: 55%;
    right: 8%;
}

.floating-card:nth-child(5) {
    bottom: 25%;
    right: 25%;
}

.floating-card:nth-child(6) {
    top: 15%;
    left: 55%;
}

.floating-card:nth-child(7) {
    bottom: 5%;
    right: 40%;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== SECTIONS ==================== */
.container-md {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    animation: gridFadeIn 0.6s ease-out;
}

@keyframes gridFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.about-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    animation: cardPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.6s ease;
}

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
}

/* Stagger animation dla każdej karty */
.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }
.about-card:nth-child(4) { animation-delay: 0.4s; }
.about-card:nth-child(5) { animation-delay: 0.5s; }
.about-card:nth-child(6) { animation-delay: 0.6s; }
.about-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes cardPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconBounce 0.8s ease-out;
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light);
    transition: color 0.3s ease;
}

.about-card:hover h3 {
    color: var(--primary);
}

.about-card p {
    color: var(--text-dim);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.about-card:hover p {
    color: var(--text);
}

/* ==================== CLASS IMAGES ==================== */
.class-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    display: block;
    position: relative;
    z-index: 1;
}

.class-card:hover .class-image {
    transform: scale(1.05) translateY(-5px);
    filter: brightness(1.1) drop-shadow(0 10px 20px rgba(16, 185, 129, 0.2));
}

.class-features {
    list-style: none;
    text-align: left;
    position: relative;
    z-index: 1;
    padding: 0;
}

.class-features li {
    color: var(--text-dim);
    margin: 0.8rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.class-features li:hover {
    color: var(--text);
    transform: translateX(5px);
}

.class-features i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.class-features li:hover i {
    transform: scale(1.2);
}

.class-features strong {
    color: var(--accent);
    font-weight: 600;
}

/* ==================== CLASSES SECTION ==================== */
.classes-section {
    background: var(--darker);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.class-card {
    background: rgba(99, 102, 241, 0.05);
    border: 2px solid rgba(99, 102, 241, 0.2);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .class-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
        transition: left 0.4s ease;
        z-index: 0;
    }

    .class-card:hover::before {
        left: 100%;
    }

    .class-card:hover {
        border-color: var(--primary);
        transform: translateY(-10px);
    }

.class-card-warrior {
    border-color: rgba(245, 158, 11, 0.3);
}

    .class-card-warrior:hover {
        border-color: #f59e0b;
        background: rgba(245, 158, 11, 0.08);
    }

.class-card-ninja {
    border-color: rgba(59, 130, 246, 0.3);
}

    .class-card-ninja:hover {
        border-color: #3b82f6;
        background: rgba(59, 130, 246, 0.08);
    }

.class-card-shaman {
    border-color: rgba(139, 92, 246, 0.3);
}

    .class-card-shaman-hover {
        border-color: #8b5cf6;
        background: rgba(139, 92, 246, 0.08);
    }

.class-card-sura {
    border-color: rgba(236, 72, 153, 0.3);
}

    .class-card-sura:hover {
        border-color: #ec4899;
        background: rgba(236, 72, 153, 0.08);
    }

.class-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.class-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--light);
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.class-card > p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

    .feature-item:hover {
        border-left-color: var(--accent);
        background: rgba(99, 102, 241, 0.1);
        transform: translateX(5px);
    }

.feature-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--light);
}

.feature-item p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    background: var(--darker);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        background: rgba(99, 102, 241, 0.1);
        border-color: var(--primary);
    }

    .faq-item h4 {
        color: var(--light);
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .faq-item p {
        color: var(--text-dim);
        line-height: 1.6;
    }

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 4rem 0;
    text-align: center;
}

    .cta-section h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: white;
    }

    .cta-section p {
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 2rem;
    }

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    min-width: 200px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--darker);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 3rem 0 1rem;
    color: var(--text-dim);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--light);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin: 0.5rem 0;
    }

.footer-section a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-section a:hover {
        color: var(--primary);
    }

.social-links {
    display: flex;
    gap: 1rem;
}

    .social-links a {
        font-size: 1.5rem;
    }

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .class-card {
        padding: 1.5rem;
    }

        .class-card h3 {
            font-size: 1.2rem;
            margin-bottom: 0.6rem;
        }

    .class-features li {
        font-size: 0.9rem;
        margin: 0.6rem 0;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar-brand h1 {
        font-size: 1.3rem;
    }

    .navbar-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .class-card {
        padding: 1.2rem;
    }

    .class-icon {
        font-size: 2.5rem;
    }

    .class-card h3 {
        font-size: 1.1rem;
    }

    .class-card > p {
        font-size: 0.9rem;
    }

    .class-features li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .feature-item {
        padding: 1.5rem 1rem;
    }

    .feature-number {
        font-size: 2rem;
    }

    .faq-item {
        padding: 1.2rem;
    }

        .faq-item h4 {
            font-size: 1rem;
        }

        .faq-item p {
            font-size: 0.9rem;
        }
}
