*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:root {
  --bg:        oklch(98.5% 0.003 120);
  --surface:   oklch(100% 0 0);
  --fg:        oklch(18% 0.012 160);
  --muted:     oklch(50% 0.015 160);
  --border:    oklch(88% 0.006 160);
  --accent:    oklch(42% 0.13 160);
  --accent2:   oklch(65% 0.14 85);
  --success:   oklch(55% 0.14 150);
  --danger:    oklch(52% 0.18 30);
  --warning:   oklch(68% 0.14 85);
  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 1px 3px oklch(0% 0 0 / 0.08);
  --shadow-lg: 0 4px 16px oklch(0% 0 0 / 0.1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:  -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1400px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.col { flex: 1; min-width: 280px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

header.site-header {
  background: var(--accent);
  color: #fff;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px oklch(0% 0 0 / 0.1);
}
header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
header.site-header .logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
header.site-header .logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--accent2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
header.site-header nav { display: flex; gap: 24px; align-items: center; }
header.site-header nav a { color: oklch(90% 0.02 160); font-size: 0.875rem; font-weight: 500; }
header.site-header nav a:hover { color: #fff; text-decoration: none; }
header.site-header .user-badge {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 0.875rem;
}
header.site-header .user-badge .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: oklch(50% 0.1 160 / 0.3);
  border: 2px solid oklch(100% 0 0 / 0.3);
}

.hero {
  background: linear-gradient(135deg, var(--accent) 0%, oklch(35% 0.12 160) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.9;
  line-height: 1.7;
}
.hero .cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: oklch(38% 0.13 160); }
.btn--secondary { background: var(--accent2); color: var(--fg); }
.btn--secondary:hover { background: oklch(60% 0.14 85); }
.btn--outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--white { background: #fff; color: var(--accent); }
.btn--white:hover { background: oklch(96% 0.003 120); }
.btn--ghost { background: transparent; color: #fff; border: 2px solid oklch(100% 0 0 / 0.3); }
.btn--ghost:hover { border-color: #fff; background: oklch(100% 0 0 / 0.1); }
.btn--sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn--lg { padding: 16px 36px; font-size: 1.0625rem; }

section { padding: 64px 0; }
section.section--alt { background: var(--surface); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}
.section-subtitle {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.card__icon--green { background: oklch(90% 0.04 160 / 0.3); color: var(--accent); }
.card__icon--gold { background: oklch(90% 0.06 85 / 0.3); color: var(--accent2); }
.card__icon--blue { background: oklch(90% 0.04 240 / 0.3); color: oklch(45% 0.12 240); }
.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.form-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
}
.form-section h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.form-section .form-subtitle { color: var(--muted); margin-bottom: 32px; }

.steps {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.steps .step {
  flex: 1;
  padding: 14px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  position: relative;
  border-right: 1px solid var(--border);
}
.steps .step:last-child { border-right: none; }
.steps .step--active { background: var(--accent); color: #fff; }
.steps .step--done { background: oklch(90% 0.04 160 / 0.3); color: var(--accent); }
.steps .step .step-num {
  display: inline-block;
  width: 24px; height: 24px;
  line-height: 24px;
  border-radius: 50%;
  text-align: center;
  font-size: 0.75rem;
  margin-right: 8px;
  background: var(--border);
  color: var(--muted);
}
.steps .step--active .step-num { background: oklch(100% 0 0 / 0.25); color: #fff; }
.steps .step--done .step-num { background: var(--accent); color: #fff; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
}
.form-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.form-card .field-desc { color: var(--muted); font-size: 0.875rem; margin-bottom: 20px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fg);
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--fg);
  background: var(--surface);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(42% 0.13 160 / 0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .input-hint { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: oklch(99% 0.003 120);
}
.upload-zone:hover { border-color: var(--accent); background: oklch(42% 0.13 160 / 0.04); }
.upload-zone .upload-icon { font-size: 2rem; margin-bottom: 12px; }
.upload-zone p { color: var(--muted); font-size: 0.9375rem; }
.upload-zone .upload-btn { color: var(--accent); font-weight: 600; }

.ai-assessment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
}
.ai-assessment .ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.ai-assessment .ai-header .ai-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.ai-assessment .progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 16px 0;
}
.ai-assessment .progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px;
  transition: width 0.8s ease;
}
.ai-assessment .match-score {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: oklch(90% 0.04 160 / 0.2);
  border-radius: var(--radius-sm);
  margin: 16px 0;
}
.ai-assessment .match-score .score {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.ai-assessment .match-score .score-label { font-size: 0.875rem; color: var(--muted); }
.ai-assessment .license-tier {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 12px 0;
  transition: all 0.2s;
  cursor: pointer;
}
.ai-assessment .license-tier:hover { border-color: var(--accent); }
.ai-assessment .license-tier--recommended {
  border-color: var(--accent);
  background: oklch(42% 0.13 160 / 0.04);
  position: relative;
}
.ai-assessment .license-tier--recommended::before {
  content: 'Recommended';
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 10px;
}
.ai-assessment .license-tier h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.ai-assessment .license-tier .price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.ai-assessment .license-tier ul { list-style: none; margin-top: 12px; }
.ai-assessment .license-tier ul li {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}

.pricing-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
}
.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 12px;
}
.pricing-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.pricing-card .price {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 16px 0;
}
.pricing-card .price span { font-size: 1rem; color: var(--muted); }
.pricing-card ul { list-style: none; text-align: left; margin: 20px 0; }
.pricing-card ul li {
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}

.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dashboard .sidebar {
  background: var(--accent);
  color: #fff;
  padding: 24px 0;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.dashboard .sidebar .sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid oklch(100% 0 0 / 0.15);
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.dashboard .sidebar .sidebar-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--accent2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.dashboard .sidebar .nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  color: oklch(85% 0.015 160);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.dashboard .sidebar .nav-item:hover { background: oklch(100% 0 0 / 0.08); color: #fff; }
.dashboard .sidebar .nav-item--active {
  background: oklch(100% 0 0 / 0.1);
  color: #fff;
  border-left-color: var(--accent2);
}
.dashboard .main-content { padding: 32px; overflow-y: auto; }
.dashboard .main-content .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.dashboard .main-content .page-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .stat-label { font-size: 0.8125rem; color: var(--muted); margin-bottom: 4px; }
.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
}
.stat-card .stat-value.green { color: var(--accent); }
.stat-card .stat-value.gold { color: var(--accent2); }
.stat-card .stat-value.red { color: var(--danger); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge--active { background: oklch(90% 0.04 150 / 0.3); color: var(--success); }
.badge--pending { background: oklch(90% 0.06 85 / 0.3); color: var(--accent2); }
.badge--expired { background: oklch(90% 0.06 30 / 0.3); color: var(--danger); }
.badge--success { background: oklch(90% 0.04 150 / 0.3); color: var(--success); }
.badge--warning { background: oklch(90% 0.06 85 / 0.3); color: var(--accent2); }

.notification-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.notification-item:last-child { border-bottom: none; }
.notification-item .notif-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.notification-item .notif-content { flex: 1; }
.notification-item .notif-content p { font-size: 0.875rem; margin-bottom: 2px; }
.notification-item .notif-content .time { font-size: 0.75rem; color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; }
table th {
  background: oklch(97% 0.003 120);
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: oklch(98% 0.003 120); }

.cpd-progress { margin: 16px 0; }
.cpd-progress .cpd-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 6px;
}
.cpd-progress .cpd-header .cpd-label { font-weight: 600; }
.cpd-progress .cpd-header .cpd-value { color: var(--accent); font-weight: 600; }
.cpd-progress .cpd-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.cpd-progress .cpd-bar .fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s;
}

.contact-section {
  background: var(--accent);
  color: #fff;
  padding: 64px 0;
}
.contact-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 24px;
}
.contact-section .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-section .contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-section .contact-item .ci-icon {
  width: 40px; height: 40px;
  background: oklch(100% 0 0 / 0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-section .contact-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-section .contact-item p { font-size: 0.875rem; opacity: 0.85; }

footer {
  background: var(--fg);
  color: oklch(70% 0.01 160);
  padding: 32px 0;
  text-align: center;
  font-size: 0.875rem;
}
footer .footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
footer .footer-links a { color: oklch(75% 0.01 160); font-size: 0.8125rem; }

.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tabs .tab {
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tabs .tab:hover { color: var(--fg); }
.tabs .tab--active { color: var(--accent); border-bottom-color: var(--accent); }

.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
}
.countdown .cd-item {
  text-align: center;
  background: oklch(100% 0 0 / 0.1);
  padding: 12px 20px;
  border-radius: var(--radius);
  min-width: 70px;
}
.countdown .cd-item .cd-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  display: block;
}
.countdown .cd-item .cd-label { font-size: 0.75rem; opacity: 0.7; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert--success { background: oklch(90% 0.04 150 / 0.3); color: var(--success); border: 1px solid oklch(80% 0.06 150 / 0.4); }
.alert--warning { background: oklch(90% 0.06 85 / 0.3); color: var(--accent2); border: 1px solid oklch(80% 0.08 85 / 0.4); }
.alert--danger { background: oklch(90% 0.06 30 / 0.3); color: var(--danger); border: 1px solid oklch(80% 0.08 30 / 0.4); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0% 0 0 / 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal h2 { font-size: 1.25rem; margin-bottom: 16px; }
.modal .modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

@media (max-width: 768px) {
  header.site-header .container { height: auto; padding: 12px 0; flex-direction: column; gap: 12px; }
  header.site-header nav { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 48px 0; }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard .sidebar { position: static; height: auto; padding: 12px 0; }
  .dashboard .sidebar .nav-item { padding: 10px 16px; }
  .dashboard .main-content { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .steps .step { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-section .contact-grid { grid-template-columns: 1fr; }
  .pricing-table { grid-template-columns: 1fr; }
  .countdown { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .form-card { padding: 20px; }
  .ai-assessment { padding: 20px; }
}
