/* StockFlows Website - Brutalist Editorial Design */
:root {
  --bg: #fafafa;
  --bg-dark: #111111;
  --text: #111111;
  --text-dim: #666;
  --text-dimmer: #999;
  --border: #e0e0e0;
  --brand: #111111;
  --critical: #dc2626;
  --warning: #d97706;
  --success: #16a34a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

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

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.15s;
  border: 2px solid transparent;
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-brand:hover {
  background: #333;
  border-color: #333;
}

.btn-outline {
  background: transparent;
  border-color: #444;
  color: #ccc;
}

.btn-outline:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.7rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  color: #fff;
  padding: 120px 24px 80px;
}

.hero-inner {
  max-width: 800px;
  text-align: center;
}

.eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -3px;
  line-height: 0.9;
  margin-bottom: 28px;
}

.hero .sub {
  font-size: 1rem;
  color: #888;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  justify-content: center;
  gap: 96px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat .n {
  font-family: var(--serif);
  font-size: 4rem;
  font-style: italic;
  line-height: 1;
}

.stat .l {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* Features */
.features {
  padding: 120px 24px;
  background: var(--bg);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-dim);
  margin-bottom: 64px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color 0.15s;
}

.feature-card:hover {
  border-color: #999;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Demo Section */
.demo-section {
  padding: 120px 24px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.demo-inner h2 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 8px;
}

.demo-preview {
  margin-top: 48px;
}

.demo-image {
  max-width: 100%;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

/* CTA Section */
.cta-section {
  padding: 120px 24px;
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 16px;
}

.cta-section p {
  color: #888;
  margin-bottom: 32px;
}

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dimmer);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .stats-inner {
    gap: 48px;
  }
  
  .stat .n {
    font-size: 2.5rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}