:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1d212a;
  --border: rgba(255,255,255,0.08);
  --text: #f1f4f8;
  --muted: #aeb7c4;
  --best: #23c16b;
  --good: #f5b83d;
  --safe: #6ba8ff;
  --shadow: 0 18px 50px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #0d1015 0%, #141923 100%);
  color: var(--text);
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #87a0c3;
  font-size: 12px;
  margin: 0 0 8px 0;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 44px; margin-bottom: 10px; }
h2 { font-size: 24px; margin-bottom: 8px; }
.subtext, .subhead, .card-note, .meta, .avoid-list, .power-list {
  color: var(--muted);
  line-height: 1.5;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-content: center;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.stat span {
  display: block;
  font-size: 34px;
  font-weight: 700;
}

.stat label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.intro-grid, .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.section-head {
  margin-bottom: 16px;
}
.with-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
}
.best { background: var(--best); }
.good { background: var(--good); }
.safe { background: var(--safe); }

.wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wardrobe-card, .day-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.wardrobe-card {
  padding: 14px;
}

.swatch-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.12);
}

.meta {
  font-size: 14px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.day-card {
  padding: 16px;
  position: relative;
}

.day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.day-num {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8ea4c5;
}

.rating {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
}
.rating.best { background: rgba(35,193,107,.14); color: #90f0b7; }
.rating.good { background: rgba(245,184,61,.14); color: #ffd98b; }
.rating.safe { background: rgba(107,168,255,.14); color: #b7d5ff; }

.combo-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.garment {
  border-radius: 14px;
  min-height: 92px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.garment::after {
  content: attr(data-label);
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.card-note {
  font-size: 14px;
}

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: white;
  background: rgba(255,255,255,0.07);
}

.power-list, .avoid-list {
  margin: 0;
  padding-left: 20px;
}

.power-list li, .avoid-list li {
  margin-bottom: 10px;
}

.bottom-space {
  margin-bottom: 28px;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .two-col,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .with-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .wardrobe-grid {
    grid-template-columns: 1fr;
  }
}
