/* =========================================================================
   Sin City Wholesale — Midnight Emerald
   Hand-crafted. No framework. Dark-luxe minimal, emerald + gold.
   ========================================================================= */

:root {
  --midnight: #06100d;
  --surface: #0b1a14;
  --raised: #0f241c;
  --hairline: #1c3a2e;
  --ink: #ecf5f1;
  --muted: #8aa89c;
  --jade: #10b981;
  --jade-glow: #34d399;
  --jade-deep: #059669;
  --gold: #d4af37;
  --gold-soft: #e8c66b;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 18px;

  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html.anim-ready { scroll-behavior: auto; } }

body {
  background: var(--midnight);
  color: var(--ink);
  font-family: var(--f-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(16, 185, 129, 0.3); color: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: var(--hairline) var(--midnight); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--midnight); padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Scroll progress ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

/* ---- Buttons ---- */
.btn {
  --pad-y: 13px; --pad-x: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn--lg { --pad-y: 16px; --pad-x: 30px; font-size: 1.02rem; }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1404; box-shadow: 0 10px 30px -12px rgba(212, 175, 55, 0.7);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.85); }
.btn--ghost { border-color: var(--hairline); color: var(--ink); background: rgba(255,255,255,0.01); }
.btn--ghost:hover { border-color: var(--jade); color: var(--jade-glow); transform: translateY(-2px); }

/* ---- Shared layout ---- */
.kicker, .eyebrow {
  font-family: var(--f-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 10px var(--jade); }
.accent { color: var(--jade-glow); }

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 160px) var(--gut); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 18px 0 0; }
.section__lead { color: var(--muted); font-size: 1.1rem; margin-top: 20px; max-width: 560px; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--gut);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(6,16,13,0.85), rgba(6,16,13,0));
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(6,16,13,0.92); border-bottom-color: var(--hairline); padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { filter: drop-shadow(0 4px 14px rgba(16,185,129,0.4)); }
.brand__word { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-display); }
.brand__word strong { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.08em; }
.brand__word em { font-style: normal; font-size: 0.66rem; letter-spacing: 0.42em; color: var(--gold); margin-top: 3px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 0.92rem; color: var(--muted); position: relative; transition: color 0.3s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--jade); transition: width 0.35s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

/* ---- HERO ---- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gut); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 80vh;
  background: radial-gradient(60% 60% at 50% 0%, rgba(16,185,129,0.28) 0%, rgba(16,185,129,0.06) 40%, rgba(6,16,13,0) 72%);
  filter: blur(10px);
}
.hero__line {
  position: absolute; left: 0; right: 0; bottom: 22%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), transparent);
}
.hero__grain {
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; width: 100%; padding-top: 80px; }
.eyebrow { margin-bottom: 26px; }
.hero__title { font-size: clamp(2.8rem, 9vw, 7.2rem); letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: block; }
.hero__sub { margin-top: 30px; max-width: 540px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; color: var(--muted); font-size: 0.9rem; }
.hero__trust strong { color: var(--gold); font-family: var(--f-display); }
.hero__trust .sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--hairline); }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--hairline); border-radius: 999px; z-index: 1; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 3px; height: 8px; border-radius: 2px; background: var(--jade); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 30% { opacity: 1; } 100% { opacity: 0; top: 24px; } }

/* ---- MARQUEE ---- */
.marquee { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 22px 0; overflow: hidden; background: var(--surface); }
.marquee__track { display: flex; align-items: center; gap: 38px; width: max-content; white-space: nowrap; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.marquee__track .gem { color: var(--gold); font-size: 0.9rem; }

/* ---- STATS ---- */
.stats { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gut); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 10px; }
.stat__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--jade-glow); letter-spacing: -0.03em; line-height: 1; }
.stat__label { color: var(--muted); font-size: 0.9rem; }

/* ---- CATEGORIES ---- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 28px 24px 26px; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 0% 0%, rgba(16,185,129,0.1), transparent 60%); opacity: 0; transition: opacity 0.5s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--jade); }
.card:hover::before { opacity: 1; }
.card__no { font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card--gold { border-color: rgba(212,175,55,0.45); background: linear-gradient(180deg, rgba(212,175,55,0.08), var(--surface)); }
.card--gold:hover { border-color: var(--gold); }
.card--gold .card__no { color: var(--gold-soft); }

/* ---- WHY (pinned horizontal) ---- */
.why { background: var(--midnight); }
.why__pin { height: 100svh; overflow: hidden; display: flex; align-items: center; }
.why__track { display: flex; gap: clamp(20px, 3vw, 40px); padding: 0 var(--gut); will-change: transform; }
.panel { flex: 0 0 auto; }
.why__intro { width: min(88vw, 520px); display: flex; flex-direction: column; justify-content: center; }
.why__intro h2 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 18px 0; }
.why__introlead { color: var(--muted); font-size: 1.1rem; max-width: 360px; }
.why__panel {
  width: min(86vw, 460px); min-height: 60vh; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 24px; padding: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.why__idx { font-family: var(--f-display); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--gold); }
.why__panel h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: auto; }
.why__panel p { color: var(--muted); margin-top: 16px; font-size: 1.02rem; }
.why__panel--gold { background: linear-gradient(165deg, rgba(212,175,55,0.1), var(--surface)); border-color: rgba(212,175,55,0.5); }
.why__panel--gold h3 { color: var(--gold-soft); }

/* ---- PROCESS ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.4s var(--ease), transform 0.5s var(--ease); }
.step:hover { border-color: var(--jade); transform: translateY(-4px); }
.step__no { font-family: var(--f-display); font-size: 2.4rem; font-weight: 700; color: var(--hairline); line-height: 1; transition: color 0.4s var(--ease); }
.step:hover .step__no { color: var(--jade); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---- CTA BAND ---- */
.cta-band { position: relative; padding: clamp(80px, 14vh, 180px) var(--gut); text-align: center; overflow: hidden; border-top: 1px solid var(--hairline); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 100%, rgba(16,185,129,0.18), transparent 70%); }
.cta-band__inner { position: relative; max-width: 760px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(2.4rem, 7vw, 5rem); }
.cta-band p { color: var(--muted); margin: 22px 0 36px; font-size: 1.15rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- FOOTER / CONTACT ---- */
.footer { background: var(--surface); border-top: 1px solid var(--hairline); padding: clamp(56px, 8vw, 96px) var(--gut) 0; }
.footer__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr 0.8fr; gap: clamp(32px, 5vw, 72px); }
.footer__lead p { color: var(--muted); margin-top: 18px; max-width: 320px; }
.brand--footer { margin-bottom: 4px; }
.footer__compliance { font-size: 0.82rem; color: var(--gold); opacity: 0.85; }
.footer__info h3 { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer__info h3:nth-of-type(2) { margin-top: 28px; }
.footer__info p { color: var(--muted); }
.footer__info a:hover { color: var(--jade-glow); }

.apply { background: var(--raised); border: 1px solid var(--hairline); border-radius: 24px; padding: clamp(26px, 3vw, 38px); }
.apply h2 { font-size: 1.6rem; }
.apply__sub { color: var(--muted); font-size: 0.95rem; margin: 8px 0 22px; }
.apply__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apply label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.apply input, .apply textarea {
  width: 100%; margin-top: 7px; background: var(--midnight); border: 1px solid var(--hairline);
  border-radius: 11px; padding: 12px 14px; color: var(--ink); font-family: var(--f-body); font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); resize: vertical;
}
.apply input:focus, .apply textarea:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.apply button { width: 100%; margin-top: 6px; }
.apply__or { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 16px; }
.apply__or a { color: var(--gold-soft); font-weight: 600; }

.footer__bar { max-width: var(--maxw); margin: clamp(40px, 6vw, 72px) auto 0; padding: 22px 0; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }

/* =========================================================================
   Motion initial states — only applied when JS on + motion allowed.
   (Guarantees no-JS and reduced-motion users see fully-rendered content.)
   ========================================================================= */
html.anim-ready [data-anim],
html.anim-ready .reveal,
html.anim-ready [data-anim-line] { opacity: 0; }

/* When motion is off / no JS: make the pinned horizontal strip natively
   swipe-scrollable so every panel stays reachable (no clipping). */
html:not(.anim-ready) .why__pin { height: auto; overflow-x: auto; padding: 64px 0; -webkit-overflow-scrolling: touch; }
html:not(.anim-ready) .why__panel { min-height: 0; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .apply__row { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
  .hero__trust { gap: 10px; }
}
