/* ============================================================
   SMOOTH STROKES — SHAVE LUBE
   Dark + icy cool design system
   ============================================================ */
:root {
  --bg: #05080c;
  --bg-2: #0a1017;
  --bg-3: #0e1620;
  --ink: #eef3f7;
  --muted: rgba(238, 243, 247, 0.6);
  --faint: rgba(238, 243, 247, 0.35);
  --ice: #6fd3ff;
  --ice-deep: #2ea8e8;
  --ice-dim: rgba(111, 211, 255, 0.32);
  --frost: #c9ecff;
  --red: #d33b3b;
  --navy: #24406b;
  --cream: #f0ebe1;
  --line: rgba(238, 243, 247, 0.09);
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-script: "Yellowtail", cursive;
}

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

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ice); color: #04222f; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Fixed nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}
.nav.scrolled {
  background: rgba(5, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 36px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  line-height: 1;
}
.nav-brand .slash { color: var(--red); margin: 0 4px; }
.nav-brand .sub { color: var(--ice); }
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a { transition: color 0.25s; }
.nav-links a:hover { color: var(--frost); }
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  padding: 12px 28px 10px;
  border: 1px solid var(--ice);
  border-radius: 999px;
  color: #06131c;
  background: linear-gradient(180deg, var(--frost), var(--ice));
  box-shadow: 0 0 26px rgba(111, 211, 255, 0.28);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 34px rgba(111, 211, 255, 0.45); filter: brightness(1.05); }
.btn.ghost {
  background: transparent;
  color: var(--frost);
  border-color: rgba(111, 211, 255, 0.5);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(111, 211, 255, 0.08); }

/* ---------- Scrub sections ---------- */
.cinematic { position: relative; }
.cinematic .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.cinematic canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 42%, rgba(2, 5, 9, 0.72) 100%),
    linear-gradient(180deg, rgba(2, 5, 9, 0.55) 0%, transparent 22%, transparent 72%, rgba(2, 5, 9, 0.78) 100%);
}

/* Scroll-synced overlay copy */
.overlay { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.reveal-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateY(var(--dy, 0px));
  width: min(92vw, 1100px);
  text-align: center;
  opacity: 0;
  will-change: opacity, transform;
}
/* Left-parked variant — keeps the product (and its label) unobstructed */
.reveal-line.pos-left {
  left: clamp(24px, 7vw, 130px);
  transform: translate(0, -50%) translateY(var(--dy, 0px));
  width: min(46vw, 620px);
  text-align: left;
}
.reveal-line.pos-left h1 { font-size: clamp(2.9rem, 7.5vw, 7rem); }
.reveal-line.pos-left .sub { margin-left: 0; }
.reveal-line .cta-row { pointer-events: auto; margin-top: 30px; }
.script {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  color: var(--ice);
  display: block;
  margin-bottom: 6px;
  text-shadow: 0 1px 5px rgba(2, 5, 9, 0.9), 0 0 30px rgba(111, 211, 255, 0.5);
}
.reveal-line h1, .reveal-line .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 10.5vw, 9rem);
  letter-spacing: 0.035em;
  line-height: 0.96;
  text-shadow: 0 6px 60px rgba(0, 0, 0, 0.85);
}
.reveal-line .sub {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 600;
  line-height: 1.6;
  color: rgba(238, 243, 247, 0.92);
  text-shadow: 0 1px 6px rgba(2, 5, 9, 0.95), 0 2px 28px rgba(2, 5, 9, 0.9);
}
.accent-ice { color: var(--ice); }
.accent-red { color: var(--red); }

/* Corner chrome on hero */
.chrome {
  position: absolute;
  z-index: 12;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: rgba(111, 211, 255, 0.75);
}
.chrome b { color: var(--ink); font-weight: 400; }
.chrome.tl { top: 84px; left: 36px; text-align: left; }
.chrome.tr { top: 84px; right: 36px; text-align: right; }
.chrome.bl { bottom: 66px; left: 36px; }
.chrome.br { bottom: 66px; right: 36px; }
.chrome .dim { color: var(--faint); }

.progress {
  position: absolute;
  left: 36px; right: 36px; bottom: 46px;
  height: 2px;
  background: rgba(238, 243, 247, 0.1);
  z-index: 12;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ice-deep), var(--frost));
  box-shadow: 0 0 14px var(--ice);
}
.scroll-hint {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.45em;
  color: var(--faint);
  animation: bob 1.9s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 78s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--faint);
  padding: 0 26px;
  white-space: nowrap;
}
.marquee-track span b { font-weight: 400; color: var(--ice); }
.marquee-track span i { font-style: normal; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Generic sections ---------- */
section.panel { position: relative; padding: 130px 36px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.45em;
  color: var(--ice);
  margin-bottom: 18px;
}
.eyebrow.red { color: var(--red); }
h2.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  letter-spacing: 0.03em;
  line-height: 0.98;
  max-width: 900px;
}
.lede {
  margin-top: 26px;
  max-width: 640px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
}
.lede b { color: var(--ink); font-weight: 700; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* ---------- Card grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2) 70%);
  padding: 34px 30px 38px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 60% at 50% -10%, rgba(111, 211, 255, 0.13), transparent 60%);
  pointer-events: none;
}
.card.red::before { background: radial-gradient(90% 60% at 50% -10%, rgba(211, 59, 59, 0.16), transparent 60%); }
.card .kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--faint);
  margin-bottom: 16px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.card h3 .accent-ice, .card h3 .accent-red { display: inline; }
.card p { color: var(--muted); line-height: 1.7; font-size: 0.98rem; }
.card p b { color: var(--ink); }

.flipline {
  margin-top: 56px;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--frost);
  text-align: center;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  position: relative;
}
.step .num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ice-dim);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin: 14px 0 12px;
}
.step p { color: var(--muted); line-height: 1.7; font-size: 0.98rem; }
.steps-note {
  margin-top: 52px;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  font-size: 1.05rem;
  color: var(--ice);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 70px;
  text-align: center;
}
.stat { border-left: 1px solid var(--line); padding: 6px 10px; }
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--frost);
  text-shadow: 0 0 34px rgba(111, 211, 255, 0.35);
}
.stat-label {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Split (lifestyle) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.split-media {
  position: relative;
  /* Feather the media into the page background — no card edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
                      linear-gradient(0deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
              linear-gradient(0deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.split-media img, .split-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Waitlist ---------- */
.waitlist {
  text-align: center;
  padding: 160px 36px 150px;
  position: relative;
  overflow: hidden;
}
.waitlist::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 50% 0%, rgba(111, 211, 255, 0.12), transparent 65%);
  pointer-events: none;
}
.waitlist .title { margin: 0 auto; }
.waitlist .lede { margin-left: auto; margin-right: auto; text-align: center; }
.wl-form {
  margin: 46px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 560px;
}
.wl-fields {
  display: flex;
  gap: 12px;
  width: 100%;
}
.wl-fields input { flex: 1; min-width: 0; }
.wl-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wl-form .btn { width: max-content; }
.wl-form.sending .btn { opacity: 0.6; pointer-events: none; }
.wl-error {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ff8d7e;
  letter-spacing: 0.04em;
}
.wl-form input {
  width: 100%;
  background: rgba(238, 243, 247, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 16px 24px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.wl-form input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(111, 211, 255, 0.15); }
.wl-form input::placeholder { color: var(--faint); }
.wl-success {
  margin: 46px auto 0;
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--frost);
}
.fine { margin-top: 22px; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--faint); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 70px 36px 50px;
  background: var(--bg-2);
}
.foot-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 50px;
  align-items: center;
}
.foot-logo {
  width: 190px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.foot-tag { color: var(--faint); font-size: 0.88rem; line-height: 1.8; letter-spacing: 0.04em; }
.foot-tag b { color: var(--muted); font-weight: 600; }
.foot-links { display: flex; flex-direction: column; gap: 10px; text-align: right; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot-links a:hover { color: var(--frost); }
.foot-links .cut { color: var(--ice); }

/* ---------- Section tints ---------- */
.panel.wrong { background: linear-gradient(180deg, var(--bg), #120a0c 55%, var(--bg)); }
.panel.ritual { background: linear-gradient(180deg, var(--bg), #0a1420 55%, var(--bg)); }
.panel.how { background: var(--bg); }
.panel.benefits { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.panel.morning { background: var(--bg); }

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.6s;
}
#loader.done { opacity: 0; pointer-events: none; }
#loader .script { font-size: 2rem; }
#loader .bar {
  width: 210px; height: 2px;
  margin-top: 18px;
  background: rgba(238, 243, 247, 0.1);
}
#loader .bar i {
  display: block; height: 100%; width: 0%;
  background: var(--ice);
  box-shadow: 0 0 12px var(--ice);
  transition: width 0.2s;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav { padding: 12px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.btn) { display: none; }
  /* Two-line brand lockup: no slash, SHAVE LUBE stacked beneath in ice */
  .nav-brand { font-size: 1.1rem; line-height: 1.3; letter-spacing: 0.2em; }
  .nav-brand .slash { display: none; }
  .nav-brand .sub { display: block; font-size: 0.72rem; letter-spacing: 0.38em; }
  .nav .btn { font-size: 0.82rem; padding: 9px 16px 7px; letter-spacing: 0.16em; box-shadow: 0 0 14px rgba(111, 211, 255, 0.22); }
  .cards, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .stat:nth-child(3) { border-left: none; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .chrome.tr, .chrome.br { display: none; }
  .chrome.tl { top: 72px; left: 20px; }
  .chrome.bl { bottom: 60px; left: 20px; }
  /* Lift hero copy into the dark zone above the bottle's label so it never
     overlaps the "SMOOTH STROKES" wordmark on the product. */
  #hero .reveal-line {
    top: 31%;
    width: min(92vw, 1100px);
    text-align: center;
  }
  #hero .reveal-line.pos-left {
    left: 50%;
    transform: translate(-50%, -50%) translateY(var(--dy, 0px));
  }
  #hero .reveal-line.pos-left .sub { margin-left: auto; }
  #hero .reveal-line h1, #hero .reveal-line .h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  #hero .reveal-line.pos-left h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  #hero .reveal-line .sub { font-size: 0.92rem; margin-top: 14px; }
  #hero .reveal-line .script { font-size: 1.35rem; }
  #hero .reveal-line .cta-row { margin-top: 20px; }
  /* Scrim keeps text legible over the pump/upper bottle */
  #hero .overlay::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 62%;
    background: linear-gradient(180deg, rgba(2,5,9,0.72) 0%, rgba(2,5,9,0.5) 42%, transparent 100%);
    pointer-events: none;
    z-index: -1;
  }
  .progress { left: 20px; right: 20px; }
  section.panel { padding: 90px 22px; }
  .wl-fields { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr; text-align: center; }
  .foot-logo { margin: 0 auto; }
  .foot-links { text-align: center; }
}
