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

:root {
    /* Brand Colors - RubricScan */
    --primary: #334155;        /* Slate 700 - Primary brand */
    --primary-dark: #1e293b;   /* Slate 800 - Darker variant */
    --accent: #f59e0b;         /* Amber 500 - CTAs, highlights */
    --accent-dark: #d97706;    /* Amber 600 - Hover states */
    
    /* Text Colors */
    --text: #0f172a;           /* Slate 900 - Body text */
    --text-light: #64748b;     /* Slate 500 - Muted text */
    
    /* Backgrounds */
    --bg: #ffffff;
    --bg-alt: #f8fafc;         /* Slate 50 - Light background */
    --border: #e2e8f0;         /* Slate 200 - Borders */
    
    /* Semantic Colors */
    --success: #10b981;        /* Emerald 500 */
    --warning: #f97316;        /* Orange 500 */
    --danger: #ef4444;         /* Red 500 */
    --info: #0ea5e9;           /* Sky 500 */
}

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

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

/* Header & Navigation */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--bg-alt);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.cta-button {
    background: var(--accent);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
}

.cta-button:hover {
    background: var(--accent-dark);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-buttons small {
    display: block;
    font-size: 0.8rem;
    font-weight: normal;
    opacity: 0.9;
}

.trust-line {
    font-size: 1rem;
    opacity: 0.9;
}

/* Value Props */
.value-prop {
    padding: 4rem 0;
    background: var(--bg-alt);
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.value-card h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Academic Integrity */
.integrity {
    padding: 4rem 0;
}

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

.integrity .lead {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-col {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 12px;
}

.comparison-col h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.comparison-col ul {
    list-style: none;
}

.comparison-col li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.comparison-col li:last-child {
    border-bottom: none;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: var(--bg-alt);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

/* Pricing */
.pricing {
    padding: 4rem 0;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: transform 0.2s;
}

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

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1.25rem;
    color: var(--text-light);
}

.plan-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

.best-for {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.savings {
    background: #fef3c7;
    color: #92400e;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background: var(--bg-alt);
}

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

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

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial cite {
    color: var(--text-light);
    font-style: normal;
    font-size: 0.9rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat span {
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h3 {
    margin-bottom: 1rem;
    color: white;
}

footer h4 {
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.9rem;
    text-transform: uppercase;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

.trust-badges {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.copyright {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

/* Blog Styles */
.blog-index {
    padding: 4rem 0;
}

.blog-index h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

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

.blog-posts {
    display: grid;
    gap: 2rem;
}

.post-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.post-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.post-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--primary);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.read-more:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

.blog-post {
    padding: 4rem 0;
}

.blog-post article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.blog-post h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.blog-post h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-post p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-post ul, .blog-post ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.blog-post blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.blog-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.blog-post th, .blog-post td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

.blog-post th {
    background: var(--bg-alt);
    font-weight: 600;
}

.blog-post a {
    color: var(--accent);
    text-decoration: none;
}

.blog-post a:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Health check */
body:has(.health) {
    display: none;
}
