/* Nu: Simple Calculator - Unique Article Styles */

:root {
    --nu-accent: #64b5f6;
    --nu-accent-gradient: linear-gradient(135deg, #64b5f6 0%, #1e88e5 100%);
    --nu-glass-bg: rgba(10, 10, 10, 0.7);
    --nu-glass-border: rgba(255, 255, 255, 0.08);
    --nu-depth-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- LAYOUT --- */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 5% 8rem;
}

section {
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- TEXT GRADIENTS --- */
.text-gradient {
    background: var(--nu-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- HERO --- */
.nu-hero {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

.hero-bg-container {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--nu-depth-shadow);
    border: 1px solid var(--nu-glass-border);
    background: #000;
}

.feature-graphic {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-content {
    margin-bottom: 2rem;
}

.nu-hero h1 {
    font-size: clamp(2rem, 6vw, 3rem); /* Reduced font size */
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: black;
}

.nu-hero .tagline {
    font-size: 0.5em; /* 0.5x the size of h1 via inheritance or explicit context */
    /* Since .tagline is outside h1, we'll use a calculation based on the h1 size or just set it explicitly to half the max h1 size */
    font-size: clamp(1rem, 3vw, 1.5rem); 
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- GLASS CARDS --- */
.glass-card {
    background: var(--nu-glass-bg);
    border: 1px solid var(--nu-glass-border);
    border-radius: 32px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: var(--nu-depth-shadow);
}

/* --- SCREENSHOT GALLERY --- */
.screenshot-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    justify-content: center;
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
}

.screenshot-gallery::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 150px; /* Smaller screenshot width */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--nu-glass-border);
    transition: transform 0.3s ease;
    background: #000;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.screenshot-item:hover {
    transform: translateY(-10px);
    border-color: var(--nu-accent);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

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

.feature-box {
    padding: 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--nu-glass-border);
}

.feature-box h3 {
    color: var(--nu-accent);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* --- THEME LIST --- */
.theme-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.theme-pill {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--nu-glass-border);
    background: rgba(255, 255, 255, 0.05);
}

/* Theme specific colors */
.theme-aegis { border-color: #00e5ff; color: #00e5ff; }
.theme-solara { border-color: #ffca28; color: #ffca28; }
.theme-dust { border-color: #d7ccc8; color: #d7ccc8; }
.theme-crimson { border-color: #ff5252; color: #ff5252; }
.theme-cypher { border-color: #00ff41; color: #00ff41; }
.theme-ash { border-color: #9e9e9e; color: #9e9e9e; }

/* --- GUIDELINES --- */
.guidelines-list {
    list-style: none;
    padding: 0;
}

.guidelines-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.numeral {
    background: var(--nu-accent-gradient);
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* --- CTA --- */
.nu-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--nu-accent-gradient);
    border-radius: 40px;
    color: #000;
    margin-top: 4rem;
}

.nu-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.nu-cta .play-badge {
    filter: invert(1);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.8s ease forwards;
}
