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

html, body {
    width: 100%;
    height: 100%;
    background-color: #2a1520;
    color: #f5ede3;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.app {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #2a1520 0%, #1a0f15 100%);
    overflow: hidden;
}

/* Background creature */
.background-creature {
    position: fixed;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 30% 30%, rgba(107, 29, 58, 0.3), transparent);
    border-radius: 50%;
    z-index: 0;
    animation: creatureFloat 6s ease-in-out infinite;
}

@keyframes creatureFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(-20px); }
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f5ede3;
    margin-bottom: 0.5rem;
    animation: fadeInDown 800ms ease-out;
}

.tagline {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 0.1em;
    color: #8c6a5d;
    text-transform: uppercase;
    animation: fadeInUp 800ms ease-out 300ms backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main content */
.main-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    min-height: 60vh;
}

.creature-display {
    display: flex;
    align-items: center;
    justify-content: center;
}

.creature-svg {
    width: 100%;
    max-width: 300px;
    filter: drop-shadow(0 0 30px rgba(107, 29, 58, 0.5));
    animation: creaturePulse 3s ease-in-out infinite;
}

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

.hero-text {
    animation: fadeInUp 800ms ease-out 600ms backwards;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #f5ede3;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #e8ddd0;
    max-width: 50ch;
}

/* Features Section */
.features-section {
    margin-bottom: 4rem;
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(107, 29, 58, 0.4), rgba(140, 106, 93, 0.2));
    border: 1px solid #6b1d3a;
    padding: 2rem;
    border-radius: 4px;
    transition: all 300ms ease;
    animation: slideInUp 600ms ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 200ms; }
.feature-card:nth-child(2) { animation-delay: 400ms; }
.feature-card:nth-child(3) { animation-delay: 600ms; }
.feature-card:nth-child(4) { animation-delay: 800ms; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(107, 29, 58, 0.6), rgba(140, 106, 93, 0.4));
    border-color: #8c6a5d;
    transform: translateY(-5px);
}

.feature-header {
    margin-bottom: 1rem;
    border-bottom: 2px solid #6b1d3a;
    padding-bottom: 1rem;
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f5ede3;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e8ddd0;
}

/* Lore Section */
.lore-section {
    margin-bottom: 4rem;
}

.attribute-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.attribute {
    background: rgba(107, 29, 58, 0.2);
    border-left: 3px solid #8c6a5d;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: slideInUp 600ms ease-out forwards;
}

.attribute:nth-child(1) { animation-delay: 300ms; }
.attribute:nth-child(2) { animation-delay: 400ms; }
.attribute:nth-child(3) { animation-delay: 500ms; }
.attribute:nth-child(4) { animation-delay: 600ms; }

.attr-name {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8c6a5d;
}

.attr-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5ede3;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(107, 29, 58, 0.3), rgba(140, 106, 93, 0.1));
    border: 1px solid #6b1d3a;
    border-radius: 4px;
    margin-bottom: 4rem;
}

.cta-text {
    font-size: 1.1rem;
    margin: 1rem 0 2rem;
    color: #e8ddd0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: 2px solid #8c6a5d;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-primary {
    background-color: #6b1d3a;
    color: #f5ede3;
}

.btn-primary:hover {
    background-color: #8c6a5d;
    border-color: #f5ede3;
}

.btn-secondary {
    background-color: transparent;
    color: #8c6a5d;
}

.btn-secondary:hover {
    background-color: #8c6a5d;
    color: #2a1520;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #6b1d3a;
    background-color: rgba(42, 21, 32, 0.7);
}

.footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #8c6a5d;
}

/* Palette references */
.palette-ref {
    display: none;
    background-color: #2a1520;
    background-color: #f5ede3;
    background-color: #6b1d3a;
    background-color: #8c6a5d;
    background-color: #e8ddd0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }

    .title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .section-title {
        font-size: clamp(1.3rem, 3vw, 2rem);
    }

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

    .attribute-list {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }

    .header {
        padding: 2rem 1rem 1rem;
    }

    .title {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.85rem;
    }
}
