:root {
  --bg: #080c14;
  --bg-surface: #0e1420;
  --bg-card: #131b2a;
  --fg: #e8ecf2;
  --fg-muted: #8a94a6;
  --gold: #e8a630;
  --gold-glow: #e8a63033;
  --gold-dim: #c4891f;
  --accent-red: #e05252;
  --accent-green: #34d399;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: -0.02em;
}

/* ── HERO ── */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  background: var(--gold-glow);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--gold-dim);
  margin-bottom: 2rem;
  width: fit-content;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.gold { color: var(--gold); }

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.8;
}

.hero-stat {
  position: absolute;
  bottom: 4rem;
  right: 2rem;
  text-align: right;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
  max-width: 260px;
  margin-left: auto;
}

/* ── GAP SECTION ── */
.gap {
  padding: 6rem 2rem;
  background: var(--bg-surface);
}

.gap-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.gap h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  text-align: center;
}

.gap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.gap-card {
  background: var(--bg-card);
  border: 1px solid #1e2840;
  border-radius: 16px;
  padding: 2rem;
}

.gap-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background: #1a2235;
}

.gap-tag.highlight {
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
}

.gap-card ul {
  list-style: none;
  padding: 0;
}

.gap-card li {
  padding: 0.5rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--fg-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid #1a2235;
}

.gap-card li:last-child { border-bottom: none; }

.gap-card.old li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: 700;
}

.gap-card.new li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

/* ── FEATURES ── */
.features {
  padding: 6rem 2rem;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.features-sub {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid #1e2840;
  border-radius: 16px;
  padding: 2.2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.feature-icon {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--fg);
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── CLOSING ── */
.closing {
  padding: 6rem 2rem;
  background: var(--bg-surface);
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.closing-line {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2.5rem;
  letter-spacing: -0.01em;
}

/* ── FOOTER ── */
.footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid #1a2235;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ── CTA BUTTON ── */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.closing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: #080c14;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 24px var(--gold-glow);
}

.cta-btn:hover {
  background: #f5b93a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 166, 48, 0.35);
}

.cta-note {
  font-size: 0.82rem;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

.cta-secondary {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: opacity 0.2s;
  letter-spacing: -0.01em;
}
.cta-secondary:hover { opacity: 0.75; }

.hero-nav-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-nav-cta:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 4rem 1.5rem 6rem; }
  .hero-stat { position: static; text-align: left; margin-top: 3rem; }
  .stat-label { margin-left: 0; }
  .gap-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .gap, .features, .closing { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-badge { font-size: 0.65rem; }
}

/* ─────────────────────────────────────────────────────────
   APP PAGES (profile form + dashboard)
   ───────────────────────────────────────────────────────── */

/* ── App shell ── */
.app-layout { min-height: 100vh; display: flex; flex-direction: column; }

.app-nav {
  padding: 1.2rem 2rem;
  border-bottom: 1px solid #1a2235;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-nav .logo { text-decoration: none; }
.app-nav-sub { font-size: 0.85rem; color: var(--fg-muted); }
.app-nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }

.nav-cta-btn {
  background: var(--gold);
  color: #080c14;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta-btn:hover { background: #f5b93a; }

/* ── Profile Form ── */
.profile-main {
  flex: 1;
  padding: 3rem 1.5rem 5rem;
}

.profile-container {
  max-width: 780px;
  margin: 0 auto;
}

.profile-header { margin-bottom: 2.5rem; }
.profile-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.5rem;
}
.profile-lede { font-size: 1rem; color: var(--fg-muted); }

.form-error {
  background: rgba(224, 82, 82, 0.12);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.profile-form { display: flex; flex-direction: column; gap: 2.5rem; }

.form-section {
  background: var(--bg-surface);
  border: 1px solid #1e2840;
  border-radius: 16px;
  padding: 2rem;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.form-section-sub { font-size: 0.88rem; color: var(--fg-muted); margin-top: -1rem; margin-bottom: 1.2rem; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-row-2:last-child { margin-bottom: 0; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  background: var(--bg-card);
  border: 1px solid #1e2840;
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus { border-color: var(--gold-dim); }
.form-group input::placeholder { color: #3d4a5f; }
.form-group select option { background: var(--bg-card); }

.field-hint { font-size: 0.78rem; color: var(--fg-muted); }
.field-opt { font-size: 0.78rem; font-weight: 400; color: var(--fg-muted); }

/* ── Interest chips ── */
.interest-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.interest-chip { cursor: pointer; }
.interest-chip input { display: none; }
.interest-chip span {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid #1e2840;
  background: var(--bg-card);
  color: var(--fg-muted);
  font-size: 0.85rem;
  transition: all 0.15s ease;
}
.interest-chip input:checked + span {
  background: var(--gold-glow);
  border-color: var(--gold-dim);
  color: var(--gold);
}
.interest-chip:hover span { border-color: #2e3f5c; color: var(--fg); }

/* ── Checkboxes ── */
.checkbox-row { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--fg-muted);
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}
.checkbox-label:hover { color: var(--fg); }

/* ── Submit ── */
.form-submit { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }

.submit-btn {
  background: var(--gold);
  color: #080c14;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  padding: 0.9rem 2.2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 24px var(--gold-glow);
}
.submit-btn:hover { background: #f5b93a; transform: translateY(-2px); }
.submit-note { font-size: 0.82rem; color: var(--fg-muted); }

/* ── Dashboard Header ── */
.dash-header {
  background: var(--bg-surface);
  border-bottom: 1px solid #1a2235;
  padding: 2.5rem 2rem;
}

.dash-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.dash-greeting h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.8rem 0 0.5rem;
}

.dash-sub { font-size: 0.95rem; color: var(--fg-muted); max-width: 560px; }
.dash-sub .gold { font-weight: 700; }

.dash-stats { display: flex; gap: 2rem; text-align: right; flex-shrink: 0; }
.dash-stat .stat-number { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* ── Dashboard Main ── */
.dash-main {
  flex: 1;
  padding: 2.5rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ── Scholarship Cards ── */
.scholarship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.2rem;
}

.scholarship-card {
  background: var(--bg-card);
  border: 1px solid #1e2840;
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, transform 0.2s;
}
.scholarship-card:hover { border-color: #2e4060; transform: translateY(-3px); }
.scholarship-card.card-top { border-color: var(--gold-dim); background: linear-gradient(135deg, #131b2a, #16201c); }

.card-header { display: flex; justify-content: space-between; align-items: center; }

.fit-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.fit-excellent { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); border: 1px solid rgba(52, 211, 153, 0.3); }
.fit-good { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--gold-dim); }
.fit-ok { background: rgba(138, 148, 166, 0.1); color: var(--fg-muted); border: 1px solid #2a3348; }

.deadline-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
}
.deadline-urgent { background: rgba(224, 82, 82, 0.15); color: var(--accent-red); }
.deadline-soon { background: rgba(232, 166, 48, 0.12); color: var(--gold); }
.deadline-ok { background: rgba(138, 148, 166, 0.08); color: var(--fg-muted); }
.deadline-rolling, .deadline-closed { background: rgba(138, 148, 166, 0.08); color: var(--fg-muted); }

.card-body { flex: 1; }

.card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.card-org { font-size: 0.8rem; color: var(--fg-muted); margin-bottom: 0.7rem; }
.card-desc { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.6; margin-bottom: 1rem; }

.card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: #1a2235;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.card-footer {
  border-top: 1px solid #1a2235;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}
.card-deadline { font-size: 0.78rem; color: var(--fg-muted); }

.card-apply-btn {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s;
}
.card-apply-btn:hover { background: var(--gold-glow); }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.8rem; }
.empty-state p { color: var(--fg-muted); margin-bottom: 1.5rem; }

/* ── Upgrade CTA ── */
.upgrade-cta {
  margin-top: 4rem;
  background: var(--bg-surface);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
}
.upgrade-cta-inner { max-width: 600px; margin: 0 auto; }
.upgrade-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.8rem;
}
.upgrade-cta p { color: var(--fg-muted); font-size: 0.98rem; line-height: 1.8; margin-bottom: 1.5rem; }
.upgrade-cta .closing-cta { margin-top: 0; }

/* ── App Responsive ── */
@media (max-width: 768px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .dash-header-inner { flex-direction: column; align-items: flex-start; }
  .dash-stats { text-align: left; }
  .scholarship-grid { grid-template-columns: 1fr; }
  .app-nav { padding: 1rem; }
  .app-nav-sub { display: none; }
  .dash-main { padding: 1.5rem 1rem 4rem; }
  .profile-main { padding: 2rem 1rem 4rem; }
  .form-section { padding: 1.5rem; }
}
