:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #f8fafc;
    --primary: #667eea;
    --primary-600: #5a67d8;
    --primary-light: #e6e8ff;
    --border: #e2e8f0;
    --subtle: #64748b;
    --accent: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
}

* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

header {
    background-color: var(--bg);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
    align-items: center;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--primary);
}

.btn { 
    cursor: pointer; 
    font-weight: 600; 
    border-radius: 8px; 
    padding: 12px 24px; 
    border: 1px solid transparent; 
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; 
}

.btn-primary:hover { 
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-ghost { 
    background: transparent; 
    border-color: var(--border); 
    color: var(--text); 
}

.btn-ghost:hover {
    background: var(--muted);
}

.btn-outline { 
    background: transparent; 
    border-color: var(--primary); 
    color: var(--primary); 
}

.btn-outline:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.hero { 
    padding: 80px 0; 
    background: linear-gradient(180deg, #f8f9ff 0%, #f0f2ff 50%, #f8fafc 100%); 
}

.hero-inner { 
    display: flex; 
    align-items: center; 
    gap: 60px; 
    justify-content: center; 
    text-align: center; 
}

.hero-copy h1 { 
    font-size: 56px; 
    line-height: 1.1; 
    margin: 0 0 20px; 
    font-weight: 800;
}

.accent { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-copy p { 
    color: var(--subtle); 
    font-size: 20px; 
    margin: 0 0 32px; 
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons { 
    display: flex; 
    gap: 16px; 
    margin-bottom: 48px; 
    justify-content: center;
}

.stats { 
    display: flex; 
    gap: 24px; 
    justify-content: center;
}

.stat { 
    background: #fff; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 20px 24px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-width: 160px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat strong { 
    font-size: 32px; 
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat span { 
    color: var(--subtle); 
    font-size: 14px; 
    font-weight: 500;
}

.section { 
    padding: 80px 0; 
}

.section.muted { 
    background: var(--muted); 
}

.section-title { 
    text-align: center; 
    font-size: 36px; 
    margin: 0 0 16px; 
    font-weight: 700;
}

.section-sub { 
    text-align: center; 
    color: var(--subtle); 
    margin: 0 0 48px; 
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card-grid { 
    display: grid; 
    gap: 24px; 
}

.grid-3 { 
    grid-template-columns: repeat(3, 1fr); 
}

.card { 
    background: #fff; 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 32px; 
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.1);
    border-color: var(--primary);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.card h3 { 
    margin: 0 0 12px; 
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
}

.card p {
    color: var(--subtle);
    margin: 0;
    line-height: 1.6;
}

.testimonial .stars { 
    color: var(--warning); 
    margin-bottom: 16px; 
    font-size: 18px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 16px;
    color: var(--text);
}

.testimonial .author { 
    color: var(--subtle); 
    font-size: 14px; 
    font-weight: 500;
}

.steps { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 24px; 
}

.step { 
    background: #fff; 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 24px; 
    text-align: center;
    transition: all 0.3s;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.1);
    border-color: var(--primary);
}

.step-number { 
    display: inline-block; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%; 
    width: 48px;
    height: 48px;
    line-height: 48px;
    font-weight: 700; 
    margin-bottom: 16px;
    font-size: 18px;
}

.step h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.step p {
    color: var(--subtle);
    margin: 0;
    font-size: 14px;
}

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

.feature-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.feature-list li { 
    display: flex; 
    gap: 16px; 
    padding: 20px 0; 
    border-bottom: 1px solid var(--border); 
    align-items: flex-start;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-content {
    flex: 1;
}

.feature-list li strong { 
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
}

.feature-list li span {
    color: var(--subtle);
    font-size: 14px;
    line-height: 1.5;
}

.reading-preview {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-header {
    background: var(--primary-light);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text);
}

.book-icons {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.book-content {
    padding: 20px;
    color: var(--text);
    line-height: 1.6;
}

.highlighted-text {
    background: #fef3c7;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 12px 0;
    font-weight: 500;
}

.note-section {
    background: var(--primary-light);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    border-left: 4px solid var(--primary);
}

.chat-preview {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
}

.chat-message.user {
    background: var(--muted);
    margin-left: 20px;
}

.chat-message.ai {
    background: #f0fdf4;
    margin-right: 20px;
}

.user-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}

.ai-label {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.chat-message p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
}

.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px; 
}

.pricing-card { 
    background: #fff; 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 32px; 
    display: flex; 
    flex-direction: column;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.1);
}

.pricing-card .badge { 
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; 
    border-radius: 20px; 
    padding: 6px 16px; 
    font-size: 12px; 
    font-weight: 600;
}

.pricing-card h3 { 
    margin: 16px 0 8px; 
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.pricing-card .price { 
    font-size: 36px; 
    font-weight: 800; 
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.pricing-card .price span { 
    font-size: 14px; 
    color: var(--subtle); 
    font-weight: 500; 
}

.pricing-card ul { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 32px; 
    color: var(--subtle);
    flex: 1;
}

.pricing-card ul li { 
    margin: 12px 0; 
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-card.most-popular { 
    border-color: var(--primary); 
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: scale(1.05);
}

.pricing-card.most-popular:hover {
    transform: scale(1.05) translateY(-4px);
}

footer { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 40px; 
    font-size: 14px; 
    color: white; 
}

footer .container { 
    display: flex; 
    flex-direction: column; 
    gap: 40px; 
}

.footer-content { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 40px; 
}

.footer-logo { 
    flex: 2;
    max-width: 300px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.footer-links { 
    flex: 1; 
    min-width: 150px; 
}

.footer-links h4 { 
    color: white; 
    margin-bottom: 20px; 
    font-weight: 600;
}

.footer-links ul { 
    list-style: none; 
    padding: 0; 
}

.footer-links ul li { 
    margin-bottom: 12px; 
}

.footer-links ul li a { 
    color: rgba(255, 255, 255, 0.8); 
    text-decoration: none; 
    transition: color 0.2s;
}

.footer-links ul li a:hover { 
    color: white;
}

.copyright { 
    text-align: center; 
    margin-top: 40px; 
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    padding-top: 20px; 
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
    .grid-3 { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .steps { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .two-col { 
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .hero-inner { 
        flex-direction: column; 
        text-align: center; 
        gap: 40px;
    }
    
    .cta-buttons { 
        justify-content: center; 
        flex-wrap: wrap;
    }
    
    .stats { 
        justify-content: center; 
        flex-wrap: wrap; 
    }
    
    .pricing-grid { 
        grid-template-columns: 1fr; 
    }
    
    .pricing-card.most-popular {
        transform: none;
    }
    
    .pricing-card.most-popular:hover {
        transform: translateY(-4px);
    }
    
    .hero-copy h1 {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-copy h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
}
