/* ========================================================
   Mentora — Landing Page
   ======================================================== */

@font-face {
  font-family: "CalSans";
  src: url("assets/fonts/CalSans-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors — Mentora */
  --brand-purple: #7e51b4;
  --brand-pink: #e683c2;

  /* Purple scale derived from #7e51b4 */
  --purple-900: #1f1235;
  --purple-800: #2a1a47;
  --purple-700: #3a2361;
  --purple-600: #5a3789;
  --purple-500: #7e51b4;
  --purple-400: #9775c6;
  --purple-300: #b99ed6;
  --purple-200: #d7c4e8;
  --purple-100: #ece1f4;
  --purple-50:  #f6f0fa;

  /* Pink scale derived from #e683c2 */
  --accent-pink: #e683c2;
  --accent-pink-light: #f2b3dc;
  --accent-magenta: #d664b0;
  --accent-violet: #7e51b4;

  --cream-bg: #ffffff;
  --cream-card: #ffffff;

  --text-dark: #1f1235;
  --text-muted: #6b5b8a;
  --text-light: rgba(255,255,255,0.75);
  --text-light-muted: rgba(255,255,255,0.55);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 999px;

  --shadow-sm: 0 4px 12px rgba(31, 18, 53, 0.06);
  --shadow-md: 0 12px 32px rgba(31, 18, 53, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 18, 53, 0.12);
  --shadow-glow: 0 20px 60px rgba(230, 131, 194, 0.45);

  --font-display: "CalSans", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ TYPOGRAPHY ============ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.display-hero { font-size: clamp(48px, 7vw, 88px); }
.display-xl   { font-size: clamp(40px, 5.5vw, 72px); }
.display-lg   { font-size: clamp(32px, 4vw, 52px); }
.display-md   { font-size: clamp(24px, 2.5vw, 34px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--purple-100);
  color: var(--purple-500);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow.dark {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-200);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.lede {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
}

.lede.light { color: var(--text-light); }

.text-gradient {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.underline-mark {
  position: relative;
  display: inline-block;
  color: var(--brand-pink);
}
.underline-mark::after {
  content: none;
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.12em;
  background: var(--brand-pink);
  border-radius: 4px;
  opacity: 0.9;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2a1a47 0%, #1f1235 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 18, 53, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(31, 18, 53, 0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.6);
  color: var(--text-dark);
  border: 1px solid rgba(31, 18, 53, 0.12);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

.btn-glow {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-pink) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(230, 131, 194, 0.55);
}

.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.15);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(250, 247, 243, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(31, 18, 53, 0.06);
}
.navbar.on-dark.scrolled {
  background: rgba(31, 18, 53, 0.85);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-dark);
  transition: color 0.3s ease;
}
.navbar.on-dark .logo { color: #fff; }

.logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.logo-img {
  height: 18px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}
.navbar.on-dark .logo .logo-img {
  filter: brightness(0) invert(1);
}
.logo-img--footer {
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s ease, background 0.2s ease;
}
.navbar.on-dark .nav-links a { color: rgba(255,255,255,0.8); }
.nav-links a:hover { background: rgba(31, 18, 53, 0.06); }
.navbar.on-dark .nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 12px;
}
.navbar.on-dark .nav-login { color: rgba(255,255,255,0.8); }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(31, 18, 53, 0.06);
  align-items: center;
  justify-content: center;
}
.mobile-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .mobile-toggle { display: flex; }
}
