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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #222;
}

/* Layout helpers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

.section {
    padding: 3rem 0;
}

.section-light {
    background-color: #f7f7f7;
}

.section-dark {
    background: linear-gradient(135deg, #001f3f, #003f7f);
    color: #fff;
}

.section-dark p,
.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-intro {
    max-width: 700px;
    margin-bottom: 2rem;
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, #001f3f, #003f7f);
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.25) 2px,
        transparent 2px,
        transparent 6px
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-flag {
    height: 65px;
    width: 280px;
    margin: 0 auto 1rem;
    background:
        linear-gradient(#b22234 0 33%, #fff 33% 66%, #b22234 66% 100%);
    position: relative;
    border-radius: 3px;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

.hero-flag::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 45%;
    height: 100%;
    background: #3c3b6e;
    background-image:
        radial-gradient(circle, #fff 2px, transparent 2px);
    background-size: 14px 14px;
}

.hero-title {
    font-size: 2.75rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1rem;
    max-width: 650px;
    margin: 0.5rem auto 1.5rem;
}

.hero-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease, color 0.1s ease;
    cursor: pointer;
}

.btn-light {
    background: #fff;
    color: #001f3f;
    border-color: #fff;
}

.btn-light:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2rem;
    align-items: flex-start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Cards */
.about-card,
.platform-card {
    background: #fff;
    color: #222;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-dark .platform-card {
    background: rgba(255,255,255,0.08);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.about-card h3,
.platform-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about-card ul {
    list-style: disc;
    padding-left: 1.2rem;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.timeline-item {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #e6ffea;
    border: 1px solid #34a853;
    color: #19692c;
}

.alert-error {
    background: #ffe6e6;
    border: 1px solid #d93025;
    color: #7b1111;
}

/* Form */
.contact-form {
    max-width: 600px;
    margin-top: 1rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.section-dark .form-row input,
.section-dark .form-row textarea {
    background: rgba(0,0,0,0.25);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}

.section-dark .form-row input::placeholder,
.section-dark .form-row textarea::placeholder {
    color: rgba(255,255,255,0.75);
}

/* Footer */
.site-footer {
    background: #111;
    color: #eee;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.footer-links a {
    color: #eee;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 800px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
