:root {
  color-scheme: light;
  --ink: #141a18;
  --muted: #68746f;
  --soft: #8a9690;
  --line: #dce4dd;
  --paper: #f7f8f2;
  --surface: #ffffff;
  --surface-2: #eef2e9;
  --green: #286448;
  --green-dark: #193f2e;
  --blue: #315f7b;
  --blue-soft: #dcebf1;
  --amber: #bc7a22;
  --rust: #9f4a2f;
  --shadow: 0 22px 70px rgba(25, 45, 35, 0.14);
  --tight-shadow: 0 12px 30px rgba(25, 45, 35, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(188, 122, 34, 0.16), transparent 28rem),
    linear-gradient(180deg, #fbfbf5 0%, var(--paper) 44%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 26, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 26, 24, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand,
nav,
.actions,
footer,
.trust-strip,
.board-top,
.section-heading,
.admin-heading,
.admin-topline {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 26px rgba(40, 100, 72, 0.24);
  font-size: 0.82rem;
  font-weight: 900;
}

nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(220, 228, 221, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  color: #48554e;
  font-size: 0.92rem;
  font-weight: 720;
  box-shadow: var(--tight-shadow);
}

nav a {
  padding: 9px 14px;
  border-radius: 999px;
}

nav a:hover {
  background: var(--surface-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 56px;
  max-width: 1200px;
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 62px 24px 88px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  box-shadow: 0 16px 34px rgba(40, 100, 72, 0.24);
}

.button.primary:hover {
  box-shadow: 0 18px 40px rgba(40, 100, 72, 0.3);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.trust-strip {
  flex-wrap: wrap;
  gap: 10px;
  color: #435047;
}

.trust-strip span {
  padding: 10px 13px;
  border: 1px solid rgba(220, 228, 221, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 740;
}

.parts-board {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(220, 228, 221, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 242, 233, 0.94)),
    #fff;
  box-shadow: var(--shadow);
}

.parts-board::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -86px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 38px solid rgba(49, 95, 123, 0.1);
}

.board-top {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 780;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(188, 122, 34, 0.14);
}

.status-dot.enabled {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(40, 100, 72, 0.14);
}

.shelf-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shelf-card,
.category-grid article,
.admin-card {
  border: 1px solid rgba(220, 228, 221, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--tight-shadow);
}

.shelf-card {
  min-height: 140px;
  padding: 20px;
}

.shelf-card.featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  min-height: 210px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-soft) 100%);
}

.shelf-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.part-symbol {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: inset 0 -10px rgba(0, 0, 0, 0.12);
}

.featured .part-symbol {
  width: 96px;
  height: 120px;
  margin: 0;
}

.filter-symbol {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 5px, transparent 5px 12px),
    linear-gradient(145deg, var(--blue), #203c50);
}

.brake-symbol {
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 22%, #ffffff 23% 28%, transparent 29%),
    linear-gradient(145deg, var(--rust), #6b2e1f);
}

.lamp-symbol {
  clip-path: polygon(15% 16%, 78% 28%, 92% 50%, 78% 72%, 15% 84%);
  background: linear-gradient(145deg, var(--amber), #7e531e);
}

.belt-symbol {
  border-radius: 999px;
  background: radial-gradient(circle, transparent 44%, var(--green-dark) 45% 64%, transparent 65%), var(--green);
}

.bottle-symbol {
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #dcebf1 0 28%, var(--blue) 29% 100%);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 76px 24px;
}

.section-heading {
  justify-content: space-between;
  gap: 28px;
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-number {
  flex: 0 0 auto;
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

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

.category-grid article {
  position: relative;
  min-height: 230px;
  padding: 26px;
}

.category-grid p,
.checklist p,
.muted {
  color: var(--muted);
  line-height: 1.62;
}

.category-index {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.category-grid article:nth-child(2) .category-index {
  background: var(--amber);
}

.category-grid article:nth-child(3) .category-index {
  background: var(--green);
}

.garage-band {
  max-width: 1200px;
  margin: 24px auto;
  padding: 42px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.garage-band .compact {
  max-width: none;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.workflow div {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.workflow div:last-child {
  border-right: 0;
}

.workflow strong {
  font-size: 1.3rem;
}

.workflow span {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: start;
}

.split .section-number {
  margin-bottom: 22px;
}

.checklist {
  display: grid;
  border-top: 1px solid var(--line);
}

.checklist p {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

footer {
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(49, 95, 123, 0.18), transparent 30rem),
    radial-gradient(circle at 85% 90%, rgba(188, 122, 34, 0.14), transparent 26rem),
    var(--paper);
}

.admin-shell {
  width: min(100%, 560px);
  padding: 24px;
}

.admin-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.admin-heading {
  gap: 16px;
  margin-bottom: 26px;
}

.admin-heading h1 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}

.admin-topline {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.back-link,
.ghost-button {
  display: inline-flex;
  color: var(--green);
  background: transparent;
  border: 0;
  font-size: 0.94rem;
  font-weight: 850;
  cursor: pointer;
}

.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: #38453d;
  font-weight: 850;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(40, 100, 72, 0.12);
}

.admin-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.small-label {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 68px;
  height: 40px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #aeb9b2;
  cursor: pointer;
  transition: background 170ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(20, 26, 24, 0.16);
  transition: transform 170ms ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(28px);
}

.status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.full {
  width: 100%;
  margin-top: 22px;
}

.notice {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--green);
  font-weight: 800;
}

.hidden {
  display: none;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .split,
  .category-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .workflow div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .garage-band,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .actions,
  footer,
  .section-heading,
  .admin-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .shelf-layout {
    grid-template-columns: 1fr;
  }

  .shelf-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .featured .part-symbol {
    width: 76px;
    height: 92px;
  }
}
