:root {
    --bg-color: #0d0e15;
    /* Very dark blue-grey */
    --text-main: #ffffff;
    --text-muted: #9ba1b9;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    border-bottom: 1px solid var(--card-border);
    background: rgba(13, 14, 21, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease;
}

.user-profile:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.avatar,
.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.guest-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-profile:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Robust bridge: padding-top on the container ensures hover is NEVER lost */
.profile-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 15px;
    /* The visual gap */
    min-width: 180px;
    z-index: 1000;
}

/* Background and border moved to pseudo-element to allow that gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: 15px;
    /* Starts after the gap */
    left: 0;
    right: 0;
    bottom: 0;
    background: #151722;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: -1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.dropdown-content a:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-content a:last-child {
    border-radius: 0 0 12px 12px;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    gap: 6rem;
}

.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Creating a glowing 3D-like 'S' */
.hero-left .huge-s {
    font-size: 18rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 4px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
    animation: float 6s ease-in-out infinite;
}

.glowing-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 60%);
    opacity: 0.2;
    filter: blur(40px);
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.hero-right {
    flex: 1;
    max-width: 500px;
}

.hero-right .title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-right .highlight {
    color: var(--accent-purple);
    font-size: 3rem;
}

.hero-right .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary i {
    color: var(--accent-blue);
    font-size: 1.3rem;
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border: none;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    margin-top: 1rem;
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    border: none;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .action-buttons {
        align-items: center;
    }

    .btn-secondary,
    .btn-discord,
    .btn-primary {
        width: 100%;
        max-width: 400px;
    }
}

/* Content Sections */
.content-section {
    padding: 6rem 4rem;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--card-border);
}

.section-container {
    max-width: 1200px;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.section-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-container h2 i {
    color: var(--accent-blue);
    margin-right: 0.5rem;
}

.section-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .content-section {
        padding: 4rem 2rem;
    }
}

/* Partenaires */
.partners-section,
.reviews-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.card-razed {
    border-color: rgba(59, 130, 246, 0.3);
}

.card-celsius {
    border-color: rgba(249, 115, 22, 0.3);
}

.partner-logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.partner-logo h2 {
    font-size: 3rem;
    font-style: italic;
    font-weight: 900;
}

.partner-badge {
    position: absolute;
    margin: 1rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
}

.partner-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.partner-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #3b82f6;
    text-align: center;
}

.partner-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.partner-perks {
    list-style: none;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.partner-perks li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-perks i {
    color: #3b82f6;
}

.partner-code {
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 800;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.btn-partner {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    color: white;
    margin-top: auto;
    transition: filter 0.2s;
}

.btn-razed {
    background: #3b82f6;
}

.btn-celsius {
    background: #f97316;
}

.btn-partner:hover {
    filter: brightness(1.2);
}

/* Reviews */
.review-badge {
    display: inline-block;
    border: 1px solid #10b981;
    color: #10b981;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.reviews-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: #151722;
    padding: 2rem;
    border-radius: 16px;
    min-width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    border: 1px solid var(--card-border);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.review-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.stars {
    color: #eab308;
}

.nav-btn {
    background: var(--card-bg);
    border: none;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    background: #090a0f;
    border-top: 1px solid var(--card-border);
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}