/* Alselene V4 site draft — Nov 30, 2026. Do not deploy until Hanan approves, and only on Dec 5. */
:root {
  --v4-obsidian: #090810;
  --v4-obsidian-2: #11101D;
  --v4-obsidian-3: #191625;
  --v4-gold: #D4B477;
  --v4-gold-light: #F0D8A3;
  --v4-violet: #9274C5;
  --as-night-950: #090810;
  --as-night-900: #11101D;
  --as-night-850: #191625;
  --as-gold-300: #F0D8A3;
  --as-gold-500: #D4B477;
  --as-gold-600: #E2C58A;
  --as-violet-400: #9274C5;
}

html, body.as-page {
  background-color: var(--v4-obsidian);
  background-image:
    radial-gradient(ellipse 80% 50% at 8% 0%, rgba(240, 216, 163, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 10%, rgba(146, 116, 197, 0.08), transparent 50%),
    linear-gradient(180deg, #090810 0%, #11101D 40%, #090810 100%);
}

/* Antique compass rose, very faint, behind the hero and footer */
.as-hero::before,
.as-footer::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.09;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23D4B477' stroke-width='1'><circle cx='100' cy='100' r='92'/><circle cx='100' cy='100' r='72'/><circle cx='100' cy='100' r='8'/><path d='M100 8 L100 192 M8 100 L192 100 M32 32 L168 168 M168 32 L32 168'/><path d='M100 18 L106 90 L100 84 L94 90 Z' fill='%23D4B477' stroke='none'/><path d='M100 182 L94 110 L100 116 L106 110 Z' fill='%23D4B477' stroke='none' opacity='.5'/><text x='100' y='20' text-anchor='middle' font-size='8' fill='%23F0D8A3' font-family='serif'>N</text></svg>") no-repeat center;
  background-size: contain;
}
.as-hero::before {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  left: 4%;
  top: 12%;
}
.as-footer::before {
  width: 180px;
  height: 180px;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
}

.as-header {
  background: rgba(9, 8, 16, 0.88);
  border-bottom: 1px solid rgba(212, 180, 119, 0.22);
}
.as-logo__tag { color: var(--v4-gold-light); }

/* Hero motto: V4 tagline, kept below the locked H1 + subtitle pair */
.as-hero__motto {
  margin: 1.1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font: italic 500 1.05rem/1.4 var(--as-font-display, "Cormorant Garamond", Garamond, serif);
  color: var(--v4-gold-light);
  letter-spacing: 0.03em;
  text-wrap: balance;
}
.as-hero__motto::before,
.as-hero__motto::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--v4-gold), transparent);
  flex: 0 0 2.4rem;
}

.as-footer__motto {
  margin: 0 0 0.85rem;
  font: italic 500 1rem/1.4 var(--as-font-display, "Cormorant Garamond", Garamond, serif);
  color: var(--v4-gold-light);
}

/* Gold collector frame on app shots */
.shot {
  background: #11101D;
  border: 1px solid rgba(212, 180, 119, 0.45);
  box-shadow: 0 0 0 1px rgba(9, 8, 16, 0.9) inset, 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 40px rgba(146, 116, 197, 0.08);
}
.shot img { background: #11101D; }
.as-phone__frame {
  background: linear-gradient(145deg, #2a2238, #090810 40%, #191625);
  border: 1px solid rgba(212, 180, 119, 0.55);
  box-shadow: 0 0 0 1px rgba(9, 8, 16, 0.9) inset, 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(146, 116, 197, 0.22);
}
.as-phone__frame img { aspect-ratio: 780 / 1688; }

/* Hide the old crystal PNG; the lake painting already holds the amethyst */
.as-hero__decor { display: none !important; }

/* Tablet+: painting, copy and phone share one row so the phone stays above the fold. */
@media (min-width: 768px) {
  .as-hero {
    background-color: var(--v4-obsidian);
    display: grid;
    grid-template-columns: minmax(140px, 24%) minmax(0, 1fr) minmax(160px, 200px);
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1.35rem 4% 1.5rem;
    min-height: 0;
  }
  .as-hero__art {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: min(520px, 68vh);
    z-index: 0;
    grid-column: 1;
    grid-row: 1;
    border-radius: 2px;
    overflow: hidden;
    box-shadow:
      0 0 0 1px var(--v4-gold),
      0 0 0 6px var(--v4-obsidian),
      0 0 0 7px rgba(212, 180, 119, 0.45),
      0 28px 70px rgba(0, 0, 0, 0.55);
  }
  .as-hero__art img {
    object-fit: cover;
    object-position: 18% 42%;
  }
  .as-hero__art::after {
    background:
      linear-gradient(90deg, rgba(9, 8, 16, 0) 70%, rgba(9, 8, 16, 0.2) 100%),
      radial-gradient(ellipse 40% 30% at 20% 80%, rgba(240, 216, 163, 0.08), transparent 70%);
  }
  .as-hero__grid {
    display: contents;
  }
  .as-hero__copy {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding-left: 0;
    margin: 0;
  }
  .as-hero__title {
    white-space: normal;
    font-size: clamp(2.05rem, 4vw, 3.1rem);
  }
  .as-hero__body { margin-bottom: 0.85rem; }
  .as-hero__ctas { flex-wrap: wrap; justify-content: flex-start; }
  .as-hero__motto { justify-content: flex-start; }
  .as-hero__motto::before { display: none; }
  .as-phone {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    transform: none;
    width: 100%;
    max-width: 200px;
  }
}

/* 768–1023: pin art and phone to the top so the frame sits beside the title, not mid-column. */
@media (min-width: 768px) and (max-width: 1023px) {
  .as-hero {
    align-items: start;
    padding-top: 1.15rem;
    grid-template-columns: minmax(130px, 22%) minmax(0, 1fr) minmax(150px, 186px);
  }
  .as-hero__art {
    margin-top: 0.15rem;
    max-height: min(460px, 62vh);
  }
  .as-hero__copy { min-width: 0; }
  .as-hero__ctas { max-width: 100%; }
  .as-hero__ctas .btn,
  .as-hero__download .btn {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
  }
  .as-phone {
    align-self: start;
    margin-top: 0.15rem;
    max-width: 186px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .as-hero {
    grid-template-columns: minmax(220px, 26%) minmax(0, 1fr) minmax(170px, 200px);
    gap: 1.25rem 1.25rem;
  }
  .as-hero__ctas { flex-wrap: wrap; justify-content: flex-start; }
  .as-phone { max-width: 200px; }
}

@media (min-width: 1024px) {
  .as-hero {
    display: grid;
    grid-template-columns: minmax(260px, 30%) minmax(0, 1fr) minmax(200px, 248px);
    min-height: clamp(640px, 50vw, 800px);
    padding: 2.5rem 3.5% 2.75rem;
    gap: 1.75rem 2rem;
  }
  .as-hero__art {
    grid-column: 1;
    grid-row: 1;
    max-height: 740px;
    aspect-ratio: 3 / 4;
  }
  .as-hero__copy { grid-column: 2; grid-row: 1; }
  .as-phone {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    max-width: 248px;
    margin: 0 auto;
    transform: perspective(1400px) rotateY(-8deg) rotateZ(1.5deg);
  }
  .as-hero__title {
    white-space: normal;
    font-size: clamp(2.6rem, 3.6vw, 4.4rem);
  }
}

/* Mobile: painted portrait still sits behind the top of the hero */
@media (max-width: 767px) {
  .as-hero__art {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: min(118vw, 560px);
    transform: none;
    border-radius: 0;
    box-shadow: none;
  }
  .as-hero__art img { object-position: 30% 18%; }
  .as-hero__art::after {
    background: linear-gradient(180deg, rgba(9,8,16,.12) 0%, rgba(9,8,16,0) 28%, rgba(9,8,16,.72) 72%, var(--v4-obsidian) 100%);
  }
  .as-hero__motto { justify-content: center; }
  .as-hero__motto::before { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .as-hero::before, .as-footer::before { opacity: 0.06; }
}

/* Feature row + chapter cards: slightly warmer gold hairline */
.as-features { background: rgba(17, 16, 29, 0.92); border-color: rgba(212, 180, 119, 0.2); }
.as-card__link { box-shadow: 0 0 0 1px rgba(212, 180, 119, 0.28); }

/* Store buttons stay visible and tappable */
.as-appstore-btn, .as-appstore-pill, .as-appstore-menu { white-space: nowrap; }
