:root {
    --primary: #0f172a;
    --secondary: #3b82f6;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background: #fff; line-height: 1.6; }

.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* Header & Nav */
header { padding: 20px 0; border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 100; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; color: var(--primary); letter-spacing: -0.5px; }
nav { display: flex; align-items: center; gap: 25px; }
nav a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 14px; transition: color 0.2s; }
nav a:hover { color: var(--secondary); }
.btn-primary-outline { border: 1px solid var(--secondary); padding: 8px 16px; border-radius: 6px; color: var(--secondary); font-weight: 600; }
.lang-switcher a { padding: 0 5px; color: var(--text-light); }
.lang-switcher a.active { color: var(--primary); font-weight: 700; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Hero Section */
.hero { padding: 80px 0; text-align: center; background: var(--bg-light); }
.hero h1 { font-size: 42px; color: var(--primary); margin-bottom: 20px; line-height: 1.2; letter-spacing: -1px; }
.hero p { font-size: 18px; color: var(--text-light); max-width: 700px; margin: 0 auto 50px; }

/* Realism Stats */
.stats-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 36px; font-weight: 700; color: var(--secondary); }
.stat-label { font-size: 13px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* Applications Grid */
.apps-section { padding: 80px 0; }
.section-title { text-align: center; font-size: 28px; color: var(--primary); margin-bottom: 40px; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.app-card { border: 1px solid var(--border); padding: 30px; border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; background: #fff; }
.app-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.app-icon { font-size: 32px; margin-bottom: 15px; }
.app-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.app-card p { font-size: 14px; color: var(--text-light); }

/* Portal / Login Section */
.portal-section { padding: 80px 0; background: var(--primary); color: #fff; }
.login-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.login-info h2 { font-size: 32px; margin-bottom: 15px; }
.login-info p { color: #94a3b8; margin-bottom: 25px; }
.secure-badge { display: inline-block; background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; }

.login-form-container { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); color: var(--text-main); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.form-group input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 14px; }
.form-group input:focus { outline: none; border-color: var(--secondary); }
.btn-submit { width: 100%; background: var(--secondary); color: #fff; border: none; padding: 14px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: #2563eb; }

/* Realism Error Message */
.login-message { display: none; margin-top: 20px; padding: 15px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.login-message.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* Footer */
footer { background: #f1f5f9; padding: 50px 0; font-size: 13px; color: var(--text-light); }
.footer-flex { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col p { margin-top: 10px; }
.right-align { text-align: right; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    nav { display: none; width: 100%; flex-direction: column; position: absolute; top: 100%; left: 0; background: #fff; padding: 20px 0; border-bottom: 1px solid var(--border); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    nav.nav-active { display: flex; }
    nav a { margin: 10px 0; }
    
    .hero h1 { font-size: 32px; }
    .stats-grid { gap: 30px; }
    
    .login-wrapper { grid-template-columns: 1fr; }
    .footer-flex { flex-direction: column; }
    .right-align { text-align: left; }
}