/* Reset & basics */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html { font-size: 100%; }
body {
    line-height: 1.6;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0f172a 0, #020617 40%, #020617 100%);
    color: #e5e7eb;
    transition: background 0.3s ease, color 0.3s ease;
}
body.dark {
    background: #020617;
    color: #e5e7eb;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header */
.site-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
}
.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}
.main-nav a {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: #cbd5f5;
    transition: color .2s ease;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    transition: width .2s ease;
}
.main-nav a:hover {
    color: #e5e7eb;
}
.main-nav a:hover::after {
    width: 100%;
}
.mobile-toggle {
    display: none;
    font-size: 1.6rem;
    background: none;
    color: #e5e7eb;
}

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    background: radial-gradient(circle at top left, #1d4ed8, #4f46e5 40%, #0f172a 80%);
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}
.hero-copy h2 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    margin-bottom: 0.9rem;
}
.hero-copy p {
    font-size: 1.05rem;
    max-width: 540px;
    color: #e5e7eb;
    margin-bottom: 1.9rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.cta-btn,
.cta button {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #fff;
    padding: 0.8rem 1.9rem;
    font-size: 0.98rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.cta-btn:hover,
.cta button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
    filter: brightness(1.05);
}
.ghost-btn {
    padding: 0.8rem 1.7rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    font-size: 0.95rem;
    color: #e2e8f0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s;
}
.ghost-btn:hover {
    background: rgba(15, 23, 42, 0.5);
    border-color: #e5e7eb;
}

/* Hero side card */
.hero-card {
    background: rgba(15,23,42,0.9);
    border-radius: 1.2rem;
    padding: 1.6rem 1.8rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 45px rgba(15,23,42,0.9);
    transform-origin: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.hero-card:hover {
    box-shadow: 0 24px 60px rgba(15,23,42,1);
}
.hero-label {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 0.4rem;
}
.hero-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Sections */
.features, .about, .cta {
    padding: 4rem 0;
}
.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}
.section-subtitle {
    text-align: center;
    color: #9ca3af;
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

/* Features */
.feature-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: left;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    box-shadow: 0 10px 26px rgba(15,23,42,0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
}
.feature-card h4 {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}
.feature-card p {
    color: #9ca3af;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15,23,42,1);
    border-color: #818cf8;
}

/* About */
.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: center;
}
.about-inner p {
    color: #d1d5db;
}
.about-highlight {
    background: radial-gradient(circle at top left, #22c55e, #16a34a);
    border-radius: 1rem;
    padding: 1.4rem 1.6rem;
    color: #ecfdf5;
    box-shadow: 0 18px 40px rgba(5, 46, 22, 0.9);
}

/* CTA */
.cta {
    text-align: center;
}
.cta p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}
.cta form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.cta input {
    padding: 0.8rem 0.9rem;
    width: 260px;
    max-width: 80%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
}
.cta input::placeholder {
    color: #6b7280;
}
.form-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 1.5rem 0 2rem;
    font-size: 0.9rem;
    color: #9ca3af;
    background: transparent;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

/* Success page specific */
.success-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.success-card {
    max-width: 420px;
    width: 100%;
    background: rgba(15,23,42,0.9);
    border-radius: 1.2rem;
    padding: 2rem 1.8rem;
    text-align: center;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 18px 45px rgba(15,23,42,0.9);
}
.success-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.success-card p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}
.success-card a {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.success-card a:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }
    .hero-card {
        margin-top: 1.5rem;
    }
    .main-nav {
        display: none;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 0.75rem 0 1rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    }
    .main-nav.open {
        display: flex;
    }
    .main-nav li {
        margin: 0.5rem 0;
        text-align: center;
    }
    .mobile-toggle {
        display: block;
    }
}

/* -------- Squad page & cards -------- */

.squad-main {
    padding: 4rem 0 3rem;
}

.squad-main h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.squad-status {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.player-card {
    background: radial-gradient(circle at top, #1f2937, #020617);
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 14px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(148, 163, 184, 0.35);
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56,189,248,0.35), rgba(129,140,248,0.35));
    mix-blend-mode: soft-light;
    opacity: 0.5;
    pointer-events: none;
}

.player-card img {
    width: 100%;
    border-radius: 0.75rem;
    margin-bottom: 0.4rem;
    object-fit: cover;
}

.player-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.player-name {
    font-weight: 600;
}

.player-ovr-badge {
    background: linear-gradient(135deg, #22c55e, #84cc16);
    color: #022c22;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}

.player-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
}

.player-pos {
    font-size: 0.75rem;
    color: #a5b4fc;
}

/* Login card + Discord button + user pill */
.login-card {
    max-width: 480px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: radial-gradient(circle at top left, #5865f2 0, #151728 55%, #0b0d16 100%);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
}

.login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.login-card p {
    margin-bottom: 1.5rem;
    color: #ccd2ff;
}

.login-hint {
    font-size: 0.85rem;
    opacity: 0.85;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #5865f2, #7983ff);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(88, 101, 242, 0.8);
    filter: brightness(1.05);
}

.discord-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.discord-icon {
    font-size: 1.3rem;
}

.user-pill {
    background: rgba(21, 27, 56, 0.9);
    color: #e0e4ff;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.user-pill span {
    opacity: 0.8;
    font-size: 0.8rem;
}

.hidden {
    display: none;
}

/* small ghost button used for logout */
.ghost-btn.small {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
}
