/* ============================================================
   PMX Landing Page — Stylesheet
   Brand tokens sourced from "PMX - Brand Guidelines.pdf" (page 5).
   Typography: Mulish (Google Fonts), single family across the site.
   ============================================================ */

:root {
  /* Primary */
  --pmx-charcoal: #1a1c1e;
  --pmx-copper: #c98d73;
  --pmx-white: #ffffff;

  /* Secondary */
  --pmx-pale-peach: #ebc5b2;
  --pmx-burnt-umber: #634a3e;
  --pmx-cool-slate: #8e9196;
  --pmx-mist-grey: #4a4d52;
  --pmx-storm-grey: #73737e;
  --pmx-woodsmoke: #05070a;

  /* Derived */
  --pmx-card: #1f2124;
  --pmx-card-raised: #25282b;
  --pmx-border: rgba(235, 197, 178, 0.08);
  --pmx-border-strong: rgba(235, 197, 178, 0.18);

  /* Copper gradient (logo + hero accents) */
  --pmx-copper-gradient: linear-gradient(135deg, #d9a18a 0%, #c98d73 45%, #7a5242 100%);

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6.5rem;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.35);

  /* Container */
  --content-max: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Type scale (fluid) */
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--pmx-white);
  background: var(--pmx-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 var(--s-4); }

a {
  color: var(--pmx-copper);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus-visible { color: var(--pmx-pale-peach); }

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

ul { padding: 0; margin: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pmx-copper);
  color: var(--pmx-charcoal);
  padding: var(--s-2) var(--s-4);
  z-index: 1000;
}
.skip-link:focus-visible { left: var(--s-4); top: var(--s-4); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pmx-copper);
  margin-bottom: var(--s-4);
}
.eyebrow--on-copper { color: var(--pmx-charcoal); }

.text-copper {
  background: var(--pmx-copper-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--compact { padding: 0.7rem 1.1rem; font-size: 0.85rem; }
.btn--primary {
  background: var(--pmx-copper);
  color: var(--pmx-charcoal);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--pmx-pale-peach);
  color: var(--pmx-charcoal);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--pmx-white);
  border-color: var(--pmx-border-strong);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--pmx-copper);
  color: var(--pmx-copper);
}
.btn--on-copper {
  background: var(--pmx-charcoal);
  color: var(--pmx-white);
  border-color: var(--pmx-charcoal);
}
.btn--on-copper:hover,
.btn--on-copper:focus-visible {
  background: var(--pmx-woodsmoke);
  color: var(--pmx-pale-peach);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 28, 30, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--pmx-border);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 38px; width: auto; }
.site-footer .brand__logo { height: 44px; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--s-6); }
.site-nav a {
  color: var(--pmx-white);
  font-weight: 500;
  font-size: 0.92rem;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--pmx-copper); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pmx-white);
  transition: transform 0.2s;
}

.mobile-nav { display: none; }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5) var(--gutter) var(--s-6);
  border-top: 1px solid var(--pmx-border);
  background: var(--pmx-charcoal);
}
.mobile-nav a {
  color: var(--pmx-white);
  font-size: 1.05rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .site-nav { display: none; }
  .site-header .btn--compact { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--s-8) 0 var(--s-9);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 40%, rgba(201, 141, 115, 0.35) 0%, rgba(201, 141, 115, 0.08) 40%, transparent 70%),
    radial-gradient(80% 80% at 50% 100%, rgba(5, 7, 10, 0.9) 0%, transparent 60%),
    linear-gradient(180deg, var(--pmx-woodsmoke) 0%, var(--pmx-charcoal) 100%);
}
.hero__bg::after {
  /* subtle starfield / globe hint */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 80%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px 1px at 90% 55%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 12% 60%, rgba(255,255,255,0.4), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  text-align: center;
  padding-top: var(--s-6);
}
.hero__title {
  font-size: var(--fs-h1);
  margin: 0 auto var(--s-5);
  max-width: 18ch;
}
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--pmx-pale-peach);
  font-weight: 600;
  max-width: 46ch;
  margin: 0 auto var(--s-4);
}
.hero__sub {
  font-size: 1rem;
  color: var(--pmx-cool-slate);
  max-width: 52ch;
  margin: 0 auto var(--s-6);
}
.hero__ctas {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Generic section ---------- */
.section {
  padding: var(--s-9) 0;
}
.section--raised {
  background: linear-gradient(180deg, var(--pmx-charcoal) 0%, #17191b 100%);
  border-top: 1px solid var(--pmx-border);
  border-bottom: 1px solid var(--pmx-border);
}
.section__title {
  font-size: var(--fs-h2);
  max-width: 22ch;
  margin-bottom: var(--s-4);
}
.section__lead {
  font-size: var(--fs-lead);
  color: var(--pmx-cool-slate);
  max-width: 56ch;
  margin-bottom: var(--s-8);
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: var(--s-5);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--pmx-card);
  border: 1px solid var(--pmx-border);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--pmx-border-strong);
}
.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--pmx-copper);
  background: rgba(201, 141, 115, 0.08);
  border: 1px solid rgba(201, 141, 115, 0.22);
  border-radius: 12px;
  margin-bottom: var(--s-4);
}
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--pmx-cool-slate); margin: 0; font-size: 0.95rem; }

.card--tech ul {
  margin-top: var(--s-3);
  color: var(--pmx-cool-slate);
  font-size: 0.93rem;
}
.card--tech li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
}
.card--tech li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pmx-copper);
}

/* ---------- Solution panels ---------- */
.panel {
  background: var(--pmx-card-raised);
  border: 1px solid var(--pmx-border);
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-6);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--pmx-copper-gradient);
}
.panel__title { color: var(--pmx-pale-peach); }
.panel__intro { color: var(--pmx-cool-slate); margin-bottom: var(--s-5); }
.panel__list li {
  padding: var(--s-3) 0;
  border-top: 1px solid var(--pmx-border);
  color: var(--pmx-white);
  font-size: 0.97rem;
}
.panel__list li:first-child { border-top: 0; padding-top: 0; }
.panel__list strong { color: var(--pmx-pale-peach); font-weight: 700; }

/* ---------- Beta section (copper CTA band) ---------- */
.beta {
  background: var(--pmx-copper-gradient);
  color: var(--pmx-charcoal);
  padding: var(--s-9) 0;
  position: relative;
  overflow: hidden;
}
.beta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 90% at 0% 0%, rgba(255, 255, 255, 0.2), transparent 60%),
    radial-gradient(40% 80% at 100% 100%, rgba(26, 28, 30, 0.25), transparent 65%);
  pointer-events: none;
}
.beta__inner {
  position: relative;
  max-width: 760px;
  text-align: center;
}
.beta__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--s-4);
}
.beta__lead {
  font-size: var(--fs-lead);
  color: rgba(26, 28, 30, 0.85);
  margin-bottom: var(--s-6);
}
.beta__perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
  font-weight: 600;
}
.beta__check {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-right: var(--s-2);
  border-radius: 50%;
  background: var(--pmx-charcoal);
  color: var(--pmx-copper);
  font-size: 0.8rem;
  font-weight: 700;
}
.beta__perks li { display: inline-flex; align-items: center; }
.beta__note {
  margin-top: var(--s-4);
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(26, 28, 30, 0.88);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pmx-woodsmoke);
  color: var(--pmx-cool-slate);
  padding: var(--s-8) 0 var(--s-5);
  border-top: 1px solid var(--pmx-border);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
}
.site-footer h4 {
  color: var(--pmx-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--s-3);
}
.site-footer__tag {
  max-width: 32ch;
  margin-top: var(--s-3);
  font-size: 0.92rem;
}
.site-footer__list li { margin-bottom: var(--s-2); }
.site-footer__list a { color: var(--pmx-cool-slate); }
.site-footer__list a:hover { color: var(--pmx-copper); }
.site-footer__list--inline { display: flex; align-items: center; gap: var(--s-5); }
.site-footer__list--inline svg { display: block; width: 22px; height: 22px; fill: currentColor; }
.site-footer__legal {
  border-top: 1px solid var(--pmx-border);
  padding-top: var(--s-5);
  font-size: var(--fs-small);
}

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Subtle entrance on hero CTAs only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__ctas .btn {
    animation: pmx-rise 0.7s ease-out both;
  }
  .hero__ctas .btn:nth-child(2) { animation-delay: 0.12s; }
}
@keyframes pmx-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   v2 iteration — split hero, trust bar, audience, sticky CTA
   ============================================================ */

/* ---------- Split hero ---------- */
.hero--split .hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
  text-align: left;
  padding-top: var(--s-4);
}
.hero--split .hero__copy .eyebrow { margin-bottom: var(--s-4); }
.hero--split .hero__title {
  max-width: 16ch;
  margin: 0 0 var(--s-5);
}
.hero--split .hero__lead {
  max-width: 48ch;
  margin: 0 0 var(--s-6);
}
.hero--split .hero__ctas { justify-content: flex-start; }

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--pmx-border-strong);
  box-shadow: 0 30px 80px -30px rgba(201, 141, 115, 0.4);
}
.hero__media img,
.hero__media picture { width: 100%; height: auto; display: block; }

/* Stacked (< 820px): cap image width so it doesn't dominate narrow tablets. */
.hero--split .hero__media { max-width: 560px; margin: 0 auto; width: 100%; }

@media (min-width: 820px) {
  .hero--split .hero__inner {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--s-8);
  }
  .hero--split .hero__media { max-width: none; margin: 0; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--pmx-card);
  border-top: 1px solid var(--pmx-border);
  border-bottom: 1px solid var(--pmx-border);
  padding: var(--s-3) 0;
}
.trust-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3) var(--s-5);
  color: var(--pmx-cool-slate);
  font-size: var(--fs-small);
  text-align: center;
}
.trust-bar__item strong { color: var(--pmx-pale-peach); font-weight: 700; }
.trust-bar__sep { color: var(--pmx-mist-grey); }
@media (max-width: 620px) {
  .trust-bar__sep { display: none; }
}

/* ---------- Audience section ---------- */
.audience { position: relative; overflow: hidden; }
.audience::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/PMX%20Section%20Backdrop.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.audience > .container { position: relative; z-index: 1; }

.audience__feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
  margin-block: var(--s-7);
}
.audience__portrait {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--pmx-border-strong);
  box-shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.6);
}
.audience__portrait img { width: 100%; height: auto; display: block; }
.audience__feature-copy .section__lead { margin-bottom: 0; }

@media (min-width: 820px) {
  .audience__feature { grid-template-columns: 5fr 6fr; }
}

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s-3) var(--s-4);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom));
  background: rgba(26, 28, 30, 0.92);
  border-top: 1px solid var(--pmx-border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform 220ms ease;
  z-index: 40;
  display: none;
}
.sticky-cta .btn { width: 100%; }
body.sticky-cta-visible .sticky-cta { transform: translateY(0); }
@media (max-width: 820px) {
  .sticky-cta { display: block; }
  body.sticky-cta-visible { padding-bottom: 72px; }
}

/* ---------- Footer additions ---------- */
.site-footer__disclaimer {
  display: block;
  color: var(--pmx-storm-grey);
  font-size: 0.8rem;
  margin-bottom: var(--s-2);
  max-width: 68ch;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .panel:hover { transform: none; }
  .btn--primary:hover, .btn--primary:focus-visible,
  .btn--on-copper:hover, .btn--on-copper:focus-visible { transform: none; }
  .sticky-cta { transition: none; }
}
