/* Landing page — poefixer.trade root.
 * Same palette and type tokens as buy.ejs / portal.css (the funnel this page
 * feeds), scaled up for marketing: larger serif display, wider shell, one
 * signature device (products as PoE item tooltips) and an ambient radar hero.
 * System font stacks only — the app CSP blocks external stylesheet hosts. */

:root {
  --bg: #0d0c10;
  --panel: #16151b;
  --well: #1d1b23;
  --line: #2b2833;
  --gold: #c9a86a;
  --gold-hi: #e3c98f;
  --gold-dim: #8a7550;
  --gold-soft: #97815a; /* small-text gold — meets AA where --gold-dim (4.4:1) does not */
  --text: #e9e5db;
  --dim: #94909e;
  --good: #3ecf8e;
  --warn: #e0b45c;
  --bad: #ff8080;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --mono: 'Cascadia Mono', Consolas, 'Courier New', monospace;
  --shell: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image: radial-gradient(ellipse 900px 560px at 50% -120px, rgba(201, 168, 106, .08), transparent);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); }

a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--panel); color: var(--text); padding: 10px 16px; border: 1px solid var(--gold);
}
.skip:focus { left: 12px; top: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .15s, border-color .15s, transform .06s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.gold {
  background: linear-gradient(180deg, var(--gold-hi), #b08d52);
  color: #1a1408;
  box-shadow: 0 2px 14px rgba(201, 168, 106, .25);
}
.btn.gold:hover { filter: brightness(1.06); color: #1a1408; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--gold-dim); color: var(--text); }
.btn.lg { padding: 14px 28px; font-size: 15px; }
.btn.sm { padding: 8px 16px; font-size: 13px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 12, 16, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--shell); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; letter-spacing: 4px;
  color: var(--gold);
}
.brand:hover { color: var(--gold-hi); }
.brand-mark { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--dim); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; }
#radar-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; opacity: .9;
}
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,12,16,.12) 0%, rgba(13,12,16,.42) 55%, var(--bg) 96%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--shell); margin: 0 auto;
  padding: 120px 24px 140px;
  text-align: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-soft);
}
.hero h1 {
  margin: 22px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.06; letter-spacing: 1px;
}
.hero h1 em {
  font-style: normal; color: var(--gold-hi);
  text-shadow: 0 0 34px rgba(201, 168, 106, .35);
}
.hero .sub {
  max-width: 640px; margin: 26px auto 0;
  color: var(--dim); font-size: 17px;
}
.cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px;
}
.trust { margin-top: 26px; font-size: 12px; color: var(--gold-soft); letter-spacing: .5px; }

/* Hero load stagger */
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s ease forwards; }
.r1 { animation-delay: .05s; } .r2 { animation-delay: .15s; } .r3 { animation-delay: .3s; }
.r4 { animation-delay: .45s; } .r5 { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Sections ────────────────────────────────────────────────────────── */

.section { max-width: var(--shell); margin: 0 auto; padding: 90px 24px 30px; }

.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sec-head h2, .tn-copy h2, .closer h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4vw, 42px); letter-spacing: 1px;
}
.sec-head p { margin-top: 12px; color: var(--dim); }

.diamond-rail {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--gold); font-size: 13px; margin-bottom: 18px;
  text-shadow: 0 0 12px rgba(201, 168, 106, .55);
}
.diamond-rail i { display: block; width: 44px; height: 1px; background: var(--line); }
.diamond-rail.left { justify-content: flex-start; }

/* Scroll reveal. Content is visible BY DEFAULT — landing.js stamps .js-anim
 * on <html> before it arms the observer, so only a browser that will actually
 * deliver the reveal ever hides anything. No JS, blocked JS, failed load:
 * the full page renders. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal:not(.in) { opacity: 0; transform: translateY(14px); }

/* ── Feature showcase ────────────────────────────────────────────────── */

.feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding: 34px 0;
}
.feat.rev .shot { order: 2; }
.feat-copy h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: .5px; }
.feat-copy p { margin-top: 12px; color: var(--dim); }
.feat-copy ul { margin: 16px 0 0; padding: 0; list-style: none; }
.feat-copy li {
  position: relative; padding-left: 22px; margin-top: 9px; font-size: 15px;
}
.feat-copy li::before {
  content: '◆'; position: absolute; left: 0; top: 0;
  color: var(--gold-dim); font-size: 11px; line-height: 24px;
}

.shot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 10px 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
}
.shot svg, .shot img {
  display: block; width: 100%; height: auto; border-radius: 8px;
  background: #101014;
}
.shot figcaption {
  padding: 8px 6px 2px;
  font-family: var(--mono); font-size: 11px; color: var(--gold-soft);
  letter-spacing: .5px;
}
.ill-path { animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }

/* ── Product item-cards (the signature) ──────────────────────────────── */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  align-items: stretch;
}
.item-card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #17161c, #121117);
  border: 1px solid #3a3444;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #0a090c, 0 18px 48px rgba(0, 0, 0, .5);
  padding: 0 0 22px;
}
.item-card::before {
  content: ''; position: absolute; inset: 3px;
  border: 1px solid rgba(201, 168, 106, .22);
  border-radius: 4px; pointer-events: none;
}
.item-card.hosted { border-color: var(--gold-dim); }
.item-card.hosted::before { border-color: rgba(201, 168, 106, .38); }
.item-tag {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; letter-spacing: 2px; color: #1a1408;
  background: linear-gradient(180deg, var(--gold-hi), #b08d52);
  padding: 3px 8px; border-radius: 4px;
}
.item-head {
  text-align: center; padding: 24px 20px 14px;
  background: linear-gradient(180deg, rgba(201, 168, 106, .10), transparent);
  border-radius: 6px 6px 0 0;
}
.item-head h3 {
  font-family: var(--serif); font-weight: 400; font-size: 27px;
  letter-spacing: 2px; color: var(--gold-hi);
}
.item-base { margin-top: 4px; font-size: 12.5px; color: var(--dim); letter-spacing: .5px; }
.item-sep {
  display: flex; align-items: center; gap: 10px;
  color: var(--gold-dim); font-size: 10px;
  padding: 8px 26px;
}
.item-sep i { display: block; flex: 1; height: 1px; background: var(--line); }
.item-implicit {
  text-align: center; padding: 2px 28px;
  color: var(--gold); font-size: 14px;
}
.item-mods {
  list-style: none; margin: 2px 0 0; padding: 0 26px;
  text-align: center; flex: 1;
}
.item-mods li {
  font-size: 13.5px; color: #b9b3c9; padding: 5px 0;
}
.item-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 18px 22px 0; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.item-foot .price { font-size: 20px; color: var(--gold-hi); }
.item-foot .price em { font-style: normal; font-size: 12px; color: var(--dim); }

.one-key { text-align: center; margin-top: 34px; color: var(--dim); font-size: 14px; }
.one-key strong { color: var(--gold-hi); font-weight: 600; }

/* ── TradeNode band ──────────────────────────────────────────────────── */

.tradenode { max-width: none; padding: 90px 0 30px; }
.tn-inner {
  max-width: var(--shell); margin: 0 auto; padding: 64px 24px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  background:
    radial-gradient(ellipse 700px 420px at 85% 20%, rgba(201, 168, 106, .06), transparent),
    var(--well);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tn-lead { margin-top: 16px; color: var(--dim); font-size: 16.5px; }
.tn-points { list-style: none; margin: 22px 0 0; padding: 0; }
.tn-points li { position: relative; padding-left: 24px; margin-top: 12px; font-size: 15px; color: var(--dim); }
.tn-points li strong { color: var(--text); font-weight: 600; }
.tn-points li::before {
  content: '◆'; position: absolute; left: 0; top: 1px;
  color: var(--gold); font-size: 11px;
}
.tn-note {
  margin-top: 20px; padding: 12px 16px;
  border-left: 2px solid var(--gold-dim);
  background: rgba(201, 168, 106, .05);
  color: var(--dim); font-size: 13.5px;
}
.tradenode .cta-row { justify-content: flex-start; margin-top: 28px; }
.tn-shot { align-self: start; }

/* ── Pricing ─────────────────────────────────────────────────────────── */

.price-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 26px;
  justify-content: center;
}
/* Three cards: 3 × 360 + 2 × 26 = 1132px, inside the 1160px shell. */
.price-cards.three { grid-template-columns: repeat(3, minmax(0, 360px)); }
.price-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 30px 26px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column;
}
/* The middle (packet) card — the one the pricing section leads with. */
.price-card.featured {
  border-color: var(--gold-dim);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--gold-dim);
}
.price-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 1px; }
.price-big { margin-top: 14px; font-size: 44px; color: var(--gold-hi); line-height: 1; }
.price-big span { font-size: 14px; color: var(--dim); margin-left: 8px; }
.price-sub { margin-top: 10px; color: var(--text); font-size: 14.5px; }
.price-sub em { font-style: normal; color: var(--gold); }
.price-card ul { list-style: none; margin: 18px 0 24px; padding: 0; flex: 1; }
.price-card li { position: relative; padding-left: 22px; margin-top: 9px; font-size: 14px; color: var(--dim); }
.price-card li::before { content: '◆'; position: absolute; left: 0; color: var(--gold-dim); font-size: 10px; }
.price-card .btn { align-self: flex-start; }
.pay-row { text-align: center; margin-top: 30px; font-size: 12.5px; color: var(--gold-soft); letter-spacing: 1px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq-list { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 20px; font-size: 15.5px; font-weight: 600;
  position: relative; padding-left: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '◇'; position: absolute; left: 20px; color: var(--gold-dim);
  transition: color .2s;
}
.faq details[open] summary::before { content: '◆'; color: var(--gold); }
.faq details p { padding: 0 20px 18px 44px; color: var(--dim); font-size: 14.5px; }

/* ── Closer ──────────────────────────────────────────────────────────── */

.closer { text-align: center; padding-bottom: 110px; }
.closer-inner {
  padding: 70px 24px 0;
  background-image: radial-gradient(ellipse 560px 300px at 50% 100%, rgba(201, 168, 106, .07), transparent);
}
.closer p { margin-top: 12px; color: var(--dim); }

/* ── Footer ──────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); background: #0b0a0e; }
.footer-inner {
  max-width: var(--shell); margin: 0 auto; padding: 56px 24px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.f-mark { font-family: var(--serif); font-size: 22px; letter-spacing: 4px; color: var(--gold); }
.f-tag { margin-top: 10px; color: var(--dim); font-size: 13.5px; }
.f-col { display: flex; flex-direction: column; gap: 9px; }
.f-col h4 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--gold-soft); margin-bottom: 6px; font-weight: 400;
}
.f-col a { color: var(--dim); font-size: 14px; }
.f-col a:hover { color: var(--text); }
.f-legal {
  max-width: var(--shell); margin: 0 auto; padding: 0 24px 34px;
  color: var(--dim); font-size: 12px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .feat.rev .shot { order: 0; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tn-inner { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  /* Repeated on purpose: `.price-cards.three` (0,2,0) beats `.price-cards`
   * (0,1,0) at the base width, and the media rule above would not win it back. */
  .price-cards.three { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero-inner { padding: 84px 20px 100px; }
  .section { padding: 64px 20px 20px; }
  /* Re-assert the two .section variants the generic rule above would
   * otherwise override at equal specificity: the TradeNode band stays
   * full-bleed and the closer keeps its bottom air. */
  .tradenode { padding: 64px 0 20px; }
  .closer { padding-bottom: 90px; }
  .tn-inner { padding: 48px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .item-foot { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ── Reduced motion ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .reveal, .js-anim .reveal:not(.in) { transition: none; opacity: 1; transform: none; }
  .ill-path { animation: none; }
  .btn { transition: none; }
}
