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

:root {
    --bg-color: #0d121a; /* deep gray-black slate background */
    --card-bg: rgba(20, 28, 39, 0.55); /* rich dark semi-transparent glass */
    --card-border: rgba(255, 255, 255, 0.05);
    --card-border-hover: rgba(59, 183, 174, 0.6); /* SEWA Primary Teal */
    --text-color: #F9FAFB;
    --text-muted: #D1D5DB; /* light gray for high readability */
    --sewa-primary: #3bb7ae; /* SEWA Brand Teal Green */
    --sewa-hover: #2ba299;
    --sewa-glow: rgba(59, 183, 174, 0.22);
    --sewa-accent: #f59f19; /* SEWA Brand Orange/Yellow */
    --sewa-accent-glow: rgba(245, 159, 25, 0.22);
    --font-sans: 'Inter', sans-serif;
    --font-brand: 'Outfit', sans-serif;
    
    /* System specific colors */
    --color-tareas: #3bb7ae;
    --color-web: #f59f19;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Glowing Radial Orbs in Brand Colors */
.glow-bg-1 {
    position: absolute;
    top: -150px;
    left: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(59, 183, 174, 0.07) 0%, rgba(59, 183, 174, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.glow-bg-2 {
    position: absolute;
    bottom: 50px;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(245, 159, 25, 0.05) 0%, rgba(245, 159, 25, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

/* Main Layout Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 45px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

/* Header Area */
header {
    text-align: center;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-area-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 25px;
}

.header-logo-icon {
    height: 100px; /* bold and premium isotype next to text */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(59, 183, 174, 0.2));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo-icon:hover {
    transform: scale(1.06) rotate(3deg); /* Micro-interaction */
}

.hero-text h2 {
    font-family: var(--font-brand);
    font-size: 0.95rem;
    color: var(--sewa-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 600;
}

.hero-text h1 {
    font-family: var(--font-brand);
    font-size: 2.3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 12px;
    line-height: 1.2;
    background: linear-gradient(135deg, #FFFFFF 0%, #E5E7EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 18px auto;
    line-height: 1.5;
}

.support-area {
    display: flex;
    justify-content: center;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.support-link i {
    width: 16px;
    height: 16px;
    color: var(--sewa-primary);
}

.support-link:hover {
    color: var(--sewa-primary);
    transform: translateY(-1px);
}

/* Grid and Module Cards - Compact for 2 columns */
.system-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 50px 0;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 880px; /* Perfectly sized for two clean columns */
}

.system-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.system-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.system-card:nth-child(1)::before {
    background: linear-gradient(90deg, var(--color-tareas), #5ce1e6);
}

.system-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--color-web), #f5d419);
}

.system-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 25px var(--sewa-glow);
}

.system-card:nth-child(2):hover {
    border-color: rgba(245, 159, 25, 0.6);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 25px var(--sewa-accent-glow);
}

.system-card:hover::before {
    opacity: 1;
}

.card-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.system-card:hover .card-glow-effect {
    opacity: 1;
}

.card-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.system-card:hover .card-icon-wrapper {
    transform: scale(1.1) translateY(-2px);
}

.card-icon-wrapper.tareas {
    color: var(--color-tareas);
    filter: drop-shadow(0 0 8px rgba(59, 183, 174, 0.4));
}

.card-icon-wrapper.web {
    color: var(--color-web);
    filter: drop-shadow(0 0 8px rgba(245, 159, 25, 0.4));
}

.system-card h3 {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.module-code {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--sewa-primary);
    text-transform: uppercase;
    background: rgba(59, 183, 174, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid rgba(59, 183, 174, 0.15);
}

.system-card:nth-child(2) .module-code {
    color: var(--sewa-accent);
    background: rgba(245, 159, 25, 0.08);
    border: 1px solid rgba(245, 159, 25, 0.15);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
    flex-grow: 1;
}

/* Enter Buttons */
.enter-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 20px;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enter-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.system-card:hover .enter-btn {
    background: var(--sewa-primary);
    border-color: var(--sewa-primary);
    color: #0b0f19;
    box-shadow: 0 4px 12px rgba(59, 183, 174, 0.25);
}

.system-card:nth-child(2):hover .enter-btn {
    background: var(--sewa-accent);
    border-color: var(--sewa-accent);
    color: #0b0f19;
    box-shadow: 0 4px 12px rgba(245, 159, 25, 0.25);
}

.system-card:hover .enter-btn i {
    transform: translateX(4px);
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}

/* Offline Toast Alert */
.offline-toast {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #EF4444;
    border-radius: 12px;
    padding: 12px 20px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    z-index: 1000;
    transform: translateY(150px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.offline-toast.visible {
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    width: 18px;
    height: 18px;
}

/* Footer section */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-area-minimal {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .header-logo-icon {
        height: 80px;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    .system-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .system-card {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .logo-area-minimal {
        gap: 10px;
        margin-bottom: 18px;
    }
    
    .header-logo-icon {
        height: 70px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-text h2 {
        font-size: 0.8rem;
    }
    
    .tagline {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
}

/* Glassmorphic Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 13, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(20, 28, 39, 0.88);
    border: 1px solid var(--card-border-hover);
    border-radius: 24px;
    padding: 40px 30px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 35px var(--sewa-glow);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.visible .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--sewa-primary);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(245, 159, 25, 0.1);
    border: 1px solid rgba(245, 159, 25, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: var(--sewa-accent);
}

.modal-icon i {
    width: 32px;
    height: 32px;
}

.icon-pulse {
    animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(245, 159, 25, 0.6)); }
    100% { transform: scale(1); }
}

.modal-card h2 {
    font-family: var(--font-brand);
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-btn {
    background: var(--sewa-primary);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    color: #0b0f19;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-btn:hover {
    background: var(--sewa-hover);
    box-shadow: 0 4px 15px var(--sewa-glow);
    transform: translateY(-2px);
}

