@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  /* Timelyt Core Palette */
  --timelyt-50: #eff6ff;
  --timelyt-100: #dbeafe;
  --timelyt-200: #bfdbfe;
  --timelyt-300: #93c5fd;
  --timelyt-400: #60a5fa;
  --timelyt-500: #3b82f6;
  /* Primary */
  --timelyt-600: #2563eb;
  --timelyt-700: #1d4ed8;
  --timelyt-800: #1e40af;
  --timelyt-900: #1e3a8a;

  /* Neutral Surface Colors */
  --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;

  /* Status Colors */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #d1fae5;
  --success-text: #065f46;

  /* Spacing */
  --container-max-width: 1280px;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-4: 1rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-timelyt-lg: 0 10px 30px -10px rgba(59, 130, 246, 0.5);

  /* Radius */
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  /* Animation */
  --transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.75rem;
  line-height: 1.25;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--slate-600);
}

/* Custom Logo Implementation */
.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--timelyt-600);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}

.logo-icon::before {
  content: 'T';
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  z-index: 2;
  font-family: 'Inter', sans-serif;
}

.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fde047;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  z-index: 3;
}

.sparkle-1 {
  top: -4px;
  right: -4px;
  animation: sparkleScale 2s infinite;
}

.sparkle-2 {
  bottom: 2px;
  right: -6px;
  width: 8px;
  height: 8px;
  animation: sparkleScale 1.5s infinite 0.5s;
}

@keyframes sparkleScale {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.4) rotate(15deg);
    opacity: 1;
  }
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  margin-left: 14px;
  color: var(--slate-900);
  letter-spacing: -0.03em;
}

/* Layout Utilities */
.container-custom {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 32px;
}

.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);
}

.flex {
  display: flex;
  gap: 16px;
  align-items: center;
}

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

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

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

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

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

/* Blobs for Atmosphere */
.blob {
  position: absolute;
  filter: blur(100px);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--timelyt-100);
  top: -100px;
  left: -100px;
  opacity: 0.4;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--timelyt-50);
  bottom: -50px;
  right: -50px;
  opacity: 0.6;
}

/* Common Components */
.card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--slate-200);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--timelyt-200);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--timelyt-500);
  color: #fff;
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background-color: var(--timelyt-600);
  box-shadow: 0 15px 30px -8px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #fff;
  color: var(--slate-700);
  border: 2px solid var(--slate-200);
}

.btn-ghost {
  background-color: transparent;
  color: var(--slate-600);
}

.badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: var(--timelyt-50);
  color: var(--timelyt-800);
  border: 1px solid var(--timelyt-200);
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

/* Header & Mega Menu */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: #fff;
  box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--slate-100);
}

nav.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  align-items: center;
}

.nav-links>li>a {
  text-decoration: none;
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 10px;
  transition: var(--transition);
}

.nav-links>li>a:hover {
  color: var(--timelyt-600);
  background: var(--timelyt-50);
}

.nav-item:hover .mega-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  padding: 48px 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  display: none;
  opacity: 0;
  transform: translateY(10px);
  z-index: -1;
  transition: opacity 300ms ease, transform 300ms ease;
}

.mega-menu-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.mega-menu h5 {
  color: var(--slate-400);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.mega-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-menu li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--slate-800);
  font-weight: 600;
  transition: var(--transition);
}

.mega-menu li a:hover {
  background: var(--timelyt-50);
  color: var(--timelyt-600);
  transform: translateX(6px);
}

.mega-menu-icon {
  width: 44px;
  height: 44px;
  background: var(--slate-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mega-menu-text span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--slate-500);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--slate-900);
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: var(--transition);
}

/* Footer */
footer {
  background: var(--slate-900);
  padding: 80px 0 40px;
  color: #fff;
}

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

.footer-social {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer-social li a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.footer-social li a:hover {
  background: var(--timelyt-500);
  transform: translateY(-3px);
}

.footer-column h4 {
  color: #fff;
  margin-bottom: 24px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--slate-400);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  color: var(--slate-400);
}

/* Responsive */
@media (max-width: 1024px) {

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Responsive Mobile Menu Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    gap: 12px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links>li {
    width: 100%;
  }

  .nav-links>li>a {
    font-size: 1.1rem;
    padding: 14px 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--slate-100);
    border-radius: 0;
    color: var(--slate-900);
  }

  /* Mobile Menu Buttons */
  .nav-links .nav-button {
    margin-top: 12px;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    font-weight: 800;
    border: none;
  }

  .nav-button.login-btn {
    background: var(--slate-100);
    color: var(--slate-900) !important;
  }

  .nav-button.signup-btn {
    background: var(--timelyt-500);
    color: #fff !important;
  }

  .header-actions {
    display: none !important;
  }

  .mega-menu {
    position: static;
    display: none !important;
    opacity: 1;
    transform: none;
    box-shadow: none;
    padding: 20px 0;
    border: none;
  }

  .nav-item:hover .mega-menu {
    display: none !important;
  }

  /* Hero & CTA Stacking */
  .hero-content {
    text-align: center;
  }

  .hero-content .flex,
  .container-custom .flex-wrap {
    flex-direction: column;
    width: 100%;
  }

  .hero-content .btn,
  .container-custom .btn {
    width: 100%;
    margin-bottom: 12px;
    justify-content: center;
  }

  .section {
    padding: 60px 0;
  }

  /* Footer Mobile Refinement */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-social {
    flex-direction: row;
    justify-content: center;
    margin-top: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
  }

  .footer-legal {
    justify-content: center;
    width: 100%;
    padding: 0;
  }
}

/* Legal Footer Links Style Fix */
.footer-legal {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.footer-legal a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: #fff;
}

body.menu-open {
  overflow: hidden;
}

/* Utility Classes */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 800ms ease;
}

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