/* Color Palette */
:root {
    --navy-dark: #1a1a2e;
    --blue-accent: #4a6fa5;
    --white: #ffffff;
    --light-blue: #f8f9ff;
    --text-body: #333333;
    --text-light: #666666;
    --border-light: #e0e0e0;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
}

.nav-brand {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--navy-dark);
}

.nav-links {
    font-size: 0.9em;
    color: var(--text-light);
}

.nav-links a {
    margin-left: 20px;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--navy-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--text-body);
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    font-size: 1.1em;
    padding: 14px 32px;
    background: var(--navy-dark);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--blue-accent);
}

.trust-indicators {
    color: var(--text-light); /* Changed from #999999 for WCAG AA compliance */
    font-size: 0.85em;
    margin-top: 20px;
}

/* Features Section */
.features {
    padding: 60px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.features h2 {
    color: var(--navy-dark);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.feature-card {
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--light-blue);
    transition: box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.feature-card h3 {
    margin: 0 0 8px;
    color: var(--navy-dark);
}

.feature-card p {
    color: var(--text-body);
    font-size: 0.9em;
    margin: 0;
}

/* Visually hidden but accessible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-blue);
}

.cta-section h2 {
    color: var(--navy-dark);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.cta-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.demo-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.demo-form label {
    /* display: none; -- removed, use visually-hidden instead in HTML */
}

.demo-form input[type="email"] {
    padding: 14px 20px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1em;
    min-width: 300px;
}

.demo-form input[type="email"]:focus {
    outline: none;
    border-color: var(--blue-accent);
}

/* Footer */
.footer {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    font-size: 0.9em;
    color: var(--text-light);
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 10px;
    color: var(--text-light);
}

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

/* Keyboard focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--blue-accent);
    outline-offset: 2px;
}

/* Minor: Add prefers-reduced-motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-form {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-form input[type="email"] {
        min-width: 100%;
        max-width: 300px;
    }
}
