/* ==========================================================
   usednvidia.com — v0.1
   Track A pattern; Source Serif 4 + Inter + Plex Mono
   ========================================================== */

:root {
  --bg: #f8f6f1;
  --bg-alt: #f1ede2;
  --surface: #ffffff;
  --border: #e6e2d4;
  --ink: #1a1a18;
  --ink-soft: #555550;
  --ink-dim: #8a8780;
  --rule: #cfc9b8;

  --accent: #2c3e50;          /* deep slate — confident, professional */
  --accent-deep: #1a2a3a;
  --accent-pop: #b8472a;       /* warm rust — primary CTA */
  --accent-pop-deep: #973a23;
  --accent-soft: #7a9b83;      /* sage — secondary */

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s, color 0.15s; }
a:hover { border-bottom-color: currentColor; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 600; margin-bottom: 8px; }
h3 { font-size: 20px; font-weight: 600; }

p { margin: 0 0 14px; }

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { border: 0; font-family: var(--serif); }
.brand-name { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.brand-dot { color: var(--ink-dim); font-weight: 400; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--ink-soft); border: 0; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--accent-pop); }

/* ---- Hero ---- */
.hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 { margin-bottom: 16px; }
.hero-text h1 br { display: block; }
.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 24px;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.intent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px;
  max-width: 620px;
}
.intent-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.intent-links a:hover {
  border-color: var(--accent-pop);
  color: var(--accent-pop);
}
.hero-meta {
  font-size: 12px;
  color: var(--ink-dim);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 580px;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 12px 40px -16px rgba(26, 26, 24, 0.25);
}

/* ---- CTA buttons ---- */
.cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.cta-primary { background: var(--accent-pop); color: white; border-color: var(--accent-pop); }
.cta-primary:hover { background: var(--accent-pop-deep); border-color: var(--accent-pop-deep); }
.cta-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.cta-secondary:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* ---- Sections ---- */
.page-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.section-lede { font-size: 17px; color: var(--ink-soft); max-width: 640px; margin-bottom: 36px; }

/* ---- Buyer table ---- */
.buyer-section { background: var(--bg-alt); }
.buyer-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 28px -22px rgba(26, 26, 24, 0.28);
}
.table-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -18px 0 18px;
}
.table-filters button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.table-filters button.active,
.table-filters button:hover {
  border-color: var(--accent-pop);
  background: var(--accent-pop);
  color: #fff;
}
.buyer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
  font-size: 13px;
}
.buyer-table th,
.buyer-table td {
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.buyer-table thead th {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.buyer-table tbody tr:hover td { background: #fbfaf6; }
.buyer-table .group-row th {
  background: var(--bg);
  color: var(--accent-pop);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.buyer-table td:first-child {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.buyer-table th:last-child,
.buyer-table td:last-child {
  width: 68px;
  max-width: 68px;
}
.buyer-table strong { color: var(--ink); }
.buyer-table details {
  margin-top: 6px;
  color: var(--ink-soft);
}
.buyer-table summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}
.buyer-table details p {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 12.5px;
  line-height: 1.45;
}
.pn-list {
  display: grid;
  gap: 5px;
  min-width: 190px;
}
.pn-list strong {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.pn-list code {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}
.pn-list span {
  display: block;
  color: var(--ink-dim);
  font-size: 11.5px;
  line-height: 1.4;
}
.mini-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--accent-pop);
  color: #fff;
  border: 1px solid var(--accent-pop);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.mini-cta:hover {
  background: var(--accent-pop-deep);
  border-color: var(--accent-pop-deep);
  color: #fff;
}
.buyer-table .mini-cta {
  width: 58px;
  min-height: 40px;
  padding: 5px 6px;
  white-space: normal;
  text-align: center;
  line-height: 1.08;
}
.table-note {
  margin-top: 16px;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

/* ---- Card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.card {
  display: block;
  padding: 24px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--accent-pop);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px -10px rgba(26, 26, 24, 0.15);
}
.card-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.card-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-pop);
  display: inline-block;
}

/* ---- Browse-all CTA ---- */
.browse-all-cta {
  margin-top: 44px;
  padding: 32px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
}
.browse-all-cta p {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* ---- Research and signup ---- */
.alerts-section { background: var(--surface); }
.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.section-heading-row .section-lede { margin-bottom: 0; }
.alert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.alert-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 280px;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.alert-card-priority {
  grid-column: span 2;
  background: var(--bg-alt);
  border-color: var(--rule);
}
.alert-card h3 {
  font-size: 21px;
  line-height: 1.15;
  margin-bottom: 0;
}
.alert-card p {
  color: var(--ink-soft);
  font-size: 14px;
}
.alert-card .mini-cta {
  width: max-content;
  max-width: 100%;
  margin-top: auto;
}
.research-section { background: var(--bg); }
.featured-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.featured-video h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.featured-video p {
  color: var(--ink-soft);
  margin-bottom: 0;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.resource-card {
  display: block;
  min-height: 190px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
}
.resource-card:hover {
  border-color: var(--accent-pop);
  box-shadow: 0 6px 24px -14px rgba(26, 26, 24, 0.18);
}
.resource-card p { color: var(--ink-soft); font-size: 14px; }
.specials-section { background: var(--bg-alt); }
.specials-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}
.signup-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.signup-form label {
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}
.signup-form input[type="email"],
.signup-form input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.optional {
  color: var(--ink-dim);
  font-weight: 500;
}
.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}
.interest-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.35;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup-status {
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

/* ---- About section ---- */
.about-section { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-grid p { font-size: 16px; color: var(--ink-soft); }
.why-used {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.why-used h3 { font-size: 18px; margin-bottom: 14px; color: var(--ink); }
.why-used ul { list-style: none; padding: 0; margin: 0; }
.why-used li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.why-used li:last-child { border-bottom: 0; }
.why-used li strong { color: var(--ink); }

/* ---- Footer ---- */
.site-footer {
  background: var(--accent);
  color: var(--bg);
  padding: 36px 0 32px;
}
.site-footer p { color: var(--bg); margin-bottom: 10px; font-size: 14.5px; }
.site-footer a { color: var(--bg); border-bottom: 1px solid rgba(248, 246, 241, 0.4); }
.site-footer a:hover { border-bottom-color: var(--bg); }
.site-footer .disclaimer { font-size: 12px; color: rgba(248, 246, 241, 0.75); line-height: 1.6; }
.site-footer .meta { font-size: 12px; color: rgba(248, 246, 241, 0.6); font-family: var(--mono); letter-spacing: 0.02em; margin-top: 14px; margin-bottom: 0; }

/* ---- Legal pages ---- */
.intelligence-hero {
  padding: 58px 0 62px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.intelligence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 34px;
  align-items: center;
}
.intelligence-note {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.intelligence-note h2 {
  font-size: 24px;
}
.intelligence-note p {
  color: var(--ink-soft);
}
.intel-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.intel-map article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.intel-map article p {
  color: var(--ink-soft);
  font-size: 14px;
}
.intel-map article a {
  width: max-content;
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-pop);
}
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.watchlist-grid div {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.watchlist-grid strong,
.watchlist-grid span {
  display: block;
}
.watchlist-grid span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}
.faq-list details {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.faq-list summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}
.faq-list p {
  margin-top: 10px;
  color: var(--ink-soft);
}
.legal-page {
  padding: 56px 0 64px;
}
.legal-container {
  max-width: 820px;
}
.legal-container h1 {
  margin-bottom: 8px;
}
.legal-container h2 {
  font-size: 24px;
  margin-top: 30px;
}
.legal-container p {
  color: var(--ink-soft);
  font-size: 16px;
}
.legal-container code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--accent);
}
.legal-updated {
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 28px;
}

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { order: -1; max-width: 420px; }
  .about-grid, .specials-grid, .featured-video, .intelligence-grid, .intel-map, .watchlist-grid, .section-heading-row, .alert-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-heading-row { display: grid; }
  .alert-card-priority { grid-column: auto; }
  h1 { font-size: clamp(32px, 8vw, 40px); }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero { padding: 36px 0 44px; }
  .page-section { padding: 44px 0; }
  .site-header nav { gap: 16px; }
  .hero-cta-row { gap: 8px; }
  .cta { width: 100%; justify-content: center; }
  .card { padding: 20px 20px 18px; }
}
