@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ── Primary Palette ── */
  --primary: #8750f7;
  --primary-dark: #4654f9;
  --primary-light: #9b8dff;
  --primary-50: #f6f3fc;
  --primary-100: #dddddd;
  --primary-glow: rgba(135, 80, 247, 0.20);
  --primary-glow-lg: rgba(135, 80, 247, 0.35);

  /* ── Secondary / Accent Palette ── */
  --secondary: #2a1454;
  --accent: #814cec;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.20);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.20);
  --red: #ef4444;
  --red-dark: #dc2626;
  --red-glow: rgba(239, 68, 68, 0.20);
  --orange: #f97316;
  --purple: #a855f7;
  --cyan: #06b6d4;


  /* ── Neutral (Slate Scale) ── */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* ── Semantic Colors (set by theme) ── */
  --bg-body: #0f0715;
  /* tj-theme-accent-1 */
  --bg-card: rgba(20, 12, 28, 0.6);
  /* tj-theme-accent-2 with opacity */
  --bg-card-solid: #140c1c;
  /* tj-theme-accent-2 */
  --bg-sidebar: #0d1117;
  --bg-input: #140c1c;
  --bg-elevated: #1d1527;

  --text-primary: #ffffff;
  --text-secondary: #dddddd;
  /* tj-body */
  --text-tertiary: #cbd5e1;
  --text-inverse: #0f0715;

  --border-default: #2a1454;
  /* tj-theme-secondary */
  --border-subtle: rgba(42, 20, 84, 0.5);
  --border-focus: var(--primary);

  /* ── Glass Effect ── */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-blur: 12px;
  --glass-shadow: none;

  /* ── Typography ── */
  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* ── Border Radius ── */
  --radius-xs: 0.375rem;
  /* 6px */
  --radius-sm: 0.5rem;
  /* 8px */
  --radius-md: 0.75rem;
  /* 12px */
  --radius-lg: 1rem;
  /* 16px */
  --radius-xl: 1.25rem;
  /* 20px */
  --radius-2xl: 1.5rem;
  /* 24px */
  --radius-3xl: 2rem;
  /* 32px */
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.20);
  --shadow-glow-blue: 0 4px 25px rgba(59, 130, 246, 0.30);
  --shadow-glow-emerald: 0 4px 25px rgba(16, 185, 129, 0.30);
  --shadow-glow-red: 0 4px 25px rgba(239, 68, 68, 0.30);
  --shadow-glow-amber: 0 4px 25px rgba(245, 158, 11, 0.30);

  /* ── Transitions ── */
  --ease-base: 0.3s ease;
  --ease-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: 0.5s cubic-bezier(0.5, 0, 0, 1);

  /* ── Spacing Scale ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ── Z-Index Scale ── */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-toast: 700;
  --z-workspace: 9999;
}

/* ─────────────── Light Theme Override ─────────────── */
html:not(.dark) {
  --bg-body: #f6f3fc;
  --bg-card: rgba(255, 255, 255, 0.90);
  --bg-card-solid: #ffffff;
  --bg-sidebar: #f6f3fc;
  --bg-input: #ffffff;
  --bg-elevated: #ffffff;

  --text-primary: #2a1454;
  --text-secondary: #5c6266;
  --text-tertiary: #747779;
  --text-inverse: #f6f3fc;

  --border-default: #d9d9d9;
  --border-subtle: #dddddd;
  --border-focus: var(--primary);

  --glass-bg: rgba(255, 255, 255, 0.90);
  --glass-border: #d9d9d9;
  --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--ease-base), color var(--ease-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dynamic Background Gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12), transparent 50%),
    radial-gradient(circle at 0% 50%, rgba(139, 92, 246, 0.08), transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(16, 185, 129, 0.08), transparent 50%);
}

html:not(.dark) body::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.06), transparent 50%),
    radial-gradient(circle at 0% 50%, rgba(139, 92, 246, 0.04), transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(16, 185, 129, 0.04), transparent 50%);
}

img {
  max-width: 100%;
  display: block;
  image-rendering: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--ease-base);
}

a:hover {
  color: var(--primary-light);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

::selection {
  background: var(--primary);
  color: white;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
}

html:not(.dark) ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.heading-display {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.heading-1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
}

.heading-2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
}

.heading-3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
}

.heading-4 {
  font-size: 1.25rem;
  font-weight: 700;
}

.heading-5 {
  font-size: 1.1rem;
  font-weight: 600;
}

.text-body {
  font-size: 1rem;
  line-height: 1.7;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1.4;
}

.text-xxs {
  font-size: 0.625rem;
  line-height: 1.3;
}

.text-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.text-gradient {
  background: linear-gradient(to right, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.font-mono {
  font-family: var(--font-mono);
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}


.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-sm {
  max-width: 768px;
}

.container-lg {
  max-width: 1440px;
}

.container-full {
  max-width: 100%;
}

.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.section-sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* Flexbox Helpers */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.flex-1 {
  flex: 1;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Grid Helpers */
.grid {
  display: grid;
}

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

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

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.inset-0 {
  inset: 0;
}

/* Display */
.hidden {
  display: none !important;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.break-words {
  word-break: break-word;
}

/* Size */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

/* Margin / Padding helpers — keep minimal, use spacing scale */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-auto {
  margin-top: auto;
}

.mb-0 {
  margin-bottom: 0;
}

/* Cursors */
.pointer {
  cursor: pointer;
}

.not-allowed {
  cursor: not-allowed;
}



/* Fade In (general) */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out forwards;
}

/* Slide In From Bottom (modals) */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-slide-up {
  animation: slideUp 0.4s var(--ease-spring) forwards;
}

/* Slide In From Right (sidebar, panels) */
@keyframes slideRight {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.animate-slide-right {
  animation: slideRight 0.3s ease forwards;
}

/* Scale In (dropdowns, popovers) */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn 0.25s var(--ease-spring) forwards;
}

/* Pulse */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Spin */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Ping (like WhatsApp ring effect) */
@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Bounce */
@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s ease infinite;
}

/* Shimmer (skeleton loaders) */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s var(--ease-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: If JS never adds .active, auto-reveal after 3s via pure CSS */
@keyframes revealFallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal:not(.active) {
  animation: revealFallback 0.8s ease forwards;
  animation-delay: 3s;
}

/* Email Verification Banner pushes page content down */
.email-verify-banner-spacer {
  height: 52px;
}

/* Marquee */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Glow Pulse */
@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px var(--primary-glow);
  }

  50% {
    box-shadow: 0 0 40px var(--primary-glow-lg);
  }
}

.animate-glow {
  animation: glowPulse 3s ease-in-out infinite;
}


.bg-glow-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 35vw;
  height: 100vh;
  background: radial-gradient(ellipse at left, rgba(59, 130, 246, 0.05), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.bg-glow-right {
  position: fixed;
  top: 0;
  right: 0;
  width: 35vw;
  height: 100vh;
  background: radial-gradient(ellipse at right, rgba(139, 92, 246, 0.05), transparent 70%);
  z-index: -1;
  pointer-events: none;
}


@media (max-width: 639px) {
  .sm\:hidden {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .md\:hidden {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .lg\:hidden {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .sm\:block {
    display: block;
  }

  .sm\:flex {
    display: flex;
  }

  .sm\:inline {
    display: inline;
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }

  .md\:flex {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:inline {
    display: inline;
  }
}

/* ═══════════════════════════════════════════════
   GLOBAL RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════ */
.mobile-menu-btn { display: none; }

@media (max-width: 992px) {
  #desktop-nav-links { display: none !important; }
  .mobile-menu-btn { display: block !important; }
  .desktop-only { display: none !important; }
  
  /* Hero fixes across pages */
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center;
  }
  .hero-text-col div[style*="font-size:1.3rem"] { margin: 0 auto 0.5rem !important; }
  .hero-text-col p { margin: 0 auto 2.5rem !important; }
  .hero-text-col > div[style*="display:flex"] { justify-content: center !important; }
  .hero-image-col { justify-content: center !important; padding: 0 1rem; }
  
  .navbar-inner { padding: 0 1.25rem !important; }
  #hero { padding-top: 6rem !important; padding-bottom: 4rem !important; }
}

@media (max-width: 640px) {
  .hero-text-col h1, .heading-display { font-size: 2.8rem !important; }
  .hero-text-col a { width: 100%; justify-content: center; }
}