/* ================================================
   HYDER - NEW DESIGN 2.0
   Modern, Refined, Black/Red/White Theme
   ================================================ */

:root {
    --red: #ff0000;
    --red-dark: #cc0000;
    --black: #000000;
    --white: #ffffff;
    --gray: #1a1a1a;
    --gray-light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== CONTAINER ========== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ========== ANIMATED BACKGROUND ========== */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
}

.bg-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 0, 0, 0.02) 50%, transparent 100%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--red);
    text-transform: lowercase;
}

.nav-desktop {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-desktop a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s;
}

.nav-desktop a:hover {
    color: var(--white);
}

.nav-desktop a:hover::after {
    width: 100%;
}

.btn-discord {
    padding: 0.6rem;
    background: transparent;
    border: 2px solid #5865F2;
    border-radius: 8px;
    color: #5865F2;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.btn-discord svg {
    width: 20px;
    height: 20px;
}

.btn-discord:hover {
    background: #5865F2;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-login {
    padding: 0.8rem 2rem;
    background: var(--red);
    border: none;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

.mobile-menu nav a:hover {
    color: var(--red);
}

.btn-login-mobile {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: var(--red);
    border: none;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(5rem, 18vw, 15rem);
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 1.5rem;
    letter-spacing: -15px;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
    animation: fadeInUp 1s ease-out;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title .red {
    color: var(--red);
    display: inline-block;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(255, 0, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.8)) drop-shadow(0 0 60px rgba(255, 0, 0, 0.5));
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BUTTONS ========== */
.btn {
    padding: 1.2rem 3rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 1.4rem 3.5rem;
    font-size: 1.1rem;
}

/* ========== SECTIONS ========== */
section {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    color: var(--white);
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== FEATURES ========== */
.features {
    background: linear-gradient(180deg, var(--black) 0%, var(--gray) 50%, var(--black) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 0, 0, 0.3);
    transform: translateY(-8px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    filter: grayscale(1);
    transition: filter 0.3s;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card:hover .feature-icon {
    filter: grayscale(0);
}

.feature-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* ========== STATS ========== */
.stats {
    background: var(--red);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    animation: fadeInUp 0.8s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    color: var(--black);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========== FAQ ========== */
.faq {
    background: var(--black);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.faq-item:hover {
    border-color: rgba(255, 0, 0, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.8rem 2rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--red);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--red);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-answer p {
    padding: 0 2rem 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* ========== CTA ========== */
.cta {
    background: var(--black);
    padding: 8rem 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--white);
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
}

/* ========== FOOTER ========== */
footer {
    background: var(--gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--red);
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    color: var(--white);
    transition: all 0.3s;
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-social a:hover {
    color: var(--red);
    transform: translateY(-3px);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ========== AUTH MODAL ========== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: var(--gray);
    border: 2px solid var(--red);
    border-radius: 16px;
    padding: 2.5rem;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid var(--red);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    background: var(--red);
    transform: rotate(90deg);
}

.auth-form h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--red);
    background: rgba(0, 0, 0, 0.7);
}

.form-group small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.error-message {
    color: var(--red);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 0, 0, 0.1);
    border-left: 3px solid var(--red);
    border-radius: 4px;
    min-height: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 4rem;
        letter-spacing: -8px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: 4rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1.5rem;
    }

    .faq-answer p {
        padding: 0 1.5rem 1.5rem;
    }

    .auth-modal-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: -4px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}