/* CDL Tutor - Premium Design */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --dark: #0f172a;
    --dark-card: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --success: #22c55e;
    --white: #ffffff;
    --bg: #f8fafc;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 50%, var(--primary-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
    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.03'%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.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-light);
    max-width: 500px;
    margin: 0 auto 24px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-badges span {
    color: var(--success);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-badges span::before {
    content: '✓';
    background: var(--success);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Main Content */
main {
    padding: 40px 0;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.card h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--gray);
    margin-bottom: 24px;
}

/* State Selection */
.state-section {
    margin-top: -80px;
}

.state-section .card {
    border: 1px solid #e2e8f0;
}

.select-wrapper {
    max-width: 400px;
    margin: 0 auto 20px;
}

.modern-select {
    width: 100%;
    padding: 16px 48px 16px 20px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: all 0.2s;
}

.modern-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-full {
    width: 100%;
}

/* Features */
.features {
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
}

/* Pricing */
.pricing-preview {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    border: 2px solid #e2e8f0;
    width: 300px;
    position: relative;
    transition: all 0.2s;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.price {
    margin-bottom: 8px;
}

.price .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    vertical-align: top;
}

.price .amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -2px;
}

.price .period {
    font-size: 16px;
    color: var(--gray);
}

.price-subtitle {
    color: var(--success);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
}

.benefits {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.benefits li {
    padding: 8px 0;
    color: var(--dark);
    font-size: 14px;
}

/* Testimonials */
.testimonials {
    text-align: center;
    padding: 40px 0;
}

.testimonials h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.testimonial {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
}

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

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

/* Footer */
footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 32px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    margin-bottom: 16px;
}

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

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }
    
    .state-section {
        margin-top: 0;
    }
    
    .card {
        padding: 24px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .feature-card, .pricing-card, .testimonial {
    animation: fadeIn 0.5s ease forwards;
}

.feature-card:nth-child(2), .pricing-card:nth-child(2) {
    animation-delay: 0.1s;
}

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