/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0f1a;
  --bg-card: #131828;
  --bg-card-hover: #1a2036;
  --surface: #1c2333;
  --border: #2a3148;
  --text: #e4e8f1;
  --text-muted: #8b93a7;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --accent: #22d3ee;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --orange: #fb923c;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

img {
  max-width: 100%;
  display: block;
}

code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.9em;
  color: var(--accent);
}

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 24px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: none;
}

/* ========== BADGE ========== */
.badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-hover);
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  font-size: 1.4rem;
}

.logo-svg {
  width: 24px;
  height: auto;
  fill: currentColor;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ========== HERO ========== */
.hero {
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-updated {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== BROWSER MOCKUP ========== */
.browser-mockup {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 80px rgba(99, 102, 241, 0.08);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: var(--red);
}
.dot.yellow {
  background: var(--yellow);
}
.dot.green {
  background: var(--green);
}

.browser-url {
  margin-left: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 6px;
  flex: 1;
}

.browser-body {
  padding: 20px;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mock-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.mock-theme-toggle {
  font-size: 1.2rem;
  cursor: default;
}

.mock-checkin {
  margin-bottom: 16px;
}

.mock-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.green-pill {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.mock-timer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.mock-timer-time {
  font-size: 1.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-bottom: 4px;
}

.mock-timer-task {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.mock-timer-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mock-stop-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 6px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: default;
}

.mock-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.mock-play {
  color: var(--primary-hover);
  font-size: 0.75rem;
}

.mock-task-name {
  flex: 1;
  font-weight: 500;
}

.mock-status {
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.mock-status.urgent {
  background: rgba(248, 113, 113, 0.15);
  color: var(--red);
}

.mock-status.normal {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-hover);
}

.mock-status.low {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
}

/* ========== FEATURES ========== */
.features {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.step-arrow {
  font-size: 1.8rem;
  color: var(--text-muted);
  margin-top: 60px;
  user-select: none;
}

/* ========== INSTALL ========== */
.install {
  padding: 100px 0;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.install-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.install-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-hover);
  margin-bottom: 12px;
}

.install-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.install-step p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== COPY URL ========== */
.copy-url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-xs);
  transition: opacity 0.2s;
}

.copy-url:hover {
  opacity: 0.8;
}

.copy-url:hover code {
  background: rgba(34, 211, 238, 0.12);
}

.copy-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--green);
  color: #0b0f1a;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--green);
}

.copy-tooltip.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ========== BUTTON ICON ========== */
.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-sm .btn-icon {
  width: 15px;
  height: 15px;
}

.install-tip {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: center;
}

.install-tip p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ========== FAQ ========== */
.faq {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.3);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--primary-hover);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item a {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item a:hover {
  color: var(--accent);
}

/* ========== CTA ========== */
.cta {
  padding: 100px 0;
}

.cta-inner {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(34, 211, 238, 0.08)
  );
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 64px 40px;
}

.cta-inner h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-inner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== INSTALL DOWNLOAD ========== */
.install-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.install-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .install-steps {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 110px 0 60px;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-inner {
    padding: 40px 24px;
  }

  .cta-inner h2 {
    font-size: 1.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
