@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:          #f8fafc;
  --bg-2:        #ffffff;
  --bg-3:        #f1f5f9;
  --surface:     #ffffff;
  --surface-2:   #f1f5f9;
  --text:        #0f172a;
  --text-2:      #334155;
  --text-3:      #64748b;
  --line:        #e2e8f0;
  --line-2:      #cbd5e1;
  --gold:        #0284c7;  /* sky-600 */
  --gold-2:      #0ea5e9;  /* sky-500 */
  --gold-dim:    rgba(14,165,233,.1);
  --gold-glow:   rgba(14,165,233,.15);
  --accent:      #2563eb;
  --accent-dim:  rgba(37,99,235,.1);
  --success:     #10b981;
  --warn:        #f59e0b;
  --danger:      #ef4444;
  --radius:      20px;
  --radius-sm:   12px;
  --radius-lg:   28px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.04);
  --shadow:      0 8px 30px rgba(0,0,0,.06);
  --shadow-gold: 0 8px 30px rgba(14,165,233,.15);
  --serif:       'DM Serif Display', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --transition:  .22s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(37,99,235,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(14,165,233,.08) 0%, transparent 55%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
p { color: var(--text-2); line-height: 1.75; }

/* ─── LAYOUT ──────────────────────────────────────────────── */
.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

/* ─── TOPBAR ──────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0; z-index: 60;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--sans);
  letter-spacing: .18em;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.brand-text span {
  font-size: .68rem;
  color: var(--gold);
  letter-spacing: .22em;
  font-weight: 400;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--text-2);
  font-size: .88rem;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: .01em;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn, .nav-cta, button {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .01em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn.primary, .nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(180,134,0,.2);
}
.btn.primary:hover, .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(180,134,0,.3);
}
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn.secondary:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line);
}
.btn.ghost:hover { color: var(--text); border-color: var(--line-2); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero { padding: 80px 0 52px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.kicker-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--gold); }
  50%       { opacity: .6; box-shadow: 0 0 24px var(--gold); }
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.8vw, 5.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 22px;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 14px;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: .01em;
}
h4 {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--gold-2) 0%, var(--gold) 40%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero > .container > div > p,
.hero-grid > div > p {
  color: var(--text-2);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 56ch;
}
.hero-actions, .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ─── STATS ───────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 32px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: var(--transition);
}
.stat:hover { background: var(--surface-2); border-color: var(--line-2); }
.stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 5px;
  letter-spacing: .01em;
}
.stat span { font-size: .84rem; color: var(--text-3); line-height: 1.5; }

/* ─── VISUAL CARD ─────────────────────────────────────────── */
.visual-card, .showcase {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-3);
  box-shadow: var(--shadow), var(--shadow-gold);
}
.visual-card::before, .showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.visual-card video, .showcase video {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  opacity: .85;
}
.visual-overlay, .caption {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2;
}
.visual-overlay h3, .caption strong { color: var(--text); }
.visual-overlay p, .caption p { color: var(--text-2); font-size: .88rem; margin: 5px 0 0; }

/* ─── SECTIONS ────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

/* ─── GRIDS ───────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}

/* ─── CARDS ───────────────────────────────────────────────── */
.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before, .panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.card:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3 { color: var(--text); margin-bottom: 10px; }
.card p  { font-size: .9rem; color: var(--text-2); margin-bottom: 18px; }
.card ul, .panel ul {
  padding-left: 18px;
  color: var(--text-2);
  line-height: 1.85;
  font-size: .93rem;
}
.card ul li::marker, .panel ul li::marker { color: var(--gold); }

/* ─── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid rgba(180,134,0,.25);
  color: var(--gold-2);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ─── METRICS ─────────────────────────────────────────────── */
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
}
.metric:hover { background: var(--surface-2); }
.metric strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
  font-family: var(--serif);
}

/* ─── PORTAL / SIDEBAR ────────────────────────────────────── */
.portal-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  padding: 28px 0 50px;
}
.sidebar { position: sticky; top: 96px; align-self: start; display: grid; gap: 14px; }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  border: 1px solid transparent;
  font-size: .9rem;
  transition: var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.sidebar-nav a.active { color: var(--gold); border-color: var(--gold-dim); }
.content-stack { display: grid; gap: 20px; }
.metric-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ─── TABLE ───────────────────────────────────────────────── */
.table-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
}
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .9rem;
}
th { color: var(--text-3); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.03); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-3); }
td { color: var(--text-2); }

/* ─── TOOLBAR / TABS ──────────────────────────────────────── */
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: .86rem;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.active { background: var(--gold-dim); border-color: rgba(180,134,0,.3); color: var(--gold); font-weight: 600; }

/* ─── ASSESSMENT COMPONENTS ───────────────────────────────── */
.assessment-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.question-list { display: grid; gap: 12px; }
.question-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: var(--transition);
}
.question-item:hover { border-color: var(--line-2); }
.question-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.score-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.score-chip {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}
.score-chip:hover { border-color: var(--line-2); color: var(--text-2); }
.score-chip.active {
  background: var(--accent-dim);
  border-color: rgba(79,142,247,.3);
  color: var(--accent);
  font-weight: 600;
}
.score-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* ─── STEPPER ─────────────────────────────────────────────── */
.stepper {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.step-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.step-item .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .84rem;
  background: var(--surface-2);
  color: var(--text-3);
  flex-shrink: 0;
}
.step-item.active { border-color: rgba(180,134,0,.3); background: var(--gold-dim); }
.step-item.active .num { background: var(--gold); color: #ffffff; }

/* ─── FORMS ───────────────────────────────────────────────── */
.form-card { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
  font-size: .88rem;
  color: var(--text-2);
  letter-spacing: .01em;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  background: #ffffff;
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: .9rem;
  transition: var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,.04);
  box-shadow: 0 0 0 3px rgba(201,168,76,.1);
}
textarea { min-height: 120px; resize: vertical; }

/* ─── RAG STATUS ──────────────────────────────────────────── */
.result-box {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: none;
}
.result-box.show { display: block; }
.result-score { font-family: var(--serif); font-size: 3.4rem; font-weight: 400; }
.rag-red   { color: var(--danger); }
.rag-amber { color: var(--warn); }
.rag-green { color: var(--success); }

/* ─── NOTICES ─────────────────────────────────────────────── */
.notice {
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(62,207,142,.07);
  border: 1px solid rgba(62,207,142,.18);
  color: #83e8bd;
  display: none;
  font-size: .9rem;
}
.notice.show { display: block; }
.subtle { color: var(--text-3); font-size: .9rem; }

/* ─── ROADMAP ─────────────────────────────────────────────── */
.roadmap { display: grid; gap: 10px; }
.roadmap .stage {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .9rem;
  color: var(--text-2);
}

/* ─── WIZARD ──────────────────────────────────────────────── */
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

/* ─── CALENDAR / PAYMENT ──────────────────────────────────── */
.calendar-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.payment-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.inline-note { color: var(--text-3); font-size: .9rem; line-height: 1.65; }

/* ─── LANG SWITCH ─────────────────────────────────────────── */
.lang-switch { display: flex; gap: 7px; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  transition: var(--transition);
}
.lang-switch a:hover { border-color: var(--line-2); color: var(--text); }
.lang-switch a.active {
  background: var(--gold);
  color: #ffffff;
  border-color: transparent;
}

/* ─── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 28px;
  text-align: center;
}

/* ─── FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ─── TIMELINE ────────────────────────────────────────────── */
.timeline {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* ─── PAGE HERO ───────────────────────────────────────────── */
.page-hero { padding: 56px 0 32px; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 48px 0 60px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-3); font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer p { font-size: .9rem; color: var(--text-3); max-width: 32ch; line-height: 1.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: .84rem;
}

/* ─── MOBILE MENU ─────────────────────────────────────────── */
.menu-toggle { display: none; }

/* ─── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

/* ─── SELECTION ───────────────────────────────────────────── */
::selection { background: var(--gold-dim); color: var(--gold-2); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid, .feature-grid, .assessment-layout, .portal-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .metric-row, .stats, .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .nav { align-items: flex-start; padding: 16px 0; }
  .nav-links {
    display: none;
    position: absolute;
    left: 16px; right: 16px; top: 76px;
    padding: 16px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .footer-grid, .grid-3, .metric-row, .form-grid, .stats, .stepper, .calendar-grid { grid-template-columns: 1fr; }
  .lang-switch { display: none; }
  .container { width: min(1240px, calc(100% - 28px)); }
  .hero { padding: 48px 0 32px; }
}