:root {
  --text: #f4f4f5;
  --muted: rgba(244, 244, 245, .72);
  --faint: rgba(244, 244, 245, .5);
  --line: rgba(255, 255, 255, .16);
  --card: rgba(16, 16, 18, .92);
}

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

html, body { height: 100%; }

body {
  background: #0a0a0b;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- background media ---------- */
.bg-stack { position: fixed; inset: 0; z-index: 0; }
.bg-layer {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.1s ease;
  overflow: hidden;
}
.bg-layer.active { opacity: 1; }
.bg-layer img, .bg-layer video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
}
.bg-layer.active img, .bg-layer.active video {
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.1) translate(-1.2%, -1.5%); }
}
.bg-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(5, 5, 6, .82) 0%, rgba(5, 5, 6, .45) 34%, rgba(5, 5, 6, .18) 60%, rgba(5, 5, 6, .3) 100%),
    linear-gradient(100deg, rgba(5, 5, 6, .55) 0%, transparent 55%);
}

/* ---------- layout ---------- */
.stage { position: relative; z-index: 1; height: 100dvh; display: flex; flex-direction: column; }

nav {
  display: flex; align-items: center; gap: 36px;
  padding: 20px 32px;
}
.logo { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.logo span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; }
.nav-right .login { font-size: 14.5px; color: var(--muted); }
.nav-right .login:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: opacity .15s, border-color .15s, background .15s;
}
.btn-primary { background: #fff; color: #0a0a0b; }
.btn-primary:hover { opacity: .85; }
.btn-ghost { border-color: var(--line); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- hero copy (bottom-left) ---------- */
.hero {
  margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; padding: 0 32px 36px;
}
.hero-copy { max-width: 560px; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}
h1 {
  font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; letter-spacing: -.03em;
  line-height: 1.06; margin-bottom: 14px; text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}
.hero-copy .sub { font-size: clamp(15.5px, 1.4vw, 18px); color: var(--muted); max-width: 46ch; margin-bottom: 26px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- thumbnails (bottom-right) ---------- */
.thumbs { display: flex; align-items: flex-end; gap: 10px; }
.thumb {
  position: relative; width: 108px; aspect-ratio: 16/10;
  border-radius: 8px; overflow: hidden; flex: none;
  border: 1px solid var(--line);
  opacity: .65; transition: opacity .2s, border-color .2s, transform .2s;
  padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: 1; }
.thumb.active { opacity: 1; border-color: rgba(255, 255, 255, .8); transform: translateY(-3px); }
.thumb .thumb-label {
  position: absolute; inset-inline-start: 7px; bottom: 5px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8); pointer-events: none;
}
.carousel-ctl {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color .15s, border-color .15s;
  margin-bottom: 18px;
}
.carousel-ctl:hover { color: var(--text); border-color: rgba(255,255,255,.45); }
.carousel-ctl svg { width: 12px; height: 12px; }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 6, .6); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.panel {
  width: min(460px, calc(100vw - 48px));
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 32px 30px;
  transform: translateY(10px); transition: transform .25s ease;
}
.overlay.open .panel { transform: translateY(0); }
.panel h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 10px; }
.panel p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.panel .close {
  position: absolute; top: 14px; inset-inline-end: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--muted); font-size: 18px; line-height: 1;
}
.panel .close:hover { color: var(--text); }
.panel { position: relative; }

.wl-form { display: flex; gap: 10px; }
.wl-form input {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; font-size: 15px; color: var(--text); outline: none;
}
.wl-form input:focus { border-color: rgba(255, 255, 255, .45); }
.wl-msg { margin-top: 14px; font-size: 14px; min-height: 20px; }
.wl-msg.ok { color: #4ade80; }
.wl-msg.err { color: #f87171; }

.feat-list { list-style: none; }
.feat-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.feat-list li:first-child { border-top: 0; padding-top: 0; }
.feat-list b { display: block; font-size: 15px; font-weight: 650; margin-bottom: 3px; letter-spacing: -.01em; }
.feat-list span { color: var(--muted); font-size: 14px; }

/* ---------- subpage scaffold ---------- */
.page-body { flex: 1; display: flex; align-items: center; padding: 0 32px; }
.page-body .panel { width: min(560px, calc(100vw - 48px)); margin-inline-start: clamp(0px, 8vw, 140px); }

@media (max-width: 820px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 26px; }
  .thumbs { align-self: flex-end; }
  .thumb { width: 84px; }
  .nav-links { display: none; }
}
