/* =============================================================================
   Base styles — clean, professional, responsive
   ============================================================================= */
:root {
  --primary: #1a56db;
  --primary-dark: #1e3a8a;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Navbar */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-content { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.2rem; }
.nav-logo { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-block; padding: 0.5rem 1.25rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
  cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); color: var(--text-muted); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 5rem 0; text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
.hero-subtitle { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; }
.hero .btn-primary { background: #fff; color: var(--primary); }
.hero .btn-primary:hover { background: #f1f5f9; }

/* Features */
.features { padding: 4rem 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--surface); padding: 2rem; border-radius: var(--radius);
  border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); }

/* Page header */
.page-header { background: var(--primary-dark); color: #fff; padding: 3rem 0; }
.page-header h1 { margin-bottom: 0.25rem; }
.page-header p { opacity: 0.85; }

/* Content */
.content { padding: 3rem 0; }
.content p { line-height: 1.7; color: var(--text-muted); max-width: 700px; }

/* Portal */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.portal-card {
  background: var(--surface); padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); text-decoration: none; color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}
.portal-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.portal-card h3 { margin-bottom: 0.25rem; }
.portal-card p { color: var(--text-muted); font-size: 0.9rem; }

/* User info */
.user-info { background: var(--surface); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); }
.user-info h3 { margin-bottom: 0.75rem; }
.user-info table { width: 100%; }
.user-info td { padding: 0.4rem 0; }
.user-info td:first-child { font-weight: 600; width: 120px; color: var(--text-muted); }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 1.5rem 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .nav-links { gap: 0.75rem; }
}
