/* --- Global Reset & Variables --- */
:root {
    --primary: #0a0f1d;
    --primary-light: #162032;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.25);
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling on mobile */
}

/* --- Announcement Bar --- */
.announcement-bar {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1d4ed8 100%);
    color: var(--white);
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.announcement-bar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 0.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s ease;
}

.announcement-bar a:hover {
    border-color: var(--white);
}

/* --- Navigation Header --- */
.site-header {
    background-color: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    padding: 0.85rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--white);
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
}

.logo span {
    color: var(--accent);
}

.site-header nav, .nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.site-header nav a, .nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s ease;
}

.site-header nav a:not(.nav-cta):hover, .nav-links a:not(.nav-cta):hover {
    color: var(--white);
}

.nav-links a:not(.nav-cta):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-links a:not(.nav-cta):hover:after {
    width: 100%;
}

.nav-cta {
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 0.6rem 1.35rem;
    border-radius: 8px;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    transition: var(--transition) !important;
}

.nav-cta:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* --- Mobile Menu Button (Hamburger) --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

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

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Flash Messages --- */
.flash-container {
    max-width: 800px;
    margin: 1.5rem auto 0 auto;
    padding: 0 1.5rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error, .alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Modern Hero Section & Enhancements --- */
.hero-section {
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, var(--primary) 100%);
    color: var(--white);
    padding: 6rem 1.5rem 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.badge-wrapper {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.badge-pill {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

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

.hero-content h2 {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}

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

/* --- Hero Metrics Bar --- */
.hero-metrics {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    max-width: 680px;
    margin: 0 auto;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.metric-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
}

.metric-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.metric-divider {
    width: 1px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.12);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* --- Modules Section & Informative Tiles --- */
.modules-section {
    max-width: 1280px;
    margin: 5rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.section-header {
    max-width: 680px;
    margin: 0 auto 3rem auto;
}

.modules-section h3, .section-header h3 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

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

.tile {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background-color 0.25s ease;
}

.tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.tile:hover::before {
    background-color: var(--accent);
}

.tile-icon-wrapper {
    margin-bottom: 1.25rem;
}

.tile img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.tile:hover img {
    transform: scale(1.08);
}

.tile-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.tile-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- Value Proposition Section --- */
.value-prop-section {
    background-color: var(--white);
    padding: 4.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.value-prop-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-light);
    padding: 2.25rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.value-card:hover {
    box-shadow: var(--shadow);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.value-card h4 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

/* --- Contact Section --- */
.contact-section {
    background-color: var(--bg-light);
    padding: 5rem 1.5rem;
}

.contact-container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    margin-bottom: 2.5rem;
}

.contact-container h3 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.contact-container p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.direct-contact-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.direct-contact-info p {
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-light);
}

.contact-form {
    text-align: left;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--white);
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.contact-form .btn-primary {
    padding: 0.95rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

/* --- Footer --- */
.site-footer {
    background-color: #070a14;
    color: #94a3b8;
    padding: 4.5rem 1.5rem 2rem 1.5rem;
    border-top: 1px solid #111827;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-brand span {
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-links h4, .footer-contact h4 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #94a3b8;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #111827;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* --- Responsive Adjustments & Mobile Optimization --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1.25rem;
    }

    .hero-section {
        padding: 4.5rem 1.25rem 3.5rem 1.25rem;
    }

    .hero-content h2 {
        font-size: 2.35rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
        margin-bottom: 2.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 1.15rem;
        padding: 1.25rem;
        width: 100%;
    }

    .metric-divider {
        width: 100%;
        height: 1px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .site-header .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 340px;
        height: 100vh;
        background-color: var(--primary);
        padding: 5.5rem 2rem 2.5rem 2rem;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.45);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        align-items: flex-start;
        gap: 1.5rem;
        overflow-y: auto;
    }

    .site-header .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.25rem 0;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.85rem !important;
    }

    .modules-section {
        margin: 3.5rem auto;
        padding: 0 1.25rem;
    }

    .modules-section h3, .section-header h3, .contact-container h3 {
        font-size: 1.85rem;
    }

    .section-header {
        margin-bottom: 2.25rem;
    }

    .module-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .tile {
        padding: 1.75rem 1.25rem;
    }

    .value-prop-section {
        padding: 3.5rem 1.25rem;
    }

    .value-prop-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .value-card {
        padding: 1.85rem 1.5rem;
    }

    .contact-section {
        padding: 4rem 1.25rem;
    }

    .direct-contact-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .site-footer {
        padding: 3.5rem 1.25rem 1.5rem 1.25rem;
    }
}