/* PLUMBERS ecosystem home — dark workshop chrome with a warm, readable workspace. */

.portal-home {
  --shell: 1180px;
  min-height: 100vh;
  color: #14253a;
  background:
    radial-gradient(circle at 10% 18%, rgb(255 255 255 / 72%), transparent 28%),
    radial-gradient(circle at 92% 48%, rgb(195 111 61 / 10%), transparent 26%),
    #eee3ce;
}

.portal-home::before {
  opacity: 0.45;
}

.portal-home .section-shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.portal-hero {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 32px), 1240px);
  min-height: 620px;
  margin: 14px auto 0;
  overflow: hidden;
  color: #fff8e9;
  background:
    radial-gradient(circle at 77% 40%, rgb(239 195 92 / 17%), transparent 25%),
    linear-gradient(122deg, rgb(255 255 255 / 5%), transparent 35%),
    linear-gradient(145deg, #102f49 0%, #071827 57%, #050e17 100%);
  border: 1px solid rgb(239 195 92 / 22%);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgb(5 18 29 / 28%);
}

.portal-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgb(255 255 255 / 2.8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.8%) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(90deg, black, transparent 76%);
}

.portal-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  min-height: 620px;
  padding: clamp(54px, 7vw, 88px);
}

.portal-hero__copy {
  position: relative;
  z-index: 5;
  max-width: 680px;
}

.portal-hero h1 {
  margin: 0;
  color: #fff8e9;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 7.6vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
  text-wrap: balance;
}

.portal-hero__copy > p {
  max-width: 630px;
  margin: 31px 0 0;
  color: #d8d8d2;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.62;
}

.portal-hero__actions {
  display: flex;
  align-items: center;
  margin-top: 34px;
  gap: 22px;
  flex-wrap: wrap;
}

.portal-hero__actions .button {
  min-height: 54px;
  padding-inline: 23px;
  font-size: 1rem;
}

.portal-text-link {
  color: #fff8e9;
  font-size: 1rem;
  font-weight: 750;
  text-decoration-color: rgb(255 248 233 / 38%);
  text-underline-offset: 5px;
}

.portal-text-link span {
  margin-left: 6px;
  color: #efaa73;
}

.portal-hero__art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 51%;
}

.portal-hero__art img {
  position: absolute;
  right: 2%;
  bottom: -5%;
  z-index: 3;
  width: min(88%, 510px);
  height: 106%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 30px 20px rgb(0 0 0 / 34%));
}

.portal-hero__ring {
  position: absolute;
  top: 16%;
  right: 9%;
  width: min(33vw, 390px);
  aspect-ratio: 1;
  border: 2px solid rgb(239 195 92 / 20%);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgb(239 195 92 / 8%), 0 0 90px rgb(239 195 92 / 9%);
}

.portal-hero__ring::before,
.portal-hero__ring::after {
  position: absolute;
  inset: 12%;
  border: 1px solid rgb(239 195 92 / 13%);
  border-radius: inherit;
  content: "";
}

.portal-hero__ring::after {
  inset: 28%;
}

.portal-hero__pipes i {
  position: absolute;
  z-index: 1;
  height: 13px;
  background: linear-gradient(#efa975 0 18%, #87401f 23% 67%, #d98956 72% 100%);
  border: 1px solid #4d2414;
  border-radius: 999px;
  box-shadow: 0 8px 15px rgb(0 0 0 / 27%);
  opacity: 0.57;
}

.portal-hero__pipes i:nth-child(1) { top: 23%; right: -3%; width: 43%; transform: rotate(-7deg); }
.portal-hero__pipes i:nth-child(2) { top: 47%; right: 2%; width: 29%; transform: rotate(20deg); }
.portal-hero__pipes i:nth-child(3) { right: -4%; bottom: 19%; width: 40%; transform: rotate(5deg); }

.portal-explore {
  padding-block: clamp(88px, 10vw, 132px) clamp(78px, 9vw, 112px);
}

.portal-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.65fr);
  align-items: end;
  margin-bottom: 34px;
  gap: 46px;
}

.portal-section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.4vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.portal-section-heading > p {
  max-width: 470px;
  margin: 0 0 5px;
  color: #586777;
  font-size: 1.08rem;
  line-height: 1.6;
}

.portal-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.portal-group {
  min-width: 0;
  padding: 28px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 80%), rgb(255 250 240 / 60%)),
    #fffaf0;
  border: 1px solid rgb(20 37 58 / 14%);
  border-radius: 24px;
  box-shadow: 0 15px 38px rgb(38 31 22 / 9%);
}

.portal-group--casino {
  color: #fff8e9;
  background:
    radial-gradient(circle at 92% 0%, rgb(239 195 92 / 15%), transparent 34%),
    linear-gradient(150deg, #522523, #1a1c2a 54%, #091a29);
  border-color: rgb(239 195 92 / 20%);
  box-shadow: 0 19px 48px rgb(33 17 20 / 19%);
}

.portal-group h3 {
  margin: 0 0 19px;
  color: inherit;
  font-family: var(--font-slab);
  font-size: 1.42rem;
  line-height: 1.2;
}

.portal-route {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 116px;
  padding: 17px 14px;
  gap: 14px;
  color: inherit;
  border-top: 1px solid rgb(20 37 58 / 13%);
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.portal-group--casino .portal-route {
  border-color: rgb(255 255 255 / 12%);
}

.portal-route:last-child {
  border-bottom: 1px solid rgb(20 37 58 / 13%);
}

.portal-group--casino .portal-route:last-child {
  border-color: rgb(255 255 255 / 12%);
}

.portal-route:hover,
.portal-route:focus-visible {
  background: rgb(199 120 67 / 9%);
  border-radius: 15px;
  outline: none;
  transform: translateX(3px);
}

.portal-group--casino .portal-route:hover,
.portal-group--casino .portal-route:focus-visible {
  background: rgb(255 255 255 / 7%);
}

.portal-route__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #914c2b;
  background: rgb(199 120 67 / 10%);
  border: 1px solid rgb(145 76 43 / 18%);
  border-radius: 15px;
}

.portal-group--casino .portal-route__icon {
  color: #efb17f;
  background: rgb(255 255 255 / 7%);
  border-color: rgb(239 177 127 / 18%);
}

.portal-route__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.portal-route > span:nth-child(2) {
  display: grid;
  gap: 6px;
}

.portal-route strong {
  font-family: var(--font-slab);
  font-size: 1.08rem;
  line-height: 1.15;
}

.portal-route small {
  color: #637080;
  font-size: 0.94rem;
  line-height: 1.42;
}

.portal-group--casino .portal-route small {
  color: #c9c6c1;
}

.portal-route > i {
  color: #a6552e;
  font-size: 1.45rem;
  font-style: normal;
}

.portal-group--casino .portal-route > i {
  color: #efad77;
}

.portal-claim {
  position: relative;
  overflow: hidden;
  padding-block: clamp(78px, 9vw, 112px);
  color: #fff8e9;
  background:
    radial-gradient(circle at 8% 0%, rgb(201 116 65 / 14%), transparent 30%),
    linear-gradient(145deg, #0d2941, #06131f 66%);
  border-block: 1px solid rgb(239 195 92 / 19%);
}

.portal-claim::after {
  position: absolute;
  right: -130px;
  bottom: -230px;
  width: 520px;
  height: 520px;
  border: 58px solid rgb(199 120 67 / 9%);
  border-radius: 50%;
  content: "";
}

.portal-claim__inner {
  position: relative;
  z-index: 2;
}

.portal-section-heading--light h2 {
  color: #fff8e9;
}

.portal-section-heading--light > p {
  color: #c9cfcd;
}

.portal-claim__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  align-items: start;
  gap: 18px;
}

.portal-home .roster-form {
  display: grid;
  grid-template-columns: 1fr;
  padding: clamp(24px, 3.5vw, 38px);
  gap: 18px;
  color: #14253a;
  background: #fffaf0;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 24px;
  box-shadow: 0 24px 56px rgb(0 0 0 / 22%);
}

.roster-form__heading label {
  display: block;
  color: #14253a;
  font-family: var(--font-slab);
  font-size: 1.35rem;
  font-weight: 850;
}

.portal-home .roster-form .roster-form__heading p {
  margin: 5px 0 0;
  color: #596777;
  font-size: 1rem;
}

.portal-home .roster-form__controls {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 9px;
}

.portal-home .roster-form input,
.portal-home .safe-claim textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: #14253a;
  background: #f4ead7;
  border: 1px solid rgb(20 37 58 / 22%);
  border-radius: 11px;
  font-family: var(--font-slab);
  font-size: 1rem;
}

.portal-home .roster-form input:focus,
.portal-home .safe-claim textarea:focus {
  border-color: #b96135;
  box-shadow: 0 0 0 3px rgb(185 97 53 / 13%);
  outline: none;
}

.portal-home .roster-result {
  min-height: 47px;
  margin: 0;
  padding: 12px 14px;
  color: #596777;
  background: rgb(20 37 58 / 5%);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.4;
}

.portal-home .roster-result:empty {
  display: none;
}

.portal-home .roster-result.is-eligible {
  color: #176045;
  background: rgb(36 115 84 / 10%);
}

.portal-home .roster-result.is-error,
.portal-home .roster-result.is-ineligible {
  color: #8f2c2b;
  background: rgb(198 80 67 / 9%);
}

.portal-home .claim-control {
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr;
  align-items: center;
  padding: 15px;
  gap: 15px;
  background: #efe3cc;
  border: 1px solid rgb(20 37 58 / 12%);
  border-radius: 13px;
}

.portal-home .claim-control p {
  margin: 0;
  color: #596777;
  font-size: 0.96rem;
  line-height: 1.45;
}

.portal-home .safe-claim {
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgb(20 37 58 / 16%);
  border-radius: 14px;
}

.portal-home .safe-claim > summary {
  min-height: 54px;
  padding: 14px 48px 14px 16px;
  color: #14253a;
  background: #f2e7d3;
  font-family: var(--font-slab);
  font-size: 1rem;
  font-weight: 850;
}

.portal-home .safe-claim__body {
  padding: 19px;
  background: #fffdf7;
}

.portal-home .safe-claim__intro {
  grid-template-columns: 1fr;
  gap: 4px;
}

.portal-home .safe-claim__intro h3 {
  font-size: 1.15rem;
}

.portal-home .roster-form .safe-claim__intro p,
.portal-home .roster-form .safe-claim__step-heading p,
.portal-home .roster-form .safe-claim__status,
.portal-home .roster-form .safe-claim__note {
  font-size: 0.92rem;
  line-height: 1.5;
}

.portal-home .safe-claim__step h4 {
  font-size: 1rem;
}

.portal-home .safe-claim__steps {
  gap: 12px;
}

.portal-home .safe-claim__step {
  padding: 16px;
}

.portal-claim__context {
  padding: clamp(26px, 3.5vw, 38px);
  color: #fff8e9;
  background:
    linear-gradient(145deg, rgb(255 231 207 / 11%), transparent 55%),
    #5d2d24;
  border: 1px solid rgb(239 177 127 / 24%);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgb(0 0 0 / 18%);
}

.portal-claim__context h3 {
  margin: 0;
  color: #fff4df;
  font-family: var(--font-slab);
  font-size: 1.55rem;
  line-height: 1.22;
}

.portal-claim__context p {
  margin: 18px 0 0;
  color: #e3d8cb;
  font-size: 1rem;
  line-height: 1.58;
}

.portal-claim__context ul {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.portal-claim__context li {
  position: relative;
  padding-left: 19px;
  color: #fff2dc;
  font-size: 0.98rem;
  font-weight: 700;
}

.portal-claim__context li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  background: #efb079;
  border-radius: 50%;
  content: "";
}

.portal-claim__context a {
  display: inline-flex;
  margin-top: 24px;
  gap: 7px;
  color: #ffdba4;
  font-size: 0.98rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.portal-reference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-block: clamp(76px, 9vw, 108px) 24px;
  padding: clamp(28px, 4vw, 44px);
  gap: 30px;
  color: #fff8e9;
  background: linear-gradient(145deg, #173b55, #0a1e30);
  border: 1px solid rgb(239 195 92 / 20%);
  border-radius: 23px;
  box-shadow: var(--site-shadow);
}

.portal-reference h2 {
  margin: 0;
  color: #fff8e9;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.portal-reference p {
  max-width: 650px;
  margin: 8px 0 0;
  color: #cbd0ce;
  font-size: 1rem;
}

.portal-reference nav {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.portal-reference nav a {
  min-height: 47px;
  padding: 11px 15px;
  color: #fff4de;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 11px;
  font-size: 0.96rem;
  font-weight: 750;
  text-decoration: none;
}

.portal-reference nav a:hover,
.portal-reference nav a:focus-visible {
  background: rgb(255 255 255 / 12%);
  outline: none;
}

.portal-contract {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: clamp(76px, 9vw, 110px);
  padding: 17px 19px;
  gap: 18px;
  background: rgb(255 250 240 / 68%);
  border: 1px solid rgb(20 37 58 / 14%);
  border-radius: 15px;
}

.portal-contract > div {
  display: grid;
}

.portal-contract strong {
  font-family: var(--font-slab);
  font-size: 0.98rem;
}

.portal-contract > div span {
  color: #65717f;
  font-size: 0.85rem;
}

.portal-contract .token-contract-banner__address {
  min-width: 0;
  overflow: hidden;
  color: #33465a;
  font-family: var(--font-slab);
  font-size: 0.91rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-contract .token-contract-banner__copy {
  min-height: 42px;
  padding: 9px 13px;
  color: #713719;
  background: #f0dfc5;
  border: 1px solid rgb(113 55 25 / 20%);
  border-radius: 9px;
  font-size: 0.87rem;
  font-weight: 800;
}

.portal-home .airdrop-claim-notice {
  top: 102px;
  z-index: 85;
  width: min(calc(100% - 32px), 900px);
  color: #fff8e9;
  background: #173b55;
  border: 1px solid rgb(239 195 92 / 30%);
  border-left: 5px solid #48b783;
  box-shadow: 0 18px 44px rgb(5 18 29 / 29%);
}

.portal-home .airdrop-claim-notice__copy span {
  color: #d4d8d4;
  font-size: 0.92rem;
}

.portal-home .airdrop-claim-notice__actions a {
  color: #ffe2ac;
}

.portal-home .site-footer {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(320px, 1.4fr) auto;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 44px max(24px, calc((100vw - 1180px) / 2));
  gap: 25px 40px;
  border-radius: 0;
}

.portal-home .site-footer__identity {
  display: grid;
  gap: 10px;
}

.portal-home .site-footer__identity p {
  margin: 0;
}

.portal-home .site-footer__routes {
  display: flex;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
}

.portal-home .site-footer__routes a,
.portal-home .site-footer__telegram {
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration-color: rgb(255 255 255 / 25%);
  text-underline-offset: 4px;
}

.portal-home .site-footer__telegram {
  color: #f3cc82;
}

.portal-home .site-footer__legal {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  text-align: center;
}

.portal-home .wallet-dialog form {
  background: #fffaf0;
  border-radius: 20px;
}

@media (max-width: 1000px) {
  .portal-hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    padding-inline: 52px;
  }

  .portal-groups {
    grid-template-columns: 1fr 1fr;
  }

  .portal-group--casino {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .portal-group--casino h3 {
    grid-column: 1 / -1;
  }

  .portal-claim__layout {
    grid-template-columns: 1fr;
  }

  .portal-claim__context {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }

  .portal-claim__context h3,
  .portal-claim__context a {
    grid-column: 1 / -1;
  }

  .portal-home .site-footer {
    grid-template-columns: 1fr 1.5fr;
  }

  .portal-home .site-footer__telegram {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .portal-home .section-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .portal-hero {
    width: calc(100% - 16px);
    min-height: 760px;
    border-radius: 24px;
  }

  .portal-hero__inner {
    display: block;
    width: 100%;
    min-height: 760px;
    padding: 52px 28px 340px;
  }

  .portal-hero h1 {
    font-size: clamp(4rem, 17vw, 6rem);
  }

  .portal-hero__copy > p {
    max-width: 570px;
  }

  .portal-hero__art {
    top: auto;
    width: 100%;
    height: 390px;
  }

  .portal-hero__art img {
    right: 0;
    width: min(84%, 430px);
    height: 105%;
  }

  .portal-hero__ring {
    top: 7%;
    right: 6%;
    width: min(68vw, 340px);
  }

  .portal-section-heading {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .portal-section-heading > p {
    max-width: 620px;
  }

  .portal-groups {
    grid-template-columns: 1fr;
  }

  .portal-group--casino {
    grid-column: auto;
    display: block;
  }

  .portal-home .roster-form__controls,
  .portal-home .claim-control {
    grid-template-columns: 1fr;
  }

  .portal-claim__context {
    display: block;
  }

  .portal-reference {
    grid-template-columns: 1fr;
  }

  .portal-contract {
    grid-template-columns: 1fr auto;
  }

  .portal-contract > div {
    grid-column: 1 / -1;
  }

  .portal-contract .token-contract-banner__address {
    text-align: left;
  }

  .portal-home .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .portal-home .site-footer__identity {
    justify-items: center;
  }
}

@media (max-width: 480px) {
  .portal-hero {
    min-height: 800px;
  }

  .portal-hero__inner {
    min-height: 800px;
    padding: 42px 21px 330px;
  }

  .portal-hero h1 {
    font-size: clamp(3.45rem, 17vw, 4.8rem);
  }

  .portal-hero__copy > p {
    margin-top: 23px;
    font-size: 1.04rem;
  }

  .portal-hero__actions {
    align-items: stretch;
    margin-top: 26px;
    gap: 15px;
    flex-direction: column;
  }

  .portal-hero__actions .button {
    width: 100%;
  }

  .portal-group {
    padding: 22px 18px;
  }

  .portal-route {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    min-height: 122px;
    padding-inline: 8px;
    gap: 11px;
  }

  .portal-route__icon {
    width: 48px;
    height: 48px;
  }

  .portal-route__icon svg {
    width: 30px;
    height: 30px;
  }

  .portal-route small {
    font-size: 0.91rem;
  }

  .portal-home .safe-claim__steps,
  .portal-home .safe-claim__actions {
    grid-template-columns: 1fr;
  }

  .portal-contract {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
    gap: 11px;
  }

  .portal-contract .token-contract-banner__address {
    grid-column: 1 / -1;
  }

  .portal-home .airdrop-claim-notice {
    top: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-route {
    transition: none;
  }
}
