/* ============================================
   TASKFLOW — SaaS Startup Landing Page
   Intern-level clean design
   ============================================ */

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #DBEAFE;
  --blue-glow: rgba(37, 99, 235, 0.25);
  --text: #0F172A;
  --text-sec: #475569;
  --text-muted: #94A3B8;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --border: #E2E8F0;
  --border-hover: #CBD5E1;
  --gradient: linear-gradient(135deg, #2563EB, #7C3AED);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-icon {
  font-size: 2rem; width: 56px; height: 56px; margin: 0 auto 16px;
  background: var(--gradient); color: white; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
@keyframes loaderPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.loader-brand { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 16px 0; transition: all 0.3s var(--ease);
  background: rgba(255,255,255,0);
}
.nav.scrolled {
  background: rgba(255,255,255,0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); padding: 10px 0;
}
.nav-container {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px; letter-spacing: -0.02em;
}
.logo-check {
  width: 28px; height: 28px; background: var(--gradient); color: white;
  border-radius: 8px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 0.9rem;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.88rem; color: var(--text-sec); font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; width: 24px; padding: 2px 0;
}
.nav-burger span {
  width: 100%; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s var(--ease); transform-origin: center;
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; top: 60px; background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px); z-index: 998; padding: 32px 24px;
  display: flex; flex-direction: column; gap: 20px;
  opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mm-link {
  font-size: 1.3rem; font-weight: 600; color: var(--text-sec);
  transition: color 0.2s;
}
.mm-link:hover { color: var(--blue); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  padding: 10px 20px; border-radius: 10px; transition: all 0.25s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--blue); color: white;
}
.btn-primary:hover {
  background: var(--blue-dark); transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--blue-glow);
}
.btn-outline { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: none; color: var(--text-sec); }
.btn-ghost:hover { color: var(--blue); }
.btn-white { background: white; color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== SECTION ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--blue); letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--blue-light); padding: 6px 16px; border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.03em;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-sec);
  max-width: 520px; margin: 12px auto 0;
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== GLASS ===== */
.glass {
  background: rgba(255,255,255,0.7); border: 1px solid var(--border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px; position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-sec);
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 8px 20px; border-radius: 100px; margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; background: #22C55E; border-radius: 50%;
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.4)} 50%{box-shadow:0 0 0 6px rgba(34,197,94,0)}
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 20px;
}
.gradient-text {
  background: var(--gradient); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.15rem; color: var(--text-sec); max-width: 500px;
  margin: 0 auto 32px; line-height: 1.7;
}
.hero-buttons {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 56px;
}
.hero-image { margin-bottom: 48px; }
.hero-browser {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.hero-browser:hover {
  transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.browser-dots {
  display: flex; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.browser-dots span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border);
}
.hero-browser img { width: 100%; height: auto; display: block; }
.hero-logos { text-align: center; }
.logos-label {
  font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.1em; display: block; margin-bottom: 16px;
}
.logos-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.logo-company {
  font-size: 0.88rem; font-weight: 700; color: var(--border-hover);
  letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 6px;
}
.logo-company svg { opacity: 0.5; }

/* ===== FEATURES ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  padding: 32px 24px; border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px); border-color: var(--blue);
  box-shadow: 0 8px 24px var(--blue-glow);
}
.feature-icon {
  width: 48px; height: 48px; display: flex; align-items: center;
  justify-content: center; background: var(--blue-light); color: var(--blue);
  border-radius: 12px; margin-bottom: 20px; transition: all 0.3s;
}
.feature-card:hover .feature-icon {
  background: var(--blue); color: white; transform: scale(1.05);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-sec); line-height: 1.6; }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: white; transition: all 0.3s var(--ease); text-align: center;
}
.step-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.step-number {
  display: inline-flex; width: 48px; height: 48px; align-items: center;
  justify-content: center; background: var(--gradient); color: white;
  border-radius: 50%; font-size: 1rem; font-weight: 700; margin-bottom: 20px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.88rem; color: var(--text-sec); line-height: 1.6; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card {
  padding: 32px; border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease); position: relative;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-featured {
  border-color: var(--blue); background: white;
  box-shadow: 0 0 0 2px var(--blue), var(--shadow-lg);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; font-weight: 700; color: white;
  background: var(--gradient); padding: 4px 16px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.plan-price { margin-bottom: 12px; }
.price-amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; }
.price-period { font-size: 0.88rem; color: var(--text-muted); }
.plan-desc { font-size: 0.88rem; color: var(--text-sec); margin-bottom: 24px; }
.plan-features { margin-bottom: 28px; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text-sec); padding: 6px 0;
}
.plan-features svg { color: var(--blue); flex-shrink: 0; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  padding: 28px; border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); }
.stars { color: #F59E0B; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 16px; }
.quote {
  font-size: 0.95rem; color: var(--text); line-height: 1.7;
  margin-bottom: 20px; font-style: italic;
}
.author { display: flex; align-items: center; gap: 12px; }
.author-img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
}
.author strong { display: block; font-size: 0.88rem; }
.author span { font-size: 0.78rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; padding: 20px 0; font-size: 1rem;
  font-weight: 600; color: var(--text); display: flex;
  justify-content: space-between; align-items: center;
  cursor: pointer; transition: color 0.2s;
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  font-size: 1.3rem; font-weight: 300; color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  font-size: 0.92rem; color: var(--text-sec); line-height: 1.7;
  padding-bottom: 20px;
}

/* ===== CTA ===== */
.cta-section { padding: 100px 0; }
.cta-inner {
  background: var(--gradient); color: white; text-align: center;
  padding: 72px 40px; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
  top: -100px; right: -100px;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  margin-bottom: 12px; letter-spacing: -0.02em; position: relative;
}
.cta-inner p {
  font-size: 1rem; opacity: 0.85; max-width: 460px;
  margin: 0 auto 28px; position: relative;
}
.cta-buttons { position: relative; }

/* ===== FOOTER ===== */
.footer { padding: 64px 0 0; border-top: 1px solid var(--border); }
.footer-top {
  display: flex; justify-content: space-between; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; }
.footer-columns { display: flex; gap: 56px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  padding: 24px 0; display: flex; justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-credit a { color: var(--blue); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-featured { order: -1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-columns { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section { padding: 72px 0; }
  .logos-row { gap: 20px; }
  .logo-company { font-size: 0.85rem; }
  .cta-inner { padding: 48px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-badge { font-size: 0.7rem; padding: 6px 14px; }
}
