@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── TOKENS ─── */
:root {
  --navy:    #0B1437;
  --navy2:   #0F1C4D;
  --indigo:  #4F46E5;
  --indigo2: #6366F1;
  --coral:   #FF6B6B;
  --coral2:  #FF8E53;
  --white:   #F8FAFF;
  --gray1:   #E2E8F7;
  --gray2:   #94A3B8;
  --gray3:   #475569;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --radius:  16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow:  0 8px 32px rgba(0,0,0,0.3);
  --trans:   0.2s ease;
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
ul { list-style: none; }

/* ─── MESH BACKGROUND ─── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  overflow: hidden;
}
.mesh-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation: drift1 12s ease-in-out infinite alternate;
}
.mesh-bg::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,107,0.2) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: drift2 15s ease-in-out infinite alternate;
}
@keyframes drift1 { from{transform:translate(0,0)} to{transform:translate(80px,60px)} }
@keyframes drift2 { from{transform:translate(0,0)} to{transform:translate(-60px,-40px)} }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11,20,55,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--indigo2), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray2);
  transition: color var(--trans), background var(--trans);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: var(--card-bg);
}
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(11,20,55,0.97);
  backdrop-filter: blur(16px);
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--gray2);
  transition: var(--trans);
}
.mobile-menu a:hover { color: var(--white); background: var(--card-bg); }
.mobile-menu .btn { margin-top: 12px; width: 100%; text-align: center; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--trans);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--indigo2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,70,229,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.55);
}
.btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,107,107,0.35);
}
.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,107,107,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--gray2);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
  background: var(--card-bg);
}
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ─── CARDS ─── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,70,229,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.card-glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
}

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-indigo  { background: rgba(79,70,229,0.2); color: #a5b4fc; border: 1px solid rgba(79,70,229,0.3); }
.badge-coral   { background: rgba(255,107,107,0.2); color: #fca5a5; border: 1px solid rgba(255,107,107,0.3); }
.badge-green   { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.badge-amber   { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.badge-gray    { background: rgba(255,255,255,0.07); color: var(--gray2); border: 1px solid var(--card-border); }

/* ─── SECTION LAYOUT ─── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.page-top { padding-top: 68px; }

/* ─── TYPOGRAPHY ─── */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-xl { font-size: clamp(42px, 7vw, 80px); }
.display-lg { font-size: clamp(32px, 5vw, 56px); }
.display-md { font-size: clamp(24px, 4vw, 40px); }
.display-sm { font-size: clamp(20px, 3vw, 28px); }
.subtitle { font-size: clamp(16px, 2vw, 20px); color: var(--gray2); line-height: 1.6; max-width: 560px; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo2);
  margin-bottom: 12px;
}
.text-grad {
  background: linear-gradient(90deg, var(--indigo2), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-sm { font-size: 13px; }
.text-muted { color: var(--gray2); }
.text-center { text-align: center; }

/* ─── GRID HELPERS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-auto { margin-top: auto; }

/* ─── AVATAR ─── */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--indigo), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 80px; height: 80px; font-size: 28px; }

/* ─── PROGRESS BAR ─── */
.progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--indigo), var(--coral)); }

/* ─── STAT BOX ─── */
.stat-val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--gray1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 13px; color: var(--gray2); }

/* ─── INPUT ─── */
.input-wrap { display: flex; flex-direction: column; gap: 6px; }
.input-wrap label { font-size: 13px; font-weight: 600; color: var(--gray1); }
.input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color var(--trans);
  width: 100%;
}
.input:focus { outline: none; border-color: var(--indigo2); }
.input::placeholder { color: var(--gray3); }
select option {
  background: var(--navy) !important;
  background-color: var(--navy) !important;
  color: var(--white) !important;
}

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--card-border); margin: 24px 0; }

/* ─── CHIP ─── */
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  color: var(--gray2);
  border: 1px solid var(--card-border);
}

/* ─── SCORE RING ─── */
.score-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--indigo) var(--pct,0%), rgba(255,255,255,0.1) 0%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.score-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--navy);
}
.score-ring span { position: relative; z-index: 1; font-size: 13px; font-weight: 700; }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: rgba(15,25,65,0.95);
  border: 1px solid var(--indigo);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  display: flex; align-items: center; gap: 10px;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
}
.page-header .subtitle { margin: 16px auto 0; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--gray2); font-size: 14px; margin-top: 12px; line-height: 1.7; max-width: 240px; }
.footer h4 { font-size: 13px; font-weight: 700; color: var(--gray1); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--gray2); transition: color var(--trans); }
.footer ul a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--card-border); }
.footer-bottom p { font-size: 13px; color: var(--gray3); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}