:root {
  --ink: #10110f;
  --paper: #f4efe4;
  --white: #fffdf7;
  --muted: #6f7369;
  --line: rgba(16, 17, 15, 0.13);
  --green: #74e188;
  --acid: #d8ff5f;
  --amber: #d79a2b;
  --bg: #11130f;
  --card-bg: #171a16;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(17, 19, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 26px;
  background: var(--ink);
  color: var(--acid);
  border-radius: 3px;
  font-size: 13px;
}
.nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; color: var(--white); }
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color 150ms; }
.nav a:hover { border-color: var(--green); }

/* ─── Shared ─── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.kicker {
  margin: 0 0 8px;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2d6e38;
}
h2 {
  font-family: "IBM Plex Sans Condensed", "Noto Sans SC", sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.desc { color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 150ms, box-shadow 150ms, background 150ms, color 150ms;
}
.btn:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--ink); }
.btn.primary { background: var(--ink); color: var(--acid); }
.btn.secondary { background: var(--white); }
.btn.full { width: 100%; }

/* ─── Hero ─── */
.hero {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(180deg, #11130f 0%, #171a16 100%);
  color: var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, .94fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.hero-copy { padding-top: 6px; }
.hero .eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.12em;
  color: var(--green);
}
.hero h1 {
  font-family: "IBM Plex Sans Condensed", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: none;
  white-space: nowrap;
  color: var(--white);
}
.hero .lede {
  font-size: clamp(15px, 1.8vw, 18px);
  color: #c6cbbd;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 0 18px;
}
.hero-copy .subhead {
  margin: 16px 0 10px;
  font-family: "IBM Plex Sans Condensed", "Noto Sans SC", sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}
.hero-copy .lede strong {
  color: var(--white);
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.primary {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}
.hero .btn.secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.hero .btn:hover {
  box-shadow: 5px 5px 0 rgba(255,255,255,0.14);
}
.hero-visual {
  display: grid;
  gap: 16px;
  padding: 18px 0 0;
  background: transparent;
  align-content: start;
  justify-items: start;
}
.contact-box {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(23,26,22,0.92);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-contact-box {
  width: min(100%, 420px);
}
.contact-box strong {
  display: block;
  margin-top: 4px;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}
.contact-box span {
  display: block;
  color: var(--green);
  font-size: 13px;
}
.contact-copy {
  margin: 10px 0 0;
  color: #c6cbbd;
  font-size: 14px;
  line-height: 1.7;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-actions .btn {
  min-width: 140px;
}
.hero-qr {
  width: min(100%, 420px);
  min-height: 292px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: #171a16;
  display: grid;
  place-items: center;
  justify-items: center;
}
.qr-placeholder {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px);
  color: #8a9080;
  font-size: 14px;
}
.qr-wrap img {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.qr-note {
  margin: 10px 0 0;
  color: #8a9080;
  font-size: 12px;
  text-align: center;
}

/* ─── Market ─── */
.market {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg);
  color: var(--white);
}
.market .kicker { color: var(--green); }
.market h2 { color: var(--white); }
.market .desc { color: #8a9080; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter {
  padding: 7px 14px;
  border: 1px solid rgba(255,253,247,0.15);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.filter:hover { border-color: var(--acid); color: var(--acid); }
.filter.is-active { background: var(--acid); color: var(--ink); border-color: var(--acid); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card {
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid rgba(255,253,247,0.1);
  border-radius: 6px;
  transition: transform 180ms, border-color 180ms;
}
.card:hover { transform: translateY(-4px); border-color: var(--green); }
.card.is-hidden { display: none; }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.badge {
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255,253,247,0.1);
  color: var(--acid);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.badge.hot { background: var(--amber); color: #11130f; }
.badge.safe { background: var(--green); color: #11130f; }
.price {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--acid);
}
.card h3 { margin: 28px 0 6px; font-size: 16px; color: var(--white); }
.card p { color: #8a9080; font-size: 13px; line-height: 1.65; margin: 0 0 12px; }
.meta { color: #6f7369; font-size: 12px; }
.muted { color: var(--muted); font-size: 12px; }

/* ─── Services ─── */
.services {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--paper);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.svc {
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(16,17,15,0.1);
  transition: transform 150ms, box-shadow 150ms;
}
.svc:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(16,17,15,0.12); }
.svc-num {
  display: inline-block;
  width: 36px; height: 28px;
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.svc h3 { font-size: 17px; margin: 0 0 8px; }
.svc p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }

/* ─── Submit ─── */
.submit-section {
  padding: clamp(56px, 8vw, 96px) 0;
  background: #ece5d8;
}
.split {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 400px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.info .steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.info .steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.info .steps strong {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 22px;
  color: var(--ink);
  min-width: 36px;
}
.form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
}
.form h3 { margin: 0 0 4px; font-size: 18px; }
.form label {
  display: grid;
  gap: 5px;
  font-weight: 700;
  font-size: 13px;
  color: #353a32;
}
.form input, .form select, .form textarea {
  border: 1px solid rgba(16,17,15,0.2);
  border-radius: 4px;
  background: #f7f1e6;
  padding: 11px 10px;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(116,225,136,0.25);
}
.note { margin: 0; color: var(--muted); font-size: 12px; }

/* ─── Links ─── */
.faq {
  padding: clamp(56px, 8vw, 96px) 0;
  background: #f4efe4;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.faq-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.faq-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.links {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--paper);
}
.links .desc {
  max-width: 700px;
}
.link-group {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.link-group h3 {
  margin: 0 0 14px;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 22px;
  line-height: 1.1;
}
.link-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.link-table th,
.link-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(16,17,15,0.1);
  text-align: left;
  vertical-align: top;
}
.link-table th {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.link-table td:first-child {
  font-weight: 700;
  width: 24%;
}
.link-table td:nth-child(2) {
  width: 22%;
}

/* ─── Admin ─── */
.admin {
  padding: clamp(56px, 8vw, 96px) 0;
  background: #fffaf0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 18px;
}
.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.stat .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.stat .value {
  display: block;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
}
.tab.is-active {
  background: var(--ink);
  color: var(--acid);
}
.admin-panels {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  padding: 18px;
}
.panel { display: none; }
.panel.is-active { display: block; }
.admin-form {
  display: grid;
  gap: 12px;
}
.admin-form.inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-form label {
  display: grid;
  gap: 6px;
  color: #353a32;
  font-weight: 700;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(16,17,15,0.2);
  border-radius: 4px;
  background: #f7f1e6;
  padding: 11px 10px;
  outline: none;
}
.admin-form textarea {
  resize: vertical;
}
.table-shell {
  margin-top: 18px;
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(16,17,15,0.1);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  color: var(--muted);
  font-weight: 700;
}
.row-action {
  margin-right: 8px;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  font-size: 12px;
  cursor: pointer;
}
.row-action.is-danger {
  border-color: #a53d34;
  color: #a53d34;
}
.review-list {
  display: grid;
  gap: 12px;
}
.review-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ece5d8;
}
.pill.pending { background: #fff0bf; }
.pill.approved { background: #dff3e3; }
.pill.rejected { background: #f7d8d2; }
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.visit-detail {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.6);
}
.visit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.visit-summary strong {
  margin-right: 8px;
}

/* ─── Footer ─── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 64px);
  background: #090a08;
  color: #8a9080;
  font-size: 13px;
}
.footer span:first-child {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 700;
  color: var(--acid);
}

/* ─── Responsive ─── */
@media (max-width: 820px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 {
    white-space: normal;
    font-size: clamp(36px, 9vw, 54px);
  }
  .hero-contact-box,
  .hero-qr { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .grid, .svc-grid, .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .stats,
  .admin-form.inline { grid-template-columns: 1fr; }
  .link-table,
  .link-table tbody,
  .link-table tr,
  .link-table th,
  .link-table td {
    display: block;
    width: 100%;
  }
  .link-table thead { display: none; }
  .link-table tr { padding: 10px 0; border-bottom: 1px solid rgba(16,17,15,0.1); }
  .link-table td { border: 0; padding: 6px 0; }
  .link-table td:first-child,
  .link-table td:nth-child(2) { width: 100%; }
}
@media (max-width: 520px) {
  .grid, .svc-grid, .faq-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .footer { flex-direction: column; text-align: center; }
}
