/* ==========================================================================
   1REY — Simplified public assay page
   ========================================================================== */

.assay-page {
  min-height: 100vh;
  background: var(--bg);
}

.assay-container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- header ---------- */
.assay-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 8, 11, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.assay-header .header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.assay-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.assay-brand .brand-mark {
  width: 48px;
  height: 48px;
  flex: none;
}

.assay-brand .brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.55;
}

.assay-brand .brand-text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.assay-brand .brand-text small {
  color: var(--muted);
  font-size: 10px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header-contact a,
.header-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.header-contact a:hover {
  color: var(--gold-2);
}

.header-contact .ic {
  color: var(--gold-2);
  font-size: 15px;
}

.header-contact .ltr {
  direction: ltr;
  unicode-bidi: embed;
}

/* ---------- hero ---------- */
.assay-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 86px) 0 clamp(42px, 6vw, 72px);
}

.assay-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 11, 0.97) 0%, rgba(8, 8, 11, 0.84) 48%, rgba(8, 8, 11, 0.95) 100%),
    url("../img/hero.webp") center / cover no-repeat;
  opacity: 0.92;
  pointer-events: none;
}

.assay-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  z-index: 0;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.assay-hero > .assay-container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 5px 11px;
  border: 1px solid var(--gold-line);
  border-radius: 99px;
  background: var(--gold-soft);
  color: var(--gold-1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(232, 197, 106, 0.09);
}

.hero-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 4.6vw, 3.75rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 23px;
  color: var(--text-2);
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 2.05;
}

.hero-points {
  display: grid;
  gap: 10px;
  max-width: 470px;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.8;
}

.hero-points .ic {
  margin-top: 3px;
  color: var(--gold-2);
  font-size: 15px;
}

/* ---------- search card ---------- */
.search-card {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--gold-line);
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(232, 197, 106, 0.08), transparent 42%),
    rgba(15, 15, 21, 0.94);
  box-shadow: 0 26px 80px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(18px);
}

.search-card::before {
  content: "";
  position: absolute;
  inset: 0 22px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line-strong), transparent);
}

.search-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.search-card-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  line-height: 1.6;
}

.search-card-head h2 .ic {
  color: var(--gold-2);
  font-size: 19px;
}

.search-card-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.demo-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(242, 182, 75, 0.26);
  border-radius: 99px;
  background: rgba(242, 182, 75, 0.08);
  color: var(--warn);
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}

.demo-pill .ic {
  font-size: 11px;
}

.assay-form {
  display: grid;
  gap: 13px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 600;
}

.field-label small {
  color: var(--dim);
  font-size: 9px;
  font-weight: 400;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input-wrap:focus-within {
  border-color: var(--gold-line-strong);
  box-shadow: 0 0 0 3px rgba(232, 197, 106, 0.08);
}

.input-wrap > .ic {
  flex: none;
  color: var(--gold-2);
  font-size: 19px;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.input-wrap input::placeholder {
  color: var(--dim);
  font-size: 11px;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn .ic {
  font-size: 16px;
}

.btn-gold {
  background: var(--gold-grad);
  color: #191307;
  box-shadow: 0 12px 35px -16px rgba(232, 197, 106, 0.65);
}

.btn-gold:hover {
  filter: brightness(1.04);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}

.btn-ghost:hover {
  border-color: var(--gold-line);
  color: var(--gold-1);
}

.btn-sm {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 10px;
}

.form-message {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 123, 123, 0.24);
  border-radius: 10px;
  background: var(--bad-bg);
  color: #ffb4b4;
  font-size: 10px;
  line-height: 1.8;
}

.form-message .ic {
  flex: none;
  margin-top: 3px;
  font-size: 13px;
}

.search-samples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  color: var(--dim);
  font-size: 9.5px;
}

.search-samples button {
  padding: 3px 7px;
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  color: var(--muted);
  font-family: inherit;
  font-size: 9.5px;
  transition: color 0.2s, border-color 0.2s;
}

.search-samples button:hover {
  border-color: var(--gold-line);
  color: var(--gold-1);
}

/* ---------- result ---------- */
.assay-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.result-top span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.result-top .ic {
  color: var(--gold-2);
  font-size: 15px;
}

.result-status {
  padding: 3px 8px;
  border: 1px solid rgba(69, 214, 155, 0.24);
  border-radius: 99px;
  background: var(--ok-bg);
  color: var(--ok) !important;
  font-size: 8.5px !important;
  font-weight: 600;
}

.result-score-wrap {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-bottom: 5px;
}

.result-score {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(3.2rem, 9vw, 4.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.result-unit {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.result-caption {
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 11px;
}

.result-caption b {
  color: var(--gold-1);
  font-weight: 700;
}

.result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.result-meta > div {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.result-meta span {
  display: block;
  margin-bottom: 2px;
  color: var(--dim);
  font-size: 8.5px;
}

.result-meta b {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.result-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.8;
}

.result-note .ic {
  flex: none;
  margin-top: 2px;
  color: var(--warn);
  font-size: 13px;
}

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

.result-empty {
  padding-top: 2px;
}

.result-empty h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 14px;
}

.result-empty h3 .ic {
  color: var(--bad);
  font-size: 18px;
}

.result-empty p {
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.9;
}

.result-empty .empty-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 13px;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  color: var(--gold-1);
  font-size: 11px;
  font-weight: 600;
}

/* ---------- contact ---------- */
.contact-section {
  padding: clamp(38px, 5vw, 60px) 0 clamp(44px, 6vw, 70px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent);
}

.contact-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.contact-head h2 {
  margin-bottom: 5px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.contact-head p {
  color: var(--muted);
  font-size: 11px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(17, 17, 23, 0.72);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.contact-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
}

.contact-card .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 11px;
  border: 1px solid var(--gold-line);
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--gold-2);
}

.contact-card .contact-icon .ic {
  font-size: 16px;
}

.contact-card h3 {
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 700;
}

.contact-card p,
.contact-card a {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.85;
}

.contact-card a:hover {
  color: var(--gold-1);
}

.contact-card .ltr {
  direction: ltr;
  unicode-bidi: embed;
}

/* ---------- footer ---------- */
.assay-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-copy {
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 9.5px;
}

.footer-links a:hover {
  color: var(--gold-1);
}

.footer-links .admin-link {
  color: var(--dim);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .search-card {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .assay-header .header-inner {
    min-height: 68px;
  }

  .header-contact {
    display: none;
  }

  .assay-brand .brand-mark {
    width: 42px;
    height: 42px;
  }

  .assay-brand .brand-text strong {
    font-size: 13px;
  }

  .assay-brand .brand-text small {
    font-size: 9px;
  }

  .assay-hero {
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-lead {
    font-size: 12px;
  }

  .hero-points {
    display: none;
  }

  .search-card {
    padding: 19px;
    border-radius: 20px;
  }

  .search-card-head h2 {
    font-size: 15px;
  }

  .result-meta {
    grid-template-columns: 1fr;
  }

  .contact-head {
    display: block;
  }

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

  .footer-inner {
    display: grid;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
