@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #07090e;
    --bg-card: rgba(13, 17, 26, 0.88);
    --bg-card-hover: rgba(18, 24, 38, 0.95);
    --gold: #d4af37;
    --gold-light: #f7d774;
    --gold-dark: #8c7322;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --blue: #00a2ff;
    --blue-dark: #004c8c;
    --blue-glow: rgba(0, 162, 255, 0.4);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-gold: rgba(212, 175, 55, 0.3);
    --border-blue: rgba(0, 162, 255, 0.3);
    --danger: #ef4444;
    --success: #22c55e;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Atmospheric Overlay */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(20, 30, 50, 0.4) 0%, rgba(7, 9, 14, 0.95) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(7, 9, 14, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.nav-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-light);
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Status Indicator */
.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4ade80;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Main Container */
main {
    flex: 1;
    margin-top: 75px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('/static/img/hero_banner.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.5) 0%, rgba(7, 9, 14, 0.85) 70%, var(--bg-main) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-emblem {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 20px var(--gold-glow));
    animation: float 4s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3.6rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
    margin-bottom: 0.8rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-main);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f7d774 0%, #d4af37 50%, #aa8c2c 100%);
    color: #0b0e14;
    box-shadow: 0 4px 15px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid var(--gold-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f7d774 50%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
    color: #000;
}

.btn-secondary {
    background: rgba(13, 17, 26, 0.7);
    color: #ffffff;
    border: 1px solid var(--border-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(0, 162, 255, 0.15);
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--blue-glow);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

/* Feature Pillars Section */
.features-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-tag {
    font-size: 0.95rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.4rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--gold-glow);
}

.feature-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-gold);
}

.feature-card-body {
    padding: 1.8rem;
    flex: 1;
}

.feature-card-title {
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
}

.feature-card-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Forms & Cards */
.form-page-container {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(16px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-emblem {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.auth-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: var(--gold-light);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 1.4rem;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: rgba(7, 9, 14, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
    background: rgba(13, 17, 26, 0.9);
}

.form-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Download Page */
.download-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.download-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    margin-bottom: 3rem;
    align-items: center;
}

.download-boxart-img {
    width: 100%;
    border-radius: 6px;
    filter: drop-shadow(0 0 25px var(--blue-glow));
    border: 1px solid var(--border-blue);
}

.download-details h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.download-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1.2rem 0;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
}

/* System Requirements Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    overflow: hidden;
}

.specs-table th, .specs-table td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.specs-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
}

.specs-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Steps Guide */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 6px;
    padding: 1.8rem;
    text-align: center;
}

.step-number {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    background: var(--blue);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--blue-glow);
}

/* Account Panel */
.account-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.account-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

/* Footer */
footer {
    background: #040508;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .download-hero { grid-template-columns: 1fr; }
}
