:root {
    /* Core colors using hex format */
    --primary: #DC2626;
    --primary-foreground: #FFFFFF;
    --primary-glow: #EF4444;
    --accent: #EA580C;
    --accent-foreground: #FFFFFF;
    --accent-glow: #F97316;
    --background: #FFFBEB;
    --foreground: #1F2937;
    --card: #FFFFFF;
    --card-foreground: #1F2937;
    --secondary: #E7D3C1;
    --secondary-foreground: #1F2937;
    --muted: #F1EDE8;
    --muted-foreground: #6B7280;
    --border: #E7D3C1;
    --destructive: #DC2626;
    --destructive-foreground: #FFFFFF;

    /* Custom design tokens */
    --gradient-primary: linear-gradient(135deg, #DC2626, #EF4444);
    --gradient-accent: linear-gradient(135deg, #EA580C, #F97316);
    --gradient-subtle: linear-gradient(180deg, #FFFBEB, #FEF3C7);
    --shadow-elegant: 0 10px 30px -10px rgba(220, 38, 38, 0.2);
    --shadow-glow: 0 0 40px rgba(239, 68, 68, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 0.5rem;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: var(--background);
    color: var(--foreground);
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.gradient-bg {
    background: var(--gradient-subtle);
    min-height: 100vh;
}

.gradient-primary {
    background: var(--gradient-primary);
}

.gradient-accent {
    background: var(--gradient-accent);
}

.shadow-elegant {
    box-shadow: var(--shadow-elegant);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-section {
    padding: 4rem 1rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.book-cover-container {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
}

.book-cover {
    height: 48rem;
    width: auto;
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
    .book-cover {
        height: 34rem;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-grid {
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .book-cover {
        height: 30rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-grid {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .book-cover {
        height: 24rem;
    }
}

.hero-content {
    text-align: center;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.glow-effect {
    position: absolute;
    inset: -1rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    opacity: 0.2;
    filter: blur(40px);
    z-index: -1;
}


.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-elegant);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.section {
    padding: 1% 1rem;
}

.section-muted {
    background: var(--muted);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.card {
    background: var(--card);
    color: var(--card-foreground);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-elegant);
    padding: 2rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.text-md {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.badge-secondary {
    display: inline-block;
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.purchase-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-items: center;
}

@media (min-width: 640px) {
    .purchase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .purchase-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

.btn-purchase {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .author-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.author-photo {
    height: 20rem;
    width: 20rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-elegant);
    margin: 0 auto;
    display: block;
}

.contact-section {
    background: linear-gradient(135deg, #FED7AA, #FDBA74);
    color: var(--foreground);
    text-align: center;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-email {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-name {
    font-size: 1.125rem;
    opacity: 0.8;
}

.footer {
    padding: 2rem 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted-foreground);
}

.max-w-2xl {
    max-width: 42rem;
    margin: 0 auto;
}

.max-w-4xl {
    max-width: 56rem;
    margin: 0 auto;
}

.max-w-6xl {
    max-width: 72rem;
    margin: 0 auto;
}

.contact-form {
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--foreground);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-submit {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border: none;
    width: 100%;
}

.form-submit:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    text-align: center;
    display: none;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    text-align: center;
}