/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --bg-dark: #050506;
    --gold-gradient: linear-gradient(180deg, #fcf6ba 0%, #bf953f 45%, #8a6d3b 100%);
    --silver-gradient: linear-gradient(180deg, #ffffff 0%, #a8abb1 100%);
    --gold-accent: #d4af37;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: white;
    margin: 0;
}

/* --- 2. THE HERO LOGO (ANDURIL REFORGED) --- */
.hero-header {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at center, #0f0f10 0%, #050506 100%);
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.row { display: flex; align-items: baseline; }
.row-top { gap: 30px; }
.row-bottom { gap: 15px; }

.first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.rest-of-word {
    font-size: 2.1rem;
    font-weight: 900;
    text-transform: uppercase;
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

/* --- 3. THE SWORD SPACER --- */
.sword-spacer {
    display: flex;
    align-items: center;
    width: 180px;
    height: 20px;
    position: relative;
    margin: 0 8px;
}

.blade { width: 100%; height: 1.5px; background: rgba(255,255,255,0.4); }
.hilt { 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 3px; 
    height: 22px; 
    background: var(--gold-gradient); 
}

/* --- 4. OVERLAY & VIDEO ENGINE --- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.overlay.active { opacity: 1; visibility: visible; }

.video-container {
    position: relative;
    width: 85%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    opacity: 0.5;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.video-container iframe { width: 100%; height: 100%; border: none; }

.close-btn {
    position: absolute;
    top: -35px;
    right: 0;
    background: none;
    border: none;
    color: var(--gold-accent);
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 1px;
}

.reforge-btn {
    background: var(--gold-gradient);
    color: #000;
    padding: 20px 40px;
    font-weight: 900;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transition: transform 0.2s;
}

.reforge-btn:hover { transform: scale(1.05); }

/* --- 5. STATS GRID SYSTEM --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 15px;
    text-align: center;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.stat-card.gold-border { border-color: rgba(212, 175, 55, 0.3); }

.label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888; /* Fallback for transparency */
    margin-bottom: 15px;
}

.value {
    font-size: clamp(1.2rem, 4vw, 2.2rem); 
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- 6. DATA SOURCES FOOTER --- */
footer.data-sources {
    padding: 80px 20px;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.data-sources h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-accent);
    margin-bottom: 30px;
    opacity: 0.7;
    text-align: center;
}

#endpointList {
    list-style: none;
    padding: 0;
    max-width: 1100px;
    margin: 0 auto;
}

#endpointList li {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.source-label {
    font-size: 0.7rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-weight: bold;
}

code {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

code::-webkit-scrollbar { height: 4px; }
code::-webkit-scrollbar-thumb { 
    background: rgba(212, 175, 55, 0.2); 
    border-radius: 10px; 
}


.reforged-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 8px;
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sub-line {
    font-size: 0.7rem;
    letter-spacing: 4px;
    opacity: 0.4;
    text-transform: uppercase;
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .value { font-size: 2rem; }
}


.title-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Forces all rows and the prompt to the center */
    width: 100%;
    gap: 0.6rem;
}

.start-prompt {
    width: 100%; /* Ensures the text-align has a full-width box to work with */
    text-align: center;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Double-down on centering the inner P and DIV tags */
}