/* ═══════════════════════════════════════════
   AI Market — Systematic & Minimalist UI
   Design Approach: Pure functionalism, high contrast, geometric precision.
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-base: #000000;
  --bg-surface: #0a0a0a;
  --bg-active: #141414;
  --border: #1f1f1f;
  --border-active: #333333;
  --text-main: #ffffff;
  --text-dim: #888888;
  --text-low: #444444;
  --accent: #ffffff;
  /* Minimalist default */
  --accent-blue: #007aff;
  --mono-font: 'JetBrains Mono', monospace;
  --radius: 4px;
  /* Systematic, not overly rounded */
  --transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ────────────────── */

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.mono {
  font-family: var(--mono-font);
  font-size: 0.8rem;
  color: var(--text-low);
}

/* ── Layout ────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

header {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--text-main);
}

/* ── Hero ──────────────────────── */

.hero {
  padding: 120px 0 80px;
}

.hero-label {
  font-family: var(--mono-font);
  color: var(--accent-blue);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.hero h1 {
  font-size: 4rem;
  line-height: 0.95;
  margin-bottom: 32px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 600px;
}

/* ── Metrics ───────────────────── */

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  margin-top: 60px;
}

.metric-item {
  padding: 24px;
  border-right: 1px solid var(--border);
}

.metric-item:last-child {
  border-right: none;
}

.metric-label {
  font-family: var(--mono-font);
  font-size: 0.7rem;
  color: var(--text-low);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--mono-font);
  font-size: 1.25rem;
}

/* ── Reports Grid ──────────────── */

.section-head {
  padding: 80px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.report-card {
  background: var(--bg-base);
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}

.report-card:hover {
  background: var(--bg-surface);
}

.report-cat {
  font-family: var(--mono-font);
  font-size: 0.7rem;
  color: var(--accent-blue);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.report-name {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.2;
}

.report-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  flex-grow: 1;
}

.report-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-family: var(--mono-font);
  font-size: 1.1rem;
}

.btn-purchase {
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--text-main);
  padding: 10px 20px;
  font-family: var(--mono-font);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-purchase:hover {
  background: var(--text-main);
  color: var(--bg-base);
}

/* ── Footer ────────────────────── */

footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.f-copy {
  font-family: var(--mono-font);
  font-size: 0.7rem;
  color: var(--text-low);
}

/* ── Components ────────────────── */

.dot {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  display: inline-block;
  margin-right: 8px;
}

.toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #fff;
  color: #000;
  padding: 16px 24px;
  font-family: var(--mono-font);
  font-size: 0.8rem;
  display: none;
}

.toast.show {
  display: block;
}

/* ── Loading ───────────────────── */

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}