/* Guest Landing Stage & Asymmetric Editorial Architecture (Animated Edition) */

.night-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: min(82vh, 740px);
  background: var(--well);
  color: var(--white);
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  box-shadow:
    var(--sheen),
    0 34px 84px -38px rgba(0, 0, 0, 0.94);
}

.night-image,
.night-shade,
.night-rim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.night-image {
  z-index: -3;
  background: var(--well);
}

.night-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 40%;
  transform: scale(1.04) translate(var(--pan-x, 0px), var(--pan-y, 0px));
  animation: stage-kenburns 24s ease-in-out infinite alternate;
  transition: transform 520ms var(--ease-out);
}

@keyframes stage-kenburns {
  from {
    transform: scale(1.03) translate(var(--pan-x, 0px), var(--pan-y, 0px));
  }
  to {
    transform: scale(1.085) translate(var(--pan-x, -8px), var(--pan-y, -5px));
  }
}

.night-shade {
  z-index: -2;
  background:
    linear-gradient(
      95deg,
      rgba(9, 9, 11, 0.97) 0%,
      rgba(9, 9, 11, 0.88) 30%,
      rgba(16, 13, 15, 0.56) 54%,
      rgba(9, 9, 11, 0.14) 82%,
      rgba(9, 9, 11, 0.05) 100%
    ),
    linear-gradient(0deg, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.24) 40%, transparent 80%);
}

/* Silky Ambient Horizon Light Ribbon */
.night-rim {
  z-index: -1;
  inset: auto -20% -48% 38%;
  height: 60%;
  transform: rotate(-10deg);
  border-top: 1px solid rgba(236, 78, 48, 0.4);
  border-radius: 50%;
  box-shadow:
    0 -8px 36px rgba(207, 169, 114, 0.18),
    0 -28px 96px rgba(236, 78, 48, 0.22);
  animation: stage-aurora 9s ease-in-out infinite alternate;
}

@keyframes stage-aurora {
  to {
    transform: translate(1.5%, 3%) rotate(-7.5deg);
    opacity: 0.68;
  }
}

.night-copy {
  padding: clamp(34px, 5vw, 72px);
  width: min(760px, 72%);
  position: relative;
  z-index: 1;
}

.night-eyebrow-row {
  margin-bottom: 18px;
}

.night-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 13, 16, 0.84);
  backdrop-filter: blur(10px);
  color: var(--iris-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.night-choices {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(15, 13, 16, 0.88);
  backdrop-filter: blur(12px);
}

.night-choices button {
  color: var(--muted);
  border: 0;
  background: transparent;
  border-radius: 99px;
  padding: 7px 15px;
  font: 650 0.84rem/1.25 var(--body);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 220ms var(--ease-spring);
}

.night-choices button:hover {
  color: var(--white);
}

.night-choices [aria-pressed="true"] {
  color: #09090b;
  background: var(--white);
  font-weight: 750;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.night-stage h1 {
  margin: clamp(22px, 2.8vw, 34px) 0 18px;
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: clamp(54px, 7.2vw, 108px);
  line-height: 0.9;
}

.night-stage h1 span,
.night-stage h1 em {
  display: block;
}

.night-stage h1 em {
  margin-top: 0.03em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  line-height: 0.94;
  letter-spacing: -0.02em;
  background: linear-gradient(108deg, #f7efe4 0%, #f0c993 36%, #fc5e39 78%, #df3821 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.night-copy p {
  max-width: 42ch;
  margin: 0 0 30px;
  font: 400 clamp(1.02rem, 1.25vw, 1.16rem)/1.6 var(--body);
  color: #e4dcd0;
}

.night-actions,
.night-actions button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.night-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.night-actions button {
  cursor: pointer;
  min-height: 48px;
  border-radius: 99px;
  padding: 12px 24px;
  font: 700 0.94rem/1.2 var(--body);
}

.night-primary {
  position: relative;
  overflow: hidden;
  background: var(--brand-grad);
  border: 1px solid rgba(255, 212, 196, 0.38);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 12px 30px -10px rgba(236, 78, 48, 0.58);
}

.night-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 580ms var(--ease-out);
  pointer-events: none;
}

.night-primary:hover::after {
  transform: translateX(120%);
}

.night-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 16px 36px -8px rgba(236, 78, 48, 0.7);
}

.night-secondary {
  background: rgba(21, 19, 22, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  color: var(--white);
}

.night-secondary:hover {
  background: var(--raised);
  border-color: rgba(234, 211, 171, 0.42);
  transform: translateY(-2px);
}

.night-motion {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(15, 13, 16, 0.86);
  backdrop-filter: blur(10px);
  color: var(--muted);
}

.night-motion:hover {
  transform: scale(1.08);
  color: var(--white);
}

.night-motion[aria-pressed="true"] {
  color: var(--iris-soft);
  border-color: rgba(207, 169, 114, 0.48);
}

.night-motion svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shared Editorial Section Rhythm */
.landing-band {
  margin-top: clamp(64px, 8vw, 108px);
}

.band-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(28px, 3.8vw, 44px);
  max-width: 680px;
}

.band-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--iris-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.band-head h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.02;
}

.band-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--coral-soft);
}

.band-head p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 54ch;
}

/* 1. How It Works — Staggered Editorial Ledger With Interactive Top-Rule Accent */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

.how-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 0 8px;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 280ms var(--ease-out), border-color 220ms ease;
}

.how-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 340ms var(--ease-out);
}

.how-step:hover::before {
  transform: scaleX(1);
}

.how-step:hover {
  transform: translateY(-3px);
}

@media (min-width: 961px) {
  .how-step:nth-child(2) {
    margin-top: 28px;
  }
  .how-step:nth-child(3) {
    margin-top: 56px;
  }
}

.how-numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.2rem, 4.6vw, 4.4rem);
  line-height: 0.88;
  color: var(--iris-soft);
  transition: color 220ms ease, transform 280ms var(--ease-spring);
}

.how-step:hover .how-numeral {
  color: var(--coral-soft);
  transform: translateX(4px);
}

.how-step h3 {
  font-size: 1.32rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.how-step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
  max-width: 34ch;
}

/* 2. Product Showcase — Editorial Split & 3D Fanned Card Deck With Live Equalizer */
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 60px);
  padding: clamp(30px, 4.5vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 82% 45%, rgba(207, 169, 114, 0.1), transparent 70%),
    var(--well);
}

.showcase-copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.showcase-copy h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  line-height: 1.03;
}

.showcase-copy h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--coral-soft);
}

.showcase-copy p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 40ch;
}

.fan-stack {
  position: relative;
  min-height: 368px;
  display: grid;
  place-items: center;
}

.fan-card {
  position: absolute;
  width: min(100%, 282px);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow:
    var(--sheen),
    0 26px 56px -20px rgba(0, 0, 0, 0.92);
  display: grid;
  gap: 12px;
  transition: transform 420ms var(--ease-spring), border-color 240ms ease, box-shadow 260ms ease;
}

.fan-card:nth-child(1) {
  z-index: 1;
  transform: translate(-94px, 16px) rotate(-8deg);
}

.fan-card:nth-child(2) {
  z-index: 2;
  transform: translate(94px, 18px) rotate(7deg);
}

.fan-card:nth-child(3) {
  z-index: 3;
  transform: translate(0, -8px) rotate(-1deg);
  border-color: rgba(236, 78, 48, 0.36);
  background: var(--surface-2);
}

.fan-stack:hover .fan-card:nth-child(1) {
  transform: translate(-122px, 22px) rotate(-11deg);
}

.fan-stack:hover .fan-card:nth-child(2) {
  transform: translate(122px, 22px) rotate(10deg);
}

.fan-stack:hover .fan-card:nth-child(3) {
  transform: translate(0, -16px) scale(1.03);
  border-color: rgba(236, 78, 48, 0.55);
}

.fan-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fan-monogram {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--white);
  background: var(--raised);
  border: 1px solid var(--line-strong);
}

.fan-monogram.coral {
  background: rgba(236, 78, 48, 0.18);
  border-color: rgba(236, 78, 48, 0.42);
  color: #ffd3c4;
}

.fan-monogram.iris {
  background: rgba(207, 169, 114, 0.18);
  border-color: rgba(207, 169, 114, 0.42);
  color: var(--iris-soft);
}

.fan-card-head strong {
  display: block;
  font-size: 1.06rem;
}

.fan-card-head small {
  color: var(--muted);
  font-size: 0.79rem;
}

.fan-wave {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--well);
  border: 1px solid var(--line);
  color: var(--iris-soft);
  font-size: 0.79rem;
}

@keyframes eqBounce {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

.fan-wave-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.fan-wave-bars i {
  display: block;
  width: 2.5px;
  height: 15px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center bottom;
  animation: eqBounce 1.25s ease-in-out infinite;
}

.fan-wave-bars i:nth-child(1) { animation-delay: 0ms; }
.fan-wave-bars i:nth-child(2) { animation-delay: 180ms; }
.fan-wave-bars i:nth-child(3) { animation-delay: 340ms; }
.fan-wave-bars i:nth-child(4) { animation-delay: 110ms; }
.fan-wave-bars i:nth-child(5) { animation-delay: 260ms; }
.fan-wave-bars i:nth-child(6) { animation-delay: 420ms; }

.fan-note {
  font-size: 0.84rem;
  color: var(--white);
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--well);
  border: 1px solid var(--line);
}

/* 3. Feature Bento — Asymmetric 7/5 & 5/7 Architectural Spread With Spotlight */
.feature-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.feature-tile {
  position: relative;
  grid-column: span 6;
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 210px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(
      420px circle at var(--mx, 50%) var(--my, 0%),
      rgba(207, 169, 114, 0.1),
      transparent 55%
    ),
    var(--surface);
}

@media (min-width: 961px) {
  .feature-tile:nth-child(1) {
    grid-column: span 7;
    background:
      radial-gradient(
        460px circle at var(--mx, 50%) var(--my, 0%),
        rgba(236, 78, 48, 0.1),
        transparent 58%
      ),
      var(--surface-2);
    border-color: var(--line-strong);
  }
  .feature-tile:nth-child(2) {
    grid-column: span 5;
  }
  .feature-tile:nth-child(3) {
    grid-column: span 5;
  }
  .feature-tile:nth-child(4) {
    grid-column: span 7;
    background:
      radial-gradient(
        460px circle at var(--mx, 50%) var(--my, 0%),
        rgba(236, 78, 48, 0.1),
        transparent 58%
      ),
      var(--surface-2);
    border-color: var(--line-strong);
  }
}

.feature-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(207, 169, 114, 0.12);
  border: 1px solid rgba(207, 169, 114, 0.3);
  color: var(--iris-soft);
  transition: transform 260ms var(--ease-spring);
}

.feature-tile:hover .feature-tile-icon {
  transform: scale(1.1) rotate(-4deg);
}

.feature-tile:nth-child(2n) .feature-tile-icon {
  background: rgba(236, 78, 48, 0.12);
  color: var(--coral-soft);
  border-color: rgba(236, 78, 48, 0.32);
}

.feature-tile h3 {
  font-size: 1.34rem;
  margin-bottom: -12px;
}

.feature-tile p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 48ch;
}

/* 4. Safety Band — Editorial Split Manifesto & Hairline Specification Matrix */
.safety-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(30px, 4.5vw, 52px) 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.safety-band .band-head {
  margin-bottom: 0;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  gap: 0;
}

.safety-item {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color 220ms ease;
}

.safety-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.safety-item h3 {
  font-size: 1.08rem;
  color: var(--white);
}

.safety-item p {
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.58;
}

/* 5. Starter Cards — Asymmetric Editorial Poster Spread */
.starter-section {
  margin-top: clamp(64px, 8vw, 108px);
}

.starter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(176px, 1fr));
  gap: 16px;
}

.starter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: clamp(20px, 2.6vw, 28px);
  min-height: 176px;
  background: var(--well);
  cursor: pointer;
}

@media (min-width: 761px) {
  .starter:first-child {
    grid-row: span 2;
    min-height: 368px;
  }
  .starter:first-child .starter-name {
    font-size: 1.55rem;
  }
}

.starter > img {
  width: 100%;
  height: 100%;
  z-index: -2;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 48%;
  transition: transform 520ms var(--ease-out);
}

.starter:is(:hover, :focus-visible) > img {
  transform: scale(1.06);
}

.starter::after {
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgba(9, 9, 11, 0.96) 6%,
    rgba(15, 13, 16, 0.68) 54%,
    rgba(9, 9, 11, 0.14) 100%
  );
}

.starter-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--white);
}

.starter-name svg {
  color: var(--coral-soft);
}

.starter.random .starter-name svg {
  color: var(--iris-soft);
}

.starter.servers .starter-name svg {
  color: var(--green-soft);
}

.starter-desc {
  color: #dfd7cb;
  font-size: 0.9rem;
  margin-top: 6px;
  max-width: 38ch;
}

/* 6. Closing CTA Band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 36px;
  padding: clamp(34px, 5vw, 60px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 55% 80% at 12% 20%, rgba(207, 169, 114, 0.14), transparent 65%),
    radial-gradient(ellipse 48% 70% at 92% 85%, rgba(236, 78, 48, 0.12), transparent 62%),
    var(--surface);
}

.cta-band h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--white);
}

.cta-band p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 46ch;
}

/* Reduced Motion / Visual Effects Toggle */
.cm-still .night-image img,
.cm-still .night-rim,
.cm-still .fan-card,
.cm-still .fan-wave-bars i {
  animation: none;
  transform: none;
  transition: none;
}

.cm-still .starter > img {
  transition: none;
}

@media (max-width: 960px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase-grid,
  .safety-band {
    grid-template-columns: 1fr;
  }
  .fan-stack {
    min-height: 330px;
  }
  .feature-tile {
    grid-column: span 12;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .night-stage {
    min-height: 540px;
    align-items: flex-end;
    border-radius: 20px;
  }
  .night-image {
    inset: 0 -10% 22% -20%;
  }
  .night-image img {
    object-position: 76% 30%;
  }
  .night-shade {
    background: linear-gradient(
      0deg,
      rgba(9, 9, 11, 0.99) 8%,
      rgba(9, 9, 11, 0.92) 36%,
      rgba(15, 13, 16, 0.62) 58%,
      transparent 90%
    );
  }
  .night-copy {
    width: 100%;
    padding: 24px 18px 26px;
  }
  .night-stage h1 {
    font-size: clamp(48px, 13.5vw, 72px);
    margin: 16px 0 14px;
  }
  .night-copy p {
    max-width: 36ch;
    font-size: 0.98rem;
    margin-bottom: 22px;
  }
  .night-choices {
    padding: 3px;
  }
  .night-choices button {
    padding: 7px 11px;
    font-size: 0.81rem;
    min-height: 38px;
  }
  .night-actions {
    width: 100%;
  }
  .night-actions button {
    flex: 1 1 auto;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.9rem;
  }
  .night-motion {
    top: 16px;
    right: 16px;
    bottom: auto;
  }
  .safety-grid,
  .starter-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .fan-stack {
    min-height: auto;
    gap: 12px;
  }
  .fan-card,
  .fan-card:nth-child(1),
  .fan-card:nth-child(2),
  .fan-card:nth-child(3),
  .fan-stack:hover .fan-card:nth-child(1),
  .fan-stack:hover .fan-card:nth-child(2),
  .fan-stack:hover .fan-card:nth-child(3) {
    position: static;
    width: 100%;
    transform: none;
  }
  .starter {
    min-height: 148px;
  }
}
