/* ============================================
   DARK LIGHT DOMINION — SHARED STYLES
   ============================================ */

/* --- RESET & ROOT --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black:        #0a0a0c;
    --black-mid:    #111114;
    --black-light:  #1a1a1f;
    --purple:       #7c3aed;
    --purple-dim:   #5b21b6;
    --purple-glow:  rgba(124, 58, 237, 0.25);
    --purple-line:  rgba(124, 58, 237, 0.15);
    --white:        #f0eef5;
    --white-dim:    #8b8a96;
    --font-display: 'Rajdhani', sans-serif;
    --font-mono:    'Share Tech Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--purple-line);
}

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

.nav-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--white);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 1.5px;
    color: var(--white-dim);
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 4px;
}

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

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

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

.nav-links a.active {
    color: var(--purple);
}

/* ============================================
   HERO (index.html)
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Subtle grid background */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--purple-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--purple-line) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    mask-image: radial-gradient(ellipse 70% 70% at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 20%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    padding: 0 24px;
}

/* Logo frame */
.hero-logo-wrap {
    position: relative;
}

.logo-frame {
    width: 140px;
    height: 140px;
    border: 1px solid var(--purple-line);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--black-mid);
}

/* Corner accents on the logo box */
.logo-frame::before,
.logo-frame::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--purple);
    border-style: solid;
}
.logo-frame::before {
    top: -1px; left: -1px;
    border-width: 2px 0 0 2px;
}
.logo-frame::after {
    bottom: -1px; right: -1px;
    border-width: 0 2px 2px 0;
}

.hero-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Placeholder shown if no logo.png exists */
.logo-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--purple-dim);
}

.logo-placeholder span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 4px;
    color: var(--purple);
}

/* Hero title */
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(42px, 8vw, 72px);
    line-height: 1.05;
    letter-spacing: 6px;
    color: var(--white);
}

.hero-title {
    background: linear-gradient(180deg, #fff 30%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero subtitle */
.hero-sub {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--white-dim);
    letter-spacing: 0.5px;
    max-width: 440px;
    line-height: 1.7;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    border: 1px solid var(--purple-line);
    background: var(--black-mid);
    padding: 18px 36px;
}

.stat-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-dot {
    width: 8px;
    height: 8px;
}

.stat-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

.stat-dot.total {
    background: var(--purple);
    box-shadow: 0 0 8px var(--purple-glow);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.stat-block > div {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.2;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white-dim);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--purple-line);
}

/* ============================================
   JOIN BUTTON (shared)
   ============================================ */
.join-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: var(--purple);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.join-btn:hover {
    background: var(--purple-dim);
    box-shadow: 0 0 24px var(--purple-glow), 0 0 60px rgba(124, 58, 237, 0.12);
    transform: translateY(-1px);
}

.join-btn:active {
    transform: translateY(0);
}

.join-btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.join-btn:hover .join-btn-icon {
    transform: translateX(4px);
}

/* ============================================
   ABOUT PAGE (about.html)
   ============================================ */
.about-page {
    position: relative;
    min-height: 100vh;
    padding: 140px 48px 80px;
    display: flex;
    justify-content: center;
}

.about-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--purple-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--purple-line) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    mask-image: radial-gradient(ellipse 60% 80% at center, black 10%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at center, black 10%, transparent 65%);
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* About header */
.about-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.about-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--purple);
}

.about-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.05;
    letter-spacing: 5px;
    background: linear-gradient(180deg, #fff 30%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-rule {
    width: 48px;
    height: 2px;
    background: var(--purple);
}

/* About blocks */
.about-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-block {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    border-left: 1px solid var(--purple-line);
    padding-left: 28px;
    transition: border-color 0.3s ease;
}

.about-block:hover {
    border-color: var(--purple);
}

.about-block-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--purple);
    letter-spacing: 1px;
    flex-shrink: 0;
    padding-top: 2px;
}

.about-block-text h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 10px;
}

.about-block-text p {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.85;
    color: var(--white-dim);
}

/* About CTA */
.about-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--purple-line);
}

.about-cta-text {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--white-dim);
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .nav {
        padding: 16px 24px;
    }
    .nav-title {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        font-size: 11px;
    }

    .stats-bar {
        padding: 14px 20px;
        gap: 20px;
    }
    .stat-num {
        font-size: 18px;
    }
    .stat-divider {
        height: 28px;
    }

    .about-page {
        padding: 120px 24px 60px;
    }
    .about-block {
        flex-direction: column;
        gap: 8px;
    }
}
