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

:root {
    --primary-color: #0077be;
    --primary-dark: #005a96;
    --secondary-color: #6c757d;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 2rem;
    padding: 60px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--bg-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

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

/* Sections */
.section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    background-color: var(--bg-light);
}

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

.feature-card {
    background-color: var(--bg-white);
    padding: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.feature-card:hover,
.feature-card:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    display: block;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Benefits Section */
.subsection {
    text-align: center;
    margin-top: 3rem;
}

.subsection-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.5px;
}

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

.benefit-item {
    background-color: var(--bg-light);
    padding: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.benefit-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.benefit-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Security Section */
.security {
    background-color: var(--bg-light);
}

.callout-box {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.callout-box p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.security-feature {
    background-color: var(--bg-white);
    padding: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.security-feature h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.security-feature ul {
    list-style: none;
    color: var(--text-light);
    font-size: 0.95rem;
}

.security-feature li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.security-feature li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-method strong {
    color: var(--text-dark);
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-method a:hover,
.contact-method a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form .btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.contact-form .btn-primary:disabled {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form .btn-primary:hover:not(:disabled),
.contact-form .btn-primary:focus:not(:disabled) {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.form-message {
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 119, 190, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--secondary-color);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus {
    color: var(--bg-white);
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .logo {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 32px;
    }

    .nav-links {
        position: fixed;
        top: 3rem;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 0.5rem 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-grid,
    .benefits-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }

    .section {
        padding: 40px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
}

/* Fade-in animations */
.feature-card,
.benefit-item,
.security-feature {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Active navigation link */
.nav-links a.active {
    color: var(--primary-color);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

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