/* ---- Reset & Base ---- */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---- Nav ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: #1a1a1a; }

.nav-cta {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 500;
}

.nav-cta:hover { background: #333 !important; }

/* ---- Hero ---- */

.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0a0a0a;
}

.hero-sub {
  font-size: 1.2rem;
  color: #666;
  margin-top: 1rem;
  font-style: italic;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: #1a1a1a;
  color: #fff;
  padding: 0.7rem 2rem;
  margin-top: 1.5rem;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---- Hero image ---- */

.hero-image {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ---- Screenshot placeholder ---- */

.screenshot-placeholder {
  background: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: 12px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.screenshot-placeholder span {
  color: #bbb;
  font-size: 0.85rem;
  font-family: monospace;
}

.screenshot-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: #aaa;
}

.screenshot-placeholder img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #e8e8e8;
}

.feature-screenshot {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

/* ---- Sections ---- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 3rem;
}

.section-alt {
  max-width: none;
  background: #fafafa;
}

.section-alt .feature {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
}

/* ---- Features ---- */

.feature {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 3rem 2rem;
}

.feature-reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  text-align: left;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.feature-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.65;
}

.feature-image {
  flex: 1;
}

.feature-image .screenshot-placeholder {
  min-height: 280px;
}

/* ---- Demo elements (inline mockups) ---- */

.demo-estimate, .demo-timer, .demo-schedule, .demo-shortcuts {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.25rem;
}

/* Estimate demo */
.demo-task-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

.demo-task-estimated {
  border-color: #ddd;
  background: #fafafa;
}

.demo-check { font-size: 1.1rem; color: #999; }
.demo-task-title { font-weight: 500; flex: 1; }

.demo-no-est {
  font-size: 0.72rem;
  color: #ccc;
  font-style: italic;
}

.demo-est-badge {
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 1rem;
  background: #f0f7ff;
  color: #2196f3;
  font-weight: 500;
}

.demo-sched-badge {
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 1rem;
  background: #fff3e0;
  color: #e65100;
  font-weight: 500;
}

.demo-arrow-down {
  text-align: center;
  color: #ccc;
  font-size: 0.78rem;
  padding: 0.4rem 0;
}

.demo-arrow-down kbd {
  display: inline-block;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  font-size: 0.72rem;
  font-family: monospace;
  color: #666;
}

.demo-progress {
  margin-top: 0.5rem;
  padding: 0 0.3rem;
}

.demo-progress-bar {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.demo-progress-fill {
  height: 100%;
  background: #6c63ff;
  border-radius: 3px;
  transition: width 0.3s;
}

.demo-fill-animated {
  animation: fill-pulse 3s ease-in-out infinite;
}

@keyframes fill-pulse {
  0%, 100% { width: 45%; }
  50% { width: 48%; }
}

.demo-progress-label {
  font-size: 0.7rem;
  color: #999;
  margin-top: 0.3rem;
  display: block;
}

/* Schedule demo */
.demo-schedule {
  font-size: 0.85rem;
}

.demo-sched-header {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.demo-sched-tab {
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  font-size: 0.75rem;
  color: #999;
  border: 1px solid #eee;
  background: #fafafa;
}

.demo-sched-tab.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.demo-sched-tab.has {
  border-color: #c0bcff;
  color: #6c63ff;
}

.demo-sched-day {
  font-weight: 600;
  font-size: 0.82rem;
  color: #333;
  margin-bottom: 0.4rem;
}

.demo-sched-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #eee;
  border-left: 3px solid;
  border-radius: 5px;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
}

.demo-sched-time {
  color: #666;
  font-variant-numeric: tabular-nums;
}

.demo-sched-proj {
  font-weight: 500;
  color: #333;
}

.demo-sched-total {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.3rem;
}

/* Timer demo */
.demo-timer-sidebar {
  margin-bottom: 0.75rem;
}

.demo-timer-widget {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.demo-timer-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #2e7d32;
}

.demo-timer-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.demo-timer-elapsed {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1b5e20;
  font-variant-numeric: tabular-nums;
}

.demo-timer-proj-badge {
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 1rem;
  background: #c8e6c9;
  color: #2e7d32;
}

.demo-timer-task {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 0.88rem;
}

.demo-timer-live {
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
  animation: timer-blink 2s ease-in-out infinite;
}

@keyframes timer-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Shortcuts demo */
.demo-shortcuts {
  display: flex;
  gap: 1.5rem;
}

.demo-shortcut-col {
  flex: 1;
}

.demo-shortcut-group {
  font-weight: 600;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.demo-shortcut {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.82rem;
  color: #555;
}

.demo-shortcut kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: monospace;
  color: #555;
  padding: 0 0.3rem;
}

/* Milestones demo */
.demo-milestones {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1rem;
}

.demo-ms-header {
  font-weight: 600;
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #eee;
}

.demo-ms-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  margin-bottom: 0.1rem;
}

.demo-ms-item.green { background: #e8f5e9; color: #2e7d32; }
.demo-ms-item.red { background: #ffebee; color: #c62828; }

.demo-ms-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.demo-ms-title { font-weight: 500; flex: 1; }
.demo-ms-icon { font-weight: 600; font-size: 0.72rem; }

.demo-ms-detail {
  font-size: 0.65rem;
  color: #999;
  padding: 0 0 0.4rem 1.3rem;
}

/* Sync demo */
.demo-sync {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.25rem;
}

.demo-sync-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #555;
}

.demo-sync-icon {
  font-size: 0.6rem;
}

.demo-sync-icon.online { color: #2e7d32; }
.demo-sync-icon.offline { color: #e65100; }

.demo-sync-arrow {
  text-align: center;
  color: #ccc;
  font-size: 0.75rem;
  padding: 0.3rem 0;
  font-style: italic;
}

.demo-sync-note {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #999;
  font-style: italic;
}

/* ---- Priority demo ---- */

.priority-demo {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.priority-demo h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.priority-demo-sub {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2.5rem;
}

.priority-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.priority-arrow {
  font-size: 2rem;
  color: #ccc;
  flex-shrink: 0;
}

.priority-card {
  flex: 1;
  max-width: 380px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}

.priority-card-label {
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.priority-card-body {
  padding: 1rem;
}

.priority-project {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.3rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.85rem;
}

.priority-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.priority-name {
  font-weight: 500;
}

.priority-milestones {
  margin-top: 0.75rem;
}

.priority-ms {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.2rem;
  border-radius: 2rem;
  font-size: 0.78rem;
}

.priority-ms.green {
  background: #e8f5e9;
  color: #2e7d32;
}

.priority-ms.red {
  background: #ffebee;
  color: #c62828;
}

.priority-ms-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.priority-ms-status {
  margin-left: auto;
  font-weight: 600;
  font-size: 0.72rem;
}

.priority-verdict {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.priority-verdict.green {
  background: #e8f5e9;
  color: #2e7d32;
}

.priority-verdict.red {
  background: #ffebee;
  color: #c62828;
}

@media (max-width: 768px) {
  .priority-cards { flex-direction: column; }
  .priority-arrow { transform: rotate(90deg); }
}

/* ---- Comparison table ---- */

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.compare-table th {
  font-weight: 600;
  color: #888;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.compare-table th.compare-us {
  color: #1a1a1a;
}

.compare-table td.compare-us {
  font-weight: 500;
  color: #1a1a1a;
}

.compare-table td:first-child {
  font-weight: 500;
  color: #444;
}

.compare-table tbody tr:hover {
  background: #fafafa;
}

/* ---- Closer ---- */

.closer {
  text-align: center;
  padding: 5rem 2rem;
  background: #0a0a0a;
  color: #fff;
}

.closer h2 {
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
}

.closer p {
  font-size: 1.1rem;
  color: #999;
  margin-top: 0.5rem;
}

.closer .btn-primary {
  background: #fff;
  color: #0a0a0a;
  margin-top: 2rem;
}

.closer .btn-primary:hover {
  background: #eee;
}

/* ---- Footer ---- */

.footer {
  border-top: 1px solid #eee;
  padding: 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: #999;
}

/* ---- Lightbox ---- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .feature, .feature-reverse { flex-direction: column; gap: 2rem; }
  .feature-text h2 { text-align: center; }
  .nav-links a:not(.nav-cta) { display: none; }
}
