:root {
    /* Color Palette - Dark Academia / Premium */
    --bg-color: #0c0f0e;
    --text-primary: #e6e3dd;
    --text-secondary: #a39d91;
    --gold-accent: #c6a267;
    --gold-glow: rgba(198, 162, 103, 0.4);
    --btn-bg: rgba(255, 255, 255, 0.05);
    --btn-border: rgba(198, 162, 103, 0.3);

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle at 50% 10%, #1a1e1d 0%, var(--bg-color) 100%);
    background-attachment: fixed;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.hero-content {
    animation: fadeIn 1.5s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(to bottom, #fff, var(--gold-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--gold-glow));
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

/* Atmospheric Glow Behind Content */
.glowing-book-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: -1;
    pointer-events: none;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 50%);
    animation: pulseGlow 5s infinite alternate ease-in-out;
    filter: blur(50px);
}

.store-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.store-btn {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 12px;
    padding: 0.85rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    width: 240px;
    text-align: left;
}

.store-btn:hover {
    background: rgba(198, 162, 103, 0.15);
    border-color: var(--gold-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.store-btn .icon {
    font-size: 2.2rem;
}

.store-btn .btn-text {
    display: flex;
    flex-direction: column;
}

.store-btn .small-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-btn .big-text {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Features Section --- */
.features {
    padding: 6rem 2rem;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(198, 162, 103, 0.2);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--btn-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold-accent);
    filter: drop-shadow(0 0 5px var(--gold-glow));
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Waitlist Section --- */
.waitlist-section {
    width: 100%;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, #080a09, transparent);
}

.waitlist-container {
    background: rgba(198, 162, 103, 0.05);
    border: 1px solid var(--btn-border);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.waitlist-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.waitlist-message {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.waitlist-form {
    display: flex;
    gap: 1rem;
    flex-direction: row;
    justify-content: center;
}

#email-input {
    flex: 1;
    max-width: 350px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#email-input:focus {
    border-color: var(--gold-accent);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(198, 162, 103, 0.2);
}

.submit-btn {
    background: var(--gold-accent);
    color: #0c0f0e;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #deb673;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.form-message {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    min-height: 1.5rem;
}

.form-message.success {
    color: #4ade80;
}

.form-message.error {
    color: #f87171;
}

/* --- Footer --- */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    width: 100%;
}

/* --- Animations --- */
@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .logo {
        font-size: 4rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .waitlist-form {
        flex-direction: column;
        align-items: center;
    }

    #email-input,
    .submit-btn {
        width: 100%;
        max-width: 100%;
    }
}