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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
}

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

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

h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
}

h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
}

h3 {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
}

/* Body text */
body {
    font-size: 16px;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

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

/* Buttons */
/* Accessible Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    letter-spacing: 0.025em;
    min-height: 44px;
}

.btn-primary {
    background-color: #0ea5e9;
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: #0284c7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.btn-secondary {
    background-color: transparent;
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
}

.btn-secondary:hover {
    background-color: #0ea5e9;
    color: white;
}

.btn-secondary:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Section with accessible styling */
.hero {
    min-height: 70vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 80px 0;
}

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-logo img {
    width: auto;
    height: 240px;
    max-width: 100%;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    text-align: center;
    max-width: 600px;
}

.hero-headline {
    font-size: clamp(28px, 4vw, 36px);
    color: #0ea5e9;
    font-weight: 700;
    margin-bottom: 20px;
    font-style: normal;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-subhead {
    font-size: 18px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.features-title {
    font-size: clamp(24px, 3.5vw, 32px);
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.features-subtitle {
    font-size: 18px;
    color: #6b7280;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.feature-card {
    background: white;
    padding: 30px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.feature-card:nth-child(even) {
    background-color: #f9fafb;
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background-color: #dbeafe;
    border-radius: 8px;
    margin: 0 auto 24px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: #0ea5e9;
    stroke-width: 1.5;
}

.feature-card h3 {
    color: #1f2937;
    margin-bottom: 16px;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.3;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 16px;
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background-color: #f9fafb;
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background-color: white;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.video-placeholder:hover {
    border-color: #0ea5e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.play-icon {
    margin-bottom: 16px;
    color: #0ea5e9;
}

.demo-text {
    font-size: 18px;
    color: #6b7280;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-header h2 {
    color: #1f2937;
    margin-bottom: 20px;
}

.contact-header p {
    font-size: 18px;
    color: #6b7280;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.success-message {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid #10b981;
}

.success-message h3 {
    color: #10b981;
    margin-bottom: 16px;
}

.success-message p {
    color: #6b7280;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    color: #ccc;
    margin: 0;
}

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

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: white;
}

.social-link {
    color: #ccc;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #0ea5e9;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body a {
    color: #0fc3e1;
    text-decoration: none;
    font-weight: 500;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Accent colors for highlights */
.accent-highlight {
    color: #ea580c;
}

.accent-bg {
    background-color: #fed7aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features,
    .demo,
    .contact {
        padding: 60px 0;
    }
    
    .features-header {
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .contact-form,
    .success-message {
        padding: 24px;
    }
    
    .contact-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .features,
    .demo,
    .contact {
        padding: 40px 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 16px 24px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus States */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #0fc3e1;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-secondary {
        border-width: 3px;
    }
    
    .video-placeholder {
        border-width: 3px;
    }
    
    .form-group input,
    .form-group textarea {
        border-width: 2px;
    }
}
