/* ============================================
   TASKLY — Design tokens
   ============================================ */
:root {
  /* Colors */
  --navy-900: #0a1a33;
  --navy-800: #102544;
  --navy-700: #16305c;
  --blue-500: #3d8bff;
  --blue-600: #2f6fe0;
  --blue-100: #e8f2ff;
  --blue-50:  #f5f9ff;
  --white:    #ffffff;
  --gray-600: #5b6b82;
  --gray-300: #d8e3f0;
  --success:  #34c78e;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container-w: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 12px 32px rgba(10, 26, 51, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(10, 26, 51, 0.14);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
svg { display: block; }

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   Reusable
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 12px;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  font-weight: 600;
  max-width: 620px;
}
.section-title--center {
  text-align: center;
  margin: 0 auto 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(10, 26, 51, 0.22);
}
.btn--primary:hover {
  background: var(--blue-600);
  box-shadow: 0 10px 26px rgba(61, 139, 255, 0.32);
  transform: translateY(-1px);
}

.btn--light {
  background: var(--white);
  color: var(--navy-900);
}
.btn--light:hover {
  background: var(--blue-100);
  transform: translateY(-1px);
}

.btn--small {
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-300);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.navbar__logo::after {
  content: '.';
  color: var(--blue-500);
}

.navbar__nav {
  display: flex;
  gap: 36px;
}
.navbar__nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-700);
  transition: color 0.15s ease;
}
.navbar__nav a:hover { color: var(--blue-600); }

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

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar__toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }



/* ============================================
   Hero
   ============================================ */
#hero {
  padding: 155px 0 150px;
  background-image: url("img.jfif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 1.9rem + 2.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--white);
}

.hero__subtitle {
  font-size: 14px;
  color: var(--white);
  max-width: 460px;
  margin-bottom: 32px;
}

.hero__actions { margin-bottom: 16px; }

.hero__hint {
  font-size: 13.5px;
  color: var(--white);
  font-family: var(--font-mono);
}

/* Hero visual: task card */
.hero__visual {
  display: flex;
  justify-content: center;
}

.task-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--gray-300);
  overflow: hidden;
  transform: rotate(-1.2deg);
}

.task-card__header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 20px;
  background: var(--navy-900);
}
.task-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.task-card__title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

.task-card__list {
  padding: 14px 12px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.task-row__check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 1.8px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.task-row__check svg {
  width: 11px;
  height: 9px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.task-row.is-done .task-row__check {
  background: var(--success);
  border-color: var(--success);
}
.task-row.is-done .task-row__check svg {
  opacity: 1;
  transform: scale(1);
}
.task-row.is-done .task-row__label {
  color: var(--gray-600);
  text-decoration: line-through;
  text-decoration-color: var(--gray-300);
}

.task-row__label {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-900);
  transition: color 0.2s ease;
}

.task-row__flag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--blue-600);
  background: var(--blue-100);
}
.task-row[data-priority="high"] .task-row__flag {
  color: #b3441c;
  background: #fdece2;
}
.task-row[data-priority="low"] .task-row__flag {
  color: var(--gray-600);
  background: var(--blue-50);
}

.task-card__progress {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--gray-300);
}
.task-card__progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--blue-50);
  overflow: hidden;
  margin-bottom: 10px;
}
.task-card__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-500), var(--success));
  border-radius: 999px;
  transition: width 0.5s ease;
}
.task-card__progress-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray-600);
}

/* ============================================
   Features
   ============================================ */
.features {
  padding: 155px 0 150px;
  background: var(--blue-50);

}


.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy-900);
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__icon .icon-stroke {
  stroke: var(--blue-100);
  stroke-width: 2.1;
  stroke-linecap: round;
  fill: none;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================
   How it works
   ============================================ */
.how {
 padding: 155px 0 150px;
  background: var(--white);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
  position: relative;
}

.how__step {
  position: relative;
  padding-top: 8px;
}

.how__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(100% - 8px);
  width: calc(32px + 16px);
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--gray-300) 0 6px, transparent 6px 12px);
  display: none;
}

@media (min-width: 861px) {
  .how__step:not(:last-child)::after { display: block; }
}

.how__number {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-600);
  background: var(--blue-100);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.how__step h3 {
  font-size: 17.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.how__step p {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 280px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  background: var(--navy-900);
  background-image: radial-gradient(600px 260px at 50% 0%, var(--navy-700), var(--navy-900));
 padding: 150px 0 ;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

.cta h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.3rem);
  max-width: 520px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.navbar__logo--footer {
  color: var(--white);
  font-size: 18px;
}
.navbar__logo--footer::after { color: var(--blue-500); }

.footer__email {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--blue-100);
  transition: color 0.15s ease;
}
.footer__email:hover { color: var(--blue-500); }

.footer__copy {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

/* ============================================
   Reveal-on-scroll
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: 1fr; gap: 40px; }
  .how__step:not(:last-child)::after { display: none; }
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__visual { order: -1; margin-bottom: 12px; }
  .task-card { transform: rotate(0); max-width: 340px; }

  .navbar__nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .navbar__nav.is-open { display: flex; }
  .navbar__nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--blue-50);
  }
  .navbar__toggle { display: flex; }
}

@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .features, .how { padding: 72px 0; }
  .cta { padding: 64px 0; }
}