/* ============================================================
   PayMod — paid Minecraft mod landing page
   Same desktop-first layout; emerald/mint palette on a
   green-black canvas. Design tokens mirrored from rigmod.net
   ============================================================ */

:root {
  --bg: #040706;
  --bg-footer: #020403;
  --bg-card: rgba(15, 20, 18, 0.95);
  --fg: #f0fdf7;
  --fg-muted: rgba(230, 247, 240, 0.55);
  --fg-dim: rgba(230, 247, 240, 0.4);
  --fg-tag: rgba(230, 247, 240, 0.85);
  --accent: #6bf2be;
  --accent-deep: rgba(45, 205, 150, 0.5);
  --hairline: rgba(255, 255, 255, 0.05);
  --hairline-strong: rgba(255, 255, 255, 0.08);
  --wrap: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection { background: var(--accent); color: #040706; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--accent);
  color: #040706;
  padding: 10px 16px;
  font-weight: 800;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- page shell ---------- */

.h3 {
  position: relative;
  overflow: hidden auto;
  background: var(--bg);
  min-height: 100vh;
}

.h3-wrap,
.h3-pin {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ---------- kicker / display type ---------- */

.h3-kicker {
  display: block;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2 {
  font-weight: 900;
  color: var(--fg);
  margin: 0;
}

.h3-display {
  font-size: clamp(58px, 7vw, 118px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 26px;
}

.h3-display em,
.h3-close h2 em {
  font-style: normal;
  background: linear-gradient(#fff, #6bf2be);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- buttons ---------- */

.h3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #040706;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease,
              background 0.22s ease,
              border-color 0.22s ease;
}

.h3-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(107, 242, 190, 0.22);
  background: #9ff7d8;
}

.h3-btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.26);
}

.h3-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

/* ---------- hero ---------- */

.h3-hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  justify-items: center;
  min-height: min(94vh, 1020px);
  padding: 72px 24px 56px;
}

.h3-hero-stage {
  position: relative;
  width: 100%;
  max-width: 1480px;
  min-height: 260px;
  perspective: 1400px;
  z-index: 1;
}

.h3-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.h3-lede {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.h3-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.h3-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: center;
  margin-top: 40px;
}

.h3-chips > div {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
}

.h3-chips b {
  display: block;
  margin-bottom: 3px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.h3-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  cursor: pointer;
  transition: color 0.25s ease;
  animation: scrollPulse 2.6s ease-in-out infinite;
}
.h3-scroll:hover { color: var(--accent); }

@keyframes scrollPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(4px); }
}

/* ---------- feature beats ---------- */

.h3-beat {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding: 72px 0;
}

.h3-pin {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.h3-copy h2 {
  font-size: clamp(42px, 4.3vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

.h3-copy > p {
  margin: 0 0 26px;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-muted);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag {
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--fg-tag);
  font-size: 12px;
  font-weight: 700;
}

.h3-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.h3-price b {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.h3-price span {
  font-size: 13px;
  color: var(--fg-muted);
}

.h3-scene {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(320px, 28vw, 420px);
  perspective: 1400px;
}

/* ---------- in-scene interactive demos (HUD look) ---------- */

.scene-demo {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  width: 238px;
  padding: 14px 16px;
  overflow: hidden;
  background: rgba(4, 7, 6, 0.85);
  border: 1px solid rgba(107, 242, 190, 0.35);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.demo-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(107, 242, 190, 0.14);
  border: 1px solid rgba(107, 242, 190, 0.5);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.demo-badge.off {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--fg-muted);
}

.wallet-amount {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  white-space: nowrap;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.demo-actions button,
.pay-row button,
.demo-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #040706;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.18s ease, border-color 0.18s ease;
}

.demo-actions button:hover,
.pay-row button:hover,
.demo-btn:hover {
  transform: translateY(-1px);
  background: #9ff7d8;
}

.demo-actions button.ghost {
  background: transparent;
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.26);
}

.demo-actions button.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.demo-note {
  margin: 0;
  font-size: 11px;
  color: var(--fg-dim);
}

.stats-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-muted);
}

.stats-list b {
  color: var(--fg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.18s ease;
}

.stats-list b.flip { opacity: 0; }

.pay-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.pay-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
}

.pay-row input:focus {
  border-color: var(--accent);
  outline: none;
}

.pay-receipt {
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--hairline);
  padding-top: 9px;
}

.pay-receipt b { color: var(--accent); }

.pay-receipt.show { animation: receiptPop 0.45s cubic-bezier(0.16, 1, 0.3, 1); color: var(--fg); }

@keyframes receiptPop {
  0% { transform: translateY(8px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* ---------- scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- FAQ ---------- */

.faq-sec {
  border-top: 1px solid var(--hairline);
  padding: 100px 0 60px;
}

.faq-header {
  text-align: center;
  margin-bottom: 44px;
}

.faq-header h2 {
  font-size: clamp(36px, 3.9vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

.faq-header p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(107, 242, 190, 0.45);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.faq-item:hover {
  box-shadow: 0 10px 34px rgba(107, 242, 190, 0.08);
}

.faq-item[open] {
  border-color: var(--accent);
  background: rgba(14, 21, 19, 0.96);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.faq-summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-content {
  padding: 14px 24px 22px;
  border-top: 1px solid var(--hairline);
}
.faq-content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
}
.faq-content code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

/* ---------- closing CTA ---------- */

.h3-close {
  position: relative;
  padding: 110px 24px 130px;
  text-align: center;
}

.h3-final {
  position: relative;
  width: 100%;
  max-width: 860px;
  height: 280px;
  margin: 0 auto 8px;
  perspective: 1200px;
}

.h3-close-inner { position: relative; z-index: 2; }

.h3-close h2 {
  font-size: clamp(52px, 6.4vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.h3-close p {
  margin: 0 auto 30px;
  max-width: 600px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-muted);
}

/* ---------- footer ---------- */

.rp-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--hairline-strong);
  padding: 44px 24px 36px;
  color: var(--fg);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.logo-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  image-rendering: pixelated;
  background-size: cover;
  background-color: #4c6a5e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1),
              0 0 12px rgba(107, 242, 190, 0.5);
}

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

.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ---------- loader ---------- */

.out {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.out.done { opacity: 0; visibility: hidden; }

.loader-cube {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(#fff, #6bf2be);
  animation: loaderSpin 0.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes loaderSpin {
  0% { transform: rotate(0deg) scale(1); border-radius: 6px; }
  50% { transform: rotate(180deg) scale(0.72); border-radius: 50%; }
  100% { transform: rotate(360deg) scale(1); border-radius: 6px; }
}

/* ---------- toast ---------- */

.rp-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10000;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  background: #0e1512;
  border: 1px solid rgba(107, 242, 190, 0.45);
  color: var(--fg);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.rp-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- responsive (downscaling from desktop) ---------- */

@media (max-width: 960px) {
  .h3-pin {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .h3-copy { text-align: center; }
  .h3-copy > p { margin-left: auto; margin-right: auto; }
  .feature-tags { justify-content: center; }
  .h3-price { justify-content: center; }
  .h3-chips { gap: 24px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .h3-hero { min-height: auto; padding-top: 40px; }
  .h3-hero-stage { height: 220px; min-height: 220px; }
  .h3-display { font-size: clamp(42px, 11vw, 54px); }
  .h3-lede { font-size: 15px; }
  .h3-chips { gap: 18px; }
  .h3-chips b { font-size: 20px; }
  .h3-cta-row .h3-btn { width: 100%; max-width: 320px; }
  .h3-beat { padding: 48px 0; }
  .h3-price { flex-direction: column; gap: 2px; align-items: center; }
  .h3-price b { font-size: 24px; }
  .pricing-sec { padding: 72px 0; }
  .faq-sec { padding: 72px 0 48px; }
  .h3-close { padding: 72px 16px 90px; }
  .h3-close h2 { font-size: clamp(40px, 11vw, 54px); }
  .h3-close p { font-size: 17px; }
  .h3-final { height: 200px; }
  .scene-demo {
    left: 12px;
    bottom: 12px;
    width: min(238px, calc(100% - 24px));
    padding: 12px 14px;
  }
  .wallet-amount { font-size: 26px; }
  .faq-summary { padding: 16px 18px; font-size: 15px; }
  .faq-content { padding: 12px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h3-scroll, .loader-cube { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
