/* ═══════════════════════════════════════════════
   VET — Verified Enterprise Trust
   Design System: Navy / White / Gold Hallmark
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy-950: #050d1a;
  --navy-900: #0a1628;
  --navy-800: #0f2040;
  --navy-700: #162d54;
  --navy-600: #1e3a6a;
  --navy-500: #2a4f8f;
  --gold-500: #c9a34f;
  --gold-400: #d4b366;
  --gold-300: #e0c47d;
  --gold-600: #a8872f;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --red-500: #ef4444;
  --red-400: #f87171;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.25);
  --shadow-glow-gold: 0 0 30px rgba(201,163,79,0.15);
  --shadow-glow-emerald: 0 0 20px rgba(16,185,129,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,13,26,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,163,79,0.1);
  padding: 1rem 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.header-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.header-brand:hover { color: var(--white); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; color: var(--navy-950);
  letter-spacing: 0.02em;
  box-shadow: 0 0 20px rgba(201,163,79,0.2);
}
.brand-text { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.6rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.header-nav { display: flex; align-items: center; gap: 0.5rem; }
.header-nav a {
  color: var(--gray-400); font-size: 0.8rem; font-weight: 500;
  text-decoration: none; padding: 6px 14px; border-radius: 8px;
  transition: all 0.2s;
}
.header-nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.header-nav a.active { color: var(--gold-400); background: rgba(201,163,79,0.08); }

/* ── Hero ── */
.hero {
  text-align: center; padding: 5rem 0 3rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,163,79,0.06) 0%, transparent 60%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(201,163,79,0.08); border: 1px solid rgba(201,163,79,0.2);
  font-size: 0.7rem; font-weight: 600; color: var(--gold-400);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.02em;
}
.hero h1 span { color: var(--gold-400); }
.hero-subtitle {
  font-size: 1.05rem; color: var(--gray-400); max-width: 600px;
  margin: 0 auto 2.5rem; line-height: 1.7;
}

/* ── Search Box ── */
.search-box {
  max-width: 640px; margin: 0 auto; position: relative;
}
.search-input-wrap {
  display: flex; gap: 0; border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(201,163,79,0.2);
  background: rgba(15,32,64,0.6);
  box-shadow: var(--shadow-glow-gold);
  transition: all 0.3s;
}
.search-input-wrap:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 40px rgba(201,163,79,0.2);
}
.search-input {
  flex: 1; padding: 1rem 1.25rem; font-size: 1rem;
  background: transparent; border: none; color: var(--white);
  font-family: var(--font-body); outline: none;
}
.search-input::placeholder { color: var(--gray-500); }
.search-tabs {
  display: flex; gap: 4px; justify-content: center; margin-top: 1rem;
}
.search-tab {
  padding: 6px 14px; border-radius: 6px; border: none;
  background: transparent; color: var(--gray-500); font-size: 0.75rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
}
.search-tab.active { color: var(--gold-400); background: rgba(201,163,79,0.1); }
.search-tab:hover { color: var(--gray-300); }
.btn-verify {
  padding: 1rem 2rem; background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950); font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; font-family: var(--font-body);
  transition: all 0.2s; white-space: nowrap;
}
.btn-verify:hover { filter: brightness(1.1); }

/* ── How It Works ── */
.how-it-works { padding: 5rem 0; }
.section-title {
  text-align: center; font-size: 1.6rem; font-weight: 700;
  margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.section-subtitle {
  text-align: center; color: var(--gray-400); font-size: 0.9rem;
  margin-bottom: 3rem;
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card {
  background: rgba(15,32,64,0.4); border: 1px solid rgba(201,163,79,0.08);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  position: relative; transition: all 0.3s;
}
.step-card:hover { border-color: rgba(201,163,79,0.2); transform: translateY(-2px); }
.step-number {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; margin: 0 auto 1.25rem;
  box-shadow: 0 0 20px rgba(201,163,79,0.2);
}
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.82rem; color: var(--gray-400); line-height: 1.6; }

/* ── Trust Indicators ── */
.trust-bar {
  padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust-item-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.trust-item-label { font-size: 0.7rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.trust-item-value { font-size: 0.85rem; font-weight: 600; color: var(--gray-200); margin-top: 0.25rem; }

/* ── Recent Feed ── */
.recent-section { padding: 4rem 0; }
.feed-list { display: flex; flex-direction: column; gap: 0.5rem; }
.feed-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.25rem; border-radius: var(--radius-sm);
  background: rgba(15,32,64,0.3); border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s; cursor: pointer;
}
.feed-item:hover { background: rgba(15,32,64,0.5); border-color: rgba(201,163,79,0.1); }
.feed-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--emerald-500); box-shadow: 0 0 8px rgba(16,185,129,0.4);
}
.feed-text { flex: 1; font-size: 0.82rem; color: var(--gray-300); }
.feed-text strong { color: var(--white); font-weight: 600; }
.feed-time { font-size: 0.7rem; color: var(--gray-500); font-family: var(--font-mono); white-space: nowrap; }
.feed-type {
  font-size: 0.65rem; padding: 3px 8px; border-radius: 4px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.feed-type.custody { background: rgba(56,189,248,0.1); color: #38bdf8; }
.feed-type.condition { background: rgba(16,185,129,0.1); color: var(--emerald-400); }
.feed-type.performance { background: rgba(167,139,250,0.1); color: #a78bfa; }
.feed-type.arbitration { background: rgba(239,68,68,0.1); color: var(--red-400); }

/* ══════════════════════════════════════
   HALLMARK STAMP — Certificate Verified
   ══════════════════════════════════════ */
.hallmark {
  max-width: 600px; margin: 3rem auto; text-align: center;
  padding: 3rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15,32,64,0.6), rgba(5,13,26,0.8));
  border: 2px solid rgba(201,163,79,0.3);
  box-shadow: var(--shadow-glow-gold), var(--shadow-lg);
  position: relative; overflow: hidden;
}
.hallmark::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: var(--radius-lg);
  background: conic-gradient(from 0deg, rgba(201,163,79,0.3), transparent, rgba(201,163,79,0.3), transparent);
  z-index: -1; animation: hallmark-rotate 8s linear infinite;
}
@keyframes hallmark-rotate { to { transform: rotate(360deg); } }
.hallmark-seal {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 2.2rem;
  box-shadow: 0 0 40px rgba(201,163,79,0.3), inset 0 2px 4px rgba(255,255,255,0.2);
}
.hallmark-status {
  font-size: 1.4rem; font-weight: 800; color: var(--emerald-400);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.25rem;
}
.hallmark-status.failed { color: var(--red-400); }
.hallmark-serial {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--gold-400); margin-bottom: 0.5rem; font-weight: 500;
}
.hallmark-fingerprint {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--gray-500); word-break: break-all;
}

/* ── Detail Grid ── */
.detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-top: 2rem;
}
.detail-card {
  background: rgba(15,32,64,0.4); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1.25rem; text-align: left;
}
.detail-label {
  font-size: 0.65rem; color: var(--gray-500); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600; margin-bottom: 0.4rem;
}
.detail-value {
  font-size: 0.85rem; color: var(--gray-200); word-break: break-all;
}
.detail-value.mono { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gray-300); }
.detail-value.highlight { color: var(--gold-400); font-weight: 600; }

/* ── Passport Timeline ── */
.passport-header {
  padding: 3rem 0 2rem; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.passport-vin {
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700;
  color: var(--gold-400); letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.passport-state {
  display: inline-flex; padding: 6px 16px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em;
}
.passport-state.active { background: rgba(16,185,129,0.12); color: var(--emerald-400); border: 1px solid rgba(16,185,129,0.3); }
.timeline { padding: 2rem 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: rgba(201,163,79,0.15);
}
.timeline-item {
  position: relative; padding-left: 52px; margin-bottom: 1.5rem;
}
.timeline-dot {
  position: absolute; left: 13px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy-800); border: 2px solid var(--gold-500);
  box-shadow: 0 0 10px rgba(201,163,79,0.2);
}
.timeline-content {
  background: rgba(15,32,64,0.4); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.timeline-type { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.timeline-desc { font-size: 0.82rem; color: var(--gray-300); }
.timeline-meta { font-size: 0.7rem; color: var(--gray-500); margin-top: 0.5rem; font-family: var(--font-mono); }

/* ── Health Card ── */
.health-card {
  background: rgba(15,32,64,0.4); border: 1px solid rgba(16,185,129,0.15);
  border-radius: var(--radius-lg); padding: 2rem; margin: 2rem 0;
}
.health-score-big {
  font-size: 3rem; font-weight: 800; text-align: center;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-500));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.health-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.health-bar-item label { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--gray-400); margin-bottom: 4px; text-transform: capitalize; }
.health-bar-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.health-bar-fill { height: 100%; border-radius: 3px; background: var(--emerald-500); transition: width 0.8s ease; }

/* ── Loading / Empty / Error States ── */
.state-panel {
  text-align: center; padding: 4rem 2rem;
}
.state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.state-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.state-desc { font-size: 0.85rem; color: var(--gray-500); }
.spinner {
  width: 40px; height: 40px; border: 3px solid rgba(201,163,79,0.15);
  border-top-color: var(--gold-500); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: var(--gray-300);
  font-family: var(--font-body); text-decoration: none;
}
.btn:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950); border-color: var(--gold-500);
}
.btn-gold:hover { filter: brightness(1.1); color: var(--navy-950); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 3rem 0; text-align: center; margin-top: 4rem;
}
.footer-brand { font-size: 0.85rem; font-weight: 600; color: var(--gray-400); margin-bottom: 0.5rem; }
.footer-legal { font-size: 0.7rem; color: var(--gray-600); line-height: 1.8; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .hero { padding: 3rem 0 2rem; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .search-input-wrap { flex-direction: column; }
  .btn-verify { border-radius: 0 0 var(--radius) var(--radius); }
}
