/* ═══════════════════════════════════════════════════
   TASKLY — LIQUID GLASS HERO
   style.css
   ═══════════════════════════════════════════════════ */

/* 1. GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Fustat:wght@400;700;800&family=Inter:wght@400;500;600&display=swap');

/* 2. DESIGN TOKENS */
:root {
  /* Colors */
  --bg:            #FFFFFF;
  --text:          #0D1117;
  --text-muted:    rgba(13, 17, 23, 0.60);
  --accent:        #0084FF;
  --accent-glass:  rgba(0, 132, 255, 0.80);
  --glow-blue-1:   #60B1FF;
  --glow-blue-2:   #319AFF;
  --star-orange:   #FF801E;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Z-index */
  --z-bg:      0;
  --z-base:    1;
  --z-content: 10;
  --z-nav:     200;
  --z-overlay: 300;

  /* Container */
  --container-xl: 1600px;
  --gutter:       24px;
}

/* 3. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 4. BACKGROUND GLOW */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  overflow: hidden;
}

.glow-ellipse {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
}

.glow-1 {
  width: 700px;
  height: 600px;
  background: radial-gradient(ellipse at center, #60B1FF 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: glow-drift-1 18s ease-in-out infinite;
}

.glow-2 {
  width: 500px;
  height: 450px;
  background: radial-gradient(ellipse at center, #319AFF 0%, transparent 70%);
  top: -100px;
  left: -50px;
  opacity: 0.35;
  animation: glow-drift-2 24s ease-in-out infinite;
}

@keyframes glow-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, 30px) scale(1.05); }
  66%       { transform: translate(-20px, 50px) scale(0.97); }
}

@keyframes glow-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(60px, -30px); }
}

/* 5. GLASSMORPHISM RECIPES */
.glass-strong {
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow:
    inset 0px 4px 4px 0px rgba(255, 255, 255, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.06);
}

/* 6. NAVBAR */
.navbar-wrap {
  position: sticky;
  top: 30px;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.navbar {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: 10px 20px 10px 24px;
  border-radius: var(--radius-lg);
  width: fit-content;
  max-width: 860px;
}

.nav-logo {
  font-family: 'Fustat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(13, 17, 23, 0.65);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Navbar CTA Button */
.btn-nav-signup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 8px 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(0, 132, 255, 0.80);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    inset 0px 4px 4px 0px rgba(255, 255, 255, 0.35),
    0 4px 16px rgba(0, 132, 255, 0.30);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-nav-signup:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0px 4px 4px 0px rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(0, 132, 255, 0.40);
}

.btn-nav-signup:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-nav-signup:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.1s;
}

.btn-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 7. MOBILE OVERLAY */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.mobile-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.mobile-link {
  font-family: 'Fustat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: var(--accent);
}

.mobile-link.cta {
  color: var(--accent);
}

/* 8. HERO SECTION */
.hero-section {
  position: relative;
  z-index: var(--z-content);
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  padding: var(--space-4xl) var(--gutter) var(--space-2xl);
}

.hero-container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
}

/* 9. HERO LEFT */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  max-width: 580px;
}

/* Social Proof Badge */
.social-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.badge-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(13, 17, 23, 0.70);
}

.badge-text strong {
  color: var(--text);
  font-weight: 700;
}

/* Hero Headline */
.hero-headline {
  font-family: 'Fustat', sans-serif;
  font-weight: 800;
  font-size: 75px;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  animation: fadeInUp 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hero Subheadline */
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.5px;
  color: var(--text-muted);
  max-width: 480px;
  animation: fadeInUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Primary CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 14px 14px 28px;
  border-radius: var(--radius-lg);
  background: rgba(0, 132, 255, 0.80);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  box-shadow:
    inset 0px 4px 4px 0px rgba(255, 255, 255, 0.35),
    0 8px 32px rgba(0, 132, 255, 0.35),
    0 2px 8px rgba(0, 132, 255, 0.20);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  animation: fadeInUp 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  cursor: pointer;
}

.btn-cta:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow:
    inset 0px 4px 4px 0px rgba(255, 255, 255, 0.35),
    0 16px 48px rgba(0, 132, 255, 0.45),
    0 4px 12px rgba(0, 132, 255, 0.25);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 132, 255, 0.15);
}

.btn-cta:active {
  transform: scale(0.98) translateY(1px);
  transition-duration: 0.1s;
}

.cta-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.btn-cta:hover .cta-icon-circle {
  background: rgba(255, 255, 255, 0.35);
}

/* 10. HERO RIGHT — ORB */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 600px;
  overflow: visible;
}

.orb-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSS Fallback Orb */
.orb-fallback {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 35% 35%,
    rgba(96, 177, 255, 0.55) 0%,
    rgba(49, 154, 255, 0.40) 35%,
    rgba(0, 132, 255, 0.20) 60%,
    transparent 80%
  );
  filter: blur(2px);
  animation: orb-pulse 6s ease-in-out infinite;
  transform: scale(1.25);
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1.25) rotate(0deg); opacity: 0.85; }
  50%       { transform: scale(1.30) rotate(8deg); opacity: 1; }
}

/* Video Orb */
.orb-video {
  position: absolute;
  width: 520px;
  height: 520px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
  transform: scale(1.25);
  filter: hue-rotate(-55deg) saturate(250%) brightness(1.2) contrast(1.1);
  pointer-events: none;
}

/* 11. LOGOS SECTION */
.logos-section {
  position: relative;
  z-index: var(--z-content);
  padding: var(--space-2xl) var(--gutter) var(--space-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.logos-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(13, 17, 23, 0.40);
  text-align: center;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

.brand-logo {
  opacity: 0.45;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.brand-logo:hover {
  opacity: 0.70;
}

/* 12. KEYFRAMES */
@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(24px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* 13. RESPONSIVE */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 56px;
    letter-spacing: -1.5px;
  }

  .hero-container {
    gap: var(--space-xl);
  }

  .orb-video,
  .orb-fallback {
    width: 400px;
    height: 400px;
  }

  .hero-right {
    height: 480px;
  }

  .logos-row {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  .navbar {
    gap: var(--space-md);
    padding: 10px 12px 10px 20px;
  }

  .nav-links {
    display: none;
  }

  .btn-nav-signup {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-section {
    padding: var(--space-2xl) var(--gutter);
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-left {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-headline {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .hero-right {
    height: 340px;
    order: -1;
  }

  .orb-video,
  .orb-fallback {
    width: 300px;
    height: 300px;
  }

  .logos-row {
    gap: 32px;
  }

  .brand-logo {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 34px;
    letter-spacing: -0.5px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .btn-cta {
    font-size: 15px;
    padding: 12px 12px 12px 22px;
  }

  .logos-row {
    gap: 24px;
  }
}
