/* ════════════════════════════════════
   NUOVA ERA 7.0 — Intro Principi (Light)
════════════════════════════════════ */

:root {
    --bg-white: #f8fbfa;
    --emerald: #2dcc96;
    --emerald-dark: #209971;
    --emerald-glow: rgba(45, 204, 150, 0.4);
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(45, 204, 150, 0.3);
    
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    color: var(--text-primary);
    overflow: hidden; /* Prevent scroll, handled by JS transitions */
    position: relative;
}

/* ── BACKGROUND CANVAS (Holographic Light Particles) ── */
#particles-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(45,204,150,0.05) 0%, transparent 70%);
}

/* ── UI CONTAINER ── */
.app-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* ── SCREENS TRANSITION ── */
.screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    padding: 2rem;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.screen.exiting {
    opacity: 0;
    transform: translateY(-20px);
}

/* ── MODULAR COMPONENTS ── */

.glass-card-light {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 0 40px var(--emerald-glow);
    text-align: left;
}

.text-center {
    text-align: center;
}

/* Typography */
.green-text {
    color: var(--emerald-dark);
}

.eyebrow {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.principle-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.principle-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary-light {
    background: var(--emerald);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(45, 204, 150, 0.3);
    font-family: 'Inter', sans-serif;
}

.btn-primary-light:hover {
    background: var(--emerald-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 20px rgba(45, 204, 150, 0.4);
}

.action-wrap {
    display: flex;
    justify-content: flex-end;
}

/* ── TRACKER ── */
.tracker-light {
    position: absolute;
    top: 3rem;
    width: 60%;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.tracker-bar {
    flex-grow: 1;
    height: 4px;
    background: rgba(0,0,0,0.05);
    border-radius: 2px;
    overflow: hidden;
}

.tracker-fill-green {
    height: 100%;
    background: var(--emerald);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-light {
    position: absolute;
    right: -50px;
    top: -10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald-dark);
    backdrop-filter: blur(10px);
}

/* Final Transition State */
body.entering-future {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    .principle-title {
        font-size: 2rem;
    }
    .glass-card-light {
        padding: 2rem;
    }
    .tracker-light {
        width: 80%;
    }
    .badge-light {
        right: 0;
        top: 20px;
    }
}
