/* ── Self-hosted font ─────────────────────────────── */

@font-face {
  font-family: "Patrick Hand";
  src: url("fonts/PatrickHand.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333;
  background-color: #fffae6;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 26px,
    rgba(217, 209, 191, 0.5) 26px,
    rgba(217, 209, 191, 0.5) 27px
  );
  background-size: 100% 27px;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: #3b82f6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: "Patrick Hand", cursive;
  font-weight: 400;
}

/* ── Header ───────────────────────────────────────── */

.header {
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  border-radius: 8px;
}

.wordmark {
  font-family: "Patrick Hand", cursive;
  font-size: 1.5rem;
  color: #333;
}

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

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #222;
  margin-bottom: 12px;
}

.subline {
  font-size: 1.15rem;
  color: #666;
  margin-bottom: 48px;
}

/* macOS-style window frame */
.screenshot-frame {
  max-width: 680px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.screenshot-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f0f0f0;
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.screenshot-content {
  background: #fffae6;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-placeholder {
  color: #bbb;
  font-size: 1rem;
  font-style: italic;
}

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

.features {
  padding: 64px 0;
}

.features h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #222;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(217, 209, 191, 0.5);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #222;
}

.feature-card p {
  font-size: 0.9rem;
  color: #555;
}

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

.download {
  padding: 64px 0;
  text-align: center;
}

.download h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  color: #222;
}

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

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 36px;
  border: 2px solid rgba(217, 209, 191, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.download-card:hover,
.download-card.highlight {
  border-color: #3b82f6;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
  text-decoration: none;
}

.dl-icon {
  font-size: 2rem;
}

.dl-label {
  font-family: "Patrick Hand", cursive;
  font-size: 1.25rem;
}

.dl-format {
  font-size: 0.8rem;
  color: #888;
}

.download-note {
  font-size: 0.85rem;
  color: #777;
  max-width: 480px;
  margin: 0 auto;
}

.download-note code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ── Linux Modal ─────────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fffae6;
  border: 1px solid rgba(217, 209, 191, 0.6);
  border-radius: 12px;
  padding: 32px 28px 28px;
  max-width: 360px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal h3 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 20px;
  color: #222;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: #333;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 2px solid rgba(217, 209, 191, 0.6);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-option:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
  text-decoration: none;
}

.modal-option-label {
  font-family: "Patrick Hand", cursive;
  font-size: 1.15rem;
}

.modal-option-desc {
  font-size: 0.8rem;
  color: #888;
}

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

.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(217, 209, 191, 0.5);
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #888;
}

.footer-sep {
  color: #ccc;
}

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

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

  .subline {
    margin-bottom: 32px;
  }

  .screenshot-content {
    min-height: 200px;
  }

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

  .feature-card {
    padding: 16px 12px;
  }

  .download-card {
    padding: 20px 28px;
  }
}

@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
