@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Sans:wght@300;400;700&family=Ubuntu+Sans+Mono:wght@500&display=swap");

:root {
  --bg: #1d1c1f;
  --panel: #2a262d;
  --header: #2c2830;
  --surface: #1a191c;
  --text: #ffffff;
  --muted: #d7d0dc;
  --dim: #8d8492;
  --accent: #c9238d;
  --accent-glow: rgba(201, 35, 141, 0.68);
  --accent-hover: #df32a2;
  --line: #39323f;
  --shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  --radius-xl: 20px;
  --radius-md: 8px;
  --frame-width: 1280px;
  --content-width: 1100px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Ubuntu Sans", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar, .footer { background: var(--header); }
.topbar__inner, .footer__inner, .page__inner {
  width: min(calc(100% - 32px), var(--frame-width));
  margin: 0 auto;
}

.topbar__inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: grid; gap: 6px; }
.brand__home { width: fit-content; }
.brand__title {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  font-size: clamp(2.75rem, 4.6vw, 4rem);
  line-height: 0.92;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
  text-shadow: var(--shadow);
}
.brand__accent { color: var(--accent); }

.ip-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.ip-copy__label {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  font-stretch: 75%;
}
.ip-copy__value {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Ubuntu Sans Mono", monospace;
  border-radius: 6px;
  padding: 1px 5px;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.ip-copy:hover .ip-copy__value,
.ip-copy:focus-visible .ip-copy__value {
  color: #fff;
  background: rgba(201, 35, 141, 0.18);
  box-shadow: 0 0 0 1px rgba(201, 35, 141, 0.35);
}
.ip-copy__hint {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: .95rem;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.ip-copy.is-copied .ip-copy__hint { opacity: 1; }

.nav-wrap, .nav, .socials {
  display: flex;
  align-items: center;
}
.nav-wrap { gap: 32px; }
.nav { gap: 42px; }
.nav__link {
  font-size: 1.125rem;
  color: #f2edf4;
  font-stretch: 75%;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  transition: text-decoration-color .2s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] {
  text-decoration-color: currentColor;
}
.socials { gap: 14px; }
.socials svg, .socials img { display: block; fill: currentColor; }
.socials a:first-child svg,
.socials a:first-child img {
  width: 30px;
  height: 25px;
}
.socials a:last-child svg,
.socials a:last-child img {
  width: 28px;
  height: 21px;
}

.page {
  flex: 1;
  padding: 39px 0 85px;
}
.page__inner { width: min(calc(100% - 32px), var(--content-width)); }
.page__inner--legal { width: min(calc(100% - 32px), 980px); }

.stack { display: grid; gap: 34px; }
.stack--home { gap: 24px; }
.stack--donate { gap: 36px; }

.card {
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.news-card { padding: 19px; }
.news-card--featured {
  display: grid;
  grid-template-columns: 383px minmax(0, 1fr);
  gap: 40px;
  min-height: 431px;
}
.news-card__image {
  width: 383px;
  height: 379px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface);
}
.news-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 0 6px 0;
}
.news-card__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 700;
}
.news-card__text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 1.68vw, 2rem);
  line-height: 1.28;
}
.news-card__meta {
  margin: auto 0 0;
  text-align: right;
  color: var(--dim);
  font-size: 1.05rem;
}
.news-card--compact { min-height: 203px; }
.news-card--compact .news-card__content { padding: 6px 0 0; }
.news-card__footer {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.news-card__link, .product-card__link { color: var(--accent); }
.news-card__link:hover, .product-card__link:hover { color: var(--accent-hover); }

.info-banner {
  padding: 24px 28px;
  min-height: 142px;
}
.info-banner__title {
  display: block;
  margin-bottom: 4px;
  font-size: 1.3rem;
  font-weight: 700;
}
.info-banner__text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.52vw, 1.45rem);
  line-height: 1.3;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  font-weight: 700;
}

.selector-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  column-gap: 42px;
  row-gap: 24px;
  align-items: center;
}
.selector-group { display: grid; gap: 26px; }
.selector-group--rules { max-width: 474px; margin: 0 auto; }
.selector-divider {
  align-self: stretch;
  background: var(--line);
  min-height: 142px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 17px;
}
.pill-row--left { justify-content: flex-start; }
.pill {
  min-width: 140px;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 20px;
  background: #312d35;
  color: #d4cfda;
  font-size: 1.18rem;
  font-stretch: 75%;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.products-section { display: grid; gap: 28px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.product-card {
  min-height: 352px;
  padding: 17px 19px 18px;
  display: grid;
  gap: 18px;
}
.product-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.product-card__title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1;
  font-weight: 700;
}
.product-card__price {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1;
}
.product-card__price span {
  font-size: 1.75rem;
}
.product-card__icon {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: #696969;
  font-size: 2.1rem;
}
.product-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 1.12rem;
  font-stretch: 75%;
  line-height: 1.25;
}
.product-card__features li::before { content: "| "; }
.product-card__link { font-size: 1.12rem; }

.btn {
  width: 100%;
  height: 43px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #de2c9c 0%, #c9238d 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

.rules-card { padding: 22px 22px 24px; }
.rules-list {
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.5vw, 1.45rem);
  line-height: 1.35;
}
.rules-list > li + li { margin-top: 24px; }
.rules-list strong {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.3em;
}
.rules-list ol { margin: 0; padding-left: 22px; }

.legal-card {
  padding: 28px;
  display: grid;
  gap: 20px;
}
.legal-card__frame {
  width: min(100%, 820px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(26, 25, 28, 0.32);
}
.legal-card__title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}
.legal-card__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}
.legal-card__section h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}
.legal-card__section p,
.legal-card__section li {
  color: var(--muted);
  line-height: 1.6;
}
.legal-card__section ul { margin: 0; padding-left: 20px; }

.notice {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(10, 9, 12, 0.72);
  padding: 24px;
}
.notice.is-open { display: grid; place-items: center; }
.notice__dialog {
  width: min(100%, 520px);
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.notice__title { margin: 0 0 10px; font-size: 1.65rem; }
.notice__text { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.notice__actions { display: flex; justify-content: flex-end; }

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  z-index: 40;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(201, 35, 141, 0.16);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(201, 35, 141, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer__inner {
  min-height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 20px 0 24px;
  gap: 24px;
}
.footer__meta, .footer__contact { display: grid; gap: 7px; }
.footer__meta p, .footer__contact p { margin: 0; }
.footer__meta { color: var(--text); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
.footer__links a {
  color: var(--muted);
  font-size: .98rem;
}
.footer__links a:hover { color: var(--accent); }
.footer__contact {
  justify-items: end;
  text-align: right;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }
  .nav-wrap { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
  .news-card--featured { grid-template-columns: 320px minmax(0, 1fr); }
  .news-card__image { width: 320px; height: 320px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .page { padding: 28px 0 56px; }
  .topbar__inner, .footer__inner, .page__inner {
    width: min(calc(100% - 24px), var(--frame-width));
  }
  .nav { flex-wrap: wrap; gap: 18px 28px; }
  .news-card--featured,
  .selector-grid,
  .product-grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .news-card--featured {
    min-height: auto;
    gap: 20px;
  }
  .news-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 383 / 379;
  }
  .selector-divider { display: none; }
  .pill-row--left { justify-content: center; }
  .footer__contact { justify-items: start; text-align: left; }
}

@media (max-width: 560px) {
  .brand__title {
    font-size: 2.6rem;
    text-underline-offset: 6px;
  }
  .ip-copy {
    display: grid;
    justify-items: start;
    gap: 2px;
  }
  .ip-copy__hint {
    left: 0;
    top: calc(100% + 4px);
    transform: none;
  }
  .news-card,
  .rules-card,
  .legal-card,
  .info-banner,
  .product-card {
    padding: 16px;
  }
  .legal-card__frame {
    width: 100%;
    padding: 18px;
  }
  .news-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .pill {
    width: 100%;
    min-width: 0;
  }
  .product-card__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-card__icon {
    width: 84px;
    height: 84px;
    font-size: 1.8rem;
  }
  .footer__links {
    flex-direction: column;
    gap: 10px;
  }
}
