/* forge-landing.css — Public marketing landing
 *
 * Uses tokens from forge-tokens.css (Direction A — editorial Forge).
 * No purple/teal/Inter; this file is the same dark warm "ink" + gold + Spectral
 * serif palette as the chat and auth surfaces. The ink-grain background utility
 * is applied on <body class="ink-grain"> by the HTML.
 */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── PAGE FRAME ─────────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* ── NAV ────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--serif-display);
  font-size: 1.6rem;
  letter-spacing: var(--ls-display);
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 12px var(--gold-glow-strong));
}
.brand-mark svg { width: 100%; height: 100%; }

.brand-name { font-weight: 500; }
.brand-name-amp { color: var(--gold); }

.nav-links {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
  color: var(--text-dim);
  font-family: var(--serif-body);
  font-size: var(--fs-sm);
}
.nav-links a:not(.forge-btn) {
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:not(.forge-btn):hover { color: var(--gold); }

/* ── BUTTONS (matched to forge-auth aesthetic) ──────────────────────── */
.forge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 22px;
  font-family: var(--serif-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold-deep);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-button);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.forge-btn:hover {
  background: var(--gold-hot);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--gold-deep);
}
.forge-btn:active { transform: translateY(1px); box-shadow: 0 0 0 var(--gold-deep); }

.forge-btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  box-shadow: none;
}
.forge-btn-ghost:hover {
  background: var(--gold-glow);
  color: var(--gold-hot);
  border-color: var(--gold);
  box-shadow: none;
}

.forge-btn-sm { padding: 9px 16px; font-size: var(--fs-xs); }

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
  padding: var(--sp-9) 0 var(--sp-10);
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: var(--sp-8); padding: var(--sp-7) 0 var(--sp-8); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--gold);
  padding: 6px 12px;
  border: 1px solid var(--gold-deep);
  border-radius: var(--r-pill);
  background: var(--gold-glow);
  margin-bottom: var(--sp-5);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-hot);
  box-shadow: 0 0 8px var(--gold-hot);
}

.display {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  margin: 0 0 var(--sp-5);
  color: var(--text);
}
.display-gold {
  color: var(--gold);
  font-style: italic;
}

.lede {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: var(--lh-loose);
  max-width: 56ch;
  margin: 0 0 var(--sp-6);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.cta-row-center { justify-content: center; }

/* Hero chat card preview */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
.hero-card::after {
  /* Decorative gold corner accents like .forge-card */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, var(--gold-glow) 0%, transparent 22%, transparent 78%, var(--gold-glow) 100%);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
}
.window-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-3);
}
.window-bar span:first-child { background: var(--crimson); }
.window-bar span:nth-child(2) { background: var(--copper); }
.window-bar span:nth-child(3) { background: var(--sage); }

.chat-preview {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-family: var(--serif-body);
  font-size: var(--fs-sm);
}

.msg {
  padding: 12px 14px;
  border-radius: var(--r-md);
  line-height: var(--lh-snug);
}
.msg.meta {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--text-mute);
  background: transparent;
  padding: 4px 0;
  border-left: 2px solid var(--gold-deep);
  padding-left: 10px;
}
.msg.user {
  background: var(--user-bg);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-end;
  max-width: 86%;
  font-style: italic;
}
.msg.ai {
  background: var(--ai-bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  max-width: 92%;
}

/* ── STATS STRIP ────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.stat strong {
  font-family: var(--serif-display);
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: var(--ls-display);
}
.stat span { color: var(--text-mute); font-size: var(--fs-sm); }

/* ── SECTIONS ────────────────────────────────────────────────────────── */
.section { padding: var(--sp-9) 0; }
.section-title {
  font-family: var(--serif-display);
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-display);
  color: var(--text);
  margin: 0 0 var(--sp-3);
  text-align: center;
  font-weight: 500;
}
.section-lead {
  text-align: center;
  color: var(--text-dim);
  max-width: 70ch;
  margin: 0 auto var(--sp-7);
  line-height: var(--lh-loose);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.feature:hover {
  border-color: var(--border-lit);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.5);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: var(--sp-3);
  filter: drop-shadow(0 0 6px var(--gold-glow));
}
.feature h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--gold);
  margin: 0 0 var(--sp-2);
  letter-spacing: var(--ls-display);
}
.feature p { margin: 0; color: var(--text-dim); line-height: var(--lh-snug); font-size: var(--fs-sm); }

/* ── PRICING ─────────────────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  align-items: stretch;
}
@media (max-width: 1080px) { .pricing { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.plan:hover {
  border-color: var(--border-lit);
  transform: translateY(-3px);
}
.plan.popular {
  border-color: var(--gold-deep);
  background:
    linear-gradient(180deg, rgba(201,168,76,0.05) 0%, transparent 60%),
    var(--surface);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 16px 40px -20px rgba(201,168,76,0.25);
}

.plan-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.plan-name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  color: var(--gold);
  margin: 0 0 var(--sp-3);
  letter-spacing: var(--ls-display);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 var(--sp-2);
}
.plan-amount {
  font-family: var(--serif-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: var(--ls-display);
  line-height: 1;
}
.plan-period {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

.plan-tagline {
  color: var(--text-mute);
  font-size: var(--fs-sm);
  margin: 0 0 var(--sp-5);
  font-style: italic;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.plan-features li {
  padding-left: 22px;
  position: relative;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
.plan-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: var(--fs-sm);
}
.plan-features strong {
  color: var(--text);
  font-weight: 500;
  font-family: var(--serif-display);
}

.plan-cta { width: 100%; }

.plan-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-mute);
  font-style: italic;
  font-size: var(--fs-sm);
  padding: var(--sp-6) 0;
}
.plan-loading a {
  color: var(--gold);
  text-decoration: underline;
}

.plan-fineprint {
  text-align: center;
  color: var(--text-mute);
  font-size: var(--fs-xs);
  font-style: italic;
  margin: var(--sp-6) auto 0;
  max-width: 70ch;
  line-height: var(--lh-snug);
}

/* ── FINAL CTA ───────────────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: var(--sp-9) 0 var(--sp-7);
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-6) 0 var(--sp-8);
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: var(--fs-xs);
  font-family: var(--mono);
  letter-spacing: 0.03em;
}
.footer a { color: var(--gold); transition: color var(--dur-fast) var(--ease); }
.footer a:hover { color: var(--gold-hot); }

/* ── ACCESSIBILITY ───────────────────────────────────────────────────── */
.forge-btn:focus-visible,
.nav-links a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ── PORTFOLIO HUB — product cards ───────────────────────────────────────
 * Used by the Gamerz Landing apex hub. Extends the .feature card with a
 * header row (icon + badge), platform tags, and a bottom-pinned action row
 * so every card's buttons align regardless of copy length. */
.product {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.product:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.product-head .feature-icon { margin: 0; }
.product h3 {
  font-family: var(--serif-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--sp-2);
}
.product > p {
  margin: 0;
  color: var(--text-dim);
  line-height: var(--lh-snug);
  font-size: var(--fs-sm);
}
.product-badge {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-uppercase);
  text-transform: uppercase;
  color: var(--gold-hot);
  border: 1px solid var(--gold-deep);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  background: var(--gold-glow);
  white-space: nowrap;
}
.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-4) 0 var(--sp-5);
}
.platform-tags span {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--text-mute);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px 8px;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
}
