/* ===========================
   TASKKU — Landing Page CSS
   Design System: Plus Jakarta Sans
   Color: #2563EB Primary
=========================== */

:root {
  --primary: #2563EB;
  --primary-light: #DBEAFE;
  --surface: #F1F5F9;
  --white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --text-primary: #1E293B;
  --text-secondary: #94A3B8;
  --border: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 250ms ease-in-out;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

/* =====================
   NAVBAR
===================== */
#mainNav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: box-shadow var(--transition);
}

#mainNav.scrolled {
  box-shadow: var(--shadow-md);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 12px !important;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--surface);
  color: var(--primary) !important;
}

/* =====================
   BUTTONS
===================== */
.btn-primary-custom {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition), transform 150ms ease-out, box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-primary-custom:hover {
  background: #1d4ed8;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.btn-primary-custom:active {
  transform: translateY(0);
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* =====================
   HERO SECTION
===================== */
.hero-section {
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 500px; height: 500px;
  background: rgba(37,99,235,0.1);
  top: -150px; right: -100px;
  animation: float-blob 14s ease-in-out infinite;
}

.blob-2 {
  width: 350px; height: 350px;
  background: rgba(16,185,129,0.08);
  bottom: -80px; left: -80px;
  animation: float-blob 18s ease-in-out infinite reverse;
}

.blob-3 {
  width: 250px; height: 250px;
  background: rgba(245,158,11,0.07);
  top: 40%; left: 20%;
  animation: float-blob 22s ease-in-out infinite;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-30px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.96); }
}

.hero-text { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

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

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

.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* =====================
   PHONE MOCKUP
===================== */
.hero-mockup {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.mockup-wrapper {
  position: relative;
  display: inline-block;
  animation: float-phone 4s ease-in-out infinite;
}

@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-frame {
  width: 260px;
  background: #0f172a;
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(15,23,42,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.phone-screen {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.screen-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  background: #fff;
}

.screen-content {
  padding: 12px 14px;
}

.app-greeting {
  font-size: 11px;
  color: var(--text-secondary);
}

.app-name-user {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.notif-dot {
  position: absolute;
  top: -4px;
  right: -18px;
  background: var(--danger);
  color: white;
  font-size: 8px;
  font-weight: 700;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-stats-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.app-stat {
  flex: 1;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}

.app-stat.blue { background: var(--primary); }
.app-stat.slate { background: var(--surface); }
.app-stat.red { background: rgba(239,68,68,0.1); }

.app-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.app-stat.slate .app-stat-num { color: var(--text-primary); }
.app-stat.red .app-stat-num { color: var(--danger); }

.app-stat-lbl {
  font-size: 9px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.app-stat.slate .app-stat-lbl { color: var(--text-secondary); }
.app-stat.red .app-stat-lbl { color: var(--danger); }

.app-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.task-card-mini {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.task-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.task-info { flex: 1; min-width: 0; }

.task-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta {
  font-size: 9px;
  color: var(--text-secondary);
  margin: 1px 0;
}

.task-deadline {
  font-size: 9px;
  color: var(--text-secondary);
}

.urgent { color: var(--danger); font-weight: 600; }
.medium-text { color: var(--warning); font-weight: 600; }
.low-text { color: var(--success); font-weight: 600; }

.task-priority {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.task-priority.high { background: rgba(239,68,68,0.12); color: var(--danger); }
.task-priority.medium { background: rgba(245,158,11,0.12); color: var(--warning); }
.task-priority.low { background: rgba(16,185,129,0.12); color: var(--success); }

.app-bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.nav-item-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-item-app i { font-size: 16px; }
.nav-item-app.active { color: var(--primary); }

/* Floating cards */
.float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid var(--border);
}

.float-card-1 {
  top: 15%;
  left: -90px;
  animation: float-card-1 3s ease-in-out infinite;
}

.float-card-2 {
  bottom: 20%;
  right: -80px;
  animation: float-card-2 3.5s ease-in-out infinite;
}

@keyframes float-card-1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes float-card-2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

/* =====================
   SECTION COMMONS
===================== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-full);
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================
   FEATURES
===================== */
.features-section {
  padding: 100px 0;
  background: var(--surface);
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  height: 100%;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card.featured {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(37,99,235,0.35);
}

.feature-card.featured .feature-title { color: white; }
.feature-card.featured .feature-desc { color: rgba(255,255,255,0.8); }

.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-tag {
  display: inline-block;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-tag {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* =====================
   HOW IT WORKS
===================== */
.how-section {
  padding: 100px 0;
  background: white;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.step-item.active {
  background: var(--primary-light);
  border-color: rgba(37,99,235,0.2);
}

.step-item:hover:not(.active) {
  background: var(--surface);
}

.step-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--border);
  min-width: 48px;
  line-height: 1;
  transition: color var(--transition);
}

.step-item.active .step-num { color: var(--primary); }

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Visual card (form preview) */
.how-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.visual-header {
  background: var(--surface);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.visual-form {
  padding: 20px;
}

.form-preview-group {
  margin-bottom: 16px;
}

.form-preview-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.form-preview-input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: white;
}

.form-preview-input.focused {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-preview-input.filled {
  background: var(--surface);
  color: var(--text-primary);
}

.form-preview-textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  min-height: 64px;
  background: white;
}

.priority-chips {
  display: flex;
  gap: 8px;
}

.chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.chip-high { background: rgba(239,68,68,0.1); color: var(--danger); }
.chip-high.active { background: var(--danger); color: white; }
.chip-medium { background: rgba(245,158,11,0.1); color: var(--warning); }
.chip-low { background: rgba(16,185,129,0.1); color: var(--success); }

.btn-preview {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-preview:hover { background: #1d4ed8; }

/* =====================
   TESTIMONIAL
===================== */
.testimonial-section {
  padding: 100px 0;
  background: var(--surface);
}

.testi-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  height: 100%;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testi-card.featured-testi {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  border-color: transparent;
  color: white;
}

.testi-stars {
  color: var(--warning);
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testi-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-style: italic;
}

.featured-testi .testi-text { color: rgba(255,255,255,0.9); }

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.testi-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.featured-testi .testi-name { color: white; }

.testi-info {
  font-size: 12px;
  color: var(--text-secondary);
}

.featured-testi .testi-info { color: rgba(255,255,255,0.7); }

/* Stats bar */
.stats-bar {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.stats-bar-item {
  padding: 20px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.stats-bar-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.stats-bar-lbl {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

/* =====================
   CTA SECTION
===================== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-icon {
  font-size: 56px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-download {
  background: white;
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  transition: transform 150ms ease-out, box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-download:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn-download-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  transition: border-color var(--transition), background var(--transition);
}

.btn-download-outline:hover {
  color: white;
  border-color: white;
  background: rgba(255,255,255,0.1);
}

.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* =====================
   FOOTER
===================== */
.footer-section {
  background: #0f172a;
  padding: 64px 0 32px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: white; }

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: white;
}

.subscribe-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.subscribe-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}

.subscribe-input::placeholder { color: rgba(255,255,255,0.35); }

.subscribe-input:focus { border-color: var(--primary); }

.subscribe-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
}

.subscribe-btn:hover { background: #1d4ed8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom a:hover { color: white; }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 991px) {
  .hero-section { padding-bottom: 60px; }
  .float-card { display: none; }
  .mockup-wrapper { animation: none; }
}

@media (max-width: 767px) {
  .hero-title { letter-spacing: -0.5px; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 20px; }
  .features-section, .how-section, .testimonial-section, .cta-section { padding: 64px 0; }
  .section-title { letter-spacing: -0.5px; }
  .phone-frame { width: 220px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
}