:root {
  --bg: #f8faf8;
  --surface: #ffffff;
  --line: #e2e8e3;
  --text: #1b1f1d;
  --muted: #5f6a64;
  --green: #068838;
  --green-dark: #046c2d;
  --green-soft: #effaf2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-row {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 800;
  color: var(--green);
  font-size: 1.65rem;
}

.main-nav {
  display: flex;
  gap: 22px;
  color: #4b5450;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--green);
}

.auth-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-ghost {
  background: #fff;
  border-color: #d1d8d3;
}

.btn-light {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  color: #0d1b12;
}

.hero-section {
  padding: 44px 0 58px;
  background: linear-gradient(to bottom, #ffffff, #f6fbf8);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  align-items: center;
}

.pill {
  display: inline-block;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.15;
}

.hero-copy h1 span {
  color: var(--green);
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.recycle-card {
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid #c8e7d2;
  background: linear-gradient(145deg, #c8f0d4, #afe6c4);
  display: grid;
  place-items: center;
  text-align: center;
  color: #2a5d42;
}

.recycle-icon {
  font-size: 4rem;
  margin-bottom: 8px;
}

.impact-tag {
  position: absolute;
  bottom: -22px;
  left: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(18, 35, 26, 0.1);
}

.impact-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7f7ed;
  color: var(--green);
  display: grid;
  place-items: center;
}

.impact-tag strong {
  display: block;
}

.impact-tag p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 64px 0;
}

.muted {
  background: #fcfdfc;
}

.section h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.6rem, 2.8vw, 2.7rem);
}

.section-subtitle {
  margin: 10px auto 0;
  text-align: center;
  max-width: 620px;
  color: var(--muted);
}

.steps-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.step-column h3 {
  margin: 0;
  font-size: 1.65rem;
}

.step-column > p {
  color: var(--muted);
  margin: 8px 0 14px;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-top: 10px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-right: 4px solid var(--green);
}

.step-card h4 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.step-icon {
  min-width: 34px;
  min-height: 34px;
  border-radius: 10px;
  background: #edf8f0;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
}

.benefits-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.benefit-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
}

.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.benefit-card h3 {
  margin: 0;
}

.benefit-card p {
  color: var(--muted);
  margin: 8px 0 10px;
}

.benefit-card small {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ebf9ee;
  color: var(--green-dark);
  font-weight: 600;
}

.cta-area {
  padding-top: 10px;
}

.cta-box {
  border-radius: 18px;
  padding: 30px;
  background: linear-gradient(135deg, #017a2f, #069a3d);
  color: #fff;
}

.cta-box .hero-actions {
  margin-top: 0;
}

.cta-box hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  margin: 24px 0;
}

.stats-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stats-inline strong {
  font-size: 2rem;
}

.stats-inline p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer {
  margin-top: 66px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 36px 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 22px;
}

.footer-grid h4 {
  margin-top: 0;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: var(--muted);
  margin: 6px 0;
}

.copyright {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #717b75;
}

@media (max-width: 980px) {
  .hero-grid,
  .steps-grid,
  .benefits-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-row {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    order: 4;
    padding-bottom: 8px;
  }

  .auth-actions {
    margin-inline-start: auto;
  }

  .impact-tag {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .stats-inline {
    gap: 16px;
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
   Platform demo (dashboard UI)
-------------------------------- */

.platform-section {
  background: linear-gradient(to bottom, #ffffff, #f7fbf8);
}

.platform-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.platform-subtitle {
  text-align: start;
  margin: 10px 0 0;
}

.platform-rolebar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.rolebar-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.rolebar-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.rolebar-select {
  border: 1px solid #d1d8d3;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  outline: none;
}

.platform-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.is-admin-role .platform-shell {
  grid-template-columns: 260px 1fr;
}

.dash-sidebar {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.dash-title {
  font-weight: 800;
  color: var(--green);
  margin-bottom: 12px;
}

.dash-nav {
  display: grid;
  gap: 8px;
}

.dash-link {
  text-align: start;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  color: #2d3631;
}

.dash-link:hover {
  border-color: #c8e7d2;
  background: #fbfefc;
}

.dash-link.is-active {
  background: var(--green-soft);
  border-color: #c8e7d2;
  color: var(--green-dark);
}

.dash-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e5efe8;
  background: #fbfefc;
}

.dash-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.dash-main {
  min-width: 0;
}

.view-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.view-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid-2 {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.card h4 {
  margin: 0 0 12px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.chip {
  min-width: 30px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe6de;
  background: #f7fbf8;
  font-weight: 800;
  color: #2f3a35;
}

.form {
  display: grid;
  gap: 10px;
}

.form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid #d1d8d3;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font: inherit;
  background: #fff;
}

.form textarea {
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: #a9d7ba;
  box-shadow: 0 0 0 3px rgba(6, 136, 56, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.filters {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.filters label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #edf2ee;
  border-radius: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.table th,
.table td {
  padding: 12px 12px;
  border-bottom: 1px solid #edf2ee;
  vertical-align: top;
}

.table th {
  text-align: start;
  color: #3b4540;
  font-size: 0.95rem;
  background: #fbfdfc;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table tr:hover td {
  background: #fcfffd;
}

.strong {
  font-weight: 800;
}

.muted-sm {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.actions {
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #dbe6de;
  background: #f7fbf8;
  font-weight: 800;
  font-size: 0.9rem;
}

.badge-info {
  border-color: rgba(6, 136, 56, 0.18);
  background: rgba(6, 136, 56, 0.09);
  color: var(--green-dark);
}

.badge-warn {
  border-color: rgba(191, 120, 11, 0.25);
  background: rgba(191, 120, 11, 0.1);
  color: #7a4c05;
}

.badge-good {
  border-color: rgba(13, 156, 84, 0.22);
  background: rgba(13, 156, 84, 0.1);
  color: #046c2d;
}

.badge-neutral {
  color: #4a5450;
}

.empty {
  border: 1px dashed #d6e2da;
  border-radius: 14px;
  padding: 16px;
  background: #fbfefc;
  color: var(--muted);
}

.chat-box {
  height: 310px;
  overflow: auto;
  border: 1px solid #edf2ee;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(to bottom, #ffffff, #fbfefc);
}

.chat-msg {
  margin-bottom: 10px;
}

.chat-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.chat-bubble {
  display: inline-block;
  max-width: min(520px, 100%);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e7efe9;
  background: #fff;
  line-height: 1.6;
}

.chat-msg.is-admin {
  text-align: start;
}

.chat-msg.is-admin .chat-bubble {
  border-color: rgba(6, 136, 56, 0.18);
  background: rgba(6, 136, 56, 0.08);
}

.chat-compose {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.chat-compose input {
  flex: 1;
}

.toast-area {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: grid;
  gap: 10px;
  z-index: 50;
}

.toast {
  min-width: min(360px, 86vw);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(18, 35, 26, 0.16);
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: center;
  transform: translateY(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

.toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8aa39a;
}

.toast-info .toast-dot {
  background: var(--green);
}

.toast-warn .toast-dot {
  background: #bf780b;
}

.toast-msg {
  font-weight: 700;
  color: #2b3530;
}

.metric {
  padding: 18px;
}

.metric-label {
  color: var(--muted);
  font-weight: 800;
}

.metric-value {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 900;
  color: #1a211d;
}

.bullets {
  margin: 0;
  padding: 0 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 980px) {
  .platform-shell {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: relative;
    top: auto;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 560px;
  }

  .toast-area {
    left: 14px;
    right: 14px;
  }
}
