:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --text: #0B1120;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --accent-light: #DBEAFE;
  --highlight: #F59E0B;
  --highlight-light: #FEF3C7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
}
.font-display { font-family: 'Fraunces', serif; font-optical-sizing: auto; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: all 0.3s ease;
  background: rgba(248, 250, 252, 0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(248, 250, 252, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.nav-link {
  position: relative; color: var(--text-muted); transition: color 0.2s ease;
  font-weight: 500; font-size: 0.95rem; cursor: pointer; text-decoration: none;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px;
  background: var(--accent); border-radius: 1px;
}

/* Logo */
.logo-mark {
  width: 40px; height: 40px;
  background: var(--text); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.logo-mark::before {
  content: ''; position: absolute; bottom: -10px; right: -10px;
  width: 20px; height: 20px; background: var(--accent); transform: rotate(45deg);
}
.logo-text {
  position: relative; z-index: 2; font-family: 'Fraunces', serif;
  font-weight: 900; color: white; font-size: 1.2rem; letter-spacing: -0.04em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; border: 1px solid transparent;
  font-family: inherit; white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.btn-dark { background: var(--text); color: white; }
.btn-dark:hover { background: #1e293b; transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--border-dark); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--text); background: var(--surface); }
.btn-ghost { color: var(--text-muted); background: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-alt); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; transition: all 0.3s ease;
}
.card-hover:hover {
  border-color: var(--border-dark); box-shadow: 0 12px 24px rgba(11, 17, 32, 0.06);
  transform: translateY(-2px);
}

/* Hero */
.hero { min-height: 90vh; position: relative; display: flex; align-items: center; padding: 120px 0 60px; overflow: hidden; }
.hero-shape { position: absolute; z-index: -1; opacity: 0.4; }
.shape-1 { top: 10%; right: -10%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px; background: radial-gradient(circle, var(--accent-light), transparent 60%); border-radius: 50%; filter: blur(40px); }
.shape-2 { bottom: -10%; left: -10%; width: 50vw; height: 50vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle, #E0E7FF, transparent 60%); border-radius: 50%; filter: blur(40px); }

/* Globe */
.globe-visual { position: relative; width: 100%; aspect-ratio: 1; max-width: 480px; margin: 0 auto; }
.globe-ring { position: absolute; inset: 0; border: 1px dashed var(--border-dark); border-radius: 50%; animation: spin 30s linear infinite; }
.globe-ring:nth-child(2) { inset: 30px; border-color: var(--accent); opacity: 0.3; animation-duration: 25s; animation-direction: reverse; }
.globe-ring:nth-child(3) { inset: 60px; border-color: var(--border); animation-duration: 35s; }
.globe-core { position: absolute; inset: 90px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--surface), var(--surface-alt)); box-shadow: inset 0 0 0 1px var(--border), 0 20px 40px rgba(0,0,0,0.05); overflow: hidden; }
.globe-core::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(0deg, transparent 49%, var(--border) 50%, transparent 51%), linear-gradient(90deg, transparent 49%, var(--border) 50%, transparent 51%); background-size: 40px 40px; opacity: 0.5; }
.globe-dot { position: absolute; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); z-index: 5; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Stats */
.stat-num { font-family: 'Fraunces', serif; font-weight: 700; color: var(--text); line-height: 1; }

/* Program Cards */
.program-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.3s ease; cursor: pointer; position: relative; }
.program-card:hover { border-color: var(--text); box-shadow: 0 16px 32px rgba(11, 17, 32, 0.08); transform: translateY(-4px); }
.program-card .img-wrap { height: 200px; position: relative; overflow: hidden; background: var(--surface-alt); }
.program-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.program-card:hover .img-wrap img { transform: scale(1.05); }

/* Forms */
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--surface-alt); border: 1px solid var(--border-dark);
  border-radius: 8px; padding: 12px 16px; color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-label { display: block; margin-bottom: 0.5rem; color: var(--text); font-weight: 500; font-size: 0.85rem; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* Step Indicator */
.step-dot { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); transition: all 0.3s ease; flex-shrink: 0; background: var(--surface); }
.step-dot.active { background: var(--text); border-color: var(--text); color: white; }
.step-dot.done { background: var(--accent); border-color: var(--accent); color: white; }
.step-line { height: 2px; flex: 1; background: var(--border); margin: 0 8px; border-radius: 1px; }
.step-line.done { background: var(--accent); }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--text); color: white; padding: 16px 20px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); transform: translateY(100px); opacity: 0; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1000; display: flex; align-items: center; gap: 12px; max-width: 380px; }
.toast.show { transform: translateY(0); opacity: 1; }

/* Filter Chips */
.filter-chip { padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; background: var(--surface); border: 1px solid var(--border-dark); color: var(--text-muted); cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.filter-chip:hover { border-color: var(--text); color: var(--text); }
.filter-chip.active { background: var(--text); border-color: var(--text); color: white; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Heart Icon */
.heart-btn { position: absolute; top: 12px; right: 12px; z-index: 10; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; color: var(--text-muted); }
.heart-btn:hover { background: white; color: var(--accent); border-color: var(--accent); }
.heart-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; }