/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
}

/* Accessibility - Skip Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 4px;
    font-weight: 500;
}

.skip-link:focus {
    top: 6px;
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Visually Hidden - Screen Reader Only */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Typography */
h1 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
}

.header-content-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    mix-blend-mode: multiply;
}

.back-link {
    color: #059669;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus {
    color: #047857;
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(to bottom, #f0fdf4, #ffffff);
    padding: 4rem 0 6rem;
    margin-top: 4rem;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #111827;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.launch-info {
    background-color: #dcfce7;
    color: #166534;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.launch-info p {
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Description Section */
.description {
    padding: 4rem 0 5rem;
    background-color: #ffffff;
}

.description-container {
    max-width: 64rem;
}

.description-content {
    text-align: center;
}

.description-text {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.75;
}

/* Features Section */
.features {
    padding: 4rem 0 5rem;
    background-color: #f9fafb;
}

.features-title {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #111827;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background-color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-card:focus-within {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.feature-description {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0 5rem;
    background-color: #ffffff;
}

.newsletter-container {
    max-width: 32rem;
}

.newsletter-content {
    text-align: center;
}

.newsletter-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: #111827;
}

.newsletter-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 24rem;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    background-color: #f9fafb;
    transition: border-color 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.newsletter-button {
    background-color: #059669;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-button:hover,
.newsletter-button:focus {
    background-color: #047857;
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Footer */
.footer {
    background-color: #111827;
    color: #ffffff;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-copyright {
    color: #9ca3af;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: #ffffff;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Legal content */
.legal-content {
    padding: 6rem 0 4rem;
}

.legal-container {
    max-width: 64rem;
}

.prose {
    max-width: none;
}

.prose h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #111827;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.prose p {
    margin-bottom: 1rem;
    color: #374151;
}

.prose ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #374151;
}

.prose li {
    margin-bottom: 0.25rem;
}

.prose em {
    font-style: italic;
    color: #6b7280;
}

/* Enhanced Focus States for All Interactive Elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* High Contrast Focus for Better Visibility */
@media (prefers-contrast: high) {
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 3px solid #000000;
        outline-offset: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}