:root {
  --aethra-amethyst: #9177a5;
  --aethra-amethyst-soft: #c2aecb;
  --aethra-ink: #09070c;
}

.aethra-page {
  background: var(--aethra-ink);
}

.aethra-page::before {
  display: none;
}

.aethra-page .public-header {
  position: absolute;
  right: 0;
  left: 0;
}

.aethra-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.aethra-hero-media,
.aethra-hero-grade {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.aethra-hero-media {
  background: url("/assets/premium/aethra-amethyst-cave.webp") center / cover no-repeat;
  transform: scale(1.035);
}

.aethra-hero-grade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(5 6 8 / 0.94) 0%, rgb(5 6 8 / 0.56) 52%, rgb(28 17 35 / 0.24)),
    linear-gradient(180deg, rgb(5 6 8 / 0.2) 45%, rgb(5 6 8 / 0.92) 100%);
}

.aethra-hero-copy,
.aethra-section {
  width: min(calc(100% - 3rem), var(--pp-container));
  margin-inline: auto;
}

.aethra-hero-copy {
  display: grid;
  gap: var(--pp-space-5);
  padding: 10rem 0 clamp(4rem, 8vw, 7rem);
}

.aethra-hero .public-eyebrow {
  color: var(--aethra-amethyst-soft);
}

.aethra-hero h1 {
  margin: 0;
  font-size: clamp(5rem, 17vw, 14rem);
  font-weight: 520;
  line-height: 0.72;
  letter-spacing: -0.085em;
}

.aethra-hero h1 span {
  color: var(--aethra-amethyst-soft);
}

.aethra-hero-copy > p {
  max-width: 48rem;
  margin: var(--pp-space-5) 0 0;
  color: var(--pp-fog-300);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.aethra-actions,
.aethra-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pp-space-3);
}

.aethra-actions {
  margin-top: var(--pp-space-5);
}

.aethra-secondary {
  border-color: rgb(194 174 203 / 0.42);
  color: var(--pp-text);
  background: rgb(15 10 18 / 0.62);
  backdrop-filter: blur(18px);
}

.aethra-status-line {
  margin-top: var(--pp-space-5);
  color: var(--pp-fog-300);
  font: 600 0.6875rem/1.4 var(--pp-font-mono);
  letter-spacing: 0.06em;
}

.aethra-status-line span {
  display: inline-flex;
  align-items: center;
  gap: var(--pp-space-2);
}

.aethra-status-line span::before {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--aethra-amethyst);
  content: "";
}

.aethra-section {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--pp-border);
}

.aethra-section-heading {
  display: grid;
  max-width: 58rem;
  gap: var(--pp-space-5);
}

.aethra-section-heading h2 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 520;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.aethra-section-heading p {
  max-width: 45rem;
  margin: 0;
  color: var(--pp-text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.aethra-primitive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3rem, 7vw, 6rem);
  border-block: 1px solid var(--pp-border);
}

.aethra-primitive-grid article {
  display: grid;
  min-height: 22rem;
  align-content: space-between;
  gap: var(--pp-space-5);
  padding: var(--pp-space-6);
  border-right: 1px solid var(--pp-border);
}

.aethra-primitive-grid article:last-child {
  border-right: 0;
}

.aethra-primitive-grid article > span {
  color: var(--aethra-amethyst-soft);
  font: 600 0.6875rem/1 var(--pp-font-mono);
}

.aethra-primitive-grid strong {
  align-self: end;
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  font-weight: 560;
  letter-spacing: -0.045em;
}

.aethra-primitive-grid p {
  margin: 0;
  color: var(--pp-text-muted);
  line-height: 1.65;
}

.handshake-flow {
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--pp-border);
  list-style: none;
}

.handshake-flow li {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: var(--pp-space-8);
  padding: clamp(2rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--pp-border);
}

.handshake-flow li > span {
  color: var(--aethra-amethyst-soft);
  font: 600 0.75rem/1 var(--pp-font-mono);
  letter-spacing: 0.11em;
}

.handshake-flow div {
  display: grid;
  max-width: 48rem;
  gap: var(--pp-space-3);
}

.handshake-flow strong {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 540;
  letter-spacing: -0.045em;
}

.handshake-flow p {
  margin: 0;
  color: var(--pp-text-muted);
  line-height: 1.65;
}

.frame-diagram {
  display: grid;
  grid-template-columns: 0.4fr 0.32fr 0.32fr 0.65fr 0.65fr 1.3fr 0.5fr 3fr;
  margin-top: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  border: 1px solid var(--pp-border-strong);
  border-radius: var(--pp-radius-2);
}

.frame-diagram span {
  display: grid;
  min-height: 9rem;
  place-items: center;
  padding: var(--pp-space-3);
  border-right: 1px solid var(--pp-border);
  color: var(--pp-text-muted);
  background: rgb(22 15 27 / 0.64);
  font: 600 0.65rem/1.3 var(--pp-font-mono);
  text-align: center;
}

.frame-diagram span::after {
  color: var(--aethra-amethyst-soft);
  content: attr(data-size);
  font-size: 0.58rem;
}

.frame-diagram span:last-child {
  border-right: 0;
  background: linear-gradient(100deg, rgb(34 24 40 / 0.72), rgb(80 58 93 / 0.54));
}

.status-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pp-space-5);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.status-columns article {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-3);
  background: rgb(15 12 17 / 0.72);
}

.status-columns h3 {
  margin: var(--pp-space-8) 0 var(--pp-space-5);
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  font-weight: 540;
  letter-spacing: -0.045em;
}

.status-columns ul {
  display: grid;
  gap: var(--pp-space-3);
  margin: 0;
  padding: 0;
  color: var(--pp-text-muted);
  list-style: none;
}

.status-columns li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--pp-space-3);
  line-height: 1.55;
}

.status-columns li::before {
  color: var(--aethra-amethyst-soft);
  content: "—";
}

.status-mark {
  display: inline-flex;
  padding: var(--pp-space-2) var(--pp-space-3);
  border: 1px solid var(--pp-border-strong);
  border-radius: 999px;
  color: var(--aethra-amethyst-soft);
  font: 600 0.625rem/1 var(--pp-font-mono);
  letter-spacing: 0.09em;
}

.status-note {
  max-width: 54rem;
  margin: var(--pp-space-8) 0 0;
  padding-left: var(--pp-space-5);
  border-left: 1px solid var(--aethra-amethyst);
  color: var(--pp-text-muted);
  line-height: 1.7;
}

.aethra-cta {
  background: linear-gradient(110deg, rgb(18 13 22 / 0.95), rgb(61 43 72 / 0.72));
}

@media (max-width: 920px) {
  .aethra-primitive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aethra-primitive-grid article:nth-child(2) {
    border-right: 0;
  }

  .aethra-primitive-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--pp-border);
  }

  .frame-diagram {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .frame-diagram span {
    min-height: 6.5rem;
    border-bottom: 1px solid var(--pp-border);
  }

  .frame-diagram span:nth-child(4),
  .frame-diagram span:last-child {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .aethra-hero-copy,
  .aethra-section {
    width: min(calc(100% - 2rem), var(--pp-container));
  }

  .aethra-hero {
    min-height: 54rem;
  }

  .aethra-hero-media {
    background-position: 58% center;
  }

  .aethra-hero h1 {
    font-size: clamp(4.4rem, 25vw, 7rem);
    line-height: 0.78;
  }

  .aethra-actions {
    display: grid;
  }

  .aethra-primitive-grid,
  .status-columns {
    grid-template-columns: 1fr;
  }

  .aethra-primitive-grid article {
    min-height: 16rem;
    border-right: 0;
    border-bottom: 1px solid var(--pp-border);
  }

  .aethra-primitive-grid article:last-child {
    border-bottom: 0;
  }

  .handshake-flow li {
    grid-template-columns: 1fr;
    gap: var(--pp-space-4);
  }

  .frame-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frame-diagram span:nth-child(even) {
    border-right: 0;
  }
}
