/* ============ SADJE SHOWROOM DEMO — SHARED STYLES ============ */

:root{
  --bg:#070707;
  --surface:#111316;
  --surface-2:#16191c;
  --teal:#2FE6C6;
  --teal-dim: rgba(47,230,198,0.16);
  --amber:#E8B04B;
  --text:#F5F6F4;
  --muted:#8A9290;
  --line: rgba(245,246,244,0.10);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'DM Sans', sans-serif;
}
.disp{font-family:'Michroma', sans-serif; letter-spacing:0.04em;}
.mono{font-family:'Space Mono', monospace;}
::selection{background:var(--teal); color:#070707;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}

/* ---------- buttons ---------- */
.clip-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 30px;
  font-family:'Michroma', sans-serif;
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  background:var(--teal);
  color:#04120E;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform .25s ease, background .25s ease;
  white-space:nowrap;
}
.clip-btn:hover{ transform: translateY(-2px); background:#4FF3D6; }
.clip-btn.ghost{
  background:transparent;
  color:var(--text);
  border:1px solid var(--line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.clip-btn.ghost:hover{ border-color:var(--teal); color:var(--teal); background:transparent; }

.eyebrow{
  font-family:'Space Mono', monospace;
  font-size:11px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--teal);
}

/* ---------- persistent brand mark ---------- */
.brand-fixed{
  position:fixed;
  top:26px; left:34px;
  z-index:60;
  display:flex; align-items:center; gap:10px;
  font-family:'Michroma', sans-serif;
  font-size:14px;
  letter-spacing:0.12em;
}
.brand-fixed .dot{width:7px; height:7px; background:var(--teal); border-radius:50%;}
.brand-sub{
  position:fixed; top:26px; right:34px; z-index:60;
  font-family:'Space Mono', monospace;
  font-size:11px; color:var(--muted); letter-spacing:.08em;
}

/* ================= HERO (index.html) ================= */
.hero{
  height:100svh;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  overflow:hidden;
}
.hero-media{ position:absolute; inset:0; }
.hero-slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center 60%;
  filter:saturate(0.9) brightness(0.62);
  opacity:0;
  animation: kenburns 9s ease-in-out infinite alternate;
  transition: opacity 1.4s ease;
}
.hero-slide.active{ opacity:1; z-index:1; }
@keyframes kenburns{
  0%{ transform:scale(1); }
  100%{ transform:scale(1.1); }
}
.hero-scrim{
  position:absolute; inset:0; z-index:2;
  background:
    linear-gradient(180deg, rgba(7,7,7,0.55) 0%, rgba(7,7,7,0.15) 30%, rgba(7,7,7,0.35) 60%, #070707 100%);
}
.hero-content{
  position:relative; z-index:5;
  padding: 0 6vw 12vh;
  max-width:900px;
}
.hero-content h1{
  font-family:'Michroma', sans-serif;
  font-size: clamp(34px, 6vw, 74px);
  line-height:1.08;
  margin: 18px 0 20px;
  text-transform:uppercase;
}
.hero-content h1 span{ color:var(--teal); }
.hero-content p{
  font-size:16px;
  color:var(--muted);
  max-width:520px;
  margin-bottom:34px;
  line-height:1.6;
}
.hero-cta{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.hero-now{
  position:absolute; bottom:56px; left:6vw; z-index:5;
  display:flex; align-items:center; gap:10px;
  font-family:'Space Mono', monospace;
  font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted);
}
.hero-now .dot{ width:6px; height:6px; border-radius:50%; background:var(--teal); animation:pulseBar 1.6s ease-in-out infinite; }
.hero-now b{ color:var(--text); font-weight:400; }
.hero-dots{
  position:absolute; bottom:56px; right:6vw; z-index:5;
  display:flex; gap:8px;
}
.hero-dot{
  width:22px; height:2px; background:var(--line); cursor:pointer;
  transition: background .2s ease, width .2s ease;
}
.hero-dot.active{ background:var(--teal); width:34px; }
@keyframes pulseBar{ 0%,100%{opacity:.3} 50%{opacity:1} }

/* ================= FILTER DOCK (stock.html, fixed overlay) ================= */
.filter-dock{
  position:fixed; top:0; left:0; right:0; z-index:40;
  display:flex; align-items:center; gap:26px;
  padding: 18px 6vw 18px 130px;
  background: rgba(7,7,7,0.30);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom:1px solid var(--line);
  flex-wrap:wrap;
}
.filter-group{ display:flex; flex-direction:column; gap:4px; }
.filter-group label{
  font-family:'Space Mono', monospace;
  font-size:9px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted);
}
.filter-group select{
  background:transparent;
  border:none;
  border-bottom:1px solid var(--line);
  color:var(--text);
  font-family:'DM Sans', sans-serif;
  font-size:14px;
  padding:6px 22px 6px 2px;
  appearance:none;
  -webkit-appearance:none;
  min-width:140px;
  cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0L5 6L10 0Z' fill='%238A9290'/></svg>");
  background-repeat:no-repeat;
  background-position:right 4px center;
  transition:border-color .2s ease;
}
.filter-group select:hover, .filter-group select:focus{ border-color:var(--teal); outline:none; }
.filter-group select option{ background:#111316; color:var(--text); }

.filter-count{
  margin-left:auto;
  font-family:'Space Mono', monospace;
  font-size:11px; color:var(--muted); letter-spacing:.08em;
  display:flex; align-items:center; gap:18px;
}
.filter-count b{ color:var(--teal); font-weight:400; }
.reset-link{
  font-family:'Space Mono', monospace;
  font-size:11px; color:var(--muted); letter-spacing:.08em;
  text-decoration:underline; text-underline-offset:3px;
  transition:color .2s ease;
}
.reset-link:hover{ color:var(--teal); }

/* ================= HORIZONTAL STAGE (stock.html) ================= */
.stage-wrap{
  position:relative;
  width:100vw; height:100svh;
  overflow:hidden;
}
.stage-scroll{
  width:100%; height:100%;
  overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  display:flex;
}
.stage-scroll::-webkit-scrollbar{ display:none; }

.stage-slide{
  position:relative;
  flex:0 0 100vw;
  width:100vw; height:100%;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.stage-slide-img{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center 50%;
  transform:scale(1.06);
  transition:transform 1.1s ease;
}
.stage-slide.active .stage-slide-img{ transform:scale(1); }
.stage-slide-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(0deg, rgba(7,7,7,0.92) 0%, rgba(7,7,7,0.45) 34%, rgba(7,7,7,0.05) 60%),
    linear-gradient(90deg, rgba(7,7,7,0.6) 0%, rgba(7,7,7,0) 50%);
}
.stage-slide-content{
  position:relative; z-index:3;
  padding: 0 6vw 90px;
  max-width:600px;
  opacity:0;
  transform:translateY(14px);
  transition: opacity .5s ease .1s, transform .5s ease .1s;
}
.stage-slide.active .stage-slide-content{ opacity:1; transform:translateY(0); }
.stage-slide-content .eyebrow{ margin-bottom:14px; display:block; }
.stage-slide-content h2{
  font-family:'Michroma', sans-serif;
  font-size:clamp(26px, 3.6vw, 50px);
  line-height:1.12;
  text-transform:uppercase;
  margin-bottom:18px;
}
.spec-chips{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.spec-chip{
  font-family:'Space Mono', monospace;
  font-size:11px;
  letter-spacing:.04em;
  padding:8px 14px;
  border:1px solid rgba(245,246,244,0.22);
  background:rgba(7,7,7,0.3);
  color:var(--text);
}
.price-row{ display:flex; align-items:baseline; gap:20px; margin-bottom:30px; flex-wrap:wrap; }
.price-row .price{ font-family:'Michroma', sans-serif; font-size:24px; color:var(--text); }
.price-row .monthly{ font-family:'Space Mono', monospace; font-size:12px; color:var(--muted); }
.price-row .monthly b{ color:var(--amber); font-weight:400; }
.stage-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.stage-slide-tap{ position:absolute; inset:0; z-index:2; cursor:pointer; }

/* arrows */
.stage-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:10;
  width:52px; height:52px;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  background:rgba(7,7,7,0.3);
  backdrop-filter:blur(6px);
  transition: border-color .2s ease, background .2s ease;
}
.stage-arrow:hover{ border-color:var(--teal); background:rgba(47,230,198,0.08); }
.stage-arrow.left{ left:2.4vw; }
.stage-arrow.right{ right:2.4vw; }
.stage-arrow svg{ width:16px; height:16px; }

.stage-rail{
  position:absolute; bottom:34px; left:50%; transform:translateX(-50%);
  z-index:10;
  display:flex; align-items:center; gap:10px;
}
.rail-tick{
  width:26px; height:3px; background:rgba(245,246,244,0.28); cursor:pointer;
  transition: background .2s ease, width .2s ease;
}
.rail-tick.active{ background:var(--teal); width:40px; }

.swipe-hint{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  z-index:10;
  font-family:'Space Mono', monospace;
  font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted);
  display:flex; align-items:center; gap:12px;
  pointer-events:none;
  opacity:0;
  animation: hintFade 5s ease forwards;
}
@keyframes hintFade{ 0%{opacity:0} 15%{opacity:1} 70%{opacity:1} 100%{opacity:0} }

.empty-state{
  position:absolute; inset:0;
  display:none;
  flex-direction:column; align-items:center; justify-content:center;
  gap:14px; text-align:center; z-index:3;
}
.empty-state.show{ display:flex; }
.empty-state .disp{ font-size:20px; text-transform:uppercase; }
.empty-state p{ color:var(--muted); font-size:14px; max-width:340px; }

/* headlight sweep transition element */
.sweep{
  position:absolute; top:0; bottom:0; width:14%;
  background:linear-gradient(90deg, transparent, rgba(245,246,244,0.10), transparent);
  z-index:6;
  pointer-events:none;
  opacity:0;
}
.sweep.run{ animation: sweepMove .6s ease; }
@keyframes sweepMove{
  0%{ left:-14%; opacity:0; }
  15%{ opacity:1; }
  85%{ opacity:1; }
  100%{ left:100%; opacity:0; }
}

/* ================= DETAIL OVERLAY (stock.html) ================= */
.detail{
  position:fixed; inset:0; z-index:100;
  background:var(--bg);
  display:none;
  overflow-y:auto;
}
.detail.open{ display:block; }
.detail-close{
  position:fixed; top:26px; right:34px; z-index:110;
  width:42px; height:42px;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  background:rgba(7,7,7,0.5);
  backdrop-filter:blur(8px);
}
.detail-close:hover{ border-color:var(--teal); }
.detail-inner{
  display:grid;
  grid-template-columns: 1fr 480px;
  min-height:100svh;
}
.detail-visual{
  position:relative;
  background:var(--surface);
  display:flex; flex-direction:column;
  padding: 100px 4vw 60px;
}
.detail-hero-img{
  flex:1;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.detail-hero-img img{
  max-width:100%; max-height:60vh; object-fit:contain;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.6));
}
.thumb-rail{ display:flex; gap:12px; margin-top:30px; }
.thumb{
  width:84px; height:60px;
  overflow:hidden;
  border:1px solid var(--line);
  opacity:.55;
  cursor:pointer;
  transition: opacity .2s ease, border-color .2s ease;
}
.thumb img{ width:100%; height:100%; object-fit:cover; }
.thumb.active{ opacity:1; border-color:var(--teal); }

.detail-panel{
  padding: 100px 44px 60px;
  border-left:1px solid var(--line);
  display:flex; flex-direction:column;
}
.detail-panel .eyebrow{ margin-bottom:10px; }
.detail-panel h2{
  font-family:'Michroma', sans-serif;
  font-size:28px;
  text-transform:uppercase;
  margin-bottom:6px;
  line-height:1.2;
}
.detail-panel .trim{ color:var(--muted); font-size:14px; margin-bottom:26px; }
.detail-specs{
  display:grid; grid-template-columns:1fr 1fr; gap:14px 18px;
  padding:22px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  margin-bottom:26px;
}
.detail-specs .k{ font-family:'Space Mono', monospace; font-size:10px; letter-spacing:.1em; color:var(--muted); text-transform:uppercase; margin-bottom:4px; }
.detail-specs .v{ font-size:14px; }
.detail-price{ display:flex; align-items:baseline; gap:16px; margin-bottom:8px; }
.detail-price .price{ font-family:'Michroma', sans-serif; font-size:26px; }
.detail-price .monthly{ font-family:'Space Mono', monospace; font-size:12px; color:var(--amber); }
.detail-price-sub{ font-size:11px; color:var(--muted); margin-bottom:28px; }
.detail-features{ margin-bottom:32px; }
.detail-features .k{ font-family:'Space Mono', monospace; font-size:10px; letter-spacing:.1em; color:var(--muted); text-transform:uppercase; margin-bottom:12px; }
.detail-features ul{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.detail-features li{ font-size:13.5px; color:var(--text); display:flex; gap:10px; line-height:1.5; }
.detail-features li::before{ content:''; width:5px; height:5px; background:var(--teal); margin-top:7px; flex-shrink:0; }
.detail-actions{ display:flex; flex-direction:column; gap:12px; margin-top:auto; }
.detail-actions .clip-btn{ justify-content:center; width:100%; }

/* ================= responsive ================= */
@media (max-width: 880px){
  .stage-slide-content{ padding:0 6vw 50px; max-width:100%; }
  .stage-slide-content h2{ font-size:clamp(24px, 8vw, 38px); }
  .stage-arrow{ width:42px; height:42px; }
  .stage-arrow.left{ left:3vw; } .stage-arrow.right{ right:3vw; }
  .detail-inner{ grid-template-columns:1fr; }
  .detail-visual{ padding:90px 6vw 30px; }
  .detail-panel{ border-left:none; border-top:1px solid var(--line); padding:40px 6vw 60px; }
  .filter-dock{ gap:16px; padding:80px 6vw 16px; }
  .filter-count{ width:100%; order:5; margin-left:0; justify-content:space-between; }
}

@media (prefers-reduced-motion: reduce){
  .hero-slide{ animation:none; }
  .sweep.run{ animation:none; }
  *{ transition-duration:0.01ms !important; }
}
