/* Meto Scan — shared styles (index.html + inventory.html) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #0b0e13;
  --bg-raise:      #12161e;
  --surface-glass: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --accent:        #2fd4a7;
  --accent-dark:   #17916f;
  --accent-soft:   rgba(47, 212, 167, 0.12);
  --text:          #f2f5f9;
  --text-muted:    #8b94a3;
  --danger:        #e5484d;
  --radius:        14px;
  --pad-x:         24px;
}

html { scroll-behavior: smooth; }

/* .btn sets display:inline-block, which beats the UA style for [hidden] */
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  max-width: 1040px;
  margin: 0 auto;
}

.wordmark {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span { color: var(--accent); }

.site-nav { display: flex; gap: 22px; }

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s, opacity 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #06251b;
}

.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 9px 18px; font-size: 0.82rem; }

/* Cards */
.card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(12px);
}

/* Sections */
.section { padding: 72px 0; }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Forms */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-raise);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }

.field textarea { resize: vertical; min-height: 110px; }

/* Status text */
.status-ok { color: var(--accent); }
.status-err { color: var(--danger); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 34px var(--pad-x);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-footer a { color: var(--text-muted); }

@media (max-width: 640px) {
  :root { --pad-x: 18px; }
  .site-nav { gap: 14px; }
  .section { padding: 52px 0; }
}
