:root {
  --bg: #edf7ff;
  --panel: rgba(255, 255, 255, 0.82);
  --ink: #08141d;
  --muted: #536474;
  --line: rgba(23, 73, 108, 0.14);
  --accent: #2fbdf5;
  --accent-soft: rgba(47, 189, 245, 0.12);
  --deep: #0d3350;
  --shadow: 0 18px 48px rgba(17, 55, 83, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(99, 210, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar,
.hero,
.stage-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name,
.topbar-links a,
.summary,
.stage-copy p,
.hero-cta {
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.brand-name {
  color: var(--deep);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.topbar-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.topbar-links a {
  color: var(--deep);
  text-decoration: none;
  font-weight: 700;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 40px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(221, 243, 255, 0.9)),
    url("/assets/app-background.png") center/cover no-repeat;
}

.eyebrow,
.stage-index {
  margin: 0 0 14px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2 {
  margin: 0;
  line-height: 1;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.summary {
  max-width: 54ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--muted);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  color: #f7fbff;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, #0d3350, #1d628f);
  box-shadow: 0 16px 32px rgba(13, 51, 80, 0.24);
}

.stage-stack {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.stage-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  padding: 24px;
}

.stage-copy {
  align-self: center;
}

.stage-index {
  margin-bottom: 10px;
}

.stage-copy p:last-child {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--muted);
}

.stage-shot {
  min-height: 300px;
  border-radius: 22px;
  border: 1px solid rgba(13, 51, 80, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    var(--accent-soft);
  overflow: hidden;
  margin: 0;
}

.stage-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.stage-shot-mobile img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
}

.closeout-book {
  display: grid;
  gap: 16px;
  align-self: stretch;
}

.closeout-book-frame {
  position: relative;
  min-height: 460px;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(13, 51, 80, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(228, 242, 252, 0.86));
  overflow: hidden;
}

.closeout-book-frame::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 50%;
  width: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(13, 51, 80, 0.18), rgba(255, 255, 255, 0.04), rgba(13, 51, 80, 0.14));
  filter: blur(1px);
}

.closeout-book-pages {
  position: relative;
  min-height: 408px;
  perspective: 1600px;
}

.closeout-page {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background: #fdfefe;
  border: 1px solid rgba(13, 51, 80, 0.1);
  box-shadow: 0 18px 34px rgba(13, 51, 80, 0.16);
  opacity: 0;
  transform-origin: left center;
  transform: rotateY(-78deg) translateX(-24px) scale(0.96);
  transition: transform 420ms ease, opacity 240ms ease;
  pointer-events: none;
}

.closeout-page.is-active {
  opacity: 1;
  transform: rotateY(0deg) translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.closeout-page.is-left {
  opacity: 0;
  transform: rotateY(-100deg) translateX(-42px) scale(0.94);
  z-index: 1;
}

.closeout-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: #fff;
}

.closeout-book-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.book-button,
.book-status {
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.book-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(13, 51, 80, 0.12);
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, opacity 140ms ease;
}

.book-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(234, 246, 255, 0.96);
}

.book-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.book-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.field-gallery {
  margin-top: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.field-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.field-shot {
  margin: 0;
  min-height: 340px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(13, 51, 80, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.field-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 920px) {
  .topbar,
  .hero,
  .stage-card {
    border-radius: 24px;
  }

  .topbar,
  .hero,
  .stage-card {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 32px 24px;
  }

  .stage-card {
    padding: 20px;
  }

  .stage-shot {
    min-height: 220px;
  }

  .field-gallery {
    padding: 24px 20px;
  }

  .field-gallery-grid {
    grid-template-columns: 1fr;
  }

  .field-shot {
    min-height: 280px;
  }

  .closeout-book-frame {
    min-height: 380px;
    padding: 16px;
  }

  .closeout-book-pages {
    min-height: 348px;
  }

  h1 {
    max-width: none;
  }
}
