@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Roboto+Slab:wght@700&display=swap");

/* ==========================================================================
   1. DESIGN SYSTEM VARIABLES & TOKENS
   ========================================================================== */
:root {
  /* Brand & Neutral Color Palettes */
  --blue-50: #e9f0f7;
  --blue-100: #d3e2f0;
  --blue-200: #a7c5e1;
  --blue-300: #7aa7d2;
  --blue-400: #4e8ac3;
  --blue-500: #226db4;
  --blue-600: #003a81;
  --blue-700: #00074e;
  --blue-800: #00001b;
  --white: #fff;
  --gray-50: #e9e9ea;
  --gray-100: #d3d3d4;
  --gray-200: #a6a7a9;
  --gray-300: #7a7b7f;
  --gray-400: #4d4f54;
  --gray-500: #212329;
  --gray-600: #080a10;
  --light-bg: #f4f7fb;

  /* Font Weights */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;

  /* Typography Scales */
  --font-size-h1: 46px;
  --line-height-h1: 60px;

  --font-size-h2: 40px;
  --line-height-h2: 52px;

  --font-size-h3: 28px;
  --line-height-h3: 42px;

  --font-size-h4: 24px;
  --line-height-h4: 30px;

  --font-size-subtext: 18px;
  --line-height-subtext: 28px;

  --font-size-paragraph: 16px;
  --line-height-paragraph: 28px;

  --font-size-button: 16px;
  --line-height-button: 16px;

  --font-size-chip: 14px;
  --line-height-chip: 14px;
}

/* ==========================================================================
   2. BASE HTML ELEMENT & SCROLLBAR STYLES
   ========================================================================== */
body {
  font-family: "Figtree", sans-serif;
  color: var(--gray-600);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-300);
}

/* ==========================================================================
   3. TYPOGRAPHY CLASSES & UTILITIES
   ========================================================================== */
.font-regular {
  font-weight: var(--font-regular);
}

.font-medium {
  font-weight: var(--font-medium);
}

.font-semibold {
  font-weight: var(--font-semibold);
}

.text-h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
}

.text-h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
}

.text-h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
}

.text-h4 {
  font-size: var(--font-size-h4);
  line-height: var(--line-height-h4);
}

.text-subtext {
  font-size: var(--font-size-subtext);
  line-height: var(--line-height-subtext);
}

.text-paragraph {
  font-size: var(--font-size-paragraph);
  line-height: var(--line-height-paragraph);
}

.text-gradient {
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   4. LAYOUT & INTERACTIVE COMPONENTS
   ========================================================================== */
/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Custom Color Theme Utilities */
.text-primary {
  color: var(--blue-600);
}

.text-accent {
  color: var(--blue-400);
}

.text-textDark {
  color: var(--gray-500);
}

.text-textGray {
  color: var(--gray-300);
}

.bg-primary {
  background-color: var(--blue-600);
}

.bg-bgLight {
  background-color: var(--light-bg);
}

/* Interactive States & Card Shadows */
.hover\:text-primary:hover {
  color: var(--blue-600);
}

.hover\:border-primary:hover {
  border-color: var(--blue-600);
}

.group:hover .group-hover\:text-primary {
  color: var(--blue-600);
}

.shadow-card {
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.shadow-card:hover {
  box-shadow: 0px 18px 50px rgba(33, 35, 41, 0.06);
}

/* ==========================================================================
   5. NAVIGATION & BUTTON COMPONENTS
   ========================================================================== */
/* Navigation Links */
.nav-link {
  font-size: var(--font-size-button);
  line-height: var(--line-height-button);
  font-weight: var(--font-medium);
  color: var(--gray-500);
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background-color: transparent;
}

.nav-link:hover {
  color: var(--blue-600);
  background-color: var(--blue-50);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--blue-500);
  color: var(--white);
  font-size: var(--font-size-button);
  line-height: var(--line-height-button);
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.75rem 1.25rem;
}

.btn-primary:hover {
  background-color: var(--blue-600);
}

.btn-primary-sm {
  padding: 0.75rem 1.25rem;
}

.btn-primary-lg {
  padding: 0.75rem 1.25rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--gray-500);
  font-size: var(--font-size-button);
  line-height: var(--line-height-button);
  font-weight: var(--font-medium);
  border: 1px solid var(--gray-500);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--blue-50);
}

.btn-secondary-sm {
  padding: 0.625rem 1.25rem;
}

.btn-secondary-lg {
  padding: 0.75rem 1.5rem;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  color: var(--gray-500);
  font-size: var(--font-size-button);
  line-height: var(--line-height-button);
  font-weight: var(--font-medium);
  border: 1px solid var(--gray-100);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  padding: 8px 32px;
}

.btn-social:hover {
  background-color: var(--gray-50);
}

.btn-mobile {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--blue-50);
  color: var(--blue-600);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: var(--font-size-button);
  line-height: var(--line-height-button);
  font-weight: var(--font-medium);
  margin-top: 1rem;
  transition: all 0.3s ease;
}

/* ==========================================================================
   6. PREMIUM INTERACTIONS (CUSTOM CURSOR & REVEAL EFFECT)
   ========================================================================== */
/* Custom Cursor Pointer Override */
@media (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

/* Custom Cursor States */
.cursor-hover-state {
  transform: translate(-50%, -50%) scale(0.3);
}

#custom-cursor.hovering-link .cursor-default-state {
  transform: scale(0.95);
}

#custom-cursor.hovering-link .cursor-hover-state {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Grid Background Reveal Effect (matching FigJam dots) */
.dot-reveal-container {
  position: relative;
  background-color: var(--white);
}

.dot-reveal-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1.5px,
    transparent 1.5px
  );
  background-size: 20px 20px;
}

.dot-grid-layer {
  background-image: radial-gradient(
    rgba(34, 109, 180, 0.35) 1.5px,
    transparent 1.5px
  );
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  mask-image: radial-gradient(
    300px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    #fff 0%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    300px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    #fff 0%,
    transparent 100%
  );
}

.dot-reveal-container:hover .dot-grid-layer {
  opacity: 1;
}
