:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --accent-glow: rgba(6,182,212,.15);
    --gradient-start: #0f172a;
    --gradient-end: #1e3a5f;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.08), 0 8px 16px rgba(0,0,0,.04);
    --shadow-xl: 0 25px 50px rgba(0,0,0,.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--text); line-height: 1.7; background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; }

/* ── Navigation ── */
.navbar { background: rgba(15,23,42,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.06); }
.navbar .logo { color: #fff; font-size: 1.4rem; font-weight: 800; padding: 1rem 0; letter-spacing: -.5px; }
.navbar .logo span { color: var(--accent); }
.navbar nav { display: flex; gap: .3rem; align-items: center; }
.navbar nav a { color: rgba(255,255,255,.7); padding: .55rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; transition: all .2s ease; }
.navbar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.navbar nav a.active { background: rgba(6,182,212,.12); color: var(--accent-light); }
.navbar .btn-portal { background: var(--accent); color: var(--primary) !important; font-weight: 600; padding: .5rem 1.2rem; border-radius: var(--radius-sm); font-size: .88rem; transition: all .2s ease; }
.navbar .btn-portal:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ── Hero ── */
.hero { background: linear-gradient(160deg, var(--gradient-start) 0%, var(--gradient-end) 50%, #0c4a6e 100%); color: #fff; padding: 6rem 2rem 5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 70%, rgba(6,182,212,.08) 0%, transparent 50%), radial-gradient(circle at 70% 30%, rgba(99,102,241,.06) 0%, transparent 50%); pointer-events: none; }
.hero h1 { font-size: 3.2rem; margin-bottom: 1.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; position: relative; }
.hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2.5rem; opacity: .8; line-height: 1.8; position: relative; }
.hero .btn { display: inline-block; background: var(--accent); color: var(--primary); font-weight: 700; padding: .9rem 2.4rem; border-radius: var(--radius-sm); font-size: 1rem; transition: all .25s ease; position: relative; letter-spacing: .01em; }
.hero .btn:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6,182,212,.3); }

/* ── Container ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
section.alt { background: var(--bg-light); }

/* ── Section titles ── */
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: .6rem; font-weight: 800; letter-spacing: -.02em; }
.section-title p { color: var(--text-light); max-width: 520px; margin: 0 auto; font-size: .98rem; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all .3s ease; position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(6,182,212,.2); }
.card .icon { font-size: 2.4rem; margin-bottom: 1.2rem; display: inline-block; }
.card h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--primary); font-weight: 700; }
.card p { color: var(--text-light); font-size: .93rem; line-height: 1.7; }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; padding: 2rem 0; }
.stat h3 { font-size: 2.8rem; color: var(--accent); font-weight: 800; letter-spacing: -.02em; }
.stat p { color: var(--text-light); font-size: .9rem; margin-top: .4rem; font-weight: 500; }

/* ── Blog ── */
.blog-list { display: grid; gap: 1.5rem; }
.blog-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; gap: 2rem; align-items: flex-start; transition: all .3s ease; }
.blog-item:hover { box-shadow: var(--shadow-md); border-color: rgba(6,182,212,.15); }
.blog-item .meta { flex-shrink: 0; text-align: center; background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-end) 100%); border-radius: var(--radius-sm); padding: 1rem; min-width: 72px; }
.blog-item .meta .day { font-size: 1.5rem; font-weight: 800; color: #fff; }
.blog-item .meta .month { font-size: .75rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.blog-item h3 { font-size: 1.1rem; margin-bottom: .5rem; font-weight: 700; }
.blog-item p { color: var(--text-light); font-size: .9rem; line-height: 1.7; }
.blog-item .tag { display: inline-block; background: var(--accent-glow); color: var(--accent); padding: .25rem .8rem; border-radius: 20px; font-size: .75rem; font-weight: 600; margin-top: .7rem; margin-right: .3rem; }

/* ── Form ── */
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .9rem; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .93rem; font-family: inherit; transition: all .2s ease; background: var(--bg-light); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: #fff; }
.btn-submit { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; padding: .8rem 2rem; border: none; border-radius: var(--radius-sm); font-size: .95rem; cursor: pointer; transition: all .2s ease; letter-spacing: .01em; }
.btn-submit:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(6,182,212,.25); }

/* ── Login ── */
.login-wrap { max-width: 440px; margin: 3rem auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-lg); }
.login-wrap h2 { text-align: center; margin-bottom: .4rem; color: var(--primary); font-weight: 800; }
.login-wrap .subtitle { text-align: center; color: var(--text-light); margin-bottom: 2rem; font-size: .9rem; }
.login-wrap .error-msg { background: #fef2f2; color: var(--error); padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid #fecaca; margin-bottom: 1rem; display: none; font-size: .88rem; }
.login-wrap .forgot { text-align: center; margin-top: 1rem; font-size: .88rem; }

/* ── Footer ── */
.footer { background: var(--primary); color: rgba(255,255,255,.6); padding: 4rem 2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.footer p, .footer a { font-size: .88rem; }
.footer a { color: rgba(255,255,255,.55); transition: color .2s ease; }
.footer a:hover { color: var(--accent); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ── Partner badges ── */
.partner-badge { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.8rem; font-weight: 700; color: var(--text-light); font-size: .9rem; transition: all .2s ease; }
.partner-badge:hover { border-color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }

/* ── CTA Section ── */
.cta-section { text-align: center; padding: 5rem 2rem; background: linear-gradient(160deg, var(--gradient-start) 0%, var(--gradient-end) 50%, #0c4a6e 100%); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(6,182,212,.1) 0%, transparent 70%); pointer-events: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 4rem 1.5rem 3rem; }
    .navbar { flex-wrap: wrap; padding: .5rem 1rem; }
    .navbar nav { gap: 0; }
    .navbar nav a { padding: .5rem .5rem; font-size: .82rem; }
    .blog-item { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cards { grid-template-columns: 1fr; }
    section { padding: 3.5rem 0; }
    .section-title { margin-bottom: 2.5rem; }
    .section-title h2 { font-size: 1.8rem; }
}
