/* ═══════════════════════════════════════════════════════
   Lifafa AI — Website Styles
   ═══════════════════════════════════════════════════════ */

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

:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --purple: #8B5CF6;
  --bg: #0F172A;
  --bg-card: #1E293B;
  --border: #334155;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --green: #22C55E;
  --radius: 14px;
  --font: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

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

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  border: none;
  text-decoration: none;
}

.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-outline  { background: transparent; color: var(--text); border: 1.5px solid var(--border); }

.btn-sm  { padding: 8px 16px; font-size: 13px; }
.btn-lg  { padding: 14px 24px; font-size: 15px; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.badge {
  display: inline-block;
  background: rgba(99,102,241,.15);
  color: #A5B4FC;
  border: 1px solid rgba(99,102,241,.3);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

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

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

.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.all-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── App mockup ────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
}

.app-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
}

.mockup-bar {
  background: #0D1829;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green  { background: #28CA41; }

.mockup-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 38px;
}

.mockup-profile-switch {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(99,102,241,.06);
  border-bottom: 1px solid var(--border);
}

.profile-chip {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-chip.active {
  background: var(--primary);
  color: #fff;
}

.mockup-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(51,65,85,.5);
}

.task-dot {
  width: 4px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}

.task-dot.urgent { background: #EF4444; }
.task-dot.high   { background: #F59E0B; }
.task-dot.medium { background: #6366F1; }

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

.task-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 0;
  border: none;
}

.badge.urgent { background: #FEE2E2; color: #991B1B; }
.badge.high   { background: #FEF3C7; color: #92400E; }
.badge.medium { background: #EEF2FF; color: #4338CA; }
.badge.ai     { background: rgba(99,102,241,.15); color: #A5B4FC; border: 1px solid rgba(99,102,241,.3); }

.meta-item { font-size: 10px; color: var(--text-muted); }

.task-actions { display: flex; flex-direction: column; gap: 4px; }

.task-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.task-btn.done   { background: #DCFCE7; color: #166534; }
.task-btn.snooze { background: #FEF3C7; color: #92400E; }

.mockup-capture {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px dashed var(--border);
}

.capture-icon { font-size: 16px; }

/* ── Sections ──────────────────────────────────────────── */
section { padding: 100px 0; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 48px;
  max-width: 600px;
}

/* ── Features ──────────────────────────────────────────── */
.features { background: rgba(30,41,59,.3); }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s;
}

.feature-card:hover { border-color: var(--primary); }

.feature-card.featured {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.08));
  border-color: rgba(99,102,241,.3);
}

.feature-icon { font-size: 28px; margin-bottom: 14px; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.feature-chips span {
  background: rgba(99,102,241,.15);
  color: #A5B4FC;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

/* ── How it works ──────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.step-num {
  font-size: 40px;
  font-weight: 800;
  color: rgba(99,102,241,.25);
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.step-arrow {
  font-size: 24px;
  color: var(--text-muted);
  padding-top: 48px;
  flex-shrink: 0;
}

/* ── Security ──────────────────────────────────────────── */
.security { background: rgba(30,41,59,.3); }

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

.security-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
}

.check {
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── CTA ────────────────────────────────────────────────── */
.cta { text-align: center; }
.cta h2 { max-width: 500px; margin-left: auto; margin-right: auto; }
.cta p { color: var(--text-muted); margin-bottom: 40px; font-size: 16px; }

.platform-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  transition: border-color .2s, transform .1s;
  min-width: 180px;
}

.platform-btn:hover { border-color: var(--primary); transform: translateY(-2px); }

.platform-btn.outline { border-color: var(--border); }

.platform-label { font-size: 10px; color: var(--text-muted); }
.platform-name  { font-size: 15px; font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: #080E1A;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand { max-width: 200px; }
.footer-brand .logo-mark {
  display: inline-flex;
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.footer-brand .logo-text { font-weight: 700; font-size: 16px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.footer-links { display: flex; gap: 48px; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color .15s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .download-group { justify-content: center; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 600px) {
  h1 { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .footer-links { flex-direction: column; gap: 24px; }
}
