:root {
  --bg: #0d0a09;
  --bg-soft: #171110;
  --panel: rgba(24, 18, 17, 0.72);
  --panel-strong: rgba(35, 27, 24, 0.92);
  --panel-line: rgba(255, 242, 225, 0.1);
  --text: #f8f1e7;
  --muted: #c3b6a4;
  --accent: #f5b46a;
  --accent-strong: #ffcf8b;
  --accent-cool: #7ed2ea;
  --accent-cool-soft: rgba(126, 210, 234, 0.16);
  --danger: #f1695b;
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 180, 106, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(126, 210, 234, 0.15), transparent 28%),
    linear-gradient(180deg, #0f0b0a, #171211 35%, #0b0908 100%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 36vw;
  aspect-ratio: 1;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient-left {
  top: 4rem;
  left: -10vw;
  background: radial-gradient(circle, rgba(244, 154, 81, 0.28), transparent 68%);
}

.ambient-right {
  right: -8vw;
  bottom: 12rem;
  background: radial-gradient(circle, rgba(76, 165, 223, 0.24), transparent 70%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 72px;
}

.hero-panel,
.gallery-section,
.plan-section,
.section-intro {
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(33, 25, 23, 0.88), rgba(16, 12, 11, 0.92));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 24px;
  overflow: hidden;
}

.topbar,
.section-heading,
.section-intro,
.hero-grid,
.plan-grid,
.gallery-grid,
.topbar-actions,
.hero-actions,
.hero-stats,
.spotlight-stack {
  display: grid;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 222, 183, 0.25), rgba(123, 210, 234, 0.2));
  border: 1px solid rgba(255, 222, 183, 0.22);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.hero-copy h1,
.brand-mark {
  font-family: "Cormorant Garamond", serif;
}

.section-copy h2,
.section-heading h2,
.photo-copy h3,
.plan-card h3,
.modal-panel h2 {
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
}

.brand-copy strong {
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-copy small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.topbar-actions {
  grid-auto-flow: column;
  gap: 12px;
  align-items: center;
}

.meta-pill,
.section-badge,
.photo-tag,
.plan-label,
.wallet-button,
.primary-link,
.secondary-link,
.button-link {
  border-radius: 999px;
}

.meta-pill,
.section-badge,
.photo-tag,
.plan-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(255, 230, 199, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wallet-button,
.primary-link,
.secondary-link,
.unlock-trigger,
.modal-close {
  border: 0;
}

.wallet-button,
.unlock-trigger,
.primary-link,
.secondary-link,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.wallet-button,
.primary-link,
.button-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #26170e;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(245, 180, 106, 0.2);
}

.wallet-button:hover,
.primary-link:hover,
.secondary-link:hover,
.unlock-trigger:hover,
.button-link:hover,
.wallet-button:focus-visible,
.primary-link:focus-visible,
.secondary-link:focus-visible,
.unlock-trigger:focus-visible,
.button-link:focus-visible {
  transform: translateY(-2px);
}

.wallet-button.alt,
.secondary-link {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 235, 212, 0.15);
  box-shadow: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
  margin-top: 24px;
}

.hero-copy {
  padding: 36px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.34)),
    url("assets/hero-collage.webp") center / cover no-repeat;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 10, 9, 0.9), rgba(14, 10, 9, 0.54) 48%, rgba(14, 10, 9, 0.15)),
    linear-gradient(180deg, rgba(14, 10, 9, 0.1), rgba(14, 10, 9, 0.82));
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 12px 0 0;
  font-size: clamp(2.9rem, 5.8vw, 5rem);
  line-height: 1.02;
}

.hero-text,
.section-note,
.photo-copy p,
.plan-card p,
#modalDescription,
.modal-footnote {
  color: #dfd1bf;
  line-height: 1.7;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.hero-actions {
  grid-auto-flow: column;
  gap: 14px;
  justify-content: start;
  margin-top: 28px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.hero-stats div,
.spotlight-card,
.photo-card,
.quote-card,
.plan-card,
.modal-panel {
  border: 1px solid var(--panel-line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-md);
}

.hero-stats div {
  padding: 18px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.hero-rail {
  display: grid;
  gap: 18px;
}

.spotlight-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 30px;
}

.spotlight-wide {
  min-height: 350px;
}

.spotlight-card img {
  height: 100%;
  object-fit: cover;
}

.spotlight-copy,
.photo-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px;
  background: linear-gradient(180deg, rgba(8, 6, 5, 0.02), rgba(8, 6, 5, 0.9));
}

.spotlight-copy span,
.photo-copy span {
  display: block;
  color: #ead3b0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spotlight-copy strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  line-height: 1.04;
}

.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.04), rgba(8, 6, 5, 0.2)),
    linear-gradient(135deg, rgba(126, 210, 234, 0.08), rgba(255, 182, 101, 0.12));
  pointer-events: none;
}

.section-intro,
.gallery-section,
.plan-section {
  margin-top: 20px;
}

.section-intro {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 24px;
  align-items: center;
  padding: 26px 30px;
}

.section-copy h2,
.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.section-note {
  margin: 0;
}

.gallery-section,
.plan-section {
  padding: 28px;
}

.section-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.section-badge.premium,
.premium-tag {
  color: #92e2f6;
  background: var(--accent-cool-soft);
}

.gallery-grid {
  gap: 18px;
  margin-top: 22px;
}

.free-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(280px, 0.8fr);
  grid-template-areas:
    "tall wide aside"
    "tall small aside";
}

.free-grid .tall {
  grid-area: tall;
}

.free-grid .wide {
  grid-area: wide;
}

.free-grid .quote-card {
  grid-area: aside;
}

.free-grid .photo-card:not(.tall):not(.wide) {
  grid-area: small;
}

.photo-card,
.quote-card,
.plan-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.photo-card {
  min-height: 320px;
}

.photo-card.tall {
  min-height: 640px;
}

.photo-card.wide {
  min-height: 308px;
}

.photo-card img {
  height: 100%;
  object-fit: cover;
}

.free-grid .wide img {
  object-position: center 28%;
}

.free-grid .photo-card:not(.wide):not(.tall) img {
  object-position: center 14%;
}

.photo-copy h3,
.plan-card h3 {
  margin: 10px 0 0;
  font-size: 1.82rem;
  line-height: 1;
}

.photo-copy p {
  margin: 10px 0 0;
  font-size: 0.94rem;
}

.quote-card {
  min-height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 184, 104, 0.08), rgba(10, 8, 7, 0.92)),
    url("assets/hero-collage.webp") center / cover no-repeat;
}

.quote-card p {
  margin: 0;
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.08;
}

.quote-card span {
  margin-top: 18px;
  color: var(--muted);
}

.premium-shell {
  background:
    linear-gradient(180deg, rgba(12, 17, 21, 0.9), rgba(11, 9, 9, 0.96)),
    linear-gradient(135deg, rgba(126, 210, 234, 0.08), transparent 30%);
}

.premium-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-card.locked img {
  filter: blur(10px) saturate(0.9) brightness(0.66);
  transform: scale(1.03);
}

.premium-card.unlocked img {
  filter: none;
  transform: none;
}

.unlock-trigger {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 0 18px;
  background: rgba(7, 6, 6, 0.78);
  color: var(--text);
  border-radius: 999px;
  border: 1px solid rgba(255, 235, 212, 0.18);
}

.premium-card.unlocked .unlock-trigger {
  background: rgba(126, 210, 234, 0.18);
  border-color: rgba(126, 210, 234, 0.34);
  color: #d9f6ff;
}

.plan-section .compact {
  align-items: center;
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.plan-card {
  min-height: 230px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
}

.plan-card strong,
.modal-meta strong {
  display: block;
  margin-top: 18px;
  color: var(--accent-strong);
  font-size: 1.5rem;
}

.plan-card p {
  margin: 18px 0 0;
}

.plan-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 198, 129, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(126, 210, 234, 0.08), transparent);
}

.unlock-modal[hidden] {
  display: none;
}

.unlock-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 5, 0.72);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(540px, calc(100% - 32px));
  margin: min(12vh, 80px) auto 0;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(35, 26, 24, 0.98), rgba(18, 14, 13, 0.98));
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
}

.modal-panel h2 {
  margin: 10px 0 0;
  font-size: 2.7rem;
}

.modal-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 24px 0 22px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.modal-meta span {
  font-size: 1.08rem;
  font-weight: 700;
}

.modal-footnote {
  margin: 16px 0 0;
  font-size: 0.92rem;
}

body.wallet-connected .wallet-button {
  background: linear-gradient(135deg, rgba(126, 210, 234, 0.9), rgba(174, 244, 255, 0.95));
  color: #09232b;
}

@media (max-width: 1080px) {
  .hero-grid,
  .section-intro,
  .free-grid,
  .premium-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .free-grid {
    grid-template-areas:
      "wide"
      "tall"
      "small"
      "aside";
  }

  .spotlight-stack,
  .hero-stats,
  .hero-actions,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-actions,
  .modal-meta {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }

  .hero-copy {
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
    margin-top: 10px;
    margin-bottom: 44px;
  }

  .hero-panel,
  .gallery-section,
  .plan-section,
  .section-intro {
    border-radius: 28px;
  }

  .hero-panel,
  .gallery-section,
  .plan-section {
    padding: 18px;
  }

  .hero-copy {
    min-height: 520px;
    padding: 24px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 10vw, 3.5rem);
  }

  .spotlight-card,
  .photo-card,
  .photo-card.tall,
  .photo-card.wide {
    min-height: 280px;
  }

  .section-copy h2,
  .section-heading h2,
  .quote-card p,
  .modal-panel h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .wallet-button,
  .primary-link,
  .secondary-link,
  .unlock-trigger,
  .button-link {
    width: 100%;
  }
}
