/* ASPE Labs — Dark Quant Lab
   Design system: MKTG-001 §5 */

:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #16161D;
  --bg-tertiary: #1E1E28;
  --text-primary: #E8E8ED;
  --text-secondary: #8B8B96;
  --text-muted: #5A5A66;
  --accent-green: #00FF88;
  --accent-blue: #3B82F6;
  --accent-red: #EF4444;
  --border: #2A2A35;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', ui-monospace, monospace;
  --font-sans: 'Inter', 'SF Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type {
  border-bottom: none;
}

h1, h2, h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero-logo {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.hero-logo .bold { font-weight: 700; }
.hero-logo .light { font-weight: 400; color: var(--text-secondary); }

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-descriptor {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--bg-primary);
  background: var(--accent-green);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.cta:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Performance snapshot */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
}
.metric-value.positive { color: var(--accent-green); }
.metric-value.negative { color: var(--accent-red); }
.metric-value.neutral { color: var(--text-primary); }

.metric-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.disclaimer-inline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-green);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Track record */
.chart-placeholder {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Fees */
.fees-table {
  width: 100%;
  border-collapse: collapse;
}

.fees-table th,
.fees-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.fees-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fees-table td {
  font-family: var(--font-mono);
}

.fees-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Risks */
.risks-list {
  list-style: none;
}

.risks-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.risks-list li:last-child {
  border-bottom: none;
}

.risk-title {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
}

/* Links */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.link-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.link-card:hover {
  border-color: var(--accent-blue);
  text-decoration: none;
}

.link-card .link-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-primary);
}

.link-card .link-url {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.link-card.coming-soon {
  opacity: 0.5;
  pointer-events: none;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

/* Responsive — small mobile */
@media (max-width: 479px) {
  .fees-table thead { display: none; }
  .fees-table,
  .fees-table tbody,
  .fees-table tr,
  .fees-table td { display: block; width: 100%; }
  .fees-table tr {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  .fees-table td {
    border-bottom: none;
    padding: 0.25rem 0;
  }
  .fees-table td:first-child {
    font-weight: 700;
    color: var(--text-primary);
  }
  .fees-table td:nth-child(2) {
    color: var(--accent-green);
    font-size: 1.25rem;
  }
  .fees-table td:last-child {
    color: var(--text-muted);
    font-size: 0.8rem;
  }
}

/* Responsive — tablet+ */
@media (min-width: 768px) {
  .hero-logo { font-size: 3.5rem; }
  .hero-tagline { font-size: 1.25rem; }
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .links-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 5rem 0; }
}
