:root {
    --primary-purple: #9a82b8;
    --dark-purple: #4a3b69; /* Darker shade for text contrast & trust */
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif; /* Modern, tech-focused font */
    line-height: 1.6;
    margin: 0;
    color: var(--text-main);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER --- */
header {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo { height: 45px; width: auto; }

.nav-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-purple);
    background: #f3f0f7;
    padding: 6px 12px;
    border-radius: 20px;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: var(--dark-purple);
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: #ffffff;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    background: linear-gradient(135deg, #ffffff 0%, #f4f0f9 100%);
    min-height: 60vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-purple);
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--dark-purple);
    margin: 0 0 20px 0;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-actions { display: flex; gap: 15px; align-items: center; }

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Adds a soft glowing aura behind the logo to make it pop */
.logo-container {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(154, 130, 184, 0.15);
}

.hero-logo { max-width: 200px; }

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(154, 130, 184, 0.3);
}

.btn-primary:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 59, 105, 0.2);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-purple);
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: var(--primary-purple);
}

#connection-status { margin-top: 15px; font-size: 0.9rem; font-weight: 600; }

/* --- TRUST STRIP --- */
.trust-strip {
    background: var(--dark-purple);
    color: var(--white);
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

/* --- FEATURES SECTION --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 5%;
    background-color: var(--bg-light);
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 10px 15px rgba(0,0,0,0.03);
    border: 1px solid #f3f4f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Left align is more professional for reading */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(154, 130, 184, 0.15);
    border-color: #e5e7eb;
}

.contact-block {
    padding: 60px 5%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
}

.contact-card {
    max-width: 720px;
    width: 100%;
    background: #f7f2ff;
    border: 1px solid #ede7f8;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(154, 130, 184, 0.08);
}

.contact-card h2 {
    margin: 0 0 16px;
    font-size: 2rem;
    color: var(--dark-purple);
}

.contact-card p {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-link {
    display: inline-block;
    padding: 14px 28px;
    background: var(--primary-purple);
    color: var(--white);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-link:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #f3f0f7;
    color: var(--primary-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 {
    color: var(--dark-purple);
    font-size: 1.25rem;
    margin: 0 0 10px 0;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    background: var(--white);
    color: var(--text-muted);
    border-top: 1px solid #f3f4f6;
}

.footer-contact {
    margin: 8px 0 0;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--dark-purple);
    text-decoration: none;
    font-weight: 600;
}

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

/* =========================================
   404 ERROR PAGE STYLES
   ========================================= */

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Takes up most of the screen */
    text-align: center;
    padding: 60px 5%;
    background-color: var(--bg-light);
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-purple); /* Using your brand purple */
    margin: 0;
    line-height: 1;
    text-shadow: 0 10px 20px rgba(154, 130, 184, 0.2);
}

.error-content h2 {
    font-size: 2rem;
    color: var(--dark-purple);
    margin: 10px 0 20px 0;
}

.error-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Make 404 responsive for mobile */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }
    .error-content h2 {
        font-size: 1.5rem;
    }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 5% 40px;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-visual { margin-top: 40px; }
    .trust-strip { gap: 20px; }
}