/* SkillSpark mockups: shared design tokens and base components.
   Palette: sunshine yellow + flame orange, anchored by deep indigo. Brand name is a placeholder. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;600&display=swap");

:root {
  /* brand */
  --yellow-300: #fde68a;
  --yellow-400: #fcd34d;
  --yellow-500: #fbbf24;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --indigo-950: #12102e;
  --indigo-900: #1e1b4b;
  --indigo-800: #2e2a6b;
  --indigo-600: #4f46e5;
  --indigo-100: #e0e7ff;
  --grad-brand: linear-gradient(135deg, var(--yellow-400) 0%, var(--orange-500) 100%);
  --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(249, 115, 22, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(251, 191, 36, 0.22), transparent 60%), var(--indigo-950);

  /* surfaces (light) */
  --bg: #fffbf3;
  --surface: #ffffff;
  --surface-2: #fff4e0;
  --border: #f1e4cc;
  --text: #1e1b4b;
  --text-2: #4b4870;
  --muted: #64618a;
  --success: #16a34a;
  --danger: #dc2626;
  --on-brand: #1e1b4b; /* text on yellow/orange: indigo, never white (contrast) */

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(30, 27, 75, 0.06), 0 1px 3px rgba(30, 27, 75, 0.08);
  --shadow: 0 10px 30px -12px rgba(30, 27, 75, 0.25);
  --shadow-glow: 0 12px 32px -10px rgba(249, 115, 22, 0.55);
  --font: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0d26;
    --surface: #181538;
    --surface-2: #211d4a;
    --border: #2e2a6b;
    --text: #f5f3ff;
    --text-2: #c7c4e8;
    --muted: #9491bd;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0d26;
  --surface: #181538;
  --surface-2: #211d4a;
  --border: #2e2a6b;
  --text: #f5f3ff;
  --text-2: #c7c4e8;
  --muted: #9491bd;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.text-gradient { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-600); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 0.95rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--indigo-600); outline-offset: 2px; }
.btn-primary { background: var(--grad-brand); color: var(--on-brand); box-shadow: var(--shadow-glow); }
.btn-dark { background: var(--indigo-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* cards, badges, inputs */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.badge-brand { background: rgba(251, 191, 36, 0.18); color: var(--orange-600); border-color: rgba(249, 115, 22, 0.3); }
.badge-indigo { background: var(--indigo-100); color: var(--indigo-800); border-color: transparent; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: 500 1rem var(--font);
}
.input:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18); }

.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); }

/* logo mark: a spark in a rounded square (no third-party branding) */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-brand); display: grid; place-items: center; color: var(--indigo-900); box-shadow: var(--shadow-glow); }

/* course cover gradients (one per course, all inside the palette) */
.cover-excel   { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.cover-n8n     { background: linear-gradient(135deg, #fb923c, #c2410c); }
.cover-teach   { background: linear-gradient(135deg, #fde68a, #fb923c); }
.cover-hr      { background: linear-gradient(135deg, #2e2a6b, #4f46e5); }
.cover-english { background: linear-gradient(135deg, #1e1b4b, #f97316); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* dark mode: keep dark buttons visible on dark surfaces */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-dark { border-color: rgba(224, 231, 255, 0.28); } }
:root[data-theme="dark"] .btn-dark { border-color: rgba(224, 231, 255, 0.28); }

/* brightaibee logo */
.logo-mark { background: none !important; box-shadow: none !important; }
.logo-mark img { display: block; width: 36px; height: 36px; }
