:root {
  --ink: #16181c;
  --ink-soft: #4a4f57;
  --paper: #ffffff;
  --paper-soft: #f4f5f7;
  --line: #e4e6ea;
  --accent: #1d5fd6;
  --accent-ink: #ffffff;
  --radius: 14px;
  --max-w: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f2f4;
    --ink-soft: #b7bcc4;
    --paper: #17181b;
    --paper-soft: #202226;
    --line: #2d2f34;
    --accent: #6fa1ff;
    --accent-ink: #0c1220;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 70vh;
  overflow: hidden;
  background: var(--paper-soft);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  color: #fff;
}

.eyebrow {
  margin: 0 0 .25rem;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.hero h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.4rem, 4.5vw, 2.4rem);
  line-height: 1.15;
}

.hero .price {
  margin: 0;
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 700;
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 2.5rem 0; }
section h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  padding: 1.5rem 0 0;
}

.badge {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem .5rem;
  text-align: center;
}

.badge-num {
  display: block;
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 700;
  color: var(--accent);
}

.badge-label {
  display: block;
  font-size: .75rem;
  color: var(--ink-soft);
  margin-top: .15rem;
}

.intro p { color: var(--ink-soft); max-width: 65ch; }
.intro strong { color: var(--ink); }

.g-subhead {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 2rem 0 .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--line);
}
.g-subhead:first-of-type { margin-top: 1rem; border-top: none; padding-top: 0; }

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
  margin-bottom: .6rem;
}

.g-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-soft);
  cursor: zoom-in;
}

.g-item.span-2 {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.g-item:hover img { transform: scale(1.04); }

.g-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem .6rem .4rem;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  color: #fff;
  font-size: .72rem;
  line-height: 1.25;
  pointer-events: none;
}

.spec-list { margin: 0; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.spec-row dt { color: var(--ink-soft); flex: 0 0 auto; }
.spec-row dd { margin: 0; text-align: right; font-weight: 600; }

.honesty-note {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--ink-soft);
  font-style: italic;
}

.price-cta {
  text-align: center;
  padding: 2rem 0 3rem;
}
.price-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.price-big {
  margin: .25rem 0 0;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  color: var(--accent);
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-soft);
  font-size: .8rem;
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem .5rem;
  z-index: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }

.lightbox-count {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  margin: 0;
}

@media (min-width: 640px) {
  .lightbox-nav { width: 3.5rem; height: 3.5rem; font-size: 3rem; }
  .lightbox-prev { left: 1.5rem; }
  .lightbox-next { right: 1.5rem; }
}

@media (min-width: 640px) {
  .badges { gap: 1rem; }
  main { padding: 0 2rem; }
  .gallery .grid { grid-template-columns: repeat(3, 1fr); }
  .g-item.span-2 { grid-column: span 3; }
  .spec-row { font-size: 1rem; }
}

@media (min-width: 900px) {
  main { padding: 0; }
  .gallery .grid { grid-template-columns: repeat(4, 1fr); }
  .g-item.span-2 { grid-column: span 4; }
}
