:root {
    --bg-dark: #030509;
    --card-bg: #0a0e17;
    --border-card: #1e293b;
    --accent-gold: #f59e0b;
    --accent-blue: #3b82f6;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-heading: #3b82f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 2rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation Header */
header {
    border-bottom: 1px solid var(--border-card);
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* World-Class Bluish-White Gradient Site Title */
.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 60%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: filter 0.3s ease;
}

.site-title:hover {
    filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-blue);
}

/* Cards & Structural Layout */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

/* Headings & Subtitles */
h1 {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.4rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.15rem;
    color: var(--accent-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.sub-title {
    color: #60a5fa;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

ul {
    margin-left: 1.25rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Axiom Box with Golden Aura & Touch Interaction */
.axiom-box {
    border: 2px solid #f59e0b;
    border-radius: 18px;
    padding: 2.25rem 1.5rem;
    background: rgba(245, 158, 11, 0.02);
    text-align: center;
    overflow: visible;
    
    /* Layered radiant aura */
    box-shadow: 
        0 0 20px rgba(245, 158, 11, 0.5),
        0 0 45px rgba(245, 158, 11, 0.35),
        0 0 85px rgba(245, 158, 11, 0.2),
        inset 0 0 25px rgba(245, 158, 11, 0.15);
        
    /* Smooth transition for touch / hover */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    cursor: pointer;
    will-change: transform, box-shadow;
}

/* Dynamic Hover / Touch Feedback (Slight Zoom Out + Radiant Elevation) */
.axiom-box:hover,
.axiom-box:active {
    transform: scale(0.98);
    box-shadow: 
        0 0 30px rgba(245, 158, 11, 0.7),
        0 0 65px rgba(245, 158, 11, 0.5),
        0 0 110px rgba(245, 158, 11, 0.3),
        inset 0 0 35px rgba(245, 158, 11, 0.25);
}

.axiom-title {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.math-wrapper {
    font-size: 1.3rem;
    margin: 1rem 0;
    overflow-x: auto;
    padding: 0.5rem 0;
}

/* Responsive Grid for Formulas & Metrics */
.math-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-top: 1.5rem;
}

.math-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-card);
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.math-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.5);
}

.math-card.gold-border {
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.math-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Badges & Action Links */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.badge:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-card);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a {
    color: var(--accent-gold);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .card {
        padding: 1.25rem;
    }
    
    .axiom-box {
        padding: 1.25rem 0.75rem;
    }

    .math-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
}