/* ============================================================
   SCANWEAR LANDING PAGE — SCOPED STYLES
   ============================================================ */

:root {
  --black: #0d0d0d;
  --white: #f5f2ed;
  --cream: #f5f2ed;
  --accent: #c8f542;
  --accent-dark: #9dbf2a;
  --mid: #6b6860;
  --border: rgba(13,13,13,0.12);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body.home {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITY ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ── */
.sw-hero {
  background: var(--black);
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.sw-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,245,66,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,245,66,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.sw-hero-left { padding: 80px 48px 80px 64px; position: relative; z-index: 1; }
.sw-hero-eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.sw-hero-eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--accent);
}
.sw-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 8vw, 110px);
  line-height: 0.92;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 32px;
}
.sw-hero-h1 em { font-style: normal; color: var(--accent); display: block; }
.sw-hero-sub {
  font-size: 17px; line-height: 1.65;
  color: rgba(245,242,237,0.65);
  max-width: 420px; margin-bottom: 40px;
  font-weight: 300;
}
.sw-hero-sub strong { color: var(--white); font-weight: 500; }
.sw-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.sw-btn-primary {
  background: var(--accent); color: var(--black);
  border: none; padding: 16px 36px; border-radius: 2px;
  font-family: var(--font-display); font-size: 20px; letter-spacing: 1.5px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: transform 0.15s, background 0.2s;
}
.sw-btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); color: var(--black); text-decoration: none; }
.sw-btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(245,242,237,0.25);
  padding: 16px 28px; border-radius: 2px;
  font-family: var(--font-body); font-size: 15px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.sw-btn-ghost:hover { border-color: var(--white); color: var(--white); text-decoration: none; }

.sw-hero-right {
  display: flex; align-items: center; justify-content: center;
  padding: 80px 64px 80px 0;
  position: relative; z-index: 1;
}
.sw-shirt-mock {
  width: 280px; height: 320px;
  background: #1a1a1a;
  border: 1px solid rgba(200,245,66,0.15);
  border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; padding: 32px;
  position: relative;
  animation: floatShirt 4s ease-in-out infinite;
}
@keyframes floatShirt { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.sw-shirt-warning {
  font-family: var(--font-display);
  font-size: 38px; letter-spacing: 3px;
  color: var(--white); text-align: center; line-height: 1;
}
.sw-shirt-qr {
  width: 100px; height: 100px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.sw-shirt-qr-inner {
  width: 72px; height: 72px;
  display: grid; grid-template-columns: repeat(7,1fr); gap: 2px;
}
.sw-shirt-qr-inner span { border-radius: 1px; background: var(--accent); }
.sw-shirt-tag {
  position: absolute; bottom: -12px; right: -12px;
  background: var(--accent); color: var(--black);
  font-family: var(--font-mono); font-size: 10px;
  padding: 4px 8px; border-radius: 2px; letter-spacing: 1px;
}
.sw-scan-badge {
  position: absolute; top: -16px; right: -20px;
  background: var(--accent); color: var(--black);
  font-family: var(--font-display); font-size: 14px; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 2px;
  animation: badgePop 3s ease-in-out infinite;
}
@keyframes badgePop { 0%,100%{transform:rotate(3deg) scale(1)} 50%{transform:rotate(3deg) scale(1.05)} }

/* ── SOCIAL PROOF TICKER ── */
.sw-ticker {
  background: var(--accent); padding: 12px 0;
  overflow: hidden; white-space: nowrap;
}
.sw-ticker-inner {
  display: inline-block;
  animation: ticker 30s linear infinite;
  font-family: var(--font-display); font-size: 18px;
  letter-spacing: 2px; color: var(--black);
}
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.sw-ticker-sep { margin: 0 32px; opacity: 0.4; }

/* ── STATS ROW ── */
.sw-stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.sw-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.sw-stat { text-align: center; padding: 24px; border-right: 1px solid var(--border); }
.sw-stat:last-child { border-right: none; }
.sw-stat-num {
  font-family: var(--font-display); font-size: 52px;
  letter-spacing: 1px; color: var(--black); line-height: 1; margin-bottom: 6px;
}
.sw-stat-label { font-size: 13px; color: var(--mid); font-family: var(--font-mono); letter-spacing: 0.5px; }

/* ── HOW IT WORKS ── */
.sw-how { padding: 100px 0; background: var(--cream); }
.sw-section-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--mid); margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.sw-section-label::after { content: ''; flex: 1; max-width: 48px; height: 1px; background: var(--border); }
.sw-section-h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: 1px; line-height: 1; margin-bottom: 64px;
}
.sw-how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.sw-how-step {
  background: var(--white); padding: 40px 32px;
  position: relative; border: 1px solid var(--border);
  transition: transform 0.2s;
}
.sw-how-step:hover { transform: translateY(-4px); }
.sw-step-num {
  font-family: var(--font-display); font-size: 80px;
  color: rgba(13,13,13,0.06); line-height: 1;
  position: absolute; top: 16px; right: 24px; pointer-events: none;
}
.sw-step-icon {
  width: 48px; height: 48px; background: var(--black);
  border-radius: 2px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
  font-size: 22px; color: var(--accent);
}
.sw-step-title { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.5px; margin-bottom: 12px; }
.sw-step-body { font-size: 15px; color: var(--mid); line-height: 1.65; }
.sw-step-img-note {
  margin-top: 16px; padding: 10px 14px;
  border: 1px dashed var(--border); border-radius: 2px;
  font-size: 12px; color: var(--mid); line-height: 1.5;
  font-family: var(--font-mono);
}

/* ── EARN SECTION ── */
.sw-earn { background: var(--black); padding: 100px 0; position: relative; overflow: hidden; }
.sw-earn::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,245,66,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.sw-earn .sw-section-label { color: rgba(245,242,237,0.4); }
.sw-earn .sw-section-label::after { background: rgba(245,242,237,0.1); }
.sw-earn .sw-section-h2 { color: var(--white); }
.sw-earn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sw-earn-sub { font-size: 17px; color: rgba(245,242,237,0.6); line-height: 1.7; margin-bottom: 40px; font-weight: 300; }
.sw-earn-sub strong { color: var(--white); font-weight: 500; }
.sw-earn-numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-bottom: 40px; }
.sw-earn-num-card { background: rgba(245,242,237,0.05); border: 1px solid rgba(245,242,237,0.08); padding: 24px 16px; text-align: center; }
.sw-earn-num-card .big { font-family: var(--font-display); font-size: 36px; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.sw-earn-num-card .small { font-size: 12px; color: rgba(245,242,237,0.45); font-family: var(--font-mono); }
.sw-earn-card { background: rgba(245,242,237,0.04); border: 1px solid rgba(200,245,66,0.2); border-radius: 4px; padding: 40px; }
.sw-earn-card-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: rgba(245,242,237,0.4); text-transform: uppercase; margin-bottom: 8px; }
.sw-earn-card-amount { font-family: var(--font-display); font-size: 72px; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.sw-earn-card-sub { font-size: 14px; color: rgba(245,242,237,0.5); margin-bottom: 32px; font-family: var(--font-mono); }
.sw-earn-card-divider { height: 1px; background: rgba(245,242,237,0.08); margin-bottom: 24px; }
.sw-earn-card-detail { font-size: 14px; color: rgba(245,242,237,0.55); line-height: 1.7; }
.sw-earn-card-detail strong { color: var(--white); font-weight: 500; }

/* ── LEADERBOARD STYLES ── */
.sw-leaderboard-box {
  background: rgba(245,242,237,0.03);
  border: 1px dashed rgba(245,242,237,0.15);
  border-radius: 4px;
  padding: 32px;
  margin-top: 32px;
}
.sw-leaderboard-title {
  font-family: var(--font-display); font-size: 24px; color: var(--white);
  letter-spacing: 1px; margin-bottom: 20px; text-transform: uppercase;
}
.sw-leaderboard-list { display: flex; flex-direction: column; gap: 12px; }
.sw-leaderboard-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(245,242,237,0.02); padding: 12px 16px;
  border: 1px solid rgba(245,242,237,0.05); border-radius: 2px;
}
.sw-leader-rank { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.sw-leader-name { font-family: var(--font-body); font-size: 14px; color: var(--white); font-weight: 500; }
.sw-leader-amount { font-family: var(--font-mono); font-size: 14px; color: var(--accent); font-weight: 700; }

/* ── PRODUCT ── */
.sw-product { padding: 100px 0; background: var(--white); }
.sw-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.sw-product-img {
  background: var(--cream); border: 1px solid var(--border);
  aspect-ratio: 3/4; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 32px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--mid); text-align: center; line-height: 1.6;
}
.sw-product-img-icon { font-size: 40px; color: var(--border); margin-bottom: 8px; }
.sw-product-name { font-family: var(--font-display); font-size: 48px; letter-spacing: 1px; line-height: 1; margin-bottom: 8px; }
.sw-product-price { font-size: 28px; font-weight: 500; margin-bottom: 8px; }
.sw-product-commission {
  display: inline-flex; align-items: center; gap: 8px;
  background: #c8f542; border: 1px solid #c8f542;
  color: #0d0d0d; border-radius: 2px;
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  margin-bottom: 32px; font-family: var(--font-mono);
}
.sw-size-label { font-size: 13px; font-weight: 500; margin-bottom: 10px; font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.sw-sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.sw-size {
  width: 44px; height: 44px; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  border-radius: 2px;
  background: transparent; font-family: var(--font-body);
}
.sw-add-btn {
  width: 100%; padding: 18px;
  background: var(--black); color: var(--white);
  border: none; border-radius: 2px; cursor: pointer;
  font-family: var(--font-display); font-size: 22px;
  letter-spacing: 2px; transition: background 0.2s;
  text-decoration: none; display: block; text-align: center;
}
.sw-add-btn:hover { background: #1a1a1a; color: var(--white); text-decoration: none; }
.sw-product-meta { margin-top: 20px; font-size: 13px; color: var(--mid); line-height: 1.7; font-family: var(--font-mono); }

/* ── TESTIMONIALS ── */
.sw-testi { padding: 100px 0; background: var(--cream); }
.sw-testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.sw-testi-card { background: var(--white); border: 1px solid var(--border); padding: 36px 28px; }
.sw-testi-header { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.sw-testi-avatar {
  width: 44px; height: 44px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; flex-shrink: 0;
}
.sw-testi-avatar.a1 { background: #0d0d0d; color: var(--accent); }
.sw-testi-avatar.a2 { background: var(--accent); color: var(--black); }
.sw-testi-avatar.a3 { background: #1a1a1a; color: var(--white); }
.sw-testi-name { font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.sw-testi-loc { font-size: 12px; color: var(--mid); font-family: var(--font-mono); }
.sw-testi-body { font-size: 15px; color: var(--black); line-height: 1.7; margin-bottom: 16px; font-style: italic; font-weight: 300; }
.sw-testi-earned { font-family: var(--font-mono); font-size: 13px; color: #3a6b00; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.sw-testi-earned::before { content: '↑'; font-style: normal; }
.sw-testi-img-note { margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 2px; font-size: 11px; color: var(--mid); line-height: 1.5; font-family: var(--font-mono); }

/* ── FAQ ── */
.sw-faq { padding: 100px 0; background: var(--white); }
.sw-faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.sw-faq-left p { font-size: 15px; color: var(--mid); line-height: 1.7; margin-top: 20px; }
.sw-faq-list { display: flex; flex-direction: column; gap: 0; }
.sw-faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; cursor: pointer; }
.sw-faq-item:first-child { border-top: 1px solid var(--border); }
.sw-faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sw-faq-q-text { font-size: 16px; font-weight: 500; }
.sw-faq-toggle {
  width: 28px; height: 28px; border: 1px solid var(--border);
  border-radius: 2px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; transition: transform 0.2s, background 0.2s; color: var(--black);
}
.sw-faq-item.open .sw-faq-toggle { background: var(--black); color: var(--white); transform: rotate(45deg); }
.sw-faq-a { font-size: 14px; color: var(--mid); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding-top 0.2s; }
.sw-faq-item.open .sw-faq-a { max-height: 200px; padding-top: 14px; }

/* ── FOOTER CTA ── */
.sw-footer-cta { background: var(--black); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.sw-footer-cta::before {
  content: ''; position: absolute; bottom: -300px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(circle, rgba(200,245,66,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.sw-footer-cta .sw-section-label { justify-content: center; color: rgba(245,242,237,0.4); }
.sw-footer-cta .sw-section-label::after { display: none; }
.sw-footer-cta .sw-section-h2 { color: var(--white); margin-bottom: 20px; }
.sw-footer-cta-sub { font-size: 17px; color: rgba(245,242,237,0.55); max-width: 500px; margin: 0 auto 48px; line-height: 1.7; font-weight: 300; }
.sw-footer-cta-meta { margin-top: 20px; font-size: 13px; color: rgba(245,242,237,0.35); font-family: var(--font-mono); }

/* ── ENTRY ANIMATIONS ── */
.sw-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.sw-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sw-hero { grid-template-columns: 1fr; min-height: auto; }
  .sw-hero-right { display: none; }
  .sw-hero-left { padding: 60px 24px; }
  .sw-stats-grid { grid-template-columns: repeat(2,1fr); }
  .sw-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .sw-how-steps { grid-template-columns: 1fr; }
  .sw-earn-grid { grid-template-columns: 1fr; }
  .sw-product-grid { grid-template-columns: 1fr; }
  .sw-testi-grid { grid-template-columns: 1fr; }
  .sw-faq-grid { grid-template-columns: 1fr; gap: 40px; }
}