:root {
  color-scheme: dark;
  --bg: #0D0F13;
  --band: #11141A;
  --surface: #161A21;
  --raised: #1E232C;
  --line: #2A303B;
  --line-strong: #3A4150;
  --text: #ECE8DF;
  --soft: #B4BCC8;
  --muted: #A4ACB8;
  --accent: #F2B04A;
  --on-accent: #1A1408;
  --ok: #5BD08A;
  --ok-text: #7FE0A6;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.band { background: var(--band); border-top: 1px solid #1E232C; }
.section { padding-block: 80px; display: flex; flex-direction: column; gap: 40px; }
.section-title { font-size: clamp(30px, 4vw, 40px); font-weight: 700; }
.lede { color: var(--soft); font-size: 18px; max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.mono { font-family: var(--mono); }

/* Header */
.site-header { border-bottom: 1px solid #262B35; }
.site-header .wrap { padding-block: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; text-decoration: none; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.inset { background: var(--raised); border-radius: 12px; padding: 16px; }

/* Hero */
.hero { padding-block: 88px 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(42px, 6vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.hero .lede { font-size: 19px; max-width: 520px; }
.kicker { color: var(--accent); font-weight: 600; }

/* Status card */
.status { display: flex; flex-direction: column; gap: 22px; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-head h2 { font-size: 20px; font-weight: 600; }
.dot { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ok-text); }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 99px; background: var(--ok); }
.dot.idle { color: var(--muted); }
.dot.idle::before { background: var(--muted); }
.bar { height: 10px; background: #262B35; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-value { font-family: var(--display); font-size: 22px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; }
.swatch { width: 12px; height: 12px; border-radius: 99px; border: 1px solid #5A6270; flex: none; }
.status-foot { border-top: 1px solid #262B35; padding-top: 14px; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; gap: 14px; }
.service h3 { font-size: 22px; }
.service p { color: var(--soft); }
.service a { margin-top: auto; font-weight: 600; color: var(--accent); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: step; }
.steps li { border-top: 2px solid var(--line-strong); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.steps li:first-child { border-top-color: var(--accent); }
.steps li::before { content: counter(step); font-family: var(--mono); color: var(--muted); }
.steps h3 { font-size: 20px; }
.steps p { color: var(--soft); }

/* Materials */
.material { display: flex; flex-direction: column; gap: 12px; }
.material-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.material h3 { font-size: 26px; }
.material p { color: var(--soft); }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.product-photo { aspect-ratio: 4 / 3; background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.product-body h3 { font-size: 20px; font-weight: 600; }
.product-body p { color: var(--soft); font-size: 15px; }
.product-cat { color: var(--muted); font-size: 14px; }
.product-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price { font-family: var(--display); font-size: 20px; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter { min-height: 44px; padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.empty { padding: 40px; text-align: center; color: var(--soft); }

/* Policies */
.policies { padding-block: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.policies h3 { font-size: 20px; margin-bottom: 8px; }
.policies p { color: var(--soft); }

/* Notice */
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--accent); color: #F6C97A; font-size: 15px; }

/* Custom request */
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.layout-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.layout-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.panel h2 { font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-label { font-size: 14px; color: var(--muted); }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option { min-height: 48px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.option small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.option[aria-pressed="true"] { border: 2px solid var(--accent); background: #232934; }
.color-btn { width: 48px; height: 48px; border-radius: 99px; border: 1px solid #5A6270; cursor: pointer; padding: 0; }
.color-btn[aria-pressed="true"] { border: 3px solid var(--accent); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; width: fit-content; }
.stepper button { width: 48px; height: 48px; background: transparent; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }
.stepper output { min-width: 40px; text-align: center; font-family: var(--mono); font-size: 18px; }
input[type="text"], input[type="email"], textarea {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px; color: var(--text); font: inherit; width: 100%;
}
textarea { resize: vertical; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary-row span:first-child { color: var(--soft); }

/* Footer */
.site-footer { border-top: 1px solid #262B35; }
.site-footer .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.site-footer strong { font-family: var(--display); color: var(--text); font-size: 18px; display: block; }

@media (max-width: 560px) {
  .section { padding-block: 56px; }
  .hero { padding-block: 48px 56px; }
  .panel { padding: 20px; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .bar > span { transition: width 600ms ease; }
}
