/* ===== E-WASTE UX RESEARCH REPORT — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --bg-alt: #F3F1EE;
  --bg-dark: #1A1A2E;
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --primary-lighter: #40916C;
  --accent: #D4A843;
  --accent-light: #E8C96A;
  --green-1: #52B788;
  --green-2: #74C69D;
  --green-3: #95D5B2;
  --green-4: #B7E4C7;
  --danger: #E63946;
  --danger-light: #F4A3A8;
  --warning: #F4A261;
  --info: #457B9D;
  --text: #1A1A2E;
  --text-secondary: #555568;
  --text-muted: #8E8EA0;
  --border: #E5E3DE;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; color: var(--text-secondary); max-width: 75ch; }
.label-sm { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
section { padding: clamp(3rem, 8vw, 6rem) 0; }
section:nth-child(even) { background: var(--bg-alt); }

/* ===== NAV ===== */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.top-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--primary);
}
.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(27,67,50,0.06); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 64px;
  background: linear-gradient(175deg, var(--bg) 0%, #EEF2E6 50%, #D8E2CC 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -15%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(27,67,50,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(27,67,50,0.08); border: 1px solid rgba(27,67,50,0.15);
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; color: var(--primary);
  margin-bottom: 1.5rem;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-1); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { color: var(--primary); margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary);
  max-width: 650px; margin-bottom: 2rem;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 3rem;
}
.hero-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* Counter stats row */
.stat-counters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem; font-weight: 800; color: var(--primary);
  line-height: 1;
}
.stat-number.accent { color: var(--accent); }
.stat-number.danger { color: var(--danger); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; font-weight: 500; }

/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: 3rem; }
.section-header .label-sm { margin-bottom: 0.75rem; display: block; color: var(--accent); }
.section-header h2 { color: var(--primary); margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

/* Insight cards */
.insight-card {
  background: var(--bg-card); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 2rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.insight-card h4 { color: var(--primary); margin-bottom: 0.5rem; }
.insight-card p { font-size: 0.95rem; }
.insight-card .stat-highlight {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem; font-weight: 700; color: var(--accent);
  display: block; margin-bottom: 0.25rem;
}

/* Gap cards */
.gap-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 1.5rem; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); position: relative;
  overflow: hidden;
}
.gap-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
}
.gap-card.severity-high::before { background: var(--danger); }
.gap-card.severity-medium::before { background: var(--warning); }
.gap-card.severity-low::before { background: var(--info); }
.gap-card .severity-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 100px; margin-bottom: 0.75rem;
}
.severity-high .severity-badge { background: rgba(230,57,70,0.1); color: var(--danger); }
.severity-medium .severity-badge { background: rgba(244,162,97,0.1); color: var(--warning); }
.severity-low .severity-badge { background: rgba(69,123,157,0.1); color: var(--info); }
.gap-card h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.gap-card p { font-size: 0.9rem; }
.gap-stat { font-weight: 700; color: var(--primary); }

/* ===== CHART CONTAINERS ===== */
.chart-wrapper {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm); margin-bottom: 2rem;
  overflow: hidden;
}
.chart-wrapper h3 { color: var(--primary); margin-bottom: 0.25rem; font-size: 1.2rem; }
.chart-wrapper .chart-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.chart-area { width: 100%; min-height: 300px; position: relative; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.chart-row .chart-wrapper { margin-bottom: 0; }

/* ===== TOOLTIP ===== */
.d3-tooltip {
  position: absolute; pointer-events: none;
  background: var(--bg-dark); color: #fff;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity 0.2s;
  z-index: 200; white-space: nowrap;
}

/* ===== KIOSK FEATURE LIST ===== */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem;
  transition: var(--transition);
}
.feature-item:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.feature-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; color: #fff;
}
.feature-item h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature-item p { font-size: 0.85rem; }

/* ===== CAMPAIGN CARDS ===== */
.campaign-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.campaign-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.campaign-header {
  padding: 1.75rem 2rem 1.25rem; border-bottom: 1px solid var(--border);
}
.campaign-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem; font-weight: 800; color: var(--accent);
  line-height: 1; opacity: 0.3;
}
.campaign-header h3 { font-size: 1.3rem; color: var(--primary); margin-top: 0.25rem; }
.campaign-body { padding: 1.5rem 2rem; }
.campaign-body p { font-size: 0.95rem; margin-bottom: 0.75rem; }
.campaign-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem; border-radius: 100px;
  background: rgba(27,67,50,0.08); color: var(--primary);
  margin-right: 0.5rem; margin-bottom: 0.5rem;
}

/* ===== SOLUTION CARDS ===== */
.solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.solution-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  box-shadow: var(--shadow-sm); position: relative;
  transition: var(--transition);
}
.solution-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-1); }
.solution-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem; font-weight: 800; color: var(--green-3);
  line-height: 1; margin-bottom: 0.5rem;
}
.solution-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.solution-card p { font-size: 0.88rem; }

/* ===== EXPERT SECTION ===== */
.expert-quote {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border-radius: var(--radius-lg); padding: 2.5rem;
  position: relative; margin: 2rem 0;
}
.expert-quote::before {
  content: '"'; font-family: 'Outfit', sans-serif;
  font-size: 6rem; position: absolute; top: -0.5rem; left: 1.5rem;
  opacity: 0.15; line-height: 1;
}
.expert-quote p { color: rgba(255,255,255,0.95); font-size: 1.1rem; font-style: italic; max-width: none; }
.expert-quote .quote-source {
  margin-top: 1rem; font-size: 0.85rem; font-style: normal;
  opacity: 0.7; font-weight: 600;
}

/* ===== METHODOLOGY ===== */
.method-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.method-step {
  text-align: center; padding: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.method-step .step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 700;
  margin-bottom: 0.75rem;
}
.method-step h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.method-step p { font-size: 0.85rem; text-align: center; }

/* ===== DATA TABLE ===== */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem; margin-top: 1rem;
}
.data-table thead th {
  background: var(--primary); color: #fff;
  padding: 0.75rem 1rem; text-align: left;
  font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.data-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.data-table tbody td {
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--border);
}
.data-table tbody tr:hover { background: rgba(27,67,50,0.03); }
.data-table .significant { color: var(--danger); font-weight: 700; }
.data-table .not-significant { color: var(--text-muted); }

/* ===== DIVIDER ===== */
.divider {
  width: 60px; height: 4px; background: var(--accent);
  border-radius: 100px; margin: 1rem 0;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== REFERENCES ===== */
.ref-list { list-style: none; counter-reset: ref; }
.ref-list li {
  counter-increment: ref; padding: 0.75rem 0;
  border-bottom: 1px solid var(--border); font-size: 0.88rem;
  color: var(--text-secondary); padding-left: 2rem; position: relative;
}
.ref-list li::before {
  content: '[' counter(ref) ']'; position: absolute; left: 0;
  font-weight: 700; color: var(--primary); font-size: 0.8rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary); color: rgba(255,255,255,0.7);
  padding: 3rem 0; text-align: center; font-size: 0.85rem;
}
.site-footer strong { color: #fff; }
.site-footer p { max-width: none; text-align: center; color: rgba(255,255,255,0.7); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .chart-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stat-counters { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding: 100px 0 60px; }
  section { padding: 3rem 0; }
  .card-grid, .card-grid-3, .feature-list, .solution-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .campaign-header { padding: 1.25rem 1.25rem 1rem; }
  .campaign-body { padding: 1.25rem; }
  .expert-quote { padding: 1.5rem; }
  .chart-wrapper { padding: 1.25rem; }
  .chart-area { min-height: 250px; }
  .insight-card { padding: 1.25rem; }
  .data-table { font-size: 0.78rem; }
  .data-table thead th, .data-table tbody td { padding: 0.5rem 0.6rem; }
}
@media (max-width: 480px) {
  .stat-counters { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-meta { gap: 0.75rem; font-size: 0.8rem; }
  .section-header { margin-bottom: 2rem; }
  .feature-item { flex-direction: column; }
  .chart-area { min-height: 220px; }
}

/* ===== SVG CHART STYLES ===== */
.axis text { font-family: 'Inter', sans-serif; font-size: 11px; fill: var(--text-muted); }
.axis line, .axis path { stroke: var(--border); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; justify-content: center; }
.legend-item { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--text-secondary); }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; }
