/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #1e40af;
    --accent-color: #00bcd4;
    --success-color: #10b981;
    --warning-color: #ff9800;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Navigation */
header {
    background-color: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}

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

.cta-link {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: var(--bg-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 600;
    color: var(--accent-color);
}

.description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tech-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-code {
    background-color: #24292e;
    color: white;
    border: 2px solid #fff;
}

.btn-code:hover {
    background-color: #2ea44f;
    transform: translateY(-2px);
}

.btn-contact {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn-contact:hover {
    background-color: var(--secondary-color);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.about h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about .intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.framework-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 1rem;
}

.framework-text h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.framework-text ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.framework-text li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.framework-result {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    text-align: center;
}

.framework-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

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

.features h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.part-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.part-card.highlighted {
    background: linear-gradient(135deg, #fff5e1 0%, #ffe5b4 100%);
    border-left-color: var(--warning-color);
}

.part-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.part-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.part-card.highlighted .part-number {
    background: var(--warning-color);
}

.part-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.part-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.chapters {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(0, 102, 204, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
}

.tech-highlight {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.code-showcase {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-md);
}

.code-showcase h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

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

.code-feature {
    text-align: center;
}

.code-feature .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.code-feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.code-feature p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Author Section */
.author {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.author h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
}

.author-bio {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.author-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.author-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-lg);
}

.bio-text h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

.bio-text .title {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.bio-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Buy Section */
.buy {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.buy h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.buy-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Complete Book Banner */
.complete-book-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 4rem;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.banner-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.banner-tag {
    display: inline-block;
    background: var(--warning-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.banner-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.old-price {
    font-size: 1.5rem;
    text-decoration: line-through;
    opacity: 0.7;
}

.new-price {
    font-size: 3.5rem;
    font-weight: bold;
}

.savings {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin: 3rem 0 0.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.price-card.compact {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.price-card.compact.highlighted {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, #fff9f0 0%, #ffe5cc 100%);
}

.price-card.compact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.part-label {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.price-card.compact h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.chapters-info {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hot-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Part Pricing Options */
.part-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.format-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.format-option.featured-format {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: var(--primary-color);
}

.format-option .format {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.format-option .amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.buy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.buy-btn:hover {
    background: var(--secondary-color);
    transform: translateX(3px);
}

.buy-btn.primary {
    background: var(--success-color);
}

.buy-btn.primary:hover {
    background: #059669;
}

/* Purchase Modal */
.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.purchase-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.book-details {
    line-height: 1.8;
    margin: 0;
}

.purchase-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: var(--bg-light);
}

.btn-continue {
    flex: 2;
    padding: 0.75rem;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-continue:hover {
    background: var(--secondary-color);
}

/* Guarantee Section */
.guarantee {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.guarantee h3 {
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.guarantee p {
    margin: 0.5rem 0;
}

.guarantee small {
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container,
    .framework-highlight {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .parts-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    footer .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .complete-book-banner {
        padding: 2rem 1.5rem;
    }
    
    .banner-price {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .new-price {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .stats {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .format-option {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.available {
    background-color: #10b981;
    color: white;
}

.status-badge.coming-soon {
    background-color: #6b7280;
    color: white;
}
