/* 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;
    background-color: #ffffff;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #6b7280;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

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

.btn-secondary {
    background-color: transparent;
    color: #374151;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.btn-outline {
    background-color: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-outline:hover {
    background-color: #3b82f6;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    height: 40px;
    width: 40px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-icon:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin: 0;
}

.logo-4 {
    color: #8b5cf6;
}

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

.nav-links a, .nav-safety-btn {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.nav-links a:hover, .nav-safety-btn:hover {
    color: #3b82f6;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-cta {
    margin-bottom: 2rem;
}

.hero-secondary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qr-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.qr-placeholder {
    font-size: 2rem;
}

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

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1f2937, #374151);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
}

.dashboard-preview {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Enhanced QR Code Section */
.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    border: 2px solid #e5e7eb;
}

.download-link {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Enhanced Phone Mockup */
.interactive-phone {
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

.battery {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signal-bars {
    display: flex;
    align-items: end;
    gap: 2px;
}

.bar {
    width: 3px;
    background: #1f2937;
    border-radius: 1px;
}

.bar:nth-child(1) { height: 4px; }
.bar:nth-child(2) { height: 6px; }
.bar:nth-child(3) { height: 8px; }
.bar:nth-child(4) { height: 10px; }

.battery-icon {
    width: 20px;
    height: 10px;
    border: 1px solid #1f2937;
    border-radius: 1px;
    position: relative;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 4px;
    background: #1f2937;
    border-radius: 0 1px 1px 0;
}

.battery-fill {
    width: 80%;
    height: 100%;
    background: #22c55e;
    border-radius: 1px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.app-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
}

.progress-indicator {
    background: #eff6ff;
    color: #3b82f6;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Enhanced Project Cards */
.project-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card.completed {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.project-card.in-progress {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.project-card.pending {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px dashed #d1d5db;
}

.project-icon {
    font-size: 24px;
    margin-right: 12px;
}

.project-info {
    flex: 1;
}

.project-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.project-status {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.project-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-fill.animated {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(255, 255, 255, 0.9) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Newsletter Subscription Section - Compact Design */
.newsletter-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 3rem 0;
    color: white;
}

.newsletter-compact {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-compact h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.newsletter-compact .highlight {
    color: #60a5fa;
}

.newsletter-compact p {
    font-size: 1rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.email-form-compact {
    margin-bottom: 2rem;
}

.form-group-compact {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.email-form-compact input[type="email"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #374151;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.email-form-compact input[type="email"]::placeholder {
    color: #9ca3af;
}

.email-form-compact input[type="email"]:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-btn-compact {
    padding: 0.875rem 1.75rem;
    background: white;
    color: #1f2937;
    border: none;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.subscribe-btn-compact:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.subscription-options-compact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.option-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #d1d5db;
    transition: color 0.3s ease;
}

.option-compact:hover {
    color: white;
}

.option-compact input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #60a5fa;
    cursor: pointer;
}

.social-proof-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -6px;
    object-fit: cover;
}

.avatar:first-child {
    margin-left: 0;
}

.rating-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-compact .stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-compact .rating-text {
    font-size: 0.85rem;
    color: #9ca3af;
}

.success-message {
    color: #10b981;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Mobile specific hero adjustments */
@media (max-width: 768px) {
    .hero-text {
        max-width: 100%;
    }

    .hero-cta .btn-primary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta .btn-primary {
        max-width: none;
    }
}

/* Mobile responsiveness for compact newsletter */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 2rem 0;
    }
    
    .newsletter-compact h2 {
        font-size: 1.75rem;
    }
    
    .newsletter-compact p {
        font-size: 0.95rem;
    }
    
    .form-group-compact {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 300px;
    }
    
    .email-form-compact input[type="email"] {
        border-radius: 50px;
        border-right: 2px solid #374151;
    }
    
    .subscribe-btn-compact {
        border-radius: 50px;
        width: 100%;
    }
    
    .subscription-options-compact {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .social-proof-compact {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Social Proof */
.social-proof {
    padding: 4rem 0;
    background-color: #f8fafc;
    text-align: center;
}

.section-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.social-proof-value {
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.badge {
    text-align: center;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.badge span {
    font-size: 0.9rem;
    color: #6b7280;
}

.disclaimer {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Benefits Sections */
.benefits {
    padding: 4rem 0;
}

.benefit-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.benefit-section.reverse {
    direction: rtl;
}

.benefit-section.reverse > * {
    direction: ltr;
}

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

.image-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.coding-scene {
    width: 80%;
    background: #1e293b;
    border-radius: 10px;
    padding: 20px;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
}

.code-lines {
    margin-bottom: 15px;
}

.line {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.ai-assist {
    background: #3b82f6;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    text-align: center;
}

.safety-dashboard {
    width: 80%;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.parent-view h4 {
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
}

.safety-item {
    background: #ecfdf5;
    color: #065f46;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.portfolio-showcase {
    width: 80%;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.portfolio-item {
    background: #f0f9ff;
    color: #0c4a6e;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.github-badge {
    background: #1f2937;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.benefit-content h3 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.benefit-content p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* Courses Section */
.courses {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

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

.course-card.featured {
    border: 3px solid #3b82f6;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.course-header {
    text-align: center;
    margin-bottom: 2rem;
}

.course-header h3 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.course-tagline {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 1rem;
}

.course-meta {
    color: #4b5563;
    font-weight: 500;
}

.course-features h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

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

.course-features li {
    padding: 0.5rem 0;
    color: #4b5563;
}

.perfect-for {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 1.5rem;
}

.course-cta {
    margin-top: auto;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.feature-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.testimonials-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stars-display {
    text-align: center;
    margin-bottom: 3rem;
}

.stars-large {
    font-size: 1.5rem;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-card p {
    font-style: italic;
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-author {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.testimonial-author strong {
    color: #1f2937;
}

.testimonials-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* FAQ */
.faq {
    padding: 4rem 0;
}

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

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #4b5563;
    margin: 0;
}

/* Final CTA */
.final-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-align: center;
}

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

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

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

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background-color: white;
    color: #3b82f6;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

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

.footer-contact {
    display: flex;
    align-items: center;
}

.footer-contact p {
    margin: 0;
}

.legal-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: #3b82f6;
}

.footer-contact {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Navigation Mobile Menu Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #374151;
    padding: 0.5rem;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus,
.nav-toggle:active {
    color: #3b82f6;
    outline: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav {
        position: relative;
        padding: 0.75rem 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a, .nav-safety-btn {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-actions {
        margin-left: auto;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-headline {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subheadline {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-secondary {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .qr-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .qr-code-container {
        align-items: center;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        margin: 0 auto;
    }
    
    .benefit-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .benefit-section.reverse {
        direction: ltr;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-card.featured {
        transform: none;
        border-width: 2px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .legal-links {
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .image-placeholder {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .section-headline {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .social-proof-value {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .badge {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-headline {
        font-size: 1.875rem;
        line-height: 1.1;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .section-headline {
        font-size: 1.75rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }
    
    .final-cta h2 {
        font-size: 1.875rem;
    }
    
    .course-card,
    .feature-card,
    .testimonial-card,
    .faq-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .screen {
        padding: 15px;
    }
    
    .app-header {
        padding: 12px;
    }
    
    .app-header h3 {
        font-size: 16px;
    }
    
    .project-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .project-icon {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .project-info h4 {
        font-size: 14px;
    }
    
    .qr-code {
        width: 80px;
        height: 80px;
    }
    
    .download-link {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .benefit-content h3 {
        font-size: 1.5rem;
    }
    
    .benefit-content p {
        font-size: 1rem;
    }
    
    .course-header h3 {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .popular-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .nav-brand .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
}

/* ================================
   VISUAL POLISH ENHANCEMENTS
   ================================ */

/* Custom Properties for Sophisticated Color Grading */
:root {
    --shadow-ambient: 0 20px 40px rgba(59, 130, 246, 0.15);
    --shadow-tight: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lifted: 0 32px 64px rgba(59, 130, 246, 0.2), 0 8px 20px rgba(0, 0, 0, 0.2);
    --glow-pulse: 0 0 20px rgba(59, 130, 246, 0.3), 0 0 40px rgba(59, 130, 246, 0.1);
    --grain-opacity: 0.03;
    --atmospheric-blue: rgba(59, 130, 246, 0.02);
}

/* Typography Fine-tuning */
.hero-headline {
    position: relative;
    left: -2px; /* Optical alignment */
    letter-spacing: -0.02em;
    font-kerning: auto;
}

.section-headline {
    position: relative;
    left: -2px; /* Optical alignment */
    letter-spacing: -0.01em;
}

/* Custom kerning pairs for problematic combinations */
.hero-headline,
.section-headline,
h1, h2, h3 {
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Paragraph text subtle hover effect */
p {
    transition: transform 0.2s ease;
    cursor: default;
}

p:hover {
    transform: translateX(0.5px);
}

/* Atmospheric Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(600px circle at 50% 0%, rgba(147, 51, 234, 0.05), transparent),
        radial-gradient(800px circle at 80% 100%, rgba(249, 115, 22, 0.03), transparent),
        var(--atmospheric-blue);
    pointer-events: none;
    z-index: -1;
}

/* Animated grain texture */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: var(--grain-opacity);
    animation: grain 8s steps(10) infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2px, -1px); }
    20% { transform: translate(-1px, 2px); }
    30% { transform: translate(1px, -2px); }
    40% { transform: translate(2px, 1px); }
    50% { transform: translate(-1px, -2px); }
    60% { transform: translate(2px, -1px); }
    70% { transform: translate(1px, 2px); }
    80% { transform: translate(-2px, 1px); }
    90% { transform: translate(1px, -1px); }
}

/* Magnetic Button Effects */
.btn-primary,
.btn-secondary,
.btn-outline {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--shadow-tight);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lifted);
}

/* Glowing CTA Effects */
.btn-primary {
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8, #3b82f6);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover::after {
    opacity: 0.6;
    box-shadow: var(--glow-pulse);
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.05); }
}

/* Multi-layered Shadows and Depth */
.course-card,
.feature-card,
.testimonial-card,
.faq-item {
    box-shadow: 
        var(--shadow-tight),
        var(--shadow-ambient);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    transform-style: preserve-3d;
}

.course-card::before,
.feature-card::before,
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover,
.feature-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-lifted);
}

.course-card:hover::before,
.feature-card:hover::before,
.testimonial-card:hover::before {
    opacity: 1;
}

/* Hero Section Atmospheric Enhancement */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 800px 400px at 50% 0%, rgba(59, 130, 246, 0.08), transparent),
        var(--atmospheric-blue);
    pointer-events: none;
}

/* Phone Mockup Enhanced Depth */
.phone-mockup {
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 32px 64px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.phone-mockup:hover {
    transform: rotateY(-5deg) rotateX(5deg) translateZ(20px);
}

/* Navigation Enhanced */
.header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links a, .nav-safety-btn {
    position: relative;
    overflow: hidden;
}

.nav-links a::before, .nav-safety-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before, .nav-safety-btn:hover::before {
    transform: translateX(0);
}

/* Micro-animations for Text Elements */
.testimonial-card p {
    transition: transform 0.2s ease;
}

.testimonial-card:hover p {
    transform: translateX(1px);
}

.feature-card h3,
.course-card h3 {
    transition: color 0.3s ease, transform 0.2s ease;
}

.feature-card:hover h3,
.course-card:hover h3 {
    color: #3b82f6;
    transform: translateX(1px);
}

/* Stars Animation */
.stars {
    display: inline-block;
    transition: transform 0.3s ease;
}

.badge:hover .stars,
.testimonial-author:hover .stars {
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px rgba(255, 193, 7, 0.6));
}

/* Final CTA Section Enhanced */
.final-cta {
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(147, 51, 234, 0.1), transparent),
        radial-gradient(circle at 70% 50%, rgba(249, 115, 22, 0.08), transparent);
    animation: atmosphere-shift 20s ease-in-out infinite;
}

@keyframes atmosphere-shift {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.7; transform: translateX(20px); }
}

/* Enhanced Social Proof */
.trust-badges {
    perspective: 1000px;
}

.badge {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.badge:hover {
    transform: rotateY(5deg) translateY(-2px);
}

/* Sophisticated Footer */
.footer {
    position: relative;
    background: 
        linear-gradient(135deg, #1f2937 0%, #111827 100%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05), transparent),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.03), transparent);
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    body::after {
        display: none;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body::after {
        background-size: 2px 2px;
    }
}

/* Additional Micro-Interactions */
.logo {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo:hover {
    color: #1d4ed8;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.nav-brand:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

/* Enhanced QR Code Interaction */
.qr-section {
    transition: all 0.3s ease;
    cursor: pointer;
}

.qr-section:hover {
    transform: scale(1.05);
}

.qr-section:hover .qr-placeholder {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Project Card Enhanced Animation */
.project-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Popular Badge Enhanced */
.popular-badge {
    animation: subtle-bounce 3s ease-in-out infinite;
}

@keyframes subtle-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-2px); }
}

/* Enhanced Testimonial Interactions */
.testimonial-card {
    cursor: pointer;
}

.testimonial-card:hover {
    border-left: 4px solid #3b82f6;
}

.testimonial-card:hover .testimonial-author strong {
    color: #3b82f6;
}

/* FAQ Item Enhanced */
.faq-item {
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-left-color: #3b82f6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #1d4ed8, #1e40af);
}

/* Selection Enhancement */
::selection {
    background-color: rgba(59, 130, 246, 0.2);
    color: #1f2937;
}

::-moz-selection {
    background-color: rgba(59, 130, 246, 0.2);
    color: #1f2937;
}

/* Focus States Enhancement */
.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus {
    outline: none;
    box-shadow: 
        var(--shadow-lifted),
        0 0 0 4px rgba(59, 130, 246, 0.3);
}

/* Loading States */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sophisticated Text Selection on Headers */
.hero-headline,
.section-headline,
h1, h2, h3 {
    user-select: none;
}

/* Enhanced Image Placeholder Interactions */
.image-placeholder {
    overflow: hidden;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: transform 0.6s;
    opacity: 0;
}

.image-placeholder:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
    opacity: 1;
}

/* Mobile Touch Enhancements */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:active {
        transform: scale(0.98);
    }
    
    .course-card:active,
    .feature-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
    }
}