/* Bonfire Landing */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fffaf7;
  --text: #1a1a1a;
  --text-secondary: #444440;
  --text-muted: #8a8680;
  --coral: #f06850;
  --coral-light: #fff0ec;
  --card-bg: #ffffff;
  --border: 1px solid rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-full: 999px;
  --content-max: 880px;
}

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

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Nav --- */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 24px 0;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

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

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

/* Feedback opener — looks like a nav link, behaves like a button */
.nav-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.nav-link-btn:hover {
  color: var(--text);
}

/* --- Feedback modal --- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 20, 18, 0.34);
  animation: modal-fade var(--transition-base, 200ms) ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.modal h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

#feedbackForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#feedbackForm textarea,
#feedbackForm input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  resize: vertical;
}

#feedbackForm textarea::placeholder,
#feedbackForm input::placeholder {
  color: var(--text-muted);
}

#feedbackForm textarea:focus,
#feedbackForm input:focus {
  outline: none;
  border-color: var(--coral);
}

#feedbackForm .btn-primary {
  width: 100%;
  justify-content: center;
  cursor: pointer;
  margin-top: 4px;
}

#feedbackForm .btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.modal-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.modal-status.ok { color: #2d8a4e; }
.modal-status.err { color: var(--coral); }

/* --- Hero --- */

main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 110px 0 48px;
  text-align: center;
  position: relative;
}

/* --- Floating pixel monsters --- */

.sprite {
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: none;
  image-rendering: pixelated;
  z-index: 0;
}

.sprite svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes sprite-float-a {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(4deg); }
}

@keyframes sprite-float-b {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50%      { transform: translateY(-18px) rotate(-3deg); }
}

@keyframes sprite-float-c {
  0%, 100% { transform: translateY(-6px) rotate(-2deg); }
  50%      { transform: translateY(10px) rotate(5deg); }
}

.sprite-scout {
  top: 100px;
  left: 2%;
  animation: sprite-float-a 5.5s ease-in-out infinite;
}

.sprite-herald {
  top: 60px;
  right: 11%;
  width: 52px;
  height: 52px;
  animation: sprite-float-b 6.5s ease-in-out infinite;
  animation-delay: -1.5s;
}

.sprite-scribe {
  top: 90px;
  left: 19%;
  width: 40px;
  height: 40px;
  animation: sprite-float-b 5s ease-in-out infinite;
  animation-delay: -0.8s;
}

.sprite-ambassador {
  bottom: 60px;
  left: 3%;
  width: 42px;
  height: 42px;
  animation: sprite-float-c 7s ease-in-out infinite;
  animation-delay: -2s;
}

.sprite-tester {
  bottom: 80px;
  right: 4%;
  width: 46px;
  height: 46px;
  animation: sprite-float-a 6s ease-in-out infinite;
  animation-delay: -3s;
}

/* Keep the hero content above the sprites */
.hero > h1,
.hero > .tagline,
.hero > .cta-row,
.hero > .version,
.hero > .hero-pill {
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--coral);
  background: var(--coral-light);
  border-radius: var(--radius-full);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 84px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -3.5px;
  margin-bottom: 28px;
}

.hero h1 .accent {
  color: var(--coral);
}

.tagline {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 auto 40px;
  max-width: 560px;
}

/* --- CTA Button --- */

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--coral);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 4px 14px rgba(240, 104, 80, 0.32);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240, 104, 80, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(240, 104, 80, 0.3);
}

.version {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Showcase (contained panel around screenshot) --- */

.showcase {
  max-width: 1240px;
  margin: 40px auto 80px;
  padding: 64px;
  background: url('/showcase-bg.png') center/cover no-repeat, #F5C9A2;
  border-radius: 20px;
  text-align: center;
}

.showcase-img {
  display: block;
  width: 100%;
  max-width: 1080px;
  height: auto;
  margin: 0 auto;
  /* The PNG carries its own rounded corners + transparency, so the shadow
     follows the window edge instead of a hard rectangle. */
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.22));
}

/* --- Works With --- */

.works-with {
  padding: 0 0 96px;
  text-align: center;
}

.works-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 24px;
}

.works-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.works-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-card img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.works-card-soon img {
  opacity: 0.5;
  filter: grayscale(0.4);
}

.soon-pill {
  position: absolute;
  bottom: 2px;
  left: 85%;
  transform: translateX(-50%);
  padding: 2px 6px;
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: #f5f3f0;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* --- Footer --- */

footer {
  text-align: center;
  padding: 40px 24px;
}

.footer-story {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

.footer-credit {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover {
  opacity: 0.6;
}

/* --- Responsive --- */

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

  .hero h1 {
    font-size: 44px;
    letter-spacing: -2px;
  }

  .tagline {
    font-size: 15px;
  }

  .tagline br {
    display: none;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .showcase {
    margin: 24px 0 60px;
    padding: 20px;
    border-radius: 0;
  }

  /* Keep only 2 sprites on mobile to avoid clutter */
  .sprite-ambassador,
  .sprite-tester,
  .sprite-scribe {
    display: none;
  }

  .sprite-scout {
    top: 80px;
    left: 4%;
    width: 38px;
    height: 38px;
  }

  .sprite-herald {
    top: 60px;
    right: 4%;
    width: 40px;
    height: 40px;
  }
}
