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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #4b5563;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/devoffice-new1.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}

/* Fallback for browsers that don't support WebP */
.no-webp .hero::before {
    background-image: url('images/devoffice-new1.jpg');
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: #1e40af;
    margin-bottom: 1rem;
    line-height: 0.9;
}

.title-main {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.hero-subtitle em {
    font-style: italic;
    color: #2563eb;
}

.hero-tagline {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.book-cover {
    width: 300px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: rotate(-2deg) scale(1.05);
}

.book-cover img,
.book-cover picture {
    width: 100%;
    height: 100%;
}

.book-cover img {
    object-fit: cover;
    display: block;
}

.geometric-pattern {
    position: absolute;
    top: 0;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 1;
}

/* Overview Section */
.overview {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.overview-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-8px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.overview-card h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 15px;
}

.overview-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* Signs Section */
.signs {
    padding: 100px 0;
    background: #f8fafc;
}

.signs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.signs-text h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 40px;
}

.signs-list {
    margin-bottom: 30px;
}

.sign-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sign-number {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.sign-item p {
    margin: 0;
    font-size: 1.1rem;
    color: #374151;
}

.signs-cta-text {
    font-size: 1.1rem;
    color: #2563eb;
    font-weight: 600;
}

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

.signs-image {
    position: relative;
    width: 400px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.signs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Author Section */
.author {
    padding: 100px 0;
    background: white;
}

.author-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.author-info h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.author-info h3 {
    font-size: 1.8rem;
    color: #2563eb;
    margin-bottom: 5px;
}

.author-title {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 25px;
    font-weight: 600;
}

.author-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 25px;
}

.author-mission {
    font-size: 1.25rem;
    color: #2563eb;
    font-style: italic;
    font-weight: 600;
    border-left: 4px solid #2563eb;
    padding-left: 20px;
    margin: 0;
}

.author-visual {
    display: flex;
    justify-content: center;
}

.author-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border: 4px solid white;
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Insights Section */
.insights {
    padding: 100px 0;
    background: #f8fafc;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.insight-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
}

.insight-card h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.insight-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

.chapter-tag {
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: -10px;
    right: 20px;
}

/* Sample Section */
.sample {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
}

.sample-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sample-text h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.sample-text p {
    color: #bfdbfe;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.sample-cta {
    margin-bottom: 15px;
}

.sample-cta .btn-primary {
    display: inline-block;
    text-decoration: none;
}

.form-disclaimer {
    color: #bfdbfe;
    font-size: 0.9rem;
    margin: 0;
}

.sample-visual {
    display: flex;
    justify-content: center;
}

.sample-preview {
    position: relative;
    width: 300px;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sample-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(29, 78, 216, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Purchase Section */
.purchase {
    padding: 100px 0;
    background: white;
}

.purchase-content {
    text-align: center;
}

.purchase-content h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 15px;
}

.purchase-content > p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.purchase-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.purchase-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.purchase-card.featured {
    border-color: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.purchase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.purchase-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.purchase-card h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 15px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 25px;
}

.purchase-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.purchase-card li {
    padding: 8px 0;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.purchase-card li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: #2563eb;
    margin-bottom: 15px;
}

.footer-info p {
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content,
    .signs-content,
    .author-content,
    .sample-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .book-cover {
        width: 250px;
        height: 320px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .sample-cta {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .purchase-card.featured {
        transform: none;
    }
    
    .purchase-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .signs-image {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
    
    .author-photo {
        width: 200px;
        height: 200px;
    }
    
    .sample-preview {
        width: 280px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
        min-height: auto;
    }
    
    .overview,
    .signs,
    .author,
    .insights,
    .sample,
    .purchase {
        padding: 60px 0;
    }
    
    .section-header h2,
    .signs-text h2,
    .author-info h2,
    .sample-text h2,
    .purchase-content h2 {
        font-size: 2rem;
    }
    
    .overview-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
