/* ==========================================================================
   Variáveis CSS & Reset
   ========================================================================== */
   :root {
    --bg-dark: #0a0a0c;
    --bg-card: #151518;
    --bg-card-hover: #1c1c20;
    --text-main: #e2e2e2;
    --text-muted: #a0a0a0;
    --accent-red: #d32f2f;
    --accent-red-glow: rgba(211, 47, 47, 0.4);
    --accent-gold: #cda34f;
    --border-color: rgba(255, 255, 255, 0.08);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   Tipografia & Utilitários
   ========================================================================== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
.text-accent { color: var(--accent-red); }
.text-gradient {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.text-left { text-align: left !important; }

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-large { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(45deg, #8b0000, var(--accent-red));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
    border: 1px solid rgba(255, 100, 100, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.btn-glow {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-normal);
    z-index: -1;
}
.btn-primary:hover .btn-glow { opacity: 1; transform: scale(1); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}
.btn-outline:hover {
    background: rgba(205, 163, 79, 0.1);
    box-shadow: 0 0 15px rgba(205, 163, 79, 0.2);
}

.btn-discord {
    background: #5865F2;
    color: white;
}
.btn-discord:hover { background: #4752C4; }
.discord-icon { width: 20px; height: 20px; }

/* ==========================================================================
   Header & Navegação
   ========================================================================== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

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

.logo-link { display: flex; align-items: center; }
.logo { height: 60px; filter: drop-shadow(0 0 10px rgba(0,0,0,0.8)); transition: var(--transition-normal); }
.header.scrolled .logo { height: 50px; }

.nav-list { display: flex; gap: 30px; }
.nav-list a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    transition: var(--transition-fast);
    position: relative;
}
.nav-list a::after {
    content: ''; position: absolute;
    bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--accent-red);
    transition: var(--transition-normal);
}
.nav-list a:hover { color: var(--accent-red); }
.nav-list a:hover::after { width: 100%; }

.header-actions { display: flex; gap: 15px; }

.mobile-menu-btn {
    display: none; background: none; border: none;
    flex-direction: column; gap: 5px; cursor: pointer; z-index: 101;
}
.mobile-menu-btn span {
    width: 25px; height: 3px; background: white;
    transition: var(--transition-normal); border-radius: 2px;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-nav {
    position: fixed; top: 0; right: -100%;
    width: 250px; height: 100vh;
    background: var(--bg-card);
    padding-top: 80px; z-index: 99;
    transition: var(--transition-normal);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    border-left: 1px solid var(--border-color);
}
.mobile-nav.active { right: 0; }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-list a {
    display: block; padding: 15px 20px;
    font-family: var(--font-heading); font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.hero-bg-img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center bottom;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,12,0.4) 0%, rgba(10,10,12,0.9) 80%, var(--bg-dark) 100%);
}

.hero-container {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}

.hero-content { flex: 1; max-width: 600px; }

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(211, 47, 47, 0.15);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.1rem; color: #ccc;
    margin-bottom: 40px; max-width: 500px;
}

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-image-wrapper {
    flex: 1; display: flex; justify-content: center;
}
.hero-dragon {
    max-width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
}
.floating { animation: float 6s ease-in-out infinite; }

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%); z-index: 2; opacity: 0.7;
    transition: var(--transition-fast);
}
.scroll-indicator:hover { opacity: 1; }
.mouse {
    width: 26px; height: 40px; border: 2px solid white; border-radius: 15px;
    display: block; position: relative;
}
.wheel {
    width: 4px; height: 8px; background: white; border-radius: 2px;
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}
@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features { padding: 100px 0; background: var(--bg-dark); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
    font-size: 2.5rem; text-transform: uppercase; margin-bottom: 15px;
}
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 30px;
    transition: var(--transition-normal);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
    opacity: 0; transition: var(--transition-normal);
}
.feature-card:hover {
    transform: translateY(-5px); background: var(--bg-card-hover);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 60px; height: 60px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 25px;
    background: rgba(255,255,255,0.05);
}
.bg-red { background: rgba(211, 47, 47, 0.1); color: #ff6b6b; border: 1px solid rgba(211, 47, 47, 0.2); }
.bg-gold { background: rgba(205, 163, 79, 0.1); color: #ffd700; border: 1px solid rgba(205, 163, 79, 0.2); }
.bg-purple { background: rgba(156, 39, 176, 0.1); color: #e040fb; border: 1px solid rgba(156, 39, 176, 0.2); }
.bg-blue { background: rgba(33, 150, 243, 0.1); color: #64b5f6; border: 1px solid rgba(33, 150, 243, 0.2); }
.bg-green { background: rgba(76, 175, 80, 0.1); color: #81c784; border: 1px solid rgba(76, 175, 80, 0.2); }
.bg-orange { background: rgba(255, 152, 0, 0.1); color: #ffb74d; border: 1px solid rgba(255, 152, 0, 0.2); }

.feature-title { font-size: 1.3rem; margin-bottom: 15px; color: #fff; }
.feature-text { font-size: 0.95rem; color: var(--text-muted); }

/* ==========================================================================
   Stats/Info Banner
   ========================================================================== */
.info-banner {
    padding: 60px 0;
    background: linear-gradient(to right, #050505, #111, #050505);
    border-top: 1px solid rgba(211, 47, 47, 0.2);
    border-bottom: 1px solid rgba(211, 47, 47, 0.2);
}

.info-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}

.info-item { display: flex; flex-direction: column; gap: 5px; }
.info-value {
    font-family: var(--font-heading); font-size: 2.5rem; font-weight: 900;
    color: var(--accent-gold); text-shadow: 0 0 10px rgba(205, 163, 79, 0.3);
}
.info-label {
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; color: var(--text-muted);
}

/* ==========================================================================
   Registro Section
   ========================================================================== */
.register {
    padding: 100px 0;
    background: url('bg_hero.jpg') center/cover no-repeat;
    position: relative;
}
.register::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 12, 0.9); backdrop-filter: blur(5px);
}

.register-container {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 60px;
}

.register-content { flex: 1; }
.register-benefits { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
.register-benefits li {
    display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: #e2e2e2;
}
.register-benefits svg { width: 24px; height: 24px; color: var(--accent-gold); }

.register-form-wrapper { flex: 1; max-width: 500px; }
.form-card {
    background: rgba(20, 20, 24, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px; padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.form-card h3 {
    font-size: 1.8rem; margin-bottom: 25px; text-align: center; border-bottom: 1px solid var(--border-color); padding-bottom: 15px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; color: #ccc;
}
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%; padding: 14px 15px;
    background: rgba(0,0,0,0.5); border: 1px solid var(--border-color);
    border-radius: 4px; color: white; font-family: var(--font-body);
    transition: var(--transition-fast);
}
.form-group input:focus {
    outline: none; border-color: var(--accent-red); background: rgba(0,0,0,0.8);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}
.form-hint { display: block; font-size: 0.75rem; color: #888; margin-top: 6px; }

.radio-group { display: flex; gap: 20px; margin-top: 10px; }
.radio-label {
    display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem;
}
.radio-label input { display: none; }
.radio-custom {
    width: 18px; height: 18px; border: 2px solid var(--border-color);
    border-radius: 50%; position: relative; transition: var(--transition-fast);
}
.radio-label input:checked + .radio-custom { border-color: var(--accent-red); }
.radio-label input:checked + .radio-custom::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 8px; height: 8px; background: var(--accent-red); border-radius: 50%;
}

.form-message {
    margin-top: 20px; padding: 15px; border-radius: 4px; text-align: center; font-size: 0.9rem; font-weight: 600;
}
.form-message.hidden { display: none; }
.form-message.success { background: rgba(76, 175, 80, 0.1); color: #4caf50; border: 1px solid rgba(76, 175, 80, 0.2); }
.form-message.error { background: rgba(244, 67, 54, 0.1); color: #f44336; border: 1px solid rgba(244, 67, 54, 0.2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #050505; border-top: 1px solid var(--border-color); padding-top: 60px;
}
.footer-content {
    display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; flex-wrap: wrap;
}
.footer-brand { flex: 2; min-width: 300px; }
.footer-logo { height: 50px; margin-bottom: 20px; filter: grayscale(100%) opacity(0.7); transition: var(--transition-normal); }
.footer-logo:hover { filter: none; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 350px; }

.footer-links { flex: 3; display: flex; justify-content: flex-end; gap: 60px; flex-wrap: wrap; }
.link-group h4 { font-size: 1.1rem; margin-bottom: 20px; color: white; text-transform: uppercase; }
.link-group ul { display: flex; flex-direction: column; gap: 10px; }
.link-group a { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition-fast); }
.link-group a:hover { color: var(--accent-gold); padding-left: 5px; }

.footer-bottom {
    background: #000; padding: 20px 0; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom p { color: #555; font-size: 0.8rem; }

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; padding-top: 40px; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .hero-dragon { max-width: 80%; }
    
    .register-container { flex-direction: column; }
    .register-content { text-align: center; margin-bottom: 40px; }
    .section-desc.text-left { text-align: center !important; }
    .register-benefits { align-items: center; }
    
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav, .header-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .info-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; }
    .footer-links { justify-content: flex-start; }
}
