/* ============================================================
   MR Stash - LAYOUT & COMPONENT STYLES
   Colors and fonts come from theme.css (loaded first).
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--lens-blue); color: #fff; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,10,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: -0.01em;
}
.brand .glyph {
  width: 30px; height: 30px; flex: none;
}
.brand img {
  height: 34px;   /* adjust to taste - the logo scales to this */
  width: auto;    /* preserves aspect ratio */
  display: block;
  flex: none;     /* prevents flexbox from distorting it */
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--paper-dim);
  font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  font-family: var(--font-mono); font-size: 12.5px;
  border: 1px solid var(--toad); color: var(--toad-bright);
  padding: 8px 15px; border-radius: 4px; transition: all .2s;
}
.nav-cta:hover { background: var(--toad); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 84px;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
          linear-gradient(var(--hair) 1px, transparent 1px),
          linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 10%, transparent 75%);
  opacity: 0.5;
}
.hero-glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
}
.glow-red  { width: 460px; height: 460px; background: var(--lens-red);  top: 4%; right: 8%; opacity: .22; }
.glow-blue { width: 420px; height: 420px; background: var(--lens-blue); bottom: 6%; left: 8%; opacity: .20; }
.hero-inner { position: relative; z-index: 2; }

/* ---------- Centered full-height hero ---------- */
.hero-centered {
  min-height: calc(100vh - 66px);   /* fill viewport minus nav */
  display: flex; align-items: center;
  padding: 32px 0;
}
.hero-centered .hero-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  width: 100%;
}
.hero-centered .hero-product-logo {
  height: clamp(140px, 42vh, 300px);  /* sized to viewport HEIGHT so it never overflows */
  margin-bottom: 30px;
}
.hero-centered .eyebrow { margin-bottom: 22px; }
.hero-centered .hero-sub { max-width: 56ch; margin-left: auto; margin-right: auto; margin-bottom: 34px; }
.hero-centered .btn-row { justify-content: center; }

.scroll-cue {
  margin-top: 40px; color: var(--paper-dim);
  display: inline-flex; opacity: .7;
  animation: bob 2.2s ease-in-out infinite;
  transition: color .2s;
}
.scroll-cue:hover { color: var(--toad-bright); opacity: 1; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------- Hero visual section (below the fold) ---------- */
.hero-visual {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  border-top: 1px solid var(--hair);
}
.visual-title {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.0; letter-spacing: -0.032em;
  text-align: center; max-width: 18ch;
  margin: 0 auto 48px;
}

.hero-product-logo {
  display: block;
  height: clamp(56px, 9vw, 92px);  /* scales with viewport */
  width: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.55));
}

.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--toad-bright);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--toad);
}

h1.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 26px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--paper-dim);
  max-width: 52ch;
  margin-bottom: 38px;
}
.hero-sub strong { color: var(--paper); font-weight: 600; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px 13px 18px; border-radius: 9px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.store-btn svg { flex: none; }
.store-btn .lbl { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .lbl small { font-size: 11px; font-weight: 500; opacity: .72; letter-spacing: .02em; }
.store-btn .lbl span { font-size: 16px; }

.btn-quest {
  background: var(--toad); color: var(--ink);
}
.btn-quest:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--toad); }

.btn-steam {
  background: var(--ink-2); color: var(--paper);
  border-color: var(--hair);
}
.btn-steam:hover { transform: translateY(-2px); border-color: var(--lens-blue); box-shadow: 0 10px 30px -14px var(--lens-blue); }

/* ---------- Hero visual: the lens / video viewport ---------- */
.viewport-wrap {
  position: relative; z-index: 2;
  max-width: 920px; margin: 0 auto;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: linear-gradient(160deg, #10160d, #0a0d08);
  padding: 14px;
  box-shadow: 0 40px 90px -40px #000;
}
.viewport-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px 14px;
}
.vb-dots { display: flex; gap: 7px; }
.vb-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.vb-url {
  flex: 1; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--paper-dim);
  background: var(--ink); border: 1px solid var(--hair);
  border-radius: 6px; padding: 7px 12px;
  display: flex; align-items: center; gap: 8px;
  overflow: hidden; white-space: nowrap;
}
.vb-url b { color: var(--toad-bright); font-weight: 500; }
.vb-badge {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--lens-red); border: 1px solid var(--lens-red);
  padding: 3px 8px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.vb-badge::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--lens-red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

.stage {
  position: relative;
  aspect-ratio: 16/8.4;
  border-radius: 10px; overflow: hidden;
  background:
          radial-gradient(120% 140% at 50% 0%, #1b2613, #0a0d07 70%);
  display: flex; align-items: center; justify-content: center;
}
/* dual-eye split lenses */
.lens {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 31%; aspect-ratio: 1; border-radius: 50%;
  filter: blur(2px); opacity: .85;
  mix-blend-mode: screen;
}
.lens-l { left: 16%; background: radial-gradient(circle, var(--lens-red) 0%, transparent 68%); }
.lens-r { right: 16%; background: radial-gradient(circle, var(--lens-blue) 0%, transparent 68%); }
.stage-play {
  position: relative; z-index: 3;
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(238,243,230,0.09);
  border: 1.5px solid rgba(238,243,230,0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s, background .2s;
}
.stage-play:hover { transform: scale(1.07); background: rgba(238,243,230,0.16); }
.stage-meta {
  position: absolute; z-index: 3; bottom: 16px; left: 18px;
  font-family: var(--font-mono); font-size: 12px; color: var(--paper);
  display: flex; gap: 8px; align-items: center;
}
.chip { border: 1px solid var(--hair); background: rgba(11,14,10,.6); padding: 4px 9px; border-radius: 4px; }
.chip.green { color: var(--toad-bright); border-color: var(--toad-deep); }

/* ---------- Logo strip ---------- */
.compat {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 26px 0;
}
.compat-inner {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--paper-dim);
}
.compat-inner b { color: var(--paper); font-weight: 500; }
.compat-inner .sep { color: var(--toad); }

/* ---------- Section scaffold ---------- */
section.block { padding: 96px 0; }
.sec-head { margin-bottom: 54px; max-width: 60ch; }
.sec-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--toad-bright); margin-bottom: 16px;
}
.sec-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.04;
  letter-spacing: -0.028em;
}
.sec-lead { margin-top: 18px; color: var(--paper-dim); font-size: 17px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.feat {
  background: var(--ink); padding: 38px 34px;
  position: relative; transition: background .25s;
}
.feat:hover { background: var(--ink-2); }
.feat-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--toad); letter-spacing: .1em; margin-bottom: 20px;
}
.feat-icn { margin-bottom: 18px; }
.feat h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px;
}
.feat p { color: var(--paper-dim); font-size: 15px; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.step {
  background: var(--ink); display: grid;
  grid-template-columns: 90px 1fr; gap: 28px; align-items: start;
  padding: 34px 36px;
}
.step-n {
  font-family: var(--font-display); font-weight: 700; font-size: 40px;
  line-height: 1; color: var(--toad-deep);
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--paper-dim); font-size: 15px; max-width: 60ch; }

/* ---------- Stash callout ---------- */
.stash {
  border: 1px solid var(--hair); border-radius: 16px;
  background:
          radial-gradient(120% 160% at 100% 0%, rgba(49,138,203,0.10), transparent 55%),
          radial-gradient(120% 160% at 0% 100%, rgba(105,148,69,0.12), transparent 55%),
          var(--ink-2);
  padding: 52px 48px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.stash h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px,3.6vw,40px); letter-spacing:-0.025em; line-height:1.05; margin-bottom: 18px; }
.stash p { color: var(--paper-dim); font-size: 16px; margin-bottom: 14px; }
.stash ul { list-style: none; margin-top: 22px; display: grid; gap: 13px; }
.stash li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.stash-guide-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 11px 18px;
  border: 1px solid var(--toad); border-radius: 8px;
  color: var(--toad-bright); font-weight: 600; font-size: 14.5px;
  transition: all .18s;
}
.stash-guide-link:hover { background: var(--toad); color: var(--ink); transform: translateY(-1px); }
.stash-guide-link svg { transition: transform .18s; }
.stash-guide-link:hover svg { transform: translateX(3px); }
.stash li svg { flex: none; margin-top: 3px; }
.stash-card {
  border: 1px solid var(--hair); border-radius: 12px; background: var(--ink);
  padding: 8px; box-shadow: 0 30px 70px -40px #000;
}
.stash-card .row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
}
.stash-card .row + .row { border-top: 1px solid var(--hair); }
.thumb { width: 56px; height: 36px; border-radius: 5px; flex:none; background: linear-gradient(135deg, var(--toad-deep), var(--ink)); position: relative; overflow: hidden; }
.thumb::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 50%, rgba(197,49,50,.7), transparent 50%), radial-gradient(circle at 70% 50%, rgba(49,138,203,.7), transparent 50%); mix-blend-mode: screen; }
.stash-card .meta { flex:1; min-width:0; }
.stash-card .meta b { display:block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stash-card .meta small { font-family: var(--font-mono); font-size: 11px; color: var(--paper-dim); }
.stash-card .tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--toad-bright); border:1px solid var(--toad-deep); padding: 2px 7px; border-radius: 3px; }

/* ---------- Final CTA ---------- */
.final {
  text-align: center; padding: 110px 0;
  position: relative; overflow: hidden;
}
.final-glow { position:absolute; inset:0; background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(105,148,69,.16), transparent 70%); }
.final h2 {
  position: relative;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.5vw, 62px); letter-spacing: -0.03em;
  line-height: 1.02; margin-bottom: 22px;
}
.final-logo {
  position: relative; z-index: 2;
  display: block; margin: 0 auto 26px;
  height: clamp(110px, 36vw, 190px); width: auto;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.55));
}
.final p { position: relative; color: var(--paper-dim); font-size: 18px; margin-bottom: 38px; }
.final .btn-row { position: relative; justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--hair); padding: 40px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:700; }
.foot-brand img { height: 28px; width: auto; display: block; flex: none; }
.foot-links { display: flex; gap: 26px; font-size: 14px; color: var(--paper-dim); }
.foot-links a:hover { color: var(--paper); }
.foot-note { font-family: var(--font-mono); font-size: 12px; color: #5e6b50; width: 100%; padding-top: 22px; border-top: 1px solid var(--hair); margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .features { grid-template-columns: 1fr; }
  .stash { grid-template-columns: 1fr; padding: 36px 28px; }
  .step { grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 24px; }
  .step-n { font-size: 30px; }
  section.block { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--toad-bright); outline-offset: 3px; border-radius: 3px; }