:root {
  --ink: #f5f5f5;
  --ink-dim: #b8b8b8;
  --bg: #0a0a0a;
  --gold: #d4af37;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(100%) contrast(1.1) brightness(0.95);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.25) 80%, rgba(10,10,10,0.6) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.25) 0%, transparent 30%, transparent 70%, rgba(10,10,10,0.35) 100%);
  pointer-events: none;
}

.hero-section {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
  overflow: hidden;
}

.cta {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  z-index: 3;
}

.device--peek {
  margin-top: auto;
  margin-bottom: -55%;
}

.scroll-cue {
  position: relative;
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.06);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.25), 0 0 2px rgba(212, 175, 55, 0.4) inset;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
  animation: bob 2.4s ease-in-out infinite;
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 3;
}

.scroll-cue:hover {
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.45), 0 0 2px rgba(212, 175, 55, 0.6) inset;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

.gallery {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.95) 20%, var(--bg) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.gallery-grid .device-frame {
  width: 100%;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; max-width: 280px; }
}

.tagline {
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink);
  margin: 0;
}

.device {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.device-frame {
  position: relative;
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 390 / 844;
  background: #0a0a0a;
  border: 2px solid #2a2a2a;
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 30px 60px -20px rgba(0,0,0,0.8),
    0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 22px;
  background: #050505;
  border-radius: 14px;
  z-index: 2;
}

.device-screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 26px;
}

.device-frame--full {
  width: clamp(260px, 32vw, 380px);
}

.device-screen--full {
  object-fit: contain;
}

.soon {
  margin: 0;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--ink-dim);
  opacity: 0.75;
}

.foot {
  position: fixed;
  z-index: 2;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0.55;
}

@media (max-width: 640px) {
  .device--peek { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bg { display: none; }
  body { background:
    radial-gradient(ellipse at center, #1a1a1a 0%, var(--bg) 70%); }
}
