/* SlabScout — Premium Dark Theme */
/* Aesthetic: high-end auction house (PWCC meets Heritage), deep navy, amber gold, editorial typography */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Core backgrounds — deep navy-black layering */
  --bg-void: #07080d;
  --bg-primary: #0b0d14;
  --bg-secondary: #111420;
  --bg-card: #161924;
  --bg-card-hover: #1c2030;
  --bg-raised: #1e2235;

  /* Typography */
  --text-primary: #ede8df;
  --text-secondary: #8b8fa8;
  --text-muted: #4f5368;
  --text-inverse: #07080d;

  /* Accent — warm amber gold, auction house */
  --accent: #c9963a;
  --accent-bright: #e0b05a;
  --accent-dim: #a37828;
  --accent-glow: rgba(201, 150, 58, 0.12);
  --accent-subtle: rgba(201, 150, 58, 0.06);

  /* Semantic */
  --green: #3ecf8e;
  --red: #f56565;
  --green-dim: rgba(62, 207, 142, 0.1);
  --red-dim: rgba(245, 101, 101, 0.1);

  /* Borders */
  --border: rgba(255, 255, 255, 0.05);
  --border-accent: rgba(201, 150, 58, 0.22);
  --border-strong: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  /* Spacing */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(201, 150, 58, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== GLOBAL TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

/* ===== SHARED NAV ===== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand em {
  color: var(--accent);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--accent); }
.nav-signup {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-inverse);
  background: var(--accent);
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-signup:hover { opacity: 0.8; }
.nav-logout {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  text-decoration: none;
}
.nav-logout:hover { color: var(--text-primary); }
.nav-user {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 0 8px;
  letter-spacing: 0.02em;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-inverse);
  background: var(--accent);
  padding: 8px 20px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--accent-bright); color: var(--text-inverse) !important; }

/* ===== SHARED BUTTON STYLES ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 24px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

/* ===== SHARED BADGE ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 100px 48px 80px;
  overflow: hidden;
}

/* Subtle grid pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% 50%, rgba(201, 150, 58, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(201, 150, 58, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(7, 8, 13, 0.8) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  margin-bottom: 36px;
  background: var(--accent-subtle);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  font-optical-sizing: auto;
}

.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero right: floating data cards */
.hero-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.floating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 22px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.floating-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}

.floating-card:hover { border-color: var(--border-accent); }

.card-1 { transform: translateX(0) rotate(-0.5deg); }
.card-2 { transform: translateX(24px) rotate(0.3deg); }
.card-3 { transform: translateX(-12px) rotate(-0.2deg); }

.card-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.card-pop {
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 500;
}

.card-trend {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.features-header {
  margin-bottom: 64px;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.feature-block {
  background: var(--bg-secondary);
  padding: 52px 48px;
  transition: background 0.25s ease;
  position: relative;
}

.feature-block:hover { background: var(--bg-card); }

.feature-number {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-icon {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 18px;
  line-height: 1;
}

.feature-block h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  font-optical-sizing: auto;
}

.feature-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 380px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 48px;
  max-width: 960px;
  margin: 0 auto;
}

.how-it-works h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}

.steps { display: flex; flex-direction: column; }

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  padding-top: 6px;
  opacity: 0.7;
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 48px;
  background: var(--bg-void);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201, 150, 58, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  font-style: italic;
  font-weight: 300;
}

.closing h2 strong {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.closing p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.closing-accent { color: var(--accent-bright) !important; font-weight: 500; }

.closing-actions {
  margin-top: 48px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-void);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===== SHARED FORM INPUTS ===== */
.field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-body);
  display: block;
  margin-bottom: 6px;
}

.field-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  border-radius: 0;
  appearance: none;
}

.field-input::placeholder { color: var(--text-muted); }

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

/* ===== SHARED STAT BLOCKS ===== */
.stat-block {
  background: var(--bg-secondary);
  padding: 24px 22px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

.stat-value.up { color: var(--green); }
.stat-value.down { color: var(--red); }

/* ===== GRADE BADGES ===== */
.grade-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 2px;
}

.grade-psa { border-color: rgba(201, 150, 58, 0.35); color: var(--accent); }
.grade-bgs { border-color: rgba(62, 207, 142, 0.35); color: var(--green); }
.grade-sgc { border-color: rgba(245, 101, 101, 0.3); color: #fca5a5; }
.grade-raw { border-color: var(--border); color: var(--text-muted); }

/* ===== ERROR / NOTICE BANNERS ===== */
.error-banner {
  background: var(--red-dim);
  border: 1px solid rgba(245, 101, 101, 0.2);
  color: var(--red);
  padding: 14px 18px;
  font-size: 14px;
  border-radius: 2px;
}

.success-banner {
  background: var(--green-dim);
  border: 1px solid rgba(62, 207, 142, 0.2);
  color: var(--green);
  padding: 14px 18px;
  font-size: 14px;
  border-radius: 2px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 100px 40px;
  max-width: 480px;
  margin: 0 auto;
}

.empty-icon { font-size: 44px; margin-bottom: 20px; opacity: 0.4; }

.empty-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.empty-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state { display: none; text-align: center; padding: 80px 40px; }
.loading-state.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 80px 32px 60px; }
  .hero-cards {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding: 12px 4px;
  }
  .floating-card { min-width: 180px; transform: none !important; flex-shrink: 0; }
}

@media (max-width: 768px) {
  .top-nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .features-inner { padding: 0 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-block { padding: 40px 28px; }
  .how-it-works { padding: 80px 24px; }
  .step { grid-template-columns: 40px 1fr; gap: 20px; }
  .step-num { font-size: 28px; }
  .closing { padding: 80px 24px; }
  .site-footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===== NAV PRICING LINK ===== */
.nav-pricing {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.nav-hamburger:hover { background: var(--bg-card); }

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-hamburger.hamburger--open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.hamburger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.hamburger--open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-hamburger.hamburger--open span { background: var(--text-primary); }

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}
.mobile-nav-overlay--open { opacity: 1; pointer-events: all; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 400;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.mobile-nav--open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
}
.mobile-nav-close:hover { color: var(--text-primary); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-nav-link:hover { background: var(--bg-card); color: var(--text-primary); }

.mobile-nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--accent);
}

.mobile-nav-cta {
  margin: 20px 24px 0;
  display: block;
  text-align: center;
  padding: 13px 24px;
  background: var(--accent);
  color: var(--text-inverse) !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none !important;
  text-decoration: none;
  transition: background 0.2s ease;
}
.mobile-nav-cta:hover { background: var(--accent-bright); color: var(--text-inverse) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .top-nav { height: 52px; padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-new { padding: 72px 20px 48px; }
  .hero-new-headline { font-size: 38px; }
}
