/* StockVault - Curated Stock Platform */
:root {
  --ink: #101828;
  --ink-light: #344054;
  --ink-muted: #667085;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --border: #eaecf0;
  --cyan: #06b6d4;
  --cyan-hover: #0891b2;
  --cyan-soft: #ecfeff;
  --stripe: #635BFF;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 10px 25px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button, .btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--cyan);
  color: white;
  padding: 12px 24px;
  font-size: 15px;
}
.btn-primary:hover { background: var(--cyan-hover); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  padding: 10px 20px;
}
.btn-secondary:hover { border-color: var(--ink); }

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo span { color: var(--cyan); }
nav { display: flex; gap: 28px; align-items: center; }
nav a { color: var(--ink-light); font-weight: 500; font-size: 15px; }
nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { margin-left: 8px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 80px 24px 60px;
  text-align: center;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--ink);
}
.hero p.sub {
  font-size: 20px;
  color: var(--ink-light);
  max-width: 640px;
  margin: 0 auto 40px;
}
.search-box {
  max-width: 640px;
  margin: 0 auto 48px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 18px 24px 18px 52px;
  font-size: 17px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: white;
  box-shadow: var(--shadow);
}
.search-box input:focus { border-color: var(--cyan); }
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
}

/* Categories */
.categories {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card h3 { font-size: 18px; margin: 12px 0 6px; color: var(--ink); }
.cat-card p { color: var(--ink-muted); font-size: 14px; }

/* Grid */
.section { max-width: 1280px; margin: 0 auto; padding: 48px 24px; }
.section h2 { font-size: 32px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.section .lead { color: var(--ink-light); margin-bottom: 32px; }
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.asset-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.asset-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.asset-card img { width: 100%; height: 180px; object-fit: cover; }
.asset-card .info { padding: 14px 16px 16px; }
.asset-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; color: var(--ink); }
.asset-card .meta { font-size: 13px; color: var(--ink-muted); display: flex; justify-content: space-between; }

/* Stats */
.stats {
  background: var(--bg-soft);
  padding: 48px 24px;
  text-align: center;
}
.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat h3 { font-size: 36px; font-weight: 700; color: var(--ink); }
.stat p { color: var(--ink-muted); font-size: 14px; margin-top: 4px; }
.stats-note { font-size: 13px; color: var(--ink-muted); margin-top: 16px; }

/* Trust */
.trust {
  background: var(--ink);
  color: white;
  text-align: center;
  padding: 32px 24px;
  font-size: 18px;
  font-weight: 500;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.step { text-align: center; }
.step-num {
  width: 40px; height: 40px; background: var(--cyan-soft); color: var(--cyan);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 12px;
}
.step h3 { margin-bottom: 8px; }

/* Contributor CTA */
.contributor-cta {
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin: 48px 0;
}
.contributor-cta h2 { font-size: 32px; margin-bottom: 12px; }

/* Footer */
footer {
  background: #0c1220;
  color: #98a2b3;
  padding: 64px 24px 32px;
  margin-top: 80px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: white; font-size: 20px; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; color: #98a2b3; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #1d2939;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.stripe-badge {
  background: var(--stripe);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* Browse page */
.browse-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}
.filters {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.filters h3 { font-size: 16px; margin-bottom: 16px; }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-light); }
.filter-group input, .filter-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.results-header h1 { font-size: 28px; }

/* Asset detail */
.asset-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.preview-large { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.preview-large img { width: 100%; height: auto; }
.asset-info h1 { font-size: 28px; margin-bottom: 12px; line-height: 1.3; }
.asset-info .contributor { color: var(--ink-muted); margin-bottom: 16px; }
.keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.keyword {
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--ink-light);
}
.license-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.license-table th, .license-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.license-table th { background: var(--bg-soft); font-weight: 600; }
.price-box { background: var(--bg-soft); border-radius: 12px; padding: 20px; margin: 20px 0; }
.price-options { display: flex; gap: 12px; margin-top: 12px; }
.price-option {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: white;
}
.price-option.selected, .price-option:hover { border-color: var(--cyan); background: var(--cyan-soft); }
.price-option .amount { font-size: 24px; font-weight: 700; color: var(--ink); }
.what-you-get { margin-top: 24px; }
.what-you-get li { margin-bottom: 8px; font-size: 14px; color: var(--ink-light); }

/* Contributor page */
.contributor-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: flex;
  gap: 32px;
  align-items: center;
}
.avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid white; box-shadow: var(--shadow-lg); }
.badge {
  display: inline-block;
  background: var(--cyan-soft);
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

/* Policy pages */
.policy { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.policy h1 { font-size: 36px; margin-bottom: 8px; }
.policy h2 { font-size: 22px; margin: 32px 0 12px; }
.policy p, .policy li { margin-bottom: 12px; color: var(--ink-light); }
.policy ul { padding-left: 20px; }

/* Checkout */
.checkout {
  max-width: 700px;
  margin: 48px auto;
  padding: 0 24px;
}
.checkout-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.checkout-summary { display: flex; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.checkout-summary img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }

/* Blog */
.article { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.article h1 { font-size: 36px; margin-bottom: 12px; }
.article .meta { color: var(--ink-muted); margin-bottom: 32px; font-size: 14px; }
.article p { margin-bottom: 16px; color: var(--ink-light); font-size: 17px; line-height: 1.7; }
.article h2 { font-size: 24px; margin: 32px 0 12px; }

/* 404 */
.error-page { text-align: center; padding: 120px 24px; }
.error-page h1 { font-size: 72px; font-weight: 700; color: var(--ink); }
.error-page p { font-size: 18px; color: var(--ink-light); margin: 16px 0 32px; }

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 40px; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .asset-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contributor-header { flex-direction: column; text-align: center; }
  nav { display: none; }
}
@media (max-width: 600px) {
  .categories { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
