/* ─── Reset & Base ────────────────────────────────────────────────────────── */

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

html {
  scroll-padding-top: 72px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1a0f;
  color: #e0e0e0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code {
  background: #1a2a1a;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.9em;
  color: #a0e650;
  border: 1px solid #2a3a2a;
}

a {
  color: #a0e650;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 26, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a2a1a;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links a {
  color: #888;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #e0e0e0;
  text-decoration: none;
}

/* ─── Section Utility ─────────────────────────────────────────────────────── */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: #888;
  margin-bottom: 32px;
  max-width: 560px;
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 48px;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 32px;
  box-shadow: 0 0 60px rgba(160, 230, 80, 0.15), 0 0 120px rgba(160, 230, 80, 0.05);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 20px;
  color: #888;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: #a0e650;
  color: #0f1a0f;
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(160, 230, 80, 0.3);
  color: #0f1a0f;
}

.btn-outline {
  background: transparent;
  color: #a0e650;
  border: 2px solid #a0e650;
}

.btn-outline:hover {
  background: rgba(160, 230, 80, 0.08);
  color: #a0e650;
}

.hero-pip {
  font-size: 14px;
  color: #555;
}

.hero-pip code {
  background: #1a2a1a;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: "SF Mono", "Fira Code", monospace;
  color: #a0e650;
  border: 1px solid #2a3a2a;
}

/* ─── Screenshots ─────────────────────────────────────────────────────────── */

.screenshots-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: #2a3a2a transparent;
}

.screenshots-track::-webkit-scrollbar {
  height: 6px;
}

.screenshots-track::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-track::-webkit-scrollbar-thumb {
  background: #2a3a2a;
  border-radius: 3px;
}

.screenshot-card {
  flex-shrink: 0;
  scroll-snap-align: center;
  text-align: center;
}

.screenshot-frame {
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #2a3a2a;
  background: #111a11;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.screenshot-frame:hover {
  border-color: #a0e650;
  box-shadow: 0 4px 24px rgba(160, 230, 80, 0.1);
}

.screenshot-frame img {
  height: 100%;
  width: auto;
  display: block;
}

/* ─── Lightbox ───────────────────────────────────────────────────────────── */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: #aaa;
  pointer-events: none;
}

.screenshot-caption {
  margin-top: 12px;
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

/* ─── How It Works ─────────────────────────────────────────────────────────── */

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

.step-card {
  background: #1a2a1a;
  border: 1px solid #2a3a2a;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(160, 230, 80, 0.1);
  color: #a0e650;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

/* ─── Features ─────────────────────────────────────────────────────────────── */

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

.feature-card {
  background: #1a2a1a;
  border: 1px solid #2a3a2a;
  border-radius: 12px;
  padding: 24px;
  border-left: 3px solid #a0e650;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.feature-card.animate {
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: #a0e650;
  box-shadow: 0 4px 24px rgba(160, 230, 80, 0.06);
}

.feature-card:nth-child(even):hover {
  border-color: #b07cd8;
  box-shadow: 0 4px 24px rgba(176, 124, 216, 0.06);
}

.feature-card:nth-child(even) {
  border-left-color: #b07cd8;
}

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

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

/* ─── Download ─────────────────────────────────────────────────────────────── */

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

.download-card {
  background: #1a2a1a;
  border: 1px solid #2a3a2a;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}

.download-icon {
  margin-bottom: 16px;
  line-height: 0;
}

.download-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.download-desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-buttons .btn {
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
}

.download-code {
  background: #111a11;
  border: 1px solid #2a3a2a;
  border-radius: 8px;
  padding: 14px 18px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 14px;
  color: #a0e650;
  text-align: left;
  word-break: break-all;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid #1a2a1a;
  padding: 40px 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-links a {
  color: #666;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #a0e650;
}

.footer-credit {
  font-size: 13px;
  color: #777;
  margin-bottom: 6px;
}

.footer-tamil {
  font-size: 13px;
  color: #666;
}

/* ─── OS Highlight ─────────────────────────────────────────────────────────── */

.download-card.os-match {
  border-color: #a0e650;
  box-shadow: 0 0 30px rgba(160, 230, 80, 0.08);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-tagline {
    font-size: 17px;
  }

  .section {
    padding: 36px 20px;
  }

  .section-title {
    font-size: 26px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .screenshot-frame {
    height: 340px;
  }

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

  .download-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
