/* landing page styles - inherits design tokens from variables.css */

/* reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* gsap handles smooth scroll */
  overflow-x: hidden;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* landing-specific theme variables */
:root {
  --landing-nav-bg: rgba(0, 0, 0, 0.4);
  --landing-nav-bg-scrolled: rgba(0, 0, 0, 0.72);
  --landing-nav-border: rgba(255, 255, 255, 0.06);
  --button-ghost-bg: rgba(255, 255, 255, 0.06);
  --button-ghost-bg-hover: rgba(255, 255, 255, 0.1);
  --button-ghost-border: rgba(255, 255, 255, 0.1);
  --button-ghost-border-hover: rgba(255, 255, 255, 0.2);
  --card-bg-start: rgba(255, 255, 255, 0.06);
  --card-bg-end: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-top-line: rgba(255, 255, 255, 0.2);
  --tag-bg: rgba(255, 255, 255, 0.04);
  --tag-border: rgba(255, 255, 255, 0.06);
  --footer-divider: rgba(255, 255, 255, 0.06);
  --video-fade-top: #000000;
  --accent-contrast: #000;
}

[data-theme="light"] {
  --landing-nav-bg: rgba(255, 255, 255, 0.58);
  --landing-nav-bg-scrolled: rgba(255, 255, 255, 0.9);
  --landing-nav-border: rgba(15, 23, 42, 0.08);
  --button-ghost-bg: rgba(255, 255, 255, 0.66);
  --button-ghost-bg-hover: rgba(255, 255, 255, 0.85);
  --button-ghost-border: rgba(15, 23, 42, 0.12);
  --button-ghost-border-hover: rgba(15, 23, 42, 0.22);
  --card-bg-start: rgba(255, 255, 255, 0.9);
  --card-bg-end: rgba(255, 255, 255, 0.72);
  --card-border: rgba(15, 23, 42, 0.1);
  --card-top-line: rgba(15, 23, 42, 0.14);
  --tag-bg: rgba(15, 23, 42, 0.04);
  --tag-border: rgba(15, 23, 42, 0.1);
  --footer-divider: rgba(15, 23, 42, 0.12);
  --video-fade-top: #f5f5f7;
  --accent-contrast: #04130d;
}

/* animated background orbs */
.landing-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.landing-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.landing-bg-orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(52, 211, 153, 0.25);
  top: -10%;
  left: -5%;
  animation: orbFloat1 18s ease-in-out infinite alternate;
}

.landing-bg-orb--2 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.2);
  top: 30%;
  right: -10%;
  animation: orbFloat2 22s ease-in-out infinite alternate;
}

.landing-bg-orb--3 {
  width: 400px;
  height: 400px;
  background: rgba(168, 85, 247, 0.15);
  bottom: -5%;
  left: 30%;
  animation: orbFloat3 20s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.1); }
}

@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -50px) scale(1.2); }
}

/* navigation */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--landing-nav-bg);
  border-bottom: 1px solid var(--landing-nav-border);
  transition: background 0.3s ease;
}

.landing-nav.is-scrolled {
  background: var(--landing-nav-bg-scrolled);
}

.landing-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.landing-nav-logo svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: -0.01em;
}

.landing-nav-links a:hover {
  color: var(--text-primary);
}

.landing-nav-links--learning {
  gap: 14px;
}

.landing-nav-cta {
  background: var(--accent);
  color: var(--accent-contrast) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.landing-nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--button-ghost-border);
  background: var(--button-ghost-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
  background: var(--button-ghost-bg-hover);
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.theme-toggle-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--moon {
  display: block;
}

/* hero section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 960px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.hero-btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero-btn--ghost {
  background: var(--button-ghost-bg);
  color: var(--text-primary);
  border: 1px solid var(--button-ghost-border);
  backdrop-filter: blur(10px);
}

.hero-btn--ghost:hover {
  background: var(--button-ghost-bg-hover);
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
  color: var(--text-muted);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* video runway spacer - fades page background into video's white background */
.hero-video-runway {
  position: relative;
  height: 30vh;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--video-bg) 100%);
}

.hero-video-runway::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12vh;
  height: 12vh;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
}

/* video section */
.video-section {
  position: relative;
  background: var(--video-bg);
  isolation: isolate;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

/* smooth gradient fade from runway into video content */
.video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15vh;
  background: linear-gradient(to bottom, var(--video-bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* canvas is the visible display surface */
.video-container canvas {
  display: block;
  width: calc(100% + 16px);
  margin-left: -8px;
  height: 100%;
  background: var(--video-bg);
}

/* video is hidden - used only as a frame source for canvas */
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* content overlay: slides up over pinned video */
.content-overlay {
  position: relative;
  z-index: 2;
  margin-top: -80vh;
  padding-top: 27vh;
  padding-bottom: 40px;
  background: transparent;
}

/* shared section styling */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 64px;
}

/* features section */
.features {
  padding: 320px 40px 180px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-glass {
  position: relative;
  padding: 56px 48px 56px;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.features-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.2) 70%,
    transparent 100%
  );
}

.features-glass::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(52, 211, 153, 0.04) 0%,
    transparent 50%
  );
  pointer-events: none;
}

[data-theme="light"] .features-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .features-glass::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 30%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.7) 70%,
    transparent 100%
  );
}

[data-theme="light"] .features-glass::after {
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(16, 185, 129, 0.05) 0%,
    transparent 50%
  );
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

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

.feature-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    var(--card-bg-start) 0%,
    var(--card-bg-end) 100%
  );
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--card-top-line),
    transparent
  );
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 40px rgba(52, 211, 153, 0.05);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card-desc {
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.65;
}

[data-theme="light"] .feature-card-desc {
  color: var(--text-secondary);
}

/* stats section */
.stats {
  padding: 120px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stats-glass {
  position: relative;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.stats-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  pointer-events: none;
}

[data-theme="light"] .stats-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* partners section */
.partners {
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.partners-header {
  margin-bottom: 48px;
}

.partners-header .section-subtitle {
  margin-bottom: 0;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.partner-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--button-ghost-bg);
  border: 1px solid var(--button-ghost-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.partner-pill:hover {
  opacity: 1;
  border-color: var(--button-ghost-border-hover);
}

/* reusable glass panel for content overlay sections */
.glass-panel {
  position: relative;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  pointer-events: none;
}

[data-theme="light"] .glass-panel {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* how it works section */
.how-it-works {
  padding: 120px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 80px;
}

.steps-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
}

/* connecting line between steps */
.steps-container::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 56px;
  right: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5));
  opacity: 0.3;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid rgba(52, 211, 153, 0.3);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* testimonials section */
.testimonials {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    var(--card-bg-start) 0%,
    var(--card-bg-end) 100%
  );
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--card-top-line),
    transparent
  );
}

.testimonial-quote-icon {
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* cta section */
.cta {
  padding: 120px 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-content {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
}

.cta .section-title {
  margin-bottom: 24px;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* footer */
.landing-footer {
  position: relative;
  z-index: 3;
  padding: 80px 40px 32px;
  margin-top: 80px;
  background: var(--bg-primary);
}

/* smooth gradient fade into footer (mirrors hero-video-runway at page top) */
.landing-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-contact-list li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--text-muted);
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--footer-divider);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}

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

/* pricing page */
.pricing-hero {
  padding: 140px 40px 80px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-hero .section-title {
  margin-bottom: 20px;
}

.pricing-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 120px;
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: 40px 36px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .pricing-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.45) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .pricing-card::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

/* featured / recommended card */
.pricing-card--featured {
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(52, 211, 153, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: scale(1.03);
}

.pricing-card--featured::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(52, 211, 153, 0.4),
    transparent
  );
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(52, 211, 153, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .pricing-card--featured {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(16, 185, 129, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pricing-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pricing-card-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.pricing-card-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.pricing-card--featured .pricing-card-amount {
  color: var(--accent);
}

.pricing-card-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-card-savings {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
}

.pricing-card-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.pricing-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-card-features li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.pricing-card-cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
}

.pricing-card-cta--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pricing-card-cta--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pricing-card-cta--ghost {
  background: var(--button-ghost-bg);
  color: var(--text-primary);
  border: 1px solid var(--button-ghost-border);
}

.pricing-card-cta--ghost:hover {
  background: var(--button-ghost-bg-hover);
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-2px);
}

/* pricing faq */
.pricing-faq {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

.pricing-faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-faq-item {
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.pricing-faq-item.open {
  border-color: rgba(52, 211, 153, 0.15);
}

[data-theme="light"] .pricing-faq-item {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  border-color: rgba(255, 255, 255, 0.5);
}

.pricing-faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.pricing-faq-toggle svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.pricing-faq-item.open .pricing-faq-toggle svg {
  transform: rotate(180deg);
}

.pricing-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.pricing-faq-item.open .pricing-faq-answer {
  max-height: 200px;
}

.pricing-faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* pricing page guarantee */
.pricing-guarantee {
  text-align: center;
  padding: 0 40px 80px;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-guarantee-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.pricing-guarantee-inner svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.pricing-guarantee-inner p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-guarantee-inner strong {
  color: var(--accent);
}

/* courses page */
.courses-hero {
  padding: 140px 40px 80px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.courses-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}

.courses-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 40px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.courses-filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: lowercase;
}

.courses-filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.courses-filter-btn.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 40px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  pointer-events: none;
}

[data-theme="light"] .course-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.course-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.course-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .course-card.is-visible:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.8);
}

/* hero and filter entrance animations */
.courses-hero,
.courses-filters,
.courses-count {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.courses-hero.is-visible,
.courses-filters.is-visible,
.courses-count.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.courses-filters { transition-delay: 100ms; }
.courses-count { transition-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  .course-card,
  .courses-hero,
  .courses-filters,
  .courses-count {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.course-card-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}

.course-card-badge--category {
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--text-secondary);
}

.course-card-badge--tier1 {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.course-card-badge--tier2 {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.course-card-badge--tier3 {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.course-card-badge--tier4 {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.course-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.course-card-aliases {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.course-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-card-summary {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.course-card-amino {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.course-card-arrow {
  width: 16px;
  height: 16px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-fast);
}

.course-card:hover .course-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.courses-count {
  text-align: center;
  padding: 0 40px 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.courses-count strong {
  color: var(--accent);
  font-weight: 600;
}

/* responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .pricing-card--featured {
    transform: none;
    order: -1;
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landing-nav {
    padding: 14px 20px;
  }

  .landing-nav-links {
    gap: 16px;
  }

  .landing-nav-links a:not(.landing-nav-cta) {
    display: none;
  }

  .landing-nav-links--learning a {
    display: inline-flex;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .features {
    padding: 210px 24px 120px;
  }

  .features-glass {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    padding: 80px 24px;
  }

  .stats-glass {
    padding: 40px 24px;
  }

  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }

  .partners {
    padding: 60px 24px;
  }

  .glass-panel {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .how-it-works {
    padding: 80px 24px;
  }

  .steps-container {
    flex-direction: column;
    gap: 32px;
  }

  .steps-container::before {
    display: none;
  }

  .testimonials {
    padding: 80px 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 80px 24px;
  }

  .pricing-hero {
    padding: 120px 24px 60px;
  }

  .pricing-grid {
    padding: 0 24px 80px;
  }

  .pricing-faq {
    padding: 0 24px 80px;
  }

  .pricing-guarantee {
    padding: 0 24px 60px;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .courses-hero {
    padding: 120px 24px 40px;
  }

  .courses-filters {
    padding: 0 24px 32px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 24px 80px;
  }

  .course-card {
    padding: 20px;
  }

  .course-card-name {
    font-size: 1rem;
  }

  .course-card-summary {
    -webkit-line-clamp: 2;
  }

  .courses-count {
    padding: 0 24px 24px;
  }

  .landing-footer {
    padding: 60px 24px 24px;
    margin-top: 60px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .courses-hero {
    padding: 100px 20px 32px;
  }

  .courses-filters {
    padding: 0 20px 24px;
    gap: 6px;
  }

  .courses-grid {
    padding: 0 20px 60px;
  }

  .course-card {
    padding: 18px;
  }

  .course-card-name {
    font-size: 0.95rem;
  }

  .courses-count {
    padding: 0 20px 20px;
  }
}

/* ============================================== */
/* calculator page */
/* ============================================== */

.calc-page {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.calc-hero {
  text-align: center;
  padding: 140px 40px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.calc-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.calc-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.calc-card {
  padding: 2rem;
}

.calc-field {
  margin-bottom: 1.25rem;
}

.calc-field:last-child {
  margin-bottom: 0;
}

.calc-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.calc-input-group:focus-within {
  border-color: var(--accent);
}

.calc-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: Inter, -apple-system, sans-serif;
  outline: none;
  min-width: 0;
}

.calc-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .calc-input::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

.calc-unit {
  padding: 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  border-left: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  height: 100%;
  display: flex;
  align-items: center;
  min-height: 48px;
}

[data-theme="light"] .calc-unit {
  background: rgba(0, 0, 0, 0.03);
}

.calc-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.calc-result {
  margin-bottom: 1rem;
}

.calc-result:last-child {
  margin-bottom: 0;
}

.calc-result-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.calc-result-value {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.calc-result-value.empty {
  color: var(--text-muted);
  opacity: 0.4;
}

/* syringe visualization */
.calc-syringe {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--border);
}

[data-theme="light"] .calc-syringe {
  background: rgba(0, 0, 0, 0.02);
}

.calc-syringe-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.syringe-barrel {
  width: 100%;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

[data-theme="light"] .syringe-barrel {
  background: rgba(0, 0, 0, 0.04);
}

.syringe-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  border-radius: 14px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
}

.syringe-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0.1rem 0;
}

.syringe-tick {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* preset buttons */
.calc-presets {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.calc-preset {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: Inter, -apple-system, sans-serif;
}

.calc-preset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .calc-hero {
    padding: 120px 24px 30px;
  }
}

@media (max-width: 480px) {
  .calc-hero .section-title {
    font-size: 1.6rem;
  }

  .calc-card {
    padding: 1.25rem;
  }

  .calc-result-value {
    font-size: 1.3rem;
  }
}

/* ============================================== */
/* XP bar for landing nav */
/* ============================================== */

.xp-bar-container {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0;
}

.xp-bar-level {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.xp-bar-level svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.xp-bar-level-num {
  font-variant-numeric: tabular-nums;
}

.xp-bar-track {
  width: 72px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

[data-theme="light"] .xp-bar-track {
  background: rgba(0, 0, 0, 0.08);
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #10b981);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.xp-bar-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* xp toast (shared across both css systems) */
.xp-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--glass-bg, rgba(255,255,255,0.05));
  backdrop-filter: var(--glass-blur, blur(24px));
  -webkit-backdrop-filter: var(--glass-blur, blur(24px));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xp-toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.xp-toast-exit {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.xp-toast-amount {
  font-weight: 700;
  font-size: 0.95rem;
  color: #22c55e;
}

.xp-toast-reason {
  font-size: 0.8rem;
  color: var(--text-muted, #737373);
}

/* level up toast */
.level-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--glass-bg, rgba(255,255,255,0.05));
  backdrop-filter: var(--glass-blur, blur(24px));
  -webkit-backdrop-filter: var(--glass-blur, blur(24px));
  border: 1px solid #f59e0b;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(249,115,22,0.15), 0 8px 24px rgba(0,0,0,0.5);
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.level-toast-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.level-toast-exit {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.level-toast-icon {
  color: #f59e0b;
  display: flex;
  align-items: center;
  animation: levelPulse 0.6s ease-in-out infinite alternate;
}

.level-toast-text {
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes levelPulse {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .xp-toast,
  .level-toast {
    transition: opacity 0.15s ease;
  }
  .level-toast-icon {
    animation: none;
  }
  .xp-bar-fill {
    transition: none;
  }
}

@media (max-width: 768px) {
  .xp-bar-container {
    gap: 0.3rem;
  }
  .xp-bar-track {
    width: 44px;
  }
  .xp-bar-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .xp-bar-track {
    width: 32px;
  }
}

/* ===== streak badge ===== */
.streak-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0.35rem;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: default;
}

.streak-badge:hover {
  background: rgba(251, 146, 60, 0.15);
  transform: scale(1.05);
}

.streak-icon {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.streak-icon.streak-active {
  color: #fb923c;
  fill: #fb923c;
  filter: drop-shadow(0 0 3px rgba(251, 146, 60, 0.5));
}

.streak-count {
  line-height: 1;
}

.streak-badge-new {
  animation: streakPulse 0.6s ease;
}

@keyframes streakPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

[data-theme="light"] .streak-badge {
  background: rgba(251, 146, 60, 0.08);
  border-color: rgba(251, 146, 60, 0.15);
  color: #ea580c;
}

[data-theme="light"] .streak-icon.streak-active {
  color: #ea580c;
  fill: #ea580c;
}

@media (prefers-reduced-motion: reduce) {
  .streak-badge-new {
    animation: none;
  }
}

@media (max-width: 480px) {
  .streak-badge {
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
  }
}

/* ===== sound toggle ===== */
.sound-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
  padding: 0;
}

.sound-toggle-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .sound-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
  .sound-toggle-btn {
    width: 28px;
    height: 28px;
  }

  .sound-toggle-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* ===== achievement toast ===== */
.achievement-toast {
  position: fixed;
  top: 80px;
  right: -360px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid #a855f7;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10001;
  max-width: 320px;
  transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.achievement-toast-visible {
  right: 20px;
}

.achievement-toast-exit {
  right: -360px;
  opacity: 0;
  transition: right 0.4s ease-in, opacity 0.3s ease;
}

.achievement-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  flex-shrink: 0;
}

.achievement-toast-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a855f7;
  margin-bottom: 0.1rem;
}

.achievement-toast-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.achievement-toast-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

[data-theme="light"] .achievement-toast {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

@media (prefers-reduced-motion: reduce) {
  .achievement-toast {
    transition: none;
  }
  .achievement-toast-visible {
    right: 20px;
  }
  .achievement-toast-exit {
    display: none;
  }
}

@media (max-width: 480px) {
  .achievement-toast {
    top: auto;
    bottom: -120px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  .achievement-toast-visible {
    bottom: 20px;
    right: 10px;
  }
  .achievement-toast-exit {
    bottom: -120px;
    right: 10px;
  }
}

/* ===== daily quests ===== */
.quest-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quest-toggle.quest-toggle-nav {
  position: relative;
  bottom: auto;
  right: auto;
  width: 34px;
  height: 34px;
  z-index: auto;
  box-shadow: none;
  flex-shrink: 0;
}

.quest-toggle.quest-toggle-nav:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.quest-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.quest-toggle-active {
  opacity: 0.9;
}

.quest-toggle-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.quest-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 280px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9998;
  padding: 1rem;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.quest-panel.quest-panel-nav {
  top: 74px;
  right: 24px;
  bottom: auto;
}

.quest-panel-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.quest-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.quest-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.quest-panel-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.quest-panel-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quest-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.quest-item-done {
  opacity: 0.6;
}

.quest-item-done .quest-item-text {
  text-decoration: line-through;
}

.quest-item-check {
  flex-shrink: 0;
  color: #10b981;
}

.quest-item-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
}

.quest-item-content {
  flex: 1;
  min-width: 0;
}

.quest-item-text {
  font-size: 0.78rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.quest-item-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--glass-border);
  overflow: hidden;
}

.quest-item-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.quest-item-done .quest-item-bar-fill {
  background: #10b981;
}

.quest-item-progress {
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.quest-panel-complete {
  margin-top: 0.75rem;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 8px;
}

[data-theme="light"] .quest-panel {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

@media (prefers-reduced-motion: reduce) {
  .quest-panel {
    transition: none;
  }
}

@media (max-width: 480px) {
  .quest-toggle {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .quest-toggle.quest-toggle-nav {
    width: 32px;
    height: 32px;
  }
  .quest-panel {
    bottom: 68px;
    right: 16px;
    left: 16px;
    width: auto;
  }
  .quest-panel.quest-panel-nav {
    top: 70px;
    bottom: auto;
    right: 12px;
    left: 12px;
  }
}

/* ===== zigzag progress path ===== */
.progress-path {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.progress-path-track {
  display: flex;
  flex-direction: column;
}

.progress-path-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.progress-path-row-left {
  align-items: flex-start;
  padding-left: 20%;
}

.progress-path-row-right {
  align-items: flex-end;
  padding-right: 20%;
}

.progress-path-connector {
  width: 2px;
  height: 32px;
  background: var(--glass-border);
  margin: 0 auto;
  position: relative;
  left: 24px;
}

.progress-path-row-right .progress-path-connector {
  left: -24px;
}

.progress-path-connector-done {
  background: #10b981;
}

.progress-path-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 320px;
  width: 100%;
}

.progress-path-node:hover {
  transform: translateY(-2px);
}

.progress-path-node-available {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.progress-path-node-available:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
  border-color: var(--accent);
}

.progress-path-node-complete {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  cursor: pointer;
}

.progress-path-node-complete:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.progress-path-node-locked {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.progress-path-node-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.progress-path-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.progress-path-node-available .progress-path-node-icon {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
}

.progress-path-node-complete .progress-path-node-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.progress-path-node-locked .progress-path-node-icon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.progress-path-node-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.progress-path-node-num {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.progress-path-node-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.progress-path-node-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.progress-path-node-score {
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
  margin-top: 0.1rem;
}

.progress-path-current-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.progress-path-lock {
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .progress-path-row-left,
  .progress-path-row-right {
    padding-left: 5%;
    padding-right: 5%;
    align-items: center;
  }
  .progress-path-connector {
    left: 0;
  }
  .progress-path-row-right .progress-path-connector {
    left: 0;
  }
  .progress-path-node {
    max-width: none;
  }
}

.progress-path-section {
  padding: 80px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.progress-path-header {
  text-align: center;
  margin-bottom: 40px;
}

[data-theme="light"] .progress-path-node-available {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .progress-path-node-locked {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .progress-path-node-complete {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .progress-path-connector {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .progress-path-node-title {
  color: #1a1a2e;
}

[data-theme="light"] .progress-path-node-num,
[data-theme="light"] .progress-path-node-subtitle {
  color: #64748b;
}

@media (max-width: 768px) {
  .progress-path-section {
    padding: 60px 20px;
  }
}

/* ---- pricing owned states ---- */

.pricing-card-cta--owned {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: default;
  pointer-events: auto;
}

.pricing-card-cta--owned:hover {
  transform: none;
  box-shadow: none;
}

/* ---- pricing toast ---- */

.pricing-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-elevated, rgba(30, 30, 46, 0.95));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  color: var(--text-primary, #fafafa);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}

.pricing-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-theme="light"] .pricing-toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ============================================== */
/* auth: nav buttons, modal, user menu            */
/* ============================================== */

/* nav auth buttons */
.auth-nav-btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
}

.auth-nav-btn--login {
  color: var(--text-secondary);
}

.auth-nav-btn--login:hover {
  color: var(--text-primary);
}

.auth-nav-btn--signup {
  color: var(--accent);
  padding: 6px 16px;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
}

.auth-nav-btn--signup:hover {
  background: rgba(52, 211, 153, 0.25);
  border-color: var(--accent);
}

/* user menu */
.user-menu {
  position: relative;
}

.user-menu-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.user-menu-avatar:hover {
  background: rgba(52, 211, 153, 0.25);
  transform: scale(1.05);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  z-index: 200;
}

.user-menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-theme="light"] .user-menu-dropdown {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  border-color: rgba(0, 0, 0, 0.1);
}

.user-menu-email {
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-menu-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* auth modal overlay */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.auth-modal-overlay--visible {
  opacity: 1;
  visibility: visible;
}

[data-theme="light"] .auth-modal-overlay {
  background: rgba(0, 0, 0, 0.25);
}

/* auth modal card */
.auth-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 20px;
  padding: 40px 32px 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: var(--radius-xl);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(8px);
  transition: transform var(--transition-fast);
}

.auth-modal-overlay--visible .auth-modal {
  transform: translateY(0);
}

[data-theme="light"] .auth-modal {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.65) 100%
  );
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.auth-modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* tabs */
.auth-modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.auth-modal-tab {
  flex: 1;
  padding: 10px 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.auth-modal-tab:hover {
  color: var(--text-secondary);
}

.auth-modal-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* form */
.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-modal-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.auth-modal-input {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.auth-modal-input:focus {
  border-color: var(--accent);
}

.auth-modal-input::placeholder {
  color: var(--text-muted);
}

/* submit button */
.auth-modal-submit {
  width: 100%;
  padding: 11px 20px;
  margin-top: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-contrast);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-modal-submit:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.auth-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* error message */
.auth-modal-error {
  font-size: 0.82rem;
  color: var(--danger);
  display: none;
  text-align: center;
  line-height: 1.4;
}

/* note */
.auth-modal-note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* responsive auth */
@media (max-width: 768px) {
  .auth-nav-btn--login,
  .auth-nav-btn--signup {
    font-size: 0.8rem;
  }

  .auth-nav-btn--signup {
    padding: 5px 12px;
  }

  .auth-modal {
    margin: 16px;
    padding: 32px 24px 24px;
  }

  .user-menu-dropdown {
    right: -40px;
  }
}

/* legal page styles -- black and white, no gradient text */
.legal-page .learn-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--text-primary);
}

.legal-page .section-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--text-primary);
  font-style: normal;
  padding-bottom: 2px;
}

.legal-last-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.legal-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-content li strong {
  color: var(--text-primary);
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-content a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* extra bottom padding to prevent clipping */
.legal-page {
  padding-bottom: 2rem;
}

/* auth modal consent checkboxes */
.auth-modal-consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.auth-modal-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.auth-modal-checkbox a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-modal-checkbox a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* footer disclaimer */
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-disclaimer {
    order: 1;
    font-size: 0.68rem;
  }
}

/* paywall acknowledgment checkbox */
.paywall-acknowledge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.paywall-acknowledge input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.paywall-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
