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

:root {
    --primary-color: #d97706;
    --primary-dark: #b45309;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --blue-50: #eff6ff;
    --blue-600: #2563eb;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-600: #d97706;
    --purple-50: #faf5ff;
    --purple-600: #9333ea;
    --green-100: #dcfce7;
    --green-600: #16a34a;
    --red-600: #dc2626;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    height: 100%;
    width: 100%;
}

body {
    background: linear-gradient(to bottom right, #fef3c7, #ffffff, #eff6ff);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 2rem;
    }
}

/* Header */
header {
    background: linear-gradient(to right, var(--slate-900), var(--slate-800));
    color: white;
    padding: 1.5rem 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.6s ease-out;
}

header .container {
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    animation: slideDown 0.6s ease-out;
}

header p {
    color: #fcd34d;
    font-size: 1.125rem;
    margin-top: 0.5rem;
    animation: slideDown 0.6s ease-out 0.1s both;
}

@media (min-width: 768px) {
    header h1 {
        font-size: 2.25rem;
    }
}

/* Main Content */
main {
    padding: 3rem 0;
}

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

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, #fef08a, #fed7aa);
    border-radius: 1rem;
    filter: blur(2rem);
    opacity: 0.5;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.hero-image-wrapper:hover::before {
    opacity: 0.75;
}

.hero-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    display: block;
}

.hero-image-wrapper:hover img {
    transform: scale(1.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.hero-content {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.hero-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h2 .highlight {
    color: var(--amber-600);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--slate-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(0.5rem);
}

.benefit-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--amber-600);
    flex-shrink: 0;
    animation: bounce 1s ease-in-out infinite;
}

.benefit-item:nth-child(2) .benefit-icon {
    animation-delay: 0.1s;
}

.benefit-item:nth-child(3) .benefit-icon {
    animation-delay: 0.2s;
}

.benefit-text {
    color: var(--slate-700);
}

@media (min-width: 768px) {
    .hero-content h2 {
        font-size: 3rem;
    }
}

/* Form Section */
.form-section {
    max-width: 42rem;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.card {
    background: white;
    border: 2px solid var(--slate-200);
    border-radius: 0.65rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--slate-600);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-300);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--amber-600);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

input.error,
textarea.error {
    border-color: var(--red-600);
}

input.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

textarea {
    resize: none;
    min-height: 6rem;
}

.error-message {
    color: var(--red-600);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.checkbox-group {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    cursor: pointer;
    accent-color: var(--amber-600);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--slate-700);
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
}

button {
    width: 100%;
    background: linear-gradient(to right, var(--amber-600), var(--primary-dark));
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon {
    width: 3rem;
    height: 3rem;
    background: var(--green-100);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
    font-size: 1.5rem;
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--slate-600);
    margin-bottom: 1rem;
}

.success-email {
    font-weight: 600;
    color: var(--slate-900);
}

/* Highlights Section */
.highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .highlights {
        grid-template-columns: repeat(3, 1fr);
    }
}

.highlight-card {
    background: white;
    border: none;
    border-radius: 0.65rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out both;
}

.highlight-card:nth-child(1) {
    background: linear-gradient(to bottom right, #eff6ff, #bfdbfe);
    animation-delay: 0.5s;
}

.highlight-card:nth-child(2) {
    background: linear-gradient(to bottom right, #fffbeb, #fef3c7);
    animation-delay: 0.6s;
}

.highlight-card:nth-child(3) {
    background: linear-gradient(to bottom right, #faf5ff, #e9d5ff);
    animation-delay: 0.7s;
}

.highlight-card:hover {
    transform: scale(1.05) translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    animation: bounce 1s ease-in-out infinite;
    font-size: 2rem;
}

.highlight-card:nth-child(2) .highlight-icon {
    animation-delay: 0.1s;
}

.highlight-card:nth-child(3) .highlight-icon {
    animation-delay: 0.2s;
}

.highlight-card h4 {
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--slate-700);
}

/* Footer */
footer {
    background: var(--slate-900);
    color: #cbd5e1;
    padding: 2rem 1rem;
    margin-top: 4rem;
    animation: fadeIn 0.6s ease-out 0.8s both;
}

footer .container {
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

footer p:hover {
    color: var(--amber-600);
}

footer .copyright {
    font-weight: 600;
}

footer .subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.25rem);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Author Section */
.author-section {
    background: linear-gradient(to right, #eff6ff, #fef3c7);
    border-radius: 0.65rem;
    padding: 2rem;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out 0.5s both;
    text-align: center;
}

.author-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--amber-600);
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.author-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.author-info p {
    color: var(--slate-600);
    margin-bottom: 0.5rem;
}

/* Print Book Section */
.print-book-section {
    background: linear-gradient(to right, #fef3c7, #fed7aa);
    border-radius: 0.65rem;
    padding: 2rem;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.print-book-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1rem;
}

.print-book-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .print-book-content {
        grid-template-columns: 1fr;
    }
}

.print-book-image {
    display: flex;
    justify-content: center;
}

.print-book-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.print-book-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1rem;
}

.print-book-info p {
    color: var(--slate-700);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.price-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-600);
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 640px) {
    header h1 {
        font-size: 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.875rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.5rem;
    }
}

.hidden {
    display: none;
}
