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

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header and navigation */
header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1a1a1a;
}

.nav-menu a:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 4px;
}

/* Hero section */
.hero {
    padding: 4rem 0;
    background-color: #f8f9fa;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.lead {
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Notice section */
.notice {
    background-color: #fff3cd;
    padding: 1rem 0;
    border-bottom: 1px solid #ffeaa7;
}

.notice p {
    text-align: center;
    color: #856404;
    font-size: 0.95rem;
}

/* Page header */
.page-header {
    padding: 3rem 0;
    background-color: #f8f9fa;
    text-align: center;
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Content sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

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

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.text-content p {
    margin-bottom: 1rem;
    color: #555;
}

.image-content img {
    width: 100%;
    border-radius: 8px;
}

/* Feature grid */
.features {
    background-color: #f8f9fa;
}

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

.feature-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.feature-card p {
    color: #555;
}

/* Detail grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-card {
    padding: 1.5rem;
    border-left: 4px solid #4a90e2;
    background-color: #f8f9fa;
}

.detail-card h3 {
    margin-bottom: 0.75rem;
}

.detail-card p {
    color: #555;
}

/* Services */
.services-intro {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

.service-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse > * {
    direction: ltr;
}

.service-image img {
    width: 100%;
    border-radius: 8px;
}

.service-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: #555;
    margin-bottom: 1rem;
}

.platform-overview {
    background-color: #f8f9fa;
    text-align: center;
}

.platform-overview p {
    max-width: 800px;
    margin: 0 auto 1rem;
    color: #555;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.info-block p {
    color: #555;
    line-height: 1.8;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.submit-btn {
    padding: 1rem 2rem;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #357abd;
}

.submit-btn:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 4px;
}

/* Legal content */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-text p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

.legal-text em {
    display: block;
    margin-top: 2rem;
    color: #777;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.footer-brand p {
    color: #aaa;
}

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

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

.footer-links a:hover {
    color: #fff;
}

.footer-links a:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

    .lead {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .content-grid,
    .service-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-grid.reverse,
    .service-item.reverse {
        direction: ltr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1rem;
    }

    section {
        padding: 2rem 0;
    }

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

@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
}
