/* ================================================================
   iWaste v0.2 — Apple-Like Minimal Design System
   Black & white demo, subtle grayscale, system fonts, responsive
   ================================================================ */

/* ────────────────── RESET ────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { font: inherit; border: none; cursor: pointer; background: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ────────────────── TOKENS ────────────────── */
:root {
  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Page palette */
  --bg:       #fafafa;
  --bg2:      #f2f2f2;
  --surface:  #ffffff;
  --text:     #1d1d1f;
  --text-2:   #6e6e73;
  --text-3:   #86868b;
  --border:   rgba(0,0,0,.08);
  --border-2: rgba(0,0,0,.12);
  --border-3: rgba(0,0,0,.18);
  --card-hover: rgba(0,0,0,.02);

  /* Semantic colors (used in JS-rendered results) */
  --green:      #34c759;
  --green-dim:  rgba(52,199,89,.06);
  --green-mid:  rgba(52,199,89,.15);
  --amber:      #ff9f0a;
  --red:        #ff3b30;
  --blue:       #007aff;
  --compost:    #34c759;
  --recycle:    #007aff;
  --landfill:   #8e8e93;

  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  /* Radius */
  --radius:    16px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* Shadow */
  --shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);

  /* Layout */
  --max-w: 1080px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ────────────────── LAYOUT ────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s4); }
.section-centered { text-align: center; }

/* ────────────────── STATUS PILL ────────────────── */
.status-pill {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text-3);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  pointer-events: none;
}

/* ────────────────── NAVIGATION ────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--s4);
  height: 56px;
  background: rgba(250,250,250,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(250,250,250,.92); }
.nav-brand {
  font-size: 18px; font-weight: 700; letter-spacing: -.3px;
  color: var(--text);
}
.nav-center { display: flex; gap: var(--s4); }
.nav-center a {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: color .2s;
}
.nav-center a:hover { color: var(--text); }
.nav-cta {
  padding: 7px 18px;
  font-size: 13px; font-weight: 600;
  background: var(--text);
  color: #fff;
  border-radius: 100px;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .8; }

/* ────────────────── HERO ────────────────── */
.hero {
  padding: 140px var(--s4) 80px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: var(--s4);
  letter-spacing: .3px;
}
.hero h1 {
  font-size: 48px; font-weight: 700;
  line-height: 1.08; letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: var(--s4);
}
.hero-sub {
  font-size: 17px; line-height: 1.55;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto var(--s5);
}
.hero-actions { display: flex; justify-content: center; gap: var(--s3); margin-bottom: var(--s6); flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  font-size: 15px; font-weight: 600;
  border-radius: 100px;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { opacity: .85; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { border-color: var(--border-3); background: var(--bg2); }

/* Hero metrics */
.hero-metrics {
  display: flex; justify-content: center; gap: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.hero-metric { text-align: center; }
.hero-metric .num { font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.hero-metric .label { font-size: 12px; color: var(--text-3); margin-top: 2px; letter-spacing: .2px; }


/* ────────────────── SECTION TYPOGRAPHY ────────────────── */
.section {
  padding: var(--s7) 0;
  scroll-margin-top: 64px;
  border-top: 1px solid var(--border);
}
.section-eyebrow {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-3);
  margin-bottom: var(--s2);
}
.section-title {
  font-size: 28px; font-weight: 700;
  letter-spacing: -.6px; line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--s3);
}
.section-sub {
  font-size: 15px; line-height: 1.6;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: var(--s5);
}
.section-centered .section-sub { margin-left: auto; margin-right: auto; }


/* ────────────────── HOW IT WORKS ────────────────── */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  transition: box-shadow .25s;
}
.step-card:hover { box-shadow: var(--shadow-card); }
.step-num {
  font-size: 11px; font-weight: 700;
  color: var(--text-3); letter-spacing: 1px;
  margin-bottom: var(--s2);
  display: block;
}
.step-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.2px; margin-bottom: var(--s2); }
.step-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }


/* ================================================================
   DEMO — WHITE PRODUCT MODULE
   ================================================================ */
.demo-section {
  --demo-bg: #ffffff;
  --demo-text: #111111;
  --demo-text-2: #555555;
  --demo-text-3: #888888;
  --demo-border: #e6e6e6;
  --demo-border-2: #d4d4d4;
  --demo-primary: #000000;
  --demo-surface: #f8f8f8;

  background: var(--demo-bg);
  scroll-margin-top: 64px;
  border-top: 1px solid var(--border);
}

/* Override section typography inside demo */
.demo-section .section-eyebrow { color: var(--demo-text-3); }
.demo-section .section-title { color: var(--demo-text); }
.demo-section .section-sub { color: var(--demo-text-2); }

/* Demo container */
.demo-wrap {
  background: var(--demo-bg);
  border: 1px solid var(--demo-border);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 32px rgba(0,0,0,.06);
  overflow: hidden;
}
.demo-header {
  display: flex; align-items: center; gap: var(--s2);
  padding: 12px var(--s3);
  border-bottom: 1px solid var(--demo-border);
  background: var(--demo-surface);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }
.demo-title {
  margin-left: var(--s2);
  font-size: 13px; font-weight: 500;
  color: var(--demo-text-3);
}
.demo-body { padding: var(--s4); }

/* Demo split */
.demo-split { display: flex; flex-direction: column; gap: var(--s4); }
.demo-left, .demo-right { min-width: 0; }

/* Tabs */
.demo-tabs {
  display: flex; flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.demo-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s2);
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  color: var(--demo-text-3);
  cursor: pointer;
  min-height: 48px; justify-content: center;
  transition: background .18s, border-color .18s, color .18s;
}
.demo-tab:hover { background: #f0f0f0; border-color: var(--demo-border-2); color: var(--demo-text-2); }
.demo-tab:focus-visible { outline: 2px solid var(--demo-primary); outline-offset: 2px; }
.demo-tab.active {
  background: var(--demo-bg);
  border-color: var(--demo-primary);
  color: var(--demo-text);
}
.demo-tab-icon { font-size: 16px; font-weight: 700; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--demo-border);
  border-radius: var(--radius-sm);
  padding: var(--s6) var(--s4);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
  background: var(--demo-surface);
}
.upload-zone:hover { border-color: var(--demo-border-2); background: #f2f2f2; }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon {
  width: 48px; height: 48px;
  margin: 0 auto var(--s3);
  border-radius: var(--radius-sm);
  background: var(--demo-bg);
  border: 1px solid var(--demo-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--demo-text-3);
}
.upload-text { font-size: 15px; color: var(--demo-text-2); font-weight: 500; }
.upload-hint { font-size: 13px; color: var(--demo-text-3); margin-top: var(--s1); }
.upload-preview {
  width: 100%; max-height: 260px; object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--s3);
  display: none;
  border: 1px solid var(--demo-border);
}

/* Analyze button — black primary */
.analyze-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px; font-weight: 600;
  background: var(--demo-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  transition: opacity .2s, transform .15s;
  display: none;
  margin-top: var(--s2);
  min-height: 48px;
}
.analyze-btn:hover { opacity: .85; transform: translateY(-1px); }
.analyze-btn:focus-visible { outline: 2px solid var(--demo-primary); outline-offset: 2px; }
.analyze-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Loading */
.scan-loading {
  display: none; flex-direction: column; align-items: center;
  gap: var(--s2); padding: var(--s7) 0;
}
.scan-loading.active { display: flex; }
.loading-label { font-size: 15px; font-weight: 600; color: var(--demo-text); }
.loading-label::after { content: ''; animation: ellipsis 1.2s steps(4, end) infinite; }
.loading-sub { font-size: 13px; color: var(--demo-text-3); animation: pulse 2s ease infinite; }

/* Results */
.scan-results { display: none; }
.scan-results.active { display: block; animation: cardReveal 300ms ease-out both; }

/* Eco ring */
.eco-block {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s4) 0; animation: scoreIn .4s ease;
}
.eco-ring { position: relative; width: 100px; height: 100px; }
.eco-ring svg { width: 100%; height: 100%; }
.eco-ring .track { fill: none; stroke: var(--demo-border); stroke-width: 8; }
.eco-ring .fill {
  fill: none; stroke: var(--green); stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314; stroke-dashoffset: 314;
  transition: stroke-dashoffset 1s ease-out;
}
.eco-ring .num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
}
.eco-label {
  font-size: 10px; letter-spacing: 2.5px;
  color: var(--demo-text-3); font-weight: 600;
  margin-top: var(--s2); text-transform: uppercase;
}

/* Result cards */
.r-cards { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.r-card {
  background: var(--demo-bg);
  border: 1px solid var(--demo-border);
  border-radius: var(--radius-sm);
  padding: var(--s3);
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
  animation: cardReveal 300ms ease-out both;
}
.r-card:nth-child(2) { animation-delay: 40ms; }
.r-card:nth-child(3) { animation-delay: 80ms; }
.r-card:nth-child(4) { animation-delay: 120ms; }
.r-card h4 {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--demo-text-3);
  font-weight: 700; margin-bottom: var(--s2);
}
.r-card p { font-size: 14px; line-height: 1.55; color: var(--demo-text-2); }
.r-card .val { font-size: 18px; font-weight: 700; color: var(--demo-text); }
.r-card .val.green { color: var(--green); }
.r-card .val.amber { color: var(--amber); }
.r-card .val.red { color: var(--red); }
.r-card .val.blue { color: var(--blue); }

/* Risk badge */
.risk-badge {
  display: inline-flex; align-items: center;
  padding: var(--s1) 12px;
  border-radius: var(--radius-xs);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  border: 1px solid var(--demo-border);
}
.risk-badge.low { background: rgba(52,199,89,.08); color: var(--green); }
.risk-badge.medium { background: rgba(255,159,10,.08); color: var(--amber); }
.risk-badge.high { background: rgba(255,59,48,.08); color: var(--red); }

/* Bin badge */
.bin-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s1) 14px;
  border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  border: 1px solid var(--demo-border);
}
.bin-badge.compost { background: rgba(52,199,89,.08); color: var(--compost); }
.bin-badge.recycle { background: rgba(0,122,255,.08); color: var(--recycle); }
.bin-badge.landfill { background: rgba(142,142,147,.08); color: var(--landfill); }

/* Confidence bar */
.conf-row {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: var(--s2);
  font-size: 13px; color: var(--demo-text-2);
}
.conf-track {
  flex: 1; height: 5px;
  background: var(--demo-border);
  border-radius: 3px; overflow: hidden;
}
.conf-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width .8s ease;
}

/* Tip box */
.tip-box {
  background: #f5f5f5;
  border: 1px solid var(--demo-border);
  border-radius: var(--radius-sm);
  padding: var(--s3);
  display: flex; gap: var(--s2); align-items: flex-start;
  font-size: 14px; line-height: 1.55;
  margin-top: var(--s1);
  color: var(--demo-text);
}
.tip-icon { flex-shrink: 0; font-size: 16px; }

/* Scan again — white secondary button */
.scan-again {
  width: 100%;
  padding: 12px;
  margin-top: var(--s3);
  background: var(--demo-bg);
  border: 1px solid var(--demo-border);
  border-radius: var(--radius-sm);
  color: var(--demo-text);
  font-size: 14px; font-weight: 600;
  min-height: 48px;
  transition: background .2s, border-color .2s, color .2s;
}
.scan-again:hover { background: var(--demo-surface); border-color: var(--demo-border-2); color: var(--demo-primary); }
.scan-again:focus-visible { outline: 2px solid var(--demo-primary); outline-offset: 2px; }


/* ────────────────── FEATURES ────────────────── */
.features-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  position: relative;
  transition: box-shadow .25s;
}
.feature-card:hover { box-shadow: var(--shadow-card); }
.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600;
  border-radius: 100px;
  letter-spacing: .3px;
  margin-bottom: var(--s3);
}
.feature-tag.live { background: rgba(52,199,89,.08); color: var(--green); border: 1px solid var(--green-mid); }
.feature-tag.soon { background: rgba(0,0,0,.04); color: var(--text-3); border: 1px solid var(--border); }
.feature-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.2px; margin-bottom: var(--s2); }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }


/* ────────────────── IMPACT ────────────────── */
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.impact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  text-align: center;
  transition: box-shadow .25s;
}
.impact-card:hover { box-shadow: var(--shadow-card); }
.impact-num {
  font-size: 28px; font-weight: 700;
  letter-spacing: -.5px; color: var(--text);
  margin-bottom: var(--s1);
}
.impact-label { font-size: 13px; color: var(--text-2); line-height: 1.4; }


/* ────────────────── CTA BANNER ────────────────── */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s6) var(--s5);
  text-align: center;
}
.cta-banner h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -.4px; margin-bottom: var(--s3);
}
.cta-banner p {
  font-size: 15px; color: var(--text-2);
  margin-bottom: var(--s4);
  max-width: 480px; margin-left: auto; margin-right: auto;
}


/* ────────────────── TECH STACK ────────────────── */
.tech-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4) var(--s3);
  transition: box-shadow .25s;
}
.tech-card:hover { box-shadow: var(--shadow-card); }
.tech-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600;
  border-radius: 100px;
  margin-bottom: var(--s3);
  letter-spacing: .3px;
}
.tech-badge.ai { background: rgba(0,122,255,.08); color: var(--blue); border: 1px solid rgba(0,122,255,.15); }
.tech-badge.data { background: rgba(52,199,89,.08); color: var(--green); border: 1px solid var(--green-mid); }
.tech-badge.infra { background: rgba(0,0,0,.04); color: var(--text-3); border: 1px solid var(--border); }
.tech-badge.front { background: rgba(255,159,10,.08); color: var(--amber); border: 1px solid rgba(255,159,10,.15); }
.tech-card h4 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; margin-bottom: var(--s2); }
.tech-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; }


/* ────────────────── MONETIZATION ────────────────── */
.monetize-section {
  background: var(--bg2);
}
.monetize-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  text-align: left;
}
.monetize-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  box-shadow: 0 1px 4px rgba(0,0,0,.03), 0 4px 16px rgba(0,0,0,.04);
  transition: transform .28s cubic-bezier(.25,.1,.25,1), box-shadow .28s cubic-bezier(.25,.1,.25,1);
}
.monetize-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.08);
}
.monetize-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--s3);
}
.monetize-card h3 {
  font-size: 17px; font-weight: 700;
  color: var(--text); letter-spacing: -.2px;
  margin-bottom: var(--s2);
}
.monetize-card p {
  font-size: 14px; color: var(--text-2);
  line-height: 1.6;
}


/* ────────────────── FOOTER ────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s6) 0 var(--s5);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-bottom: var(--s5);
}
.footer-brand {
  font-size: 18px; font-weight: 700;
  margin-bottom: var(--s2);
}
.footer-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: var(--s2); }
.footer-col h5 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: var(--s1);
}
.footer-col a {
  font-size: 14px; color: var(--text-2);
  transition: color .2s;
  min-height: 32px;
  display: flex; align-items: center;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s2);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}
.footer-copy, .footer-event { font-size: 12px; color: var(--text-3); }


/* ────────────────── FLOATING OVERLAY ────────────────── */
.stats-overlay {
  position: fixed;
  bottom: var(--s3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex; gap: var(--s4);
  padding: 10px var(--s4);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  opacity: 0;
  transition: opacity .4s;
}
.stats-item { display: flex; align-items: center; gap: var(--s1); }
.stats-label { font-size: 11px; color: var(--text-3); font-weight: 500; }
.stats-value { font-size: 14px; font-weight: 700; color: var(--text); }
.stats-tier {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,0,0,.04);
  color: var(--text-2);
}


/* ────────────────── TOAST ────────────────── */
.iwaste-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  background: var(--text);
  color: #fff;
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 1001;
  max-width: 90%;
  text-align: center;
}
.iwaste-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ────────────────── ANIMATIONS ────────────────── */
@keyframes ellipsis {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
@keyframes scoreIn {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ================================================================
   RESPONSIVE — TABLET (768px+)
   ================================================================ */
@media (min-width: 768px) {
  .hero h1 { font-size: 56px; }
  .hero-sub { font-size: 18px; }
  .section-title { font-size: 32px; }

  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .monetize-grid { grid-template-columns: repeat(2, 1fr); }

  .demo-body { padding: var(--s5); }
  .demo-tabs { flex-direction: row; }
  .demo-split { flex-direction: row; }
  .demo-left { flex: 1; }
  .demo-right { flex: 1; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}


/* ================================================================
   RESPONSIVE — DESKTOP (1024px+)
   ================================================================ */
@media (min-width: 1024px) {
  :root { --max-w: 1120px; }

  .hero { padding: 160px var(--s5) 100px; }
  .hero h1 { font-size: 60px; letter-spacing: -2px; }
  .section { padding: var(--s8) 0; }

  .impact-grid { grid-template-columns: repeat(4, 1fr); }
  .monetize-grid { gap: var(--s4); }

  .stats-overlay {
    bottom: auto; left: auto; right: var(--s4);
    top: 72px;
    flex-direction: column;
    width: 140px;
    padding: var(--s3);
    gap: var(--s3);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    align-items: stretch;
    transform: none;
  }
  .stats-item { flex-direction: column; align-items: center; }
  .iwaste-toast { bottom: auto; top: 80px; }
}


/* ================================================================
   RESPONSIVE — LARGE MONITOR (1440px+)
   ================================================================ */
@media (min-width: 1440px) {
  :root { --max-w: 1280px; }

  .hero h1 { font-size: 64px; letter-spacing: -2.5px; }
  .section-title { font-size: 36px; }

  .monetize-grid { grid-template-columns: repeat(4, 1fr); }
  .monetize-card { padding: var(--s6) var(--s5); border-radius: 20px; }
}


/* ================================================================
   RESPONSIVE — MOBILE (≤480px)
   ================================================================ */
@media (max-width: 480px) {
  .nav { padding: 0 var(--s3); height: 50px; }
  .nav-center { display: none; }
  .nav-cta { font-size: 12px; padding: 6px 14px; }
  .status-pill { top: 54px; font-size: 10px; padding: 3px 12px; }

  .hero { padding: 110px var(--s3) 56px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: var(--s2); }
  .hero-actions .btn { width: 100%; }
  .hero-metrics { flex-direction: column; gap: var(--s3); align-items: center; }
  .hero-metric .num { font-size: 20px; }

  .container { padding: 0 var(--s3); }
  .section { padding: var(--s5) 0; }
  .section-title { font-size: 22px; }
  .section-sub { font-size: 14px; }

  .demo-section { padding: var(--s5) 0; }
  .demo-body { padding: var(--s3); }
  .demo-tabs { flex-direction: column; }
  .demo-tab { padding: var(--s2); min-height: 44px; font-size: 12px; }
  .analyze-btn, .scan-again { width: 100%; }

  .cta-banner { padding: var(--s5) var(--s3); }
  .cta-banner h2 { font-size: 18px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .stats-overlay {
    padding: 8px var(--s3);
    gap: var(--s3);
    border-radius: 100px;
    font-size: 12px;
  }
  .iwaste-toast { font-size: 13px; padding: 10px 20px; }
}
