:root {
    --bg-primary: #05050A;
    --bg-secondary: #0B0F19;
    --bg-card: rgba(15, 20, 35, 0.6);
    --bg-glass: rgba(11, 15, 25, 0.7);
    --accent-primary: #00E5FF;
    --accent-secondary: #B200FF;
    --gradient-btn: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --text-main: #FFFFFF;
    --text-muted: #A0A5B5;
    --font-heading: 'Syncopate', 'Inter', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Layout System */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Gradient Text */
.text-gradient {
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn-glossy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--gradient-btn);
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.btn-glossy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    z-index: -1;
    border-radius: 50px 50px 0 0;
}

.btn-glossy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(178, 0, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-glossy.large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.glass-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.logo img {
    height: 36px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-btn);
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px var(--accent-primary);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-main);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(to bottom, rgba(5, 5, 10, 0.3), var(--bg-primary)), 
                url('images/medieval-cyber-knight-hero-bg.jpg') center/cover no-repeat;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.legal-badge span {
    display: flex;
    align-items: center;
}

/* Game Section */
.game-section {
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.game-wrapper {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                0 0 30px rgba(0, 229, 255, 0.15), 
                0 0 60px rgba(178, 0, 255, 0.1);
    transition: var(--transition-smooth);
}

.game-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.game-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(0, 229, 255, 0.25), 
                0 0 80px rgba(178, 0, 255, 0.2);
}

.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: relative;
    z-index: 1;
}

/* Features / Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(20, 25, 45, 0.8);
    border-color: rgba(0, 229, 255, 0.2);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.card-icon img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 5px var(--accent-primary));
}

/* Interior Pages Content */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(to bottom, rgba(5, 5, 10, 0.8), var(--bg-primary)), 
                url('images/cyber-knight-dashboard-bg-interior.jpg') center/cover no-repeat;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-block {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 32px;
}

.content-block h3 {
    color: var(--accent-primary);
}

.content-block ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.content-block ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.content-block ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-links h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .game-wrapper { width: 95%; }
}

@media (max-width: 768px) {
    .header-actions .btn-glossy { display: none; }
    .mobile-toggle { display: flex; }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        text-align: center;
        border-bottom: 1px solid rgba(0, 229, 255, 0.2);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand .logo { justify-content: center; }
    
    .game-wrapper {
        width: 100%;
        border-radius: 12px;
        aspect-ratio: auto;
        height: 60vh;
    }
    .game-wrapper::before { border-radius: 12px; }
    
    .legal-badge {
        flex-direction: column;
        gap: 8px;
        border-radius: 16px;
    }
    
    .legal-badge span:not(:last-child)::after {
        content: none;
    }
    
    .section { padding: 60px 0; }
}