:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f0eef8;
  --muted: #7a7890;
  --accent: #ff5c3a;
  --gold: #ffc84a;
  --teal: #38e8c8;
  --purple: #9b6dff;
  --blue: #4da6ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 109, 255, 0.15) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 200, 74, 0.1);
  border: 1px solid rgba(255, 200, 74, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 { font-family: "Syne", sans-serif; font-size: clamp(36px, 8vw, 72px); font-weight: 800; line-height: 1.05; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 16px; color: var(--muted); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ─── PROGRESS ─── */
.progress-section { max-width: 700px; margin: 40px auto 60px; padding: 0 24px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.progress-track { height: 6px; background: var(--surface2); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--purple), var(--teal)); transition: width 0.6s ease; }
.xp-bar { display: flex; justify-content: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.xp-chip { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; font-size: 13px; font-weight: 600; }

/* ─── GRID ─── */
.grid-section { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* ─── CARD ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.step-circle { width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--card-color, var(--accent)) 15%, transparent); border: 1.5px solid color-mix(in srgb, var(--card-color, var(--accent)) 40%, transparent); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--card-color); }
.card-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.status-pill { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; }
.status-pill.available { background: rgba(56, 232, 200, 0.12); color: var(--teal); border: 1px solid rgba(56, 232, 200, 0.2); }
.status-pill.completed { background: rgba(255, 200, 74, 0.12); color: var(--gold); border: 1px solid rgba(255, 200, 74, 0.2); }
.status-pill.locked { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.card h3 { font-family: "Syne", sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag { font-size: 10px; font-weight: 500; padding: 3px 9px; border-radius: 100px; background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--border); }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border); }
.card-btn { width: 100%; font-family: inherit; font-size: 12px; font-weight: 700; padding: 10px 16px; border-radius: 100px; border: 1.5px solid var(--card-color); background: transparent; color: var(--card-color); cursor: pointer; transition: all 0.2s; }
.card-btn:hover { background: var(--card-color); color: #000; }
.card-btn.locked-btn { border-color: var(--border); color: var(--muted); cursor: not-allowed; }

/* ─── SCHEMES SECTION ─── */
.schemes-section { padding: 80px 24px; background: #0c0c12; border-top: 1px solid var(--border); }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-title { font-family: "Syne", sans-serif; font-size: clamp(28px, 5vw, 42px); font-weight: 800; margin-bottom: 12px; }
.section-desc { color: var(--muted); max-width: 600px; margin-bottom: 40px; font-size: 15px; }
.schemes-tabs { display: flex; gap: 10px; margin-bottom: 32px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.schemes-tabs::-webkit-scrollbar { display: none; }
.scheme-tab { white-space: nowrap; padding: 10px 20px; border-radius: 100px; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.scheme-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }
.schemes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.scheme-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; transition: transform 0.3s; }
.scheme-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.scheme-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.scheme-card h4 { font-family: "Syne", sans-serif; font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.4; flex: 1; }
.scheme-link-btn { width: 32px; height: 32px; border-radius: 8px; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; transition: all 0.2s; flex-shrink: 0; }
.scheme-link-btn:hover { background: var(--accent); color: #000; }
.scheme-detail { margin-bottom: 16px; }
.scheme-detail:last-child { margin-bottom: 0; }
.detail-label { display: block; font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.scheme-detail p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto; transform: translateY(20px); transition: transform 0.4s; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header, .modal-body { padding: 36px; }
.modal-header-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.modal h2 { font-family: "Syne", sans-serif; font-size: 28px; font-weight: 800; }
.modal-close { width: 40px; height: 40px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-size: 18px; }
.modal-meta { display: flex; gap: 12px; flex-wrap: wrap; padding: 20px 36px; border-bottom: 1px solid var(--border); }
.meta-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 100px; padding: 7px 14px; }
.article-content { font-size: 15px; line-height: 1.8; color: #c0bdd4; background: var(--surface2); padding: 24px; border-radius: 16px; border: 1px solid var(--border); }
.modal-section { margin-bottom: 32px; }
.modal-section-title { font-family: "Syne", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--modal-color); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.modal-section-title::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--modal-color) 20%, transparent); }
.objective-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.objective-list li { display: flex; gap: 12px; padding: 12px 16px; background: var(--surface2); border-radius: 12px; border: 1px solid var(--border); font-size: 14px; }
.resource-grid { display: flex; flex-direction: column; gap: 8px; }
.resource-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); transition: all 0.2s; }
.resource-item:hover { border-color: var(--modal-color); background: color-mix(in srgb, var(--modal-color) 8%, var(--surface2)); }
.r-name { flex: 1; font-weight: 600; font-size: 14px; }
.r-url { font-size: 11px; color: var(--muted); }
.quiz-section { background: color-mix(in srgb, var(--modal-color) 8%, var(--surface2)); border: 1px solid color-mix(in srgb, var(--modal-color) 20%, transparent); border-radius: 16px; padding: 24px; }
.quiz-q { font-family: "Syne", sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.quiz-option { width: 100%; padding: 12px 16px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 13px; text-align: left; cursor: pointer; margin-bottom: 8px; }
.quiz-option.correct { border-color: var(--teal); color: var(--teal); background: rgba(56, 232, 200, 0.1); }
.quiz-option.wrong { border-color: var(--accent); color: var(--accent); background: rgba(255, 92, 58, 0.1); }
.quiz-feedback { margin-top: 12px; font-size: 13px; padding: 12px; border-radius: 10px; display: none; }
.quiz-feedback.show { display: block; }
.quiz-feedback.correct { background: rgba(56, 232, 200, 0.1); color: var(--teal); }
.quiz-feedback.wrong { background: rgba(255, 92, 58, 0.1); color: #ff8a6a; }
.modal-actions { display: flex; gap: 12px; padding-top: 20px; flex-wrap: wrap; }
.btn-primary { padding: 12px 28px; border-radius: 100px; background: var(--modal-color); border: none; color: #000; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-secondary { padding: 12px 28px; border-radius: 100px; background: transparent; border: 1.5px solid var(--border); color: var(--muted); font-weight: 600; cursor: pointer; font-family: inherit; }

/* ─── TOAST ─── */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--surface2); border: 1px solid var(--border); border-radius: 100px; padding: 12px 24px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; z-index: 2000; transition: transform 0.4s; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── CONTACT SECTION ─── */
.contact-section {
  padding: 80px 24px;
  background: var(--bg);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .contact-card {
    grid-template-columns: 1fr 1fr;
    padding: 60px;
    align-items: center;
  }
}

.contact-info .section-title span {
  color: var(--teal);
}

.contact-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.c-feat {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(56, 232, 200, 0.05);
}

#submit-btn {
  position: relative;
  overflow: hidden;
  height: 54px;
  background: var(--teal);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 15px;
  margin-top: 8px;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

#submit-btn:hover .btn-glow {
  transform: translateX(100%);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero { padding: 60px 20px 40px; }
  .grid-section { padding: 0 16px 60px; }
  .modal { max-height: 95vh; border-radius: 24px 24px 0 0; align-self: flex-end; }
  .modal-header, .modal-body { padding: 24px; }
  .schemes-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; justify-content: center; display: flex; }
}
