:root {
  --pr-ink: #17243a;
  --pr-muted: #637087;
  --pr-navy: #10233f;
  --pr-blue: #3e8cff;
  --pr-cyan: #57d9f2;
  --pr-mint: #54d7b6;
  --pr-gold: #ffc94b;
  --pr-panel: #f1f8ff;
  --pr-border: rgba(38, 78, 126, 0.16);
  --pr-shadow: 0 24px 70px rgba(14, 44, 84, 0.16);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.piggyrun-home-teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(87, 217, 242, 0.4), transparent 32%),
    linear-gradient(135deg, #10233f 0%, #18477b 58%, #2876b4 100%);
  border-radius: 32px;
  box-shadow: var(--pr-shadow);
}

.piggyrun-home-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
  mask-image: linear-gradient(to left, #000, transparent 70%);
}

.piggyrun-home-teaser__copy,
.piggyrun-home-teaser__visual {
  position: relative;
  z-index: 1;
}

.piggyrun-home-teaser__copy h2 {
  margin: 16px 0 12px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.piggyrun-home-teaser__copy p {
  max-width: 650px;
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
}

.piggyrun-home-teaser__visual {
  min-height: 300px;
}

.piggyrun-home-teaser__visual img:first-child {
  position: absolute;
  top: 20px;
  right: 20px;
  width: min(78%, 360px);
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.22));
}

.piggyrun-home-teaser__visual img:last-child {
  position: absolute;
  right: 15%;
  bottom: -32px;
  width: min(62%, 280px);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
}

.pr-page {
  width: min(100%, 1500px);
  margin: 0 auto;
  color: var(--pr-ink);
  overflow: hidden;
}

.pr-page *,
.pr-page *::before,
.pr-page *::after {
  box-sizing: border-box;
}

.pr-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  min-height: 700px;
  padding: clamp(48px, 7vw, 100px);
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #10233f;
  border-radius: 0 0 44px 44px;
}

.pr-hero__backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(10, 28, 53, 0.97) 0%, rgba(12, 41, 76, 0.88) 47%, rgba(18, 50, 83, 0.28) 100%), url('../img/piggyrun/home.png');
  background-position: center, center 43%;
  background-size: cover;
}

.pr-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 620px;
  height: 620px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: rgba(87, 217, 242, 0.22);
  filter: blur(10px);
}

.pr-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.36;
  background-image: radial-gradient(rgba(255,255,255,0.32) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 25%, #000 100%);
}

.pr-hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
}

.pr-hero__logo {
  width: min(360px, 72%);
  margin-bottom: 28px;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,0.26));
}

.pr-kicker {
  display: inline-block;
  color: var(--pr-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pr-hero .pr-kicker {
  color: var(--pr-cyan);
}

.pr-hero h1 {
  max-width: 720px;
  margin: 14px 0 20px;
  color: #fff;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.pr-hero__content > p {
  max-width: 680px;
  margin: 0 0 30px;
  color: rgba(255,255,255,0.84);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}

.pr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pr-hero .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}

.pr-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.pr-hero__tags span {
  padding: 9px 13px;
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(10, 28, 53, 0.38);
  backdrop-filter: blur(12px);
}

.pr-hero__character {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.pr-hero__character::before {
  content: "";
  position: absolute;
  width: min(82%, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87,217,242,0.55), rgba(62,140,255,0.14) 54%, transparent 72%);
  filter: blur(8px);
}

.pr-hero__character img {
  position: relative;
  z-index: 3;
  width: min(92%, 520px);
  animation: pr-float 5s ease-in-out infinite;
  filter: drop-shadow(0 38px 40px rgba(0,0,0,0.36));
}

.pr-orbit {
  position: absolute;
  z-index: 1;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
}

.pr-orbit--two {
  width: 94%;
  border-color: rgba(87,217,242,0.2);
}

@keyframes pr-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pr-hero__character img { animation: none; }
  .pr-chat__header span i { animation: none !important; }
}

.pr-section {
  padding: clamp(72px, 9vw, 130px) clamp(24px, 7vw, 100px);
}

.pr-section__heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.pr-section__heading h2,
.pr-character__copy h2,
.pr-ai__intro h2,
.pr-final-cta h2 {
  margin: 10px 0 16px;
  color: var(--pr-ink);
  font-size: clamp(2.25rem, 4.6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.pr-section__heading p,
.pr-character__copy > p,
.pr-ai__intro > p {
  color: var(--pr-muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.pr-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pr-feature-card {
  position: relative;
  min-height: 390px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--pr-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(23, 54, 90, 0.08);
}

.pr-feature-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -74px;
  top: -74px;
  border-radius: 50%;
  background: var(--pr-panel);
}

.pr-feature-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 32px;
  border-radius: 28px;
  background: var(--pr-panel);
}

.pr-feature-card__icon img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(23,54,90,0.15));
}

.pr-feature-card > span {
  color: var(--pr-blue);
  font-weight: 900;
}

.pr-feature-card h3 {
  margin: 10px 0 12px;
  color: var(--pr-ink);
  font-size: 1.5rem;
}

.pr-feature-card p {
  margin: 0;
  color: var(--pr-muted);
  line-height: 1.65;
}

.pr-modes {
  color: #fff;
  background: linear-gradient(145deg, #10233f, #163d6a 58%, #1f5f8f);
}

.pr-section__heading--light h2,
.pr-section__heading--light p {
  color: #fff;
}

.pr-section__heading--light .pr-kicker {
  color: var(--pr-cyan);
}

.pr-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pr-mode-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 390px;
  padding: 34px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  box-shadow: 0 22px 55px rgba(4, 20, 43, 0.32);
}

.pr-mode-card__background,
.pr-mode-card__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pr-mode-card__background {
  object-fit: cover;
  object-position: center;
}

.pr-mode-card__shade {
  z-index: -1;
  background: linear-gradient(to top, rgba(6,23,47,0.96) 0%, rgba(6,23,47,0.5) 54%, rgba(6,23,47,0.06) 100%);
}

.pr-mode-card__art {
  position: absolute;
  z-index: -1;
  top: 26px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87,217,242,0.3), transparent 67%);
}

.pr-mode-card--season .pr-mode-card__art {
  background: radial-gradient(circle, rgba(255,201,75,0.32), transparent 67%);
}

.pr-mode-card__art img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,0.35));
}

.pr-mode-card__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.pr-mode-card__content strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.pr-mode-card__content p {
  max-width: 500px;
  margin: 0;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

.pr-character {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.pr-character__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.pr-character__glow {
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87,217,242,0.35), rgba(62,140,255,0.1) 54%, transparent 72%);
}

.pr-character__visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  filter: drop-shadow(0 35px 35px rgba(15,43,78,0.2));
}

.pr-check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pr-check-list li {
  position: relative;
  padding: 13px 18px 13px 50px;
  font-weight: 700;
  border: 1px solid var(--pr-border);
  border-radius: 16px;
  background: #fff;
}

.pr-check-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 50%;
  background: var(--pr-mint);
}

.pr-ai {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(87,217,242,0.18), transparent 30%),
    linear-gradient(135deg, #f4faff, #eaf5ff);
}

.pr-ai__privacy {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding: 20px;
  border-left: 4px solid var(--pr-mint);
  border-radius: 0 16px 16px 0;
  background: rgba(255,255,255,0.78);
}

.pr-ai__privacy span {
  color: var(--pr-muted);
  line-height: 1.5;
}

.pr-chat {
  overflow: hidden;
  border: 1px solid rgba(62,140,255,0.18);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--pr-shadow);
}

.pr-chat__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--pr-navy), #245d97);
}

.pr-chat__avatar {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 18px;
  background: var(--pr-panel);
}

.pr-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pr-chat__header strong,
.pr-chat__header span {
  display: block;
}

.pr-chat__header strong {
  font-size: 1.1rem;
}

.pr-chat__header span {
  margin-top: 4px;
  color: rgba(255,255,255,0.74);
  font-size: 0.84rem;
}

.pr-chat__header span i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #64e6b7;
  animation: pr-pulse 1.8s ease-in-out infinite;
}

@keyframes pr-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(100,230,183,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(100,230,183,0); }
}

.pr-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 270px;
  max-height: 390px;
  padding: 22px;
  overflow-y: auto;
  background: linear-gradient(180deg, #fbfdff, #f4f9ff);
}

.pr-message {
  max-width: 84%;
  padding: 13px 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  border-radius: 18px;
  white-space: pre-wrap;
}

.pr-message--assistant {
  align-self: flex-start;
  color: var(--pr-ink);
  border: 1px solid var(--pr-border);
  border-bottom-left-radius: 5px;
  background: #fff;
}

.pr-message--user {
  align-self: flex-end;
  color: #fff;
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, var(--pr-blue), #2871d5);
}

.pr-message--loading {
  color: var(--pr-muted);
}

.pr-message__action {
  margin-top: 10px;
  padding: 7px 11px;
  color: #2868b1;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(62,140,255,0.24);
  border-radius: 999px;
  background: #f4f9ff;
}

.pr-message__action:hover,
.pr-message__action:focus-visible {
  color: #fff;
  background: var(--pr-blue);
  outline: none;
}

.pr-chat__suggestions {
  display: flex;
  gap: 8px;
  padding: 12px 18px 4px;
  overflow-x: auto;
  background: #fff;
}

.pr-chat__suggestions button {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #2868b1;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(62,140,255,0.24);
  border-radius: 999px;
  background: #f4f9ff;
}

.pr-chat__suggestions button:hover,
.pr-chat__suggestions button:focus-visible {
  color: #fff;
  background: var(--pr-blue);
  outline: none;
}

.pr-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 18px 8px;
  background: #fff;
}

.pr-chat__form input {
  min-width: 0;
  padding: 13px 16px;
  color: var(--pr-ink);
  font: inherit;
  border: 1px solid rgba(34,74,118,0.2);
  border-radius: 16px;
  background: #f8fbff;
}

.pr-chat__form input:focus {
  border-color: var(--pr-blue);
  box-shadow: 0 0 0 3px rgba(62,140,255,0.12);
  outline: none;
}

.pr-chat__form button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--pr-blue), #276fd1);
}

.pr-chat__form button:disabled,
.pr-chat__form input:disabled {
  cursor: wait;
  opacity: 0.62;
}

.pr-chat__status {
  min-height: 24px;
  margin: 0;
  padding: 0 20px 12px;
  color: var(--pr-muted);
  font-size: 0.76rem;
  background: #fff;
}

.pr-faq {
  background: #fff;
}

.pr-faq__list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.pr-faq details {
  padding: 0 22px;
  border: 1px solid var(--pr-border);
  border-radius: 18px;
  background: #fff;
}

.pr-faq summary {
  position: relative;
  padding: 20px 36px 20px 0;
  color: var(--pr-ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.pr-faq summary::-webkit-details-marker { display: none; }

.pr-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--pr-blue);
  font-size: 1.35rem;
  border-radius: 50%;
  background: var(--pr-panel);
}

.pr-faq details[open] summary::after { content: "–"; }

.pr-faq details p {
  margin: 0;
  padding: 0 44px 22px 0;
  color: var(--pr-muted);
  line-height: 1.65;
}

.pr-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 clamp(20px, 5vw, 70px) clamp(40px, 7vw, 90px);
  padding: clamp(34px, 5vw, 68px);
  color: #fff;
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(87,217,242,0.38), transparent 30%),
    linear-gradient(135deg, var(--pr-navy), #225c94);
  box-shadow: var(--pr-shadow);
}

.pr-final-cta .pr-kicker { color: var(--pr-cyan); }
.pr-final-cta h2 { max-width: 900px; color: #fff; }
.pr-final-cta .btn { flex: 0 0 auto; }

@media (max-width: 1050px) {
  .pr-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pr-hero__character {
    position: absolute;
    right: -90px;
    bottom: -70px;
    width: 440px;
    opacity: 0.48;
  }

  .pr-hero__content { max-width: 760px; }
  .pr-feature-grid { grid-template-columns: 1fr; }
  .pr-feature-card { min-height: 0; }
  .pr-character,
  .pr-ai { grid-template-columns: 1fr; }
  .pr-character__visual { min-height: 400px; }
  .pr-ai__intro { max-width: 820px; }
}

@media (max-width: 760px) {
  .piggyrun-home-teaser {
    grid-template-columns: 1fr;
  }

  .piggyrun-home-teaser__visual {
    min-height: 260px;
  }

  .pr-hero {
    min-height: 720px;
    padding: 44px 22px;
    border-radius: 0 0 28px 28px;
  }

  .pr-hero__backdrop {
    background-image: linear-gradient(180deg, rgba(10,28,53,0.96) 0%, rgba(10,31,58,0.88) 64%, rgba(10,31,58,0.5) 100%), url('../img/piggyrun/home.png');
  }

  .pr-hero__character {
    right: -50px;
    bottom: -56px;
    width: 330px;
    min-height: 330px;
    opacity: 0.72;
  }

  .pr-hero__logo { width: min(300px, 78%); }
  .pr-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .pr-actions { align-items: stretch; flex-direction: column; }
  .pr-actions .btn { justify-content: center; width: 100%; }
  .pr-section { padding: 70px 20px; }
  .pr-feature-card { padding: 26px; }
  .pr-mode-grid { grid-template-columns: 1fr; }
  .pr-mode-card { min-height: 340px; padding: 26px; }
  .pr-character__visual { min-height: 300px; }
  .pr-ai { padding-top: 70px; }
  .pr-message { max-width: 92%; }
  .pr-chat__suggestions { padding-left: 14px; }
  .pr-final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 24px;
    border-radius: 24px;
  }
}

@media (max-width: 430px) {
  .pr-hero { min-height: 760px; }
  .pr-hero__tags { gap: 7px; }
  .pr-hero__tags span { padding: 7px 10px; font-size: 0.74rem; }
  .pr-chat__header { padding: 14px; }
  .pr-chat__messages { min-height: 300px; padding: 14px; }
  .pr-chat__form { padding: 12px 12px 7px; }
  .pr-chat__status { padding-inline: 14px; }
}
