/* ── Color Scheme — tells Clerk and browser components to use dark mode ── */
:root {
  color-scheme: dark;
}

/* ── Base ── */
* { box-sizing: border-box; }
body {
  font-family: 'Manrope', sans-serif;
  background-color: #0a0a0c;
  color: #d1d5db;
  overflow-x: hidden;
}

/* ── Space gray gradient mesh ── */
.bg-mesh {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 20% 15%, rgba(120,120,140,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 80% 75%, rgba(100,100,120,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 100% 80% at 50% 50%, #111114 0%, #0a0a0c 100%);
}

/* ── Glassmorphism card ── */
.glass-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
}

/* ── Floating glass pill nav ── */
.nav-glass {
  background: rgba(14, 14, 18, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Nav link base & active state ── */
.nav-link {
  color: #6b7280;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #e5e7eb; }
.nav-link.active, .nav-link.nav-active { color: #ffffff; font-weight: 600; }

/* ── Nav download pill ── */
.nav-download {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #e5e7eb;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  transition: all 0.2s ease;
}
.nav-download:hover {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

/* ── Nav divider ── */
.nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

/* ── Scroll offset fix for floating nav ── */
section[id] { scroll-margin-top: 80px; }

/* ── Glowing accent button — space silver ── */
.btn-primary {
  background: linear-gradient(135deg, #3a3a4a, #5a5a72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #4a4a5e, #6a6a86);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

/* ── Secondary outline button ── */
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}
.btn-secondary:active { transform: translateY(0) scale(0.99); }

/* ── Razorpay-ready CTA button ── */
.btn-pay {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  color: #0a0a0c;
  padding: 14px 40px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-pay:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff, #d1d5db);
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-pay:active {
  transform: translateY(0);
}

/* ── Video shell ── */
.video-shell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
}
.video-shell::before {
  content: '';
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

/* ── Step number badge ── */
.step-badge {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700;
  color: #9ca3af;
}

/* ── Step connector line ── */
.step-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.08), transparent);
  margin: 0 12px;
  margin-top: -20px;
}

/* ── Privacy highlight box ── */
.privacy-highlight {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

/* ── Keyboard key style — refined, inline ── */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-bottom: 2px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 2px 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78em;
  font-weight: 700;
  color: #e5e7eb;
  line-height: 1.7;
  white-space: nowrap;
  vertical-align: middle;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
.kbd-plus {
  display: inline-flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.7em;
  font-weight: 500;
  margin: 0 3px;
  vertical-align: middle;
}

/* ── Key display box ── */
.key-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-family: 'Manrope', monospace;
  letter-spacing: 0.1em;
  color: #9ca3af;
  text-align: center;
  padding: 20px;
  font-size: 1.05rem;
  font-weight: 600;
  user-select: all;
}

/* ── Divider line ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
}

/* ── Glow dot for features ── */
.glow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6b7280;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Windows logo SVG ── */
.win-icon { display: inline-block; width: 18px; height: 18px; }

/* ── Accent text gradient — silver/white ── */
.text-gradient {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0c; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }

/* ── Clerk Auth Styles ── */
.auth-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.auth-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #e5e7eb;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.auth-btn:hover {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

.user-greeting {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#clerk-user-button-mount {
  display: flex;
  align-items: center;
}

/* Clerk modal dark-theme overrides */
.cl-rootBox {
  --clerk-font-family: 'Manrope', sans-serif;
}

/* ── Auth gate overlay ── */
.auth-gate {
  text-align: center;
  padding: 32px 20px;
}

.auth-gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.auth-gate-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-gate-desc {
  color: #6b7280;
  font-size: 0.85rem;
  max-width: 320px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.auth-gate-btn {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0a0a0c;
  padding: 12px 32px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-gate-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff, #d1d5db);
  box-shadow: 0 8px 36px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.auth-gate-btn:active {
  transform: translateY(0);
}

/* ── Clerk Modal — Dark Mode Button Fix ── */
/* Make the "Continue" button visible on dark backgrounds */
.cl-formButtonPrimary {
  background: #ffffff !important;
  color: #0a0a0c !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(255,255,255,0.15) !important;
}
.cl-formButtonPrimary:hover {
  background: #e5e7eb !important;
  color: #0a0a0c !important;
}

/* Ensure all Clerk text is visible on dark mode */
.cl-card {
  --clerk-bg: #1a1a1f !important;
}
.cl-headerTitle,
.cl-headerSubtitle,
.cl-formFieldLabel,
.cl-footerActionText {
  color: #e5e7eb !important;
}
.cl-formFieldInput {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
}
.cl-socialButtonsBlockButton {
  border: 1px solid rgba(255,255,255,0.10) !important;
}
.cl-dividerText {
  color: #6b7280 !important;
}
.cl-dividerLine {
  background: rgba(255,255,255,0.08) !important;
}

/* ── Copy Toast Notification ── */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 24px;
  color: #e5e7eb;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Promo Badge — limited offer ── */
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  animation: promo-glow 2s ease-in-out infinite;
}
.promo-badge strong {
  color: #fcd34d;
  font-weight: 800;
}
.promo-fire {
  font-size: 0.9rem;
  animation: fire-pulse 1.5s ease-in-out infinite alternate;
}
@keyframes promo-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.1); }
  50% { box-shadow: 0 0 24px rgba(251, 191, 36, 0.2); }
}
@keyframes fire-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* ── Payment Method Tabs ── */
.payment-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 4px;
}
.payment-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.payment-tab:hover {
  color: #9ca3af;
  background: rgba(255,255,255,0.03);
}
.payment-tab.active {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* ── International CTA button variant — same grey as Razorpay ── */
.btn-pay-intl {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #0a0a0c;
  box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-pay-intl:hover {
  background: linear-gradient(135deg, #ffffff, #d1d5db);
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ── Microsoft Store button ── */
.btn-ms-store {
  background: linear-gradient(135deg, #3a3a4a, #5a5a72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-ms-store:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #4a4a5e, #6a6a86);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-ms-store:active { transform: translateY(0) scale(0.99); }
