/* =============================================
   EasyToDo Website — styles.css
   Design tokens + all component styles
   ============================================= */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  --color-primary:      #0057FF;
  --color-primary-dark: #0044CC;
  --color-primary-10:   #EEF3FF;
  --color-bg:           #FFFFFF;
  --color-surface:      #F4F6FA;
  --color-text:         #1A1A2E;
  --color-text-muted:   #6B7280;
  --color-accent:       #FF3B30;
  --color-border:       #E5E7EB;

  --radius-card:   16px;
  --radius-btn:    10px;
  --radius-pill:   50px;

  --shadow-card:   0 4px 24px rgba(0, 87, 255, 0.08);
  --shadow-hero:   0 24px 64px rgba(0, 87, 255, 0.14);

  --font-family:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1100px;
  --section-gap:   96px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}
.text-primary { color: var(--color-primary); }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 87, 255, 0.3);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(0, 87, 255, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-surface);
}

.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; }
.btn--sm { padding: 8px 18px; font-size: 14px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-10);
  border-radius: var(--radius-pill);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}
.navbar__logo {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar__logo--sm {
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: 8px;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s;
}
.navbar__links a:hover { color: var(--color-text); }
.navbar__links .btn { margin-left: 8px; }
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 80px 0 var(--section-gap);
  overflow: hidden;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero__content {
  flex: 1;
  min-width: 0;
}
.hero__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__desc {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero__phone-wrapper {
  position: relative;
  width: 280px;
}
.hero__phone-wrapper::before {
  content: '';
  position: absolute;
  inset: -32px;
  background: radial-gradient(ellipse at center, rgba(0, 87, 255, 0.12) 0%, transparent 70%);
  z-index: 0;
  border-radius: 50%;
}
.hero__screenshot {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-hero);
}

/* =============================================
   FEATURES
   ============================================= */
.features {
  padding: var(--section-gap) 0;
  background: var(--color-surface);
}
.features .container {
  text-align: center;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 87, 255, 0.12);
}
.feature-card__icon {
  margin-bottom: 16px;
}
.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =============================================
   SCREENSHOTS GALLERY
   ============================================= */
.screenshots {
  padding: var(--section-gap) 0;
}
.screenshots .container {
  text-align: center;
}
.gallery {
  margin-top: 48px;
  overflow: hidden;
}
.gallery__track {
  display: flex;
  gap: 20px;
  padding: 16px 24px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item {
  flex: 0 0 220px;
  scroll-snap-align: center;
  text-align: center;
}
.gallery__item img {
  width: 220px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s;
}
.gallery__item:hover img {
  transform: scale(1.03);
}
.gallery__caption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.gallery__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.gallery__btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.gallery__dots {
  display: flex;
  gap: 8px;
}
.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.gallery__dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* =============================================
   CTA
   ============================================= */
.cta {
  padding: var(--section-gap) 0;
  background: var(--color-surface);
}
.cta__inner {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}
.cta__icon {
  display: inline-block;
  margin-bottom: 24px;
}
.cta__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta__desc {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.footer__copy {
  font-size: 14px;
  color: var(--color-text-muted);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--color-text); }
