/* ==========================================================================
   Lanternbeak: Sea Riddle — section layer
   Hero, features, download CTA, about. Mobile-first.
   ========================================================================== */

/* Ink-reveal entrance, driven by js/main.js.
   Content is visible by default and only hidden once the `js` class lands,
   so a blocked or failed script can never leave the page blank. */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Hero — stacked on mobile, split column on desktop
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 36px 0 44px;
  background:
    radial-gradient(120% 70% at 78% 8%, rgba(244, 168, 60, 0.16), transparent 62%),
    radial-gradient(110% 80% at 12% 100%, rgba(18, 63, 87, 0.85), transparent 68%),
    linear-gradient(180deg, var(--abyss), var(--deep));
}

.hero-inner { display: flex; flex-direction: column; gap: 30px; }

.hero-title {
  font-size: clamp(30px, 8.4vw, 36px);
  margin-bottom: 14px;
}
.hero-title-line { display: block; color: var(--lantern); }

.hero-lede {
  font-size: 17px;
  font-weight: 600;
  color: var(--foam);
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 15px;
  max-width: 46ch;
  margin-bottom: 26px;
}

.hero-marks {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.hero-marks li {
  padding: 6px 13px;
  border: 1px solid var(--tide-line);
  border-radius: 999px;
  background: rgba(18, 63, 87, 0.5);
  font-size: 14px;
  color: var(--mist);
}

/* Riveted porthole frame around the key art */
.porthole {
  position: relative;
  margin: 0;
  padding: 9px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(185, 138, 63, 0.55), rgba(18, 63, 87, 0.5));
  border: 1px solid var(--brass);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.9);
}
.porthole img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(8, 32, 46, 0.8);
}

.rivet {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lantern-soft);
  box-shadow: 0 0 6px rgba(255, 210, 138, 0.75);
}
.rivet--tl { top: 10px; left: 10px; }
.rivet--tr { top: 10px; right: 10px; }
.rivet--bl { bottom: 10px; left: 10px; }
.rivet--br { bottom: 10px; right: 10px; }

.porthole-caption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--mist);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */

.section-head { max-width: 62ch; margin-bottom: 26px; }

.section-title { font-size: clamp(25px, 6.6vw, 32px); }

.section-lede { font-size: 15px; margin: 0; }

/* --------------------------------------------------------------------------
   Features — chart linework cards with wax-seal medallions
   -------------------------------------------------------------------------- */

.features {
  padding: 48px 0;
  background: var(--abyss);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0; padding: 0;
  list-style: none;
}

.feature-card {
  position: relative;
  padding: 24px 20px 20px;
  border: 1px solid var(--tide-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--tide), rgba(11, 42, 58, 0.9));
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-card::after {
  /* chart corner tick */
  content: "";
  position: absolute; right: 12px; bottom: 12px;
  width: 16px; height: 16px;
  border-right: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  opacity: 0.6;
}
.feature-card:hover { border-color: var(--brass); transform: translateY(-3px); }
.feature-card:active { transform: none; border-color: var(--brass); }

.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f6b552, #b57a24);
  border: 1px solid var(--lantern-soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em;
}

.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { font-size: 15px; margin: 0; }

/* --------------------------------------------------------------------------
   Download CTA
   -------------------------------------------------------------------------- */

.download {
  padding: 52px 0;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(244, 168, 60, 0.2), transparent 64%),
    linear-gradient(180deg, var(--deep), var(--tide));
  border-block: 1px solid var(--tide-line);
  text-align: center;
}

.download-inner { display: flex; flex-direction: column; align-items: center; }

.download-icon {
  width: 84px; height: 84px;
  margin-bottom: 18px;
  border-radius: 22px;
  border: 1px solid var(--brass);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.9);
}

.download-title { font-size: clamp(27px, 7.4vw, 34px); margin-bottom: 12px; }

.download-lede {
  max-width: 48ch;
  font-size: 15px;
  margin-bottom: 26px;
}

.download-note {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--mist);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  padding: 48px 0;
  background: var(--abyss);
}

.about-copy { max-width: 66ch; }
.about-copy p { font-size: 15px; }

.about-contact {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--tide-line);
}
.about-contact a { font-weight: 700; word-break: break-word; }

/* --------------------------------------------------------------------------
   Tablet and up
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .hero { padding: 64px 0 76px; }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 44px;
  }
  .hero-copy { flex: 1 1 52%; }
  .hero-art { flex: 1 1 48%; min-width: 0; }

  .hero-title { font-size: clamp(38px, 4.6vw, 54px); }
  .hero-lede { font-size: 20px; }
  .hero-sub { font-size: 17px; }
  .hero-marks li { font-size: 14px; }

  .porthole { padding: 12px; }
  .rivet { width: 9px; height: 9px; }
  .porthole-caption { font-size: 15px; }

  .features, .about { padding: 76px 0; }
  .download { padding: 84px 0; }

  .section-head { margin-bottom: 38px; }
  .section-lede, .download-lede, .feature-card p, .about-copy p { font-size: 16px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .feature-card { padding: 28px 24px 24px; }

  .download-icon { width: 104px; height: 104px; }
  .download-title { font-size: clamp(34px, 3.8vw, 46px); }
}

/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .hero { padding: 84px 0 96px; }
  .hero-inner { gap: 60px; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .about-inner { display: flex; justify-content: space-between; gap: 48px; }
  .about-copy { flex: 1 1 auto; }
}
