/* ============================================================
   Select Vending - marketing site
   Sora, dark + lime, brand coil + keypad motif, bold and premium
   ============================================================ */

:root {
  --lime: #C4FF00;
  --lime-deep: #a8dd00;
  --ink: #0b0b0b;         /* Select Black */
  --ink-soft: #111311;
  --panel: #141714;       /* dark panel */
  --panel-2: #1c201b;     /* raised dark panel */
  --white: #ffffff;
  --cream: #f5f7f1;       /* light section bg */
  --muted-dark: #abb3a4;  /* muted text on dark */
  --muted-light: #5b6255; /* muted text on light */
  --line-dark: rgba(255,255,255,0.10);
  --line-light: rgba(11,11,11,0.10);

  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --header-h: 86px;

  --shadow: 0 22px 60px rgba(0,0,0,0.12);
  --shadow-dark: 0 30px 80px rgba(0,0,0,0.55);
  --glow: 0 0 0 1px rgba(196,255,0,0.35), 0 16px 40px rgba(196,255,0,0.18);

  --ease: cubic-bezier(.2,.7,.2,1);
  --font: "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 10px 30px rgba(196,255,0,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(196,255,0,0.45); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--lime); border-color: var(--lime); }
.btn-outline:hover { background: var(--lime); color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(11,11,11,0.30); backdrop-filter: blur(8px);
  transition: height .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { height: 66px; background: rgba(11,11,11,0.94); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand-logo { height: 42px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo { height: 34px; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { color: var(--white); font-weight: 600; font-size: 0.95rem; position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.nav-link:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--lime); transition: width .25s var(--ease); }
.nav-link:not(.nav-cta):hover { color: var(--lime); }
.nav-link:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--lime); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(196,255,0,0.4); color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  min-height: min(90vh, 860px);
  display: flex; align-items: center;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,11,11,0.94) 0%, rgba(11,11,11,0.78) 30%, rgba(11,11,11,0.3) 56%, rgba(11,11,11,0.04) 78%, transparent 100%),
    linear-gradient(180deg, rgba(11,11,11,0.6) 0%, transparent 20%),
    linear-gradient(0deg, rgba(11,11,11,0.55) 0%, transparent 26%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: calc(var(--header-h) + 40px) 0 56px; }
.hero-copy { max-width: 580px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; font-size: 0.76rem; color: var(--lime); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .pin { color: var(--lime); font-size: 0.7rem; }
.eyebrow-dark { color: var(--muted-light); }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 22px; letter-spacing: -0.03em; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.22rem); color: rgba(255,255,255,0.9); max-width: 540px; margin-bottom: 32px; text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.hero-note { font-weight: 600; color: var(--white); font-size: 0.95rem; opacity: 0.85; }

.hero-media { position: relative; display: flex; justify-content: center; align-items: center; }
.machine-stage { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.machine-glow {
  position: absolute; left: 50%; bottom: 4%; width: 92%; height: 44%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(196,255,0,0.28), rgba(196,255,0,0.06) 50%, transparent 72%);
  filter: blur(34px); z-index: 0; pointer-events: none;
}
.machine-3d {
  position: relative; z-index: 1; width: 100%; height: auto; display: block;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* ---------- Tagline marquee band ---------- */
.tagline-band { background: var(--lime); color: var(--ink); overflow: hidden; padding: 14px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.marquee { display: flex; width: max-content; animation: scroll-x 26s linear infinite; }
.marquee span { font-weight: 800; letter-spacing: 0.02em; font-size: 1.05rem; text-transform: uppercase; padding-right: 10px; white-space: nowrap; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 14px; }
.section-lead { color: var(--muted-light); font-size: 1.08rem; }
.section-watermark { position: absolute; right: -80px; top: 40px; width: 360px; opacity: 0.04; pointer-events: none; }

/* How it works (light) - 8 step process */
.how { background: var(--cream); }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process-step { position: relative; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.step-num { display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: var(--ink); background: var(--lime); width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px; }
.process-step h3 { font-size: 1.14rem; margin-bottom: 9px; }
.process-step p { color: var(--muted-light); font-size: 0.92rem; }
.process-note { text-align: center; margin-top: 36px; font-weight: 600; color: var(--ink); font-size: 1rem; }
.process-note::before { content: "◆ "; color: var(--lime-deep); }
.process-cta { text-align: center; margin-top: 40px; }
.process-cta .btn-lg { padding: 17px 38px; }

/* Machines (dark) */
.machines { background: var(--ink); color: var(--white); overflow: hidden; }
.machines .section-title { color: var(--white); }
.machines .section-lead { color: var(--muted-dark); }
.machine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.machine-card { background: transparent; border: none; padding: 0; transition: transform .25s var(--ease); display: flex; flex-direction: column; }
.machine-card:hover { transform: translateY(-6px); }
.machine-photo {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--white); padding: 16px;
  transition: box-shadow .25s var(--ease);
}
.machine-card:hover .machine-photo { box-shadow: 0 22px 50px rgba(0,0,0,0.45); }
.machine-photo img { width: 100%; height: auto; display: block; border-radius: 10px; }
.pop-badge { position: absolute; top: 20px; left: 20px; z-index: 2; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.feature-tag { position: absolute; top: 20px; right: 20px; z-index: 2; background: var(--white); color: var(--ink); font-weight: 800; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.machine-body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.machine-body h3 { font-size: 1.18rem; }
.machine-spec { color: var(--muted-dark); font-size: 0.92rem; flex: 1; }
.machine-body .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- What we can stock (auto-scrolling marquee) ---------- */
.stock { background: var(--bg); overflow: hidden; }
.stock-scroller {
  margin-top: 40px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.stock-scroller::-webkit-scrollbar { display: none; }
.stock-track { display: flex; gap: 20px; width: max-content; padding: 12px 24px; }
.stock-tile {
  margin: 0; flex: 0 0 auto;
  width: 150px; height: 170px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stock-tile:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0,0,0,0.1); }
.stock-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.stock-note { text-align: center; margin-top: 30px; color: var(--muted-light); font-size: 0.98rem; }

/* ---------- TikTok videos ---------- */
.social { background: var(--ink); color: var(--white); }
.social .section-title { color: var(--white); }
.social .section-lead { color: var(--muted-dark); }
.social .section-lead a { color: var(--lime); font-weight: 700; }
.video-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 42px; }
.video-card { width: 300px; max-width: 100%; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { margin: 14px 2px 0; display: flex; align-items: center; justify-content: flex-start; }
.view-count { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.98rem; color: var(--white); }
.play-ico { color: var(--lime); font-size: 0.78rem; }
.social-cta { text-align: center; margin-top: 42px; }

/* Why us (light) */
.why { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 32px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--ink); color: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 18px; }
.why-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.why-card p { color: var(--muted-light); font-size: 0.96rem; }

/* Where we put machines (dark) - image grid */
.placements { background: var(--ink); color: var(--white); }
.placements .section-title { color: var(--white); }
.placements .section-lead, .placements .eyebrow-dark { color: var(--muted-dark); }
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.place-card { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid rgba(196,255,0,0.28); background: #050605; display: flex; flex-direction: column; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.place-card:hover { border-color: var(--lime); transform: translateY(-4px); }
.place-card img { width: 100%; height: auto; display: block; }
.place-card figcaption { padding: 18px 20px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--white); border-top: 2px solid rgba(196,255,0,0.28); display: flex; align-items: center; gap: 10px; }
.place-card figcaption::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); flex: 0 0 auto; }
.place-card-text { justify-content: center; align-items: center; text-align: center; background: linear-gradient(145deg, rgba(196,255,0,0.14), var(--panel)); }
.place-card-text figcaption { border-top: 0; flex-direction: column; gap: 10px; padding: 40px 26px; }
.place-card-text figcaption::before { display: none; }
.place-more-title { color: var(--lime); font-size: 1.7rem; font-weight: 800; }
.place-more-list { color: var(--muted-dark); font-weight: 500; font-size: 1rem; }

/* About (light) */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-media { display: flex; justify-content: center; }
.about-image { width: 100%; max-width: 330px; border-radius: var(--radius-lg); background: var(--ink); padding: 44px; box-shadow: var(--shadow); }
.about-copy p { color: var(--muted-light); margin-bottom: 18px; font-size: 1.05rem; }
.about-copy .btn { margin-top: 8px; }

/* FAQ (dark) */
.faq { background: var(--ink); color: var(--white); }
.faq .section-title { color: var(--white); }
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--panel); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; transition: border-color .2s var(--ease); }
.faq-item[open] { border-color: rgba(196,255,0,0.4); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 1.08rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--lime); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-plus::before { top: 10px; left: 2px; width: 18px; height: 2px; }
.faq-plus::after { left: 10px; top: 2px; width: 2px; height: 18px; }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 24px 22px; color: var(--muted-dark); font-size: 0.98rem; }
.faq-answer p { max-width: 68ch; }

/* Apply (dark + lime emphasis) */
.apply { background: linear-gradient(180deg, var(--ink), #060705); color: var(--white); overflow: hidden; }
.apply-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.apply .section-title { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.1rem); }
.apply-lead { color: var(--muted-dark); font-size: 1.1rem; margin: 16px auto 30px; max-width: 620px; }
.form-card { background: transparent; border-radius: var(--radius-lg); padding: 0; max-width: 680px; margin: 0 auto; text-align: left; }
.form-card iframe { width: 100%; border: 0; display: block; border-radius: var(--radius); min-height: 480px; background: transparent; }
.form-fallback { text-align: center; color: var(--muted-light); font-size: 0.85rem; margin-top: 10px; }
.form-fallback a { color: var(--lime-deep); font-weight: 600; text-decoration: underline; }
.apply-note { color: var(--muted-dark); font-size: 0.9rem; margin-top: 18px; }
.apply-note a { color: var(--lime); font-weight: 600; }
.apply-contact { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line-dark); }
.apply-contact li { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.contact-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; font-weight: 700; color: var(--lime); }
.apply-contact a:hover { color: var(--lime); }
.apply-watermark { right: auto; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 520px; opacity: 0.03; }

/* ---------- Footer ---------- */
.site-footer { background: #060604; color: var(--white); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted-dark); font-size: 0.95rem; max-width: 300px; }
.footer-tag { color: var(--lime) !important; font-weight: 700; margin-top: 12px; letter-spacing: 0.02em; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--lime); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: var(--muted-dark); font-size: 0.93rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.footer-bottom p { color: var(--muted-dark); font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .machine-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero { min-height: min(84vh, 680px); }
  .hero-bg { object-position: 64% center; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(11,11,11,0.9) 0%, rgba(11,11,11,0.7) 45%, rgba(11,11,11,0.4) 100%),
      linear-gradient(180deg, rgba(11,11,11,0.6) 0%, transparent 18%),
      linear-gradient(0deg, rgba(11,11,11,0.75) 0%, transparent 34%);
  }
  .keypad-motif { top: 0; left: 6%; }
  .place-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(82vw, 330px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 6px; padding: calc(var(--header-h) + 10px) 28px 28px;
    background: var(--panel); border-left: 1px solid var(--line-dark);
    transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-dark);
  }
  .primary-nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.05rem; padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 10px; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .machine-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .place-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .apply-contact { gap: 20px; }
  .hero-actions .btn, .apply-actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .render, .marquee { animation: none; }
}
