/* ─── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #ffffff;
  --surface:     #F9FAFB;
  --border:      #E5E7EB;
  --text:        #111827;
  --muted:       #6B7280;
  --accent:      #4F46E5;
  --accent-dark: #4338CA;
  --red:         #EF4444;
  --amber:       #F59E0B;
  --blue:        #3B82F6;
  --emerald:     #10B981;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,.07);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.12);
  --font: 'Inter', system-ui, 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; }

a { color: inherit; text-decoration: none; }
code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .85em; background: #F3F4F6; padding: 2px 5px; border-radius: 4px; color: var(--accent); }

/* ─── Layout ────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── Nav ───────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.logo-mark { color: var(--accent); font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .9rem; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.btn-nav { background: var(--accent); color: #fff !important; padding: 7px 16px; border-radius: 6px; font-size: .85rem !important; transition: background .15s !important; }
.btn-nav:hover { background: var(--accent-dark) !important; color: #fff !important; }

/* ─── Badges & buttons ──────────────────────────────────────────────────── */
.badge { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: #EEF2FF; color: var(--accent); padding: 4px 10px; border-radius: 20px; margin-bottom: 16px; }
.badge--dark { background: #111827; color: #fff; }

.btn-primary { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: .95rem; padding: 12px 24px; border-radius: 8px; transition: background .15s, transform .1s; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary--large { padding: 15px 32px; font-size: 1rem; }
.btn-ghost { display: inline-block; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 12px 0; transition: color .15s; }
.btn-ghost:hover { color: var(--text); }
.btn-outline { display: inline-block; border: 1.5px solid var(--border); color: var(--text); font-weight: 500; font-size: .9rem; padding: 10px 20px; border-radius: 8px; transition: border-color .15s, color .15s; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 80px 0 60px; background: linear-gradient(160deg, #fff 0%, #F5F3FF 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-text { max-width: 480px; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px; }
.hero-sub { font-size: 1.05rem; color: var(--muted); line-height: 1.7; margin-bottom: 28px; max-width: 420px; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ─── App window mockup ─────────────────────────────────────────────────── */
.hero-mockup { display: flex; justify-content: flex-end; }
.app-window { width: 100%; max-width: 520px; border-radius: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.06); background: #fff; overflow: hidden; }
.win-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F3F4F6; border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }
.win-body { display: flex; height: 340px; }

/* Sidebar */
.mock-sidebar { width: 160px; border-right: 1px solid var(--border); padding: 10px 8px; flex-shrink: 0; overflow: hidden; }
.mock-item { display: flex; align-items: center; gap: 6px; font-size: .72rem; padding: 5px 8px; border-radius: 6px; color: var(--muted); white-space: nowrap; cursor: default; }
.mock-item svg { flex-shrink: 0; opacity: .7; }
.mock-item--active { background: #EEF2FF; color: var(--accent); font-weight: 600; }
.mock-item--active svg { opacity: 1; }
.mock-item--smart { color: #D97706; font-size: .71rem; }
.mock-item--ctx .ctx-hash { color: var(--blue); font-weight: 700; }
.mock-count { margin-left: auto; font-size: .67rem; background: #E5E7EB; color: var(--muted); padding: 1px 5px; border-radius: 10px; font-weight: 600; }
.mock-item--active .mock-count { background: #C7D2FE; color: var(--accent); }
.mock-section-label { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #9CA3AF; padding: 10px 8px 4px; }

/* Main panel */
.mock-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.mock-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 8px; border-bottom: 1px solid var(--border); }
.mock-view-title { font-size: .82rem; font-weight: 700; color: var(--text); }
.mock-toolbar-right { display: flex; align-items: center; gap: 8px; }
.mock-action { font-size: .67rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 2px 7px; border-radius: 4px; }
.mock-item-count { font-size: .67rem; color: #9CA3AF; }
.mock-task { display: flex; align-items: flex-start; gap: 8px; padding: 8px 14px; border-bottom: 1px solid #F3F4F6; }
.mock-cb { width: 14px; height: 14px; border-radius: 50%; border: 1.8px solid #D1D5DB; flex-shrink: 0; margin-top: 2px; }
.mock-cb--red    { border-color: var(--red); }
.mock-cb--yellow { border-color: var(--amber); }
.mock-pri { font-size: .62rem; font-weight: 700; width: 16px; height: 16px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.mock-pri--a { background: #FEF2F2; color: var(--red); }
.mock-pri--b { background: #FFFBEB; color: var(--amber); }
.mock-task-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mock-task-name { font-size: .76rem; font-weight: 500; color: var(--text); }
.mock-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.mock-tag { font-size: .62rem; padding: 1px 6px; border-radius: 4px; font-weight: 500; }
.mock-tag--ctx  { background: #EFF6FF; color: #2563EB; }
.mock-tag--proj { background: #ECFDF5; color: #059669; }
.mock-tag--date { background: #F9FAFB; color: var(--muted); }
.mock-tag--overdue { background: #FEF2F2; color: var(--red); }
.mock-new-task { margin-top: auto; padding: 10px 14px; font-size: .73rem; color: #9CA3AF; border-top: 1px solid var(--border); }

/* ─── Features ──────────────────────────────────────────────────────────── */
.features { padding: 96px 0; background: var(--surface); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2, .features h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { font-size: 1.6rem; margin-bottom: 14px; }
.feature-icon:not(:has(svg)) { width: 40px; height: 40px; background: #EEF2FF; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; color: var(--accent); font-size: 1rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* Make # icon look good */
.feature-card:nth-child(4) .feature-icon { font-size: 1.4rem; font-weight: 900; color: var(--blue); background: #EFF6FF; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* ─── Format section ────────────────────────────────────────────────────── */
.format { padding: 96px 0; background: var(--bg); }
.format-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.format-text { max-width: 420px; }
.format-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 16px; }
.format-text p { font-size: .97rem; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.format-text .btn-outline { margin-top: 8px; }

.code-window { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.code-chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #1E1E2E; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-dots { display: flex; gap: 6px; }
.code-filename { font-size: .78rem; color: rgba(255,255,255,.4); margin-left: 4px; font-family: 'SF Mono', monospace; }
.code-body { background: #1E1E2E; color: #CDD6F4; font-family: 'SF Mono', 'Fira Code', monospace; font-size: .82rem; line-height: 1.8; padding: 20px 20px; overflow-x: auto; white-space: pre; }
.tok-pri  { color: #F38BA8; font-weight: 700; }
.tok-ctx  { color: #89DCEB; }
.tok-proj { color: #A6E3A1; }
.tok-date { color: #FAB387; }
.tok-done { color: #585B70; }

/* ─── CTA ───────────────────────────────────────────────────────────────── */
.cta { padding: 96px 0; background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.cta-inner { text-align: center; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; color: #fff; margin-bottom: 12px; }
.cta p { font-size: 1.05rem; color: rgba(255,255,255,.7); margin-bottom: 32px; }
.cta .btn-primary { background: #fff; color: var(--accent); }
.cta .btn-primary:hover { background: #F5F3FF; }

/* ─── Pricing ──────────────────────────────────────────────────────────── */
.pricing { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
.price-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.price-card--accent { border-color: var(--accent); box-shadow: var(--shadow); }
.price-name { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.price-card--accent .price-name { color: var(--accent); }
.price-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price-period { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-note { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.price-list { list-style: none; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.price-list li { font-size: .9rem; color: var(--muted); line-height: 1.5; padding-left: 24px; position: relative; }
.price-list li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.price-card .btn-primary, .price-card .btn-outline { margin-top: auto; text-align: center; }
.pricing-footnote { max-width: 760px; margin: 32px auto 0; text-align: center; font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: .88rem; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-text     { max-width: 100%; }
  .hero-mockup   { justify-content: center; }
  .app-window    { max-width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid  { grid-template-columns: 1fr; }
  .format-inner  { grid-template-columns: 1fr; }
  .format-text   { max-width: 100%; }
}
@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; gap: 16px; text-align: center; }
  .nav-links a:not(.btn-nav) { display: none; }
}
