/* ===== Base Styles ===== */
:root {
    --color-bg: #0a0a0f;
    --color-bg-light: #12121a;
    --color-text: #e8e6e3;
    --color-text-muted: #9a9a9a;
    --color-gold: #c9a227;
    --color-gold-light: #e8c547;
    --color-accent: #8b5a2b;

    /* Aura Colors */
    --aura-calm: #a0b4c8;
    --aura-guarded: #d4a84b;
    --aura-irritated: #d97d3b;
    --aura-hostile: #c43c3c;
    --aura-critical: #1a1a1a;

    --font-display: 'Cinzel', serif;
    --font-body: 'Crimson Text', Georgia, serif;

    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-style: italic;
}

/* ===== Navigation ===== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-gold);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--color-gold);
}

.btn-nav {
    background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

.btn-nav:hover {
    color: var(--color-bg) !important;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 5%;
    position: relative;
    background: url('assets/images/library_background.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.7) 50%,
        rgba(10, 10, 15, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
    color: var(--color-bg);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.hero-book {
    position: relative;
    z-index: 10;
}

.hero-book img {
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition);
}

.hero-book img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* ===== Features Section ===== */
.features {
    padding: 6rem 0;
    background: var(--color-bg-light);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 162, 39, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--color-gold);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-gold-light);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* ===== Characters Section ===== */
.characters {
    padding: 6rem 0;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.character-card {
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.05) 0%, rgba(10, 10, 15, 0.9) 100%);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition);
}

.character-card:hover {
    transform: scale(1.03);
}

.character-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-gold);
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.2);
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-card h3 {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.character-card p {
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.lesson-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.15);
    color: var(--color-gold-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-display);
}

/* ===== Story Section ===== */
.story {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.story-bg {
    position: absolute;
    inset: 0;
    background: url('assets/images/stage01_bg.png') center/cover no-repeat;
    opacity: 0.15;
}

.story-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.story-label {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-bg);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.story h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.story p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.story-features {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.story-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-feature .number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-gold);
    font-weight: 700;
}

.story-feature .label {
    color: var(--color-text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== Aura Section ===== */
.aura-section {
    padding: 6rem 0;
    background: var(--color-bg-light);
}

.aura-display {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.aura-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.aura-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.aura-calm { background: var(--aura-calm); }
.aura-guarded { background: var(--aura-guarded); }
.aura-irritated { background: var(--aura-irritated); }
.aura-hostile { background: var(--aura-hostile); }
.aura-critical {
    background: var(--aura-critical);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.aura-item span {
    font-family: var(--font-display);
    color: var(--color-text);
    font-size: 1rem;
}

.aura-item small {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ===== Download Section ===== */
.download {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
}

.download p {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.app-store-badge img {
    height: 60px;
    transition: transform var(--transition);
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.download-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    color: var(--color-gold);
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .hero-book img {
        max-width: 280px;
        transform: none;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    h2 {
        font-size: 2rem;
    }

    .story-features {
        gap: 2rem;
    }

    .story-feature .number {
        font-size: 2.2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .aura-display {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .characters-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .story h2 {
        font-size: 2rem;
    }
}
