:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #1a1a2e;
  --text-secondary: #555770;
  --accent: #6c5ce7;
  --accent-dark: #5a4bd1;
  --accent-light: #f0edff;
  --border: #e8eaed;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-actions {
  margin-left: 20px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-white {
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  color: var(--accent-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ============ Hero ============ */
.hero {
  text-align: center;
  padding: 100px 0 80px;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  background: linear-gradient(135deg, var(--text) 0%, #555770 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ Showcase (horizontal scroll cards) ============ */
.showcase {
  padding: 20px 0 80px;
  overflow: hidden;
}

.showcase-scroll {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.showcase-scroll::-webkit-scrollbar {
  display: none;
}

.showcase-card {
  flex: 0 0 min(420px, 85vw);
  scroll-snap-align: start;
  background: var(--bg-alt);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.showcase-card:hover {
  box-shadow: var(--shadow-lg);
}

.showcase-card-body {
  padding: 32px 28px 24px;
}

.showcase-card-body h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 8px;
}

.showcase-card-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.showcase-card-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.65;
}

.showcase-card-visual {
  padding: 0 28px 28px;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

/* Mini app UI illustrations */
.mini-app {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.mini-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f3;
  font-size: 0.88rem;
  color: var(--text);
}

.mini-task:last-child {
  border-bottom: none;
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.check.done {
  background: var(--accent);
  position: relative;
}

.check.done::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.done-text {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.tag {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.tag.high {
  background: #fef2f2;
  color: #dc2626;
}

.tag.low {
  background: #f0fdf4;
  color: #16a34a;
}

/* Mini calendar */
.mini-calendar {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.cal-header {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cal-grid span {
  padding: 6px 0;
  border-radius: 6px;
}

.cal-grid .today {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* Mini reminder */
.mini-reminder {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reminder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.reminder-item.active {
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
}

.reminder-item strong {
  display: block;
  font-size: 0.88rem;
}

.reminder-item span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.reminder-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.reminder-icon.bell {
  background: #fef3c7;
}

.reminder-icon.repeat {
  background: #dbeafe;
}

.reminder-icon.focus {
  background: var(--accent-light);
}

.reminder-icon.calendar {
  background: #fce7f3;
}

/* ===== Priority visualization ===== */
.mini-priority {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.priority-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.green { background: #22c55e; }
.dot.yellow { background: #eab308; }
.dot.red { background: #ef4444; }

.priority-label {
  font-size: 0.85rem;
  font-weight: 500;
  width: 56px;
  flex-shrink: 0;
}

.priority-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.priority-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
}

.low-bar::after {
  width: 35%;
  background: #22c55e;
}

.med-bar::after {
  width: 55%;
  background: #eab308;
}

.high-bar::after {
  width: 80%;
  background: #ef4444;
}

/* ===== Screenshot gallery ===== */
.screenshots {
  padding: 80px 0;
  background: var(--bg-alt);
}

.screenshot-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.screenshot-item {
  flex: 0 0 220px;
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.screenshot-caption {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============ Features Grid ============ */
.features-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 48px;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-light);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.feature-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============ Download Section ============ */
.download-section {
  padding: 80px 0;
  text-align: center;
}

.download-inner .section-sub {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

/* ============ CTA ============ */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #b8b0ff 100%);
  color: #fff;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 28px;
  font-weight: 700;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ Footer ============ */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-simple {
  text-align: center;
}

.footer-simple p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-simple a {
  color: var(--text-secondary);
}

.footer-simple a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 56px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

