.moth-page {
  --moth-label-color: #f3ebfa;
  isolation: isolate;
  background: #050507;
}
.moth-particle-background { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.moth-particle-background canvas { display: block; width: 100%; height: 100%; }
.moth-landing { width: min(100%, 940px); margin: 0 auto; padding: 2px 0 48px; }
.moth-hero { position: relative; }
.moth-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 32% 37% at 28% 54%, #126fe31c, transparent),
    radial-gradient(ellipse 32% 39% at 72% 60%, #aa25801e, transparent);
  content: '';
  pointer-events: none;
}
.moth-title {
  display: grid;
  place-items: center;
  margin: 0 auto;
  text-align: center;
  font: 600 clamp(44px, 11vw, 104px)/1 Georgia, serif;
}
.moth-wordmark { width: clamp(220px, 58%, 440px); max-width: 100%; height: auto; mix-blend-mode: screen; }
.moth-title-text { color: #e6d1ff; text-shadow: -3px 0 16px #00aaff, 3px 0 16px #ff1691; }
.moth-divider {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  width: 86%;
  margin: clamp(18px, 3.7vw, 38px) auto;
}
.moth-title + .moth-divider { margin-top: 4px; }
.moth-divider::before, .moth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7698ff 62%, #f0a9ff);
  box-shadow: 0 0 9px #7755ff9c;
}
.moth-divider::after { transform: scaleX(-1); }
.moth-divider span {
  flex: none;
  width: clamp(14px, 2.4vw, 24px);
  aspect-ratio: 32 / 26;
  background: url('assets/moth/ideas-trade-marker.svg') center / contain no-repeat;
  filter: drop-shadow(-2px 0 5px #4e95ff) drop-shadow(2px 0 5px #fa66dc);
}
.moth-intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(14px, 5.5vw, 60px);
  width: 84%;
  margin-inline: auto;
}
.moth-phone {
  --phone-radius: clamp(21px, 4.7vw, 44px);
  --phone-bezel: clamp(3px, .7vw, 7px);
  position: relative;
  width: min(100%, 280px);
  margin-inline: auto;
  padding: var(--phone-bezel);
  border: 3px solid transparent;
  border-radius: var(--phone-radius);
  background:
    linear-gradient(#0a0b0d, #0a0b0d) padding-box,
    linear-gradient(110deg, #646a76, #e4e7eb 15%, #a6abb4 34%, #686e78 63%, #cbd0d7 88%, #737986) border-box;
  box-shadow: 0 0 0 1px #7b828e, inset 0 0 0 1px #333740, 0 16px 44px #000a;
}
.moth-phone::before, .moth-phone::after {
  position: absolute;
  width: 3px;
  height: 6%;
  border-radius: 2px;
  background: linear-gradient(90deg, #767c87, #cbd0d8 60%, #858c99);
  content: '';
}
.moth-phone::before {
  top: 23%;
  left: -5px;
  box-shadow: 0 clamp(17px, 3.5vw, 37px) 0 #969da9;
}
.moth-phone::after {
  top: 30%;
  right: -5px;
  height: 9%;
}
.moth-screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 673 / 1280;
  object-fit: contain;
  border-radius: calc(var(--phone-radius) - var(--phone-bezel) - 3px);
  background: #000;
}
.moth-details {
  min-width: 0;
  color: var(--moth-label-color);
  font-family: Georgia, serif;
}
.moth-platform { margin: 0 0 .32em; font-size: clamp(15px, 3.7vw, 34px); line-height: 1.15; }
.moth-version {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: #e1baff;
  background: linear-gradient(100deg, #63ddff 8%, #beadff 43%, #ff9bd8 80%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px #b44dfc65);
  font-size: clamp(26px, 6.9vw, 66px);
  line-height: 1.06;
}
.moth-details .moth-divider { width: 100%; margin: clamp(12px, 2.8vw, 24px) 0; }
.moth-details .moth-divider span { width: clamp(11px, 1.9vw, 18px); }
.moth-copy { font-size: clamp(15px, 3.4vw, 33px); line-height: 1.23; overflow-wrap: anywhere; }
.moth-copy p { margin: 0 0 .55em; text-wrap: pretty; }
.moth-copy p:last-child { margin-bottom: 0; }
.moth-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  width: 100%;
  min-height: 52px;
  padding: 8px 16px;
  border: 1px solid #a4a1bc;
  border-radius: 9px;
  background: linear-gradient(115deg, #1023319c, #180e20bd);
  box-shadow: inset 0 0 14px #749ae516;
  color: var(--moth-label-color);
  font-size: clamp(14px, 3.35vw, 30px);
  line-height: 1.15;
  text-align: center;
}
.moth-launch img { flex: none; width: clamp(27px, 4.3vw, 40px); height: auto; }
.moth-launch:hover { border-color: #dbbaff; color: #fff; box-shadow: 0 0 18px #a98dff53; }
.moth-launch:focus-visible { outline-color: #ebccff; }

.moth-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.moth-feature {
  display: grid;
  grid-template-columns: clamp(58px, 11vw, 110px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2.2vw, 24px);
  padding: clamp(14px, 2.7vw, 28px);
  border: 1px solid #9b9fbc69;
  border-radius: 20px;
  background: linear-gradient(130deg, #12203599, #0e0c16e6 62%, #1b102291);
}
.moth-feature-wide {
  grid-column: 1 / -1;
  grid-template-columns: clamp(58px, 14vw, 135px) minmax(0, 1fr);
}
.moth-feature-icon { display: block; width: 100%; height: auto; }
.moth-feature h2 { margin: 0 0 .28em; color: var(--moth-label-color); font: 400 clamp(22px, 3.2vw, 34px)/1.12 Georgia, serif; }
.moth-feature p { margin: 0; color: #dcd6e2; font: 400 clamp(14px, 1.9vw, 17px)/1.42 Arial, sans-serif; }
.moth-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.moth-indicators li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid #9b9fbc80;
  border-radius: 999px;
  background: #080911a8;
  color: var(--moth-label-color);
  font-size: clamp(12px, 1.7vw, 15px);
}
.moth-indicators img { flex: none; object-fit: contain; }

@media (max-width: 640px) {
  .moth-intro { width: 100%; }
  .moth-features { grid-template-columns: 1fr; gap: 10px; }
  .moth-feature { grid-template-columns: 58px minmax(0, 1fr); border-radius: 15px; }
  .moth-landing { padding-bottom: 32px; }
}
