/* ---------- 1. TOKENS ---------- */
:root {
  /* brand reds (same in both themes) */
  --red: #c8102e;
  --red-b: #e8283f;
  --red-d: #8f0b21;
  --red-dd: #5a0614;
  --gold: #f2c46d;

  /* theme tokens: LIGHT (default) */
  --bg: #ffffff;
  --bg-soft: #fff4f5;
  --bg-tint: #fde6e8;
  --surface: #ffffff;
  --head: #4a0713;
  --text: #5a3037;
  --muted: #7d5f64;
  --num: #c9a9ae;
  --line: rgba(200, 16, 46, 0.14);
  --accent-text: #c8102e;
  --eyebrow-bg: #fde6e8;
  --tag-bg: #ffffff;
  --tag-text: #7a1325;
  --glow-1: rgba(200, 16, 46, 0.08);
  --glow-2: rgba(232, 40, 63, 0.06);
  --shadow-hover: rgba(143, 11, 33, 0.3);
  --frame-shadow: rgba(143, 11, 33, 0.35);
  color-scheme: light;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --r: 22px;
  --r-lg: 30px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- THEME TOKENS: DARK ----------
   Add your own toggle selector here if it is not listed. */
:root[data-theme="dark"],
:root[data-bs-theme="dark"],
:root.dark,
:root.dark-mode,
:root.dark-theme,
:root.theme-dark,
body[data-theme="dark"],
body[data-bs-theme="dark"],
body.dark,
body.dark-mode,
body.dark-theme,
body.theme-dark {
  --bg: #2a0a11;
  --bg-soft: #340d16;
  --bg-tint: #42111c;
  --surface: #3d101a;
  --head: #ffffff;
  --text: #f0d5d9;
  --muted: #d7b0b6;
  --num: #b98a92;
  --line: rgba(255, 255, 255, 0.13);
  --accent-text: #ff7487;
  --eyebrow-bg: rgba(255, 255, 255, 0.09);
  --tag-bg: rgba(255, 255, 255, 0.07);
  --tag-text: #ffe6e9;
  --glow-1: rgba(232, 40, 63, 0.22);
  --glow-2: rgba(200, 16, 46, 0.18);
  --shadow-hover: rgba(0, 0, 0, 0.35);
  --frame-shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- 2. BASE (scoped) ---------- */
.prx,
.prx *,
.prx *::before,
.prx *::after {
  box-sizing: border-box;
}

.prx {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
  padding-block: clamp(70px, 9vw, 120px);
  content-visibility: auto; /* smoother scroll */
  contain-intrinsic-size: auto 800px;
  transition: background-color 0.3s ease;
}
.prx h2,
.prx h3,
.prx p,
.prx ul {
  margin: 0;
  padding: 0;
}
.prx ul {
  list-style: none;
}
.prx img {
  display: block;
  max-width: 100%;
  height: auto;
}

.prx-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

/* ---------- 3. SHARED ---------- */
.prx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--eyebrow-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.prx-dot,
.prx-live {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.prx-dot::after,
.prx-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: prx-ping 2.2s ease-out infinite;
}
@keyframes prx-ping {
  from {
    transform: scale(1);
    opacity: 0.55;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}

.prx-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--head);
  text-wrap: balance;
}
.prx-title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-text);
}
.prx-title--light {
  color: var(--head);
}
.prx-title--light em {
  display: inline;
  color: var(--accent-text);
}

/* ---------- 4. SECTION 1: WHY US (white) ---------- */
.prx-why {
  background:
    /* radial-gradient(60% 50% at 0% 0%, var(--glow-1), transparent 70%),
    radial-gradient(45% 40% at 100% 100%, var(--glow-2), transparent 70%), */ var(
    --bg
  );
}

.prx-head {
  max-width: 860px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.prx-head .prx-title {
  margin: 22px 0 20px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.prx-lede {
  max-width: 64ch;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.8;
  color: var(--muted);
}

.prx-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* card */
.prx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.prx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 24px 40px -18px var(--shadow-hover);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.prx-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-b));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.prx-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 16, 46, 0.4);
}
.prx-card:hover::after {
  opacity: 1;
}
.prx-card:hover::before {
  transform: scaleX(1);
}

.prx-num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--num);
}

.prx-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--red-b), var(--red-d));
  box-shadow:
    0 8px 0 -2px var(--red-dd),
    0 14px 20px -8px rgba(143, 11, 33, 0.45);
  flex-shrink: 0;
  transition: transform 0.45s var(--ease);
}
.prx-icon svg {
  width: 25px;
  height: 25px;
}
.prx-card:hover .prx-icon {
  transform: translateY(-3px) rotate(-4deg);
}

.prx-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--head);
}
.prx-card p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
}
.prx-card p strong {
  color: var(--accent-text);
  font-weight: 600;
}

/* feature card (red in both themes) */
.prx-card--feature {
  background: linear-gradient(
    155deg,
    var(--red) 0%,
    var(--red-d) 60%,
    var(--red-dd) 100%
  );
  border-color: transparent;
}
.prx-card--feature .prx-num {
  color: rgba(255, 255, 255, 0.6);
}
.prx-card--feature h3 {
  font-size: 1.8rem;
  color: #fff;
}
.prx-card--feature p {
  max-width: 40ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
}
.prx-card--feature .prx-icon {
  color: var(--red-d);
  background: linear-gradient(145deg, #fff, #ffe1e4);
  box-shadow:
    0 8px 0 -2px rgba(90, 6, 20, 0.6),
    0 14px 20px -8px rgba(90, 6, 20, 0.5);
}
.prx-watermark {
  position: absolute;
  right: -10px;
  bottom: -34px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 220px;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

@media (min-width: 700px) {
  .prx-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .prx-card--feature,
  .prx-card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1000px) {
  .prx-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(215px, auto);
  }
  .prx-card:nth-child(1) {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
    justify-content: flex-end;
  }
  .prx-card:nth-child(2) {
    grid-column: 8 / span 5;
    grid-row: 1;
  }
  .prx-card:nth-child(3) {
    grid-column: 8 / span 5;
    grid-row: 2;
  }
  .prx-card:nth-child(4) {
    grid-column: 1 / span 4;
    grid-row: 3;
  }
  .prx-card:nth-child(5) {
    grid-column: 5 / span 8;
    grid-row: 3;
  }

  .prx-card--feature .prx-icon {
    width: 64px;
    height: 64px;
  }
  .prx-card--feature .prx-icon svg {
    width: 30px;
    height: 30px;
  }

  .prx-card--wide {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 26px;
    row-gap: 6px;
    align-content: center;
  }
  .prx-card--wide .prx-icon {
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
  }
  .prx-card--wide h3 {
    align-self: end;
    margin: 0;
  }
  .prx-card--wide p {
    max-width: 54ch;
  }
}

/* ---------- 5. SECTION 2: PARTNER (soft rose / wine) ---------- */
.prx-partner {
  /* background: var(--bg-soft); */
}

.prx-split {
  display: grid;
  gap: 52px;
  align-items: center;
}
@media (min-width: 1000px) {
  .prx-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(56px, 6vw, 100px);
  }
}

.prx-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.prx-copy .prx-title {
  margin: 24px 0 28px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.prx-prose p {
  max-width: 56ch;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
}
.prx-prose p + p {
  margin-top: 16px;
}

.prx-loc {
  width: 100%;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.prx-loc-label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--num);
}
.prx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.prx-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tag-text);
  background: var(--tag-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.prx-tag:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}
.prx-tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.prx-tag--primary {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--red-b), var(--red-d));
  border-color: transparent;
  box-shadow: 0 8px 16px -8px rgba(143, 11, 33, 0.55);
}

/* visual */
.prx-visual {
  position: relative;
  padding: 0 0 24px 24px;
}
.prx-visual::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border: 2px solid var(--red-b);
  border-radius: var(--r-lg);
  transition: transform 0.6s var(--ease);
}
.prx-visual:hover::before {
  transform: translate(-6px, 6px);
}

.prx-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  background: var(--bg-tint);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 60px -30px var(--frame-shadow);
}
.prx-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.prx-visual:hover .prx-frame img {
  transform: scale(1.04);
}
.prx-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(143, 11, 33, 0.45));
  pointer-events: none;
}

.prx-badge {
  position: absolute;
  z-index: 2;
  left: 44px;
  right: 20px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 28px -12px rgba(143, 11, 33, 0.45);
}
.prx-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--head);
}
.prx-live {
  color: var(--red);
}

/* ---------- 6. SECTION 3: CTA (FULL WIDTH) ---------- */
/* section + wrapper lose all width limits and spacing */
.prx-cta {
  padding: 0;
  background: var(--red-d);
}
.prx-cta .prx-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* the red band: edge to edge */
.prx-cta-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(70px, 9vw, 50px) clamp(20px, 6vw, 50px);
  text-align: center;
  color: #fff;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(50% 90% at 12% 0%, #ee3a50 0%, transparent 60%),
    radial-gradient(
      40% 80% at 95% 100%,
      rgba(255, 120, 135, 0.28) 0%,
      transparent 65%
    ),
    linear-gradient(140deg, #c8102e 0%, #a30d25 55%, #7a0a1c 100%);
  /* 3D edge drawn inside, so it is never clipped */
  box-shadow:
    inset 0 10px 0 -4px rgba(255, 255, 255, 0.22),
    inset 0 -12px 0 rgba(90, 6, 20, 0.4);
}
/* wood-grain lines */
.prx-cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.05) 0 2px,
    transparent 2px 18px
  );
  pointer-events: none;
  z-index: -1;
}
/* decorative ring (right) */
.prx-cta-box::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 340px;
  height: 340px;
  border: 44px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* keep text readable inside the wide band */
.prx-cta-box > * {
  max-width: 980px;
}

/* eyebrow inside the red box stays gold/white in both themes */
.prx-cta-box .prx-eyebrow {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.prx-cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 3px 0 rgba(90, 6, 20, 0.5);
  text-wrap: balance;
}
.prx-cta-title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.prx-cta-text {
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}
.prx-cta-text strong {
  color: var(--gold);
  font-weight: 600;
}

.prx-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

/* second ring (left), wide screens only */
@media (min-width: 1100px) {
  .prx-cta-box .prx-cta-actions::before {
    content: "";
    position: absolute;
    left: -120px;
    top: -140px;
    width: 380px;
    height: 380px;
    border: 44px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
  }
}

/* 3D press buttons */
.prx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 34px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.prx-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.prx-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  z-index: -1;
}
.prx-btn:hover::before {
  transform: translateX(120%);
}

/* white button */
.prx-btn--light {
  color: var(--red);
  background: linear-gradient(180deg, #ffffff, #ffe6e9);
  box-shadow:
    0 7px 0 #e6a9b1,
    0 16px 22px -8px rgba(90, 6, 20, 0.5);
}
/* deep-red button */
.prx-btn--dark {
  color: #fff;
  background: linear-gradient(180deg, #e8283f, #b30d27);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 7px 0 #6e0818,
    0 16px 22px -8px rgba(90, 6, 20, 0.55);
}
.prx-btn:hover {
  transform: translateY(-3px);
}
.prx-btn--light:hover {
  box-shadow:
    0 10px 0 #e6a9b1,
    0 22px 28px -8px rgba(90, 6, 20, 0.5);
}
.prx-btn--dark:hover {
  box-shadow:
    0 10px 0 #6e0818,
    0 22px 28px -8px rgba(90, 6, 20, 0.55);
}
.prx-btn:active {
  transform: translateY(5px);
}
.prx-btn--light:active {
  box-shadow:
    0 2px 0 #e6a9b1,
    0 6px 10px rgba(90, 6, 20, 0.4);
}
.prx-btn--dark:active {
  box-shadow:
    0 2px 0 #6e0818,
    0 6px 10px rgba(90, 6, 20, 0.45);
}
.prx-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- 7. RESPONSIVE ---------- */
@media (max-width: 999px) {
  .prx-visual {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .prx-frame {
    aspect-ratio: 4 / 4.2;
  }
}

@media (max-width: 640px) {
  .prx-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
  .prx-card {
    min-height: 190px;
    padding: 24px;
  }
  .prx-card--feature h3 {
    font-size: 1.5rem;
  }
  .prx-watermark {
    font-size: 150px;
    bottom: -20px;
  }

  .prx-visual {
    padding: 0 0 16px 16px;
  }
  .prx-visual::before {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 22px;
  }
  .prx-frame {
    border-radius: 22px;
  }
  .prx-badge {
    left: 30px;
    right: 12px;
    bottom: 28px;
    padding: 12px 14px;
    font-size: 0.76rem;
  }

  .prx-tag {
    padding: 8px 14px;
    font-size: 0.74rem;
  }

  .prx-cta-box {
    padding: 64px 20px;
  }
  .prx-cta-title {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
  }
  .prx-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .prx-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- 8. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .prx *,
  .prx *::before,
  .prx *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
