/* ============================
   SORTIFY — THEME CSS
   ============================ */

:root {
  --forest: #1C3829;
  --forest-light: #2D5A3E;
  --sand: #F6EFE6;
  --sand-dark: #EDE4D8;
  --amber: #E07B39;
  --amber-light: #F09A50;
  --text: #1A1A1A;
  --text-mid: #5A5A5A;
  --text-light: #8A8A8A;
  --recycle-blue: #3A7BD5;
  --compost-green: #27AE60;
  --landfill-gray: #6B6B6B;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-dark);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--forest); }

/* ---- HERO ---- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--sand-dark);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--forest);
}
.stat-label {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
  max-width: 340px;
}

/* ---- GAME FRAME ---- */
.game-frame {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(28,56,41,0.12), 0 2px 8px rgba(28,56,41,0.06);
  border: 1px solid var(--sand-dark);
}
.game-header {
  background: var(--forest);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.game-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.game-dot:first-child { background: #FF5F57; }
.game-dot:nth-child(2) { background: #FFBD2E; }
.game-dot:nth-child(3) { background: #28CA41; }
.game-title {
  margin-left: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-family: var(--font-body);
}
.game-area {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.draggables {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: grab;
  user-select: none;
}
.item svg { width: 52px; height: 52px; }
.item-label {
  font-size: 10px;
  color: var(--text-mid);
  font-weight: 500;
  text-align: center;
}
.bins {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.bin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bin-body {
  width: 72px; height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,255,255,0.4);
}
.bin-recycle .bin-body { background: var(--recycle-blue); border-color: transparent; }
.bin-compost .bin-body { background: var(--compost-green); border-color: transparent; }
.bin-landfill .bin-body { background: var(--landfill-gray); border-color: transparent; }
.bin span { font-size: 11px; font-weight: 600; color: var(--text-mid); }
.game-score {
  padding: 12px 24px;
  background: var(--sand);
  border-top: 1px solid var(--sand-dark);
}
.game-score span {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
}

/* ---- SECTIONS ---- */
.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: 16px;
}

/* ---- WHY ---- */
.why {
  background: white;
  padding: 100px 24px;
}
.why .section-headline { max-width: 600px; }
.problem-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.problem-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--sand-dark);
  background: var(--sand);
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,56,41,0.08);
}
.problem-icon {
  width: 52px; height: 52px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 12px;
}
.problem-card p { font-size: 15px; color: var(--text-mid); line-height: 1.65; }

/* ---- HOW ---- */
.how {
  background: var(--sand);
  padding: 100px 24px;
}
.how .section-headline { max-width: 500px; }
.steps {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.step {
  padding: 40px 32px;
  border-right: 1px solid var(--sand-dark);
  position: relative;
}
.step:last-child { border-right: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--forest);
  opacity: 0.15;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 12px;
}
.step p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* ---- CREATOR ---- */
.creator {
  background: white;
  padding: 100px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.creator-visual { }
.builder-mock {
  background: #1A1A1A;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
}
.builder-header {
  background: #2A2A2A;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.builder-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 13px;
  font-weight: 600;
}
.builder-actions { display: flex; gap: 8px; }
.builder-actions span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}
.btn-save { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.btn-preview { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.btn-publish { background: var(--amber); color: white; }
.builder-body { display: flex; min-height: 280px; }
.builder-sidebar {
  width: 160px;
  background: #222;
  padding: 16px 12px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}
.sidebar-item {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  padding: 6px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  cursor: pointer;
}
.sidebar-item.active { background: rgba(224,123,57,0.2); color: var(--amber-light); }
.sidebar-add { font-size: 11px; color: var(--amber-light); padding: 6px 8px; margin-top: 8px; }
.builder-canvas {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.canvas-label {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}
.canvas-blocks { display: flex; flex-direction: column; gap: 8px; }
.canvas-block {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.canvas-block:hover { background: rgba(255,255,255,0.07); }
.canvas-block span { font-size: 12px; color: rgba(255,255,255,0.4); }

.creator-content { }
.creator-body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}
.creator-features { display: flex; flex-direction: column; gap: 12px; }
.cf {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* ---- WHO ---- */
.who {
  background: var(--sand);
  padding: 100px 24px;
}
.who .section-headline { max-width: 520px; }
.personas {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.persona {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--sand-dark);
  transition: transform 0.2s, box-shadow 0.2s;
}
.persona:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,56,41,0.08);
}
.persona-icon {
  width: 56px; height: 56px;
  background: var(--sand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.persona h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 10px;
}
.persona p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

.tender-note {
  max-width: 1200px;
  margin: 48px auto 0;
  background: var(--forest);
  color: white;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.tender-note svg { flex-shrink: 0; margin-top: 2px; }
.tender-note p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
}

/* ---- CLOSING ---- */
.closing {
  background: var(--forest);
  padding: 100px 24px;
}
.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.closing-badge {
  display: inline-block;
  background: rgba(224,123,57,0.15);
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 56px;
}
.closing-visual { display: flex; justify-content: center; }
.closing-bins {
  display: flex;
  gap: 24px;
}
.c-bin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.c-bin .c-recycle, .c-bin .c-compost, .c-bin .c-landfill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.c-recycle { color: rgba(58, 123, 213, 0.7); }
.c-compost { color: rgba(39, 174, 96, 0.7); }
.c-landfill { color: rgba(107, 107, 107, 0.7); }
.c-bin span { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }

/* ---- FOOTER ---- */
.footer {
  background: #0F1F15;
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: white;
  margin-bottom: 12px;
}
.footer-tagline {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-copy {
  color: rgba(255,255,255,0.25);
  font-size: 12px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .creator { grid-template-columns: 1fr; gap: 48px; }
  .personas { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--sand-dark); }
  .step:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 20px; }
  .nav-links { display: none; }
  .personas { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .closing { padding: 64px 20px; }
  .why, .how, .who { padding: 64px 20px; }
  .creator { padding: 64px 20px; }
  .tender-note { flex-direction: column; }
}