/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #F8F6F0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Page Layout ===== */
.page {
  display: flex;
  width: 80vw;
  height: 80vh;
  margin: 10vh auto;
  overflow: hidden;
}

/* ===== Left Half ===== */
.left-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-wrapper {
  position: relative;
  /* Extra space around card for annotation labels */
  --card-size: min(38vw, 72vh);
  width: calc(var(--card-size) + 160px);
  height: calc(var(--card-size) + 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Hero Card ===== */
.hero-card {
  --size: var(--card-size);
  width: var(--size);
  height: var(--size);
  background: #F5F5F0;
  border: 3.5px solid #000;
  border-radius: calc(var(--size) * 40 / 240);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--size) * 20 / 240);
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: 'Passion One', cursive;
  font-weight: 700;
  font-size: calc(var(--card-size) * 48 / 240);
  color: #000;
  line-height: 1;
  margin-bottom: calc(var(--card-size) * 12 / 240);
  opacity: 0;
  transition: opacity 400ms ease-in;
}

.card-title.visible {
  opacity: 1;
}

/* ===== Shot Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: calc(var(--card-size) * 6 / 240);
  width: calc(var(--card-size) - var(--card-size) * 40 / 240);
}

.grid-cell {
  aspect-ratio: 1;
  border-radius: calc(var(--card-size) * 6 / 240);
  background: #E0E0E0;
  overflow: hidden;
  position: relative;
}

.grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.8);
  filter: blur(3px);
}

.grid-cell.filled img {
  opacity: 1;
  transform: scale(1);
  transition: opacity 350ms ease-out, transform 350ms ease-out;
}

/* White overlay for "developed" film look */
.grid-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.grid-cell.filled::after {
  opacity: 1;
  transition: opacity 350ms ease-out;
}

/* Highlighted cell for annotation */
.grid-cell.highlighted {
  box-shadow: 0 0 0 2.5px var(--highlight-color);
  z-index: 3;
}

/* ===== Annotation SVG Layer ===== */
.annotation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.annotation-svg line {
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
}

/* ===== Annotation Labels ===== */
.annotation-labels {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.annotation-label {
  position: absolute;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 300ms ease-out, transform 300ms ease-out;
  white-space: nowrap;
}

.annotation-label.visible {
  opacity: 1;
}

/* ===== Right Half ===== */
.right-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6vw;
  position: relative;
}

/* Store Buttons */
.store-buttons {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: opacity 0.2s;
}

.store-btn:hover {
  opacity: 0.8;
}

.store-icon {
  flex-shrink: 0;
}

/* Marketing Content */
.marketing-content {
  max-width: 440px;
}

.subtitle {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.01em;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  color: #000;
  margin-bottom: 3px;
}

.feature-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.45;
}

/* ===== Bottom Copy ===== */
.scenarios {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.01em;
}

.closing {
  margin-top: 8px;
  font-size: 16px;
  font-style: italic;
  color: #888;
  line-height: 1.5;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 900px) {
  .card-wrapper {
    --card-size: min(42vw, 50vh);
  }

  .marketing-content {
    max-width: 360px;
  }

  .subtitle {
    font-size: 11px;
  }

  .features {
    gap: 16px;
  }

  .feature-title {
    font-size: 14px;
  }

  .feature-desc {
    font-size: 13px;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  .page {
    flex-direction: column;
  }

  .left-half {
    flex: none;
    height: 50vh;
  }

  .card-wrapper {
    --card-size: min(60vw, 38vh);
  }

  .right-half {
    flex: none;
    height: 50vh;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    justify-content: flex-start;
    padding-top: 16px;
  }

  .store-buttons {
    position: static;
    margin-bottom: 16px;
    justify-content: center;
  }

  .marketing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .subtitle {
    font-size: 11px;
  }

  .features {
    gap: 12px;
    align-items: flex-start;
    text-align: left;
  }

  .feature-title {
    font-size: 13px;
  }

  .feature-desc {
    font-size: 12px;
  }

  .scenarios {
    margin-top: 16px;
    font-size: 11px;
    text-align: center;
  }

  .closing {
    font-size: 12px;
    text-align: center;
  }

  .annotation-label {
    font-size: 11px;
  }
}
