@import "./tokens.css";

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; gap: var(--gap, 1rem); align-items: center; }
.grid { display: grid; gap: var(--gap, 1.25rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
  text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 0 0 #4321B0; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 #4321B0; text-decoration: none; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 0 0 0 #4321B0; }
.btn-secondary { background: var(--brand-2); color: #062F22; box-shadow: 0 4px 0 0 #00876A; }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 #00876A; text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Pills / chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.chip-soft { background: var(--surface-2); color: var(--text-muted); }
.chip-success { background: #DEFBEC; color: #0A7C44; }
.chip-warn { background: #FFF1D6; color: #8A5500; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); }

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(110,60,255,0.18), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(0,217,163,0.15), transparent 45%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 540px; }

/* Course catalog */
.catalog { padding: 80px 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course-cover { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.4rem; color: #fff; padding: 18px; position: relative; }
.course-cover.excel { background: linear-gradient(135deg, #15c26b 0%, #00876A 100%); }
.course-cover.ai    { background: linear-gradient(135deg, #6E3CFF 0%, #2EA8FF 100%); }
.course-cover.ml    { background: linear-gradient(135deg, #FF4D6D 0%, #FFB020 100%); }
.course-cover.llm   { background: linear-gradient(135deg, #1A1230 0%, #6E3CFF 100%); }
.course-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.course-meta { display: flex; gap: 10px; font-size: 0.82rem; color: var(--text-muted); }

/* Sections */
.section { padding: 80px 0; }
.section h2 { margin-bottom: 12px; }
.section .lead { margin-bottom: 36px; }

/* Footer */
.footer { padding: 48px 0 32px; background: var(--surface-2); margin-top: 80px; color: var(--text-muted); }
.footer a { color: var(--text-muted); }

/* Confetti & toasts handled in player */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff;
  padding: 12px 18px; border-radius: 999px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: pop .35s var(--ease);
}
@keyframes pop { from { transform: translate(-50%, 20px); opacity: 0; } }

/* Spinner */
.spinner { width: 18px; height: 18px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Util */
.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}
.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}
.text-muted{color:var(--text-muted)} .text-dim{color:var(--text-dim)}
.text-center{text-align:center}
