@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  --bg-color: #1A1B1E;
  --text-primary: #FFFFFF;
  --text-secondary: #C1C2C5;
  --accent-color: #6366F1;
  --border-color: #333333;
  --border-radius: 2px;
  --font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

p, li, div {
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Micro Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header {
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background-color: var(--bg-color);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text-primary);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-primary {
  background: var(--accent-color);
  color: var(--bg-color);
  border: 1px solid var(--accent-color);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  padding: 160px 0 120px;
  position: relative;
}

/* Grid lines effect in background */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 2rem;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  max-width: 700px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta-subtext {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.accent {
  color: var(--accent-color);
}

/* Social Proof / The Reality */
.reality {
  padding: 120px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.reality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.reality-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.reality-content p {
  font-size: 1.125rem;
  line-height: 1.6;
}

.code-window {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: #111113;
  padding: 2rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-x: auto;
}

.code-window .key { color: var(--text-secondary); }
.code-window .string { color: var(--text-primary); }
.code-window .boolean { color: var(--accent-color); }
.code-window .array { color: var(--text-primary); }

/* Traction Banner */
.traction-banner {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(99, 102, 241, 0.05);
  padding: 0.75rem 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.traction-inner {
  display: flex;
  align-items: center;
  color: var(--accent-color);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 2px; /* Brutalist dot */
  display: inline-block;
  margin-right: 0.75rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Data Callout */
.data-callout {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--accent-color);
  background: rgba(99, 102, 241, 0.05);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.data-callout strong {
  color: var(--accent-color);
  font-weight: 700;
}

/* How It Works */
.how-it-works {
  padding: 120px 0;
}

.how-it-works h2 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; /* No gap to create connected borders */
  border: 1px solid var(--border-color);
}

.step-card {
  padding: 3rem 2rem;
  border-right: 1px solid var(--border-color);
  transition: transform 0.3s ease, background 0.3s ease;
}

.step-card:hover {
  background: rgba(99, 102, 241, 0.03);
  transform: translateY(-4px);
}

.step-card:last-child {
  border-right: none;
}

.step-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  display: block;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.step-card p {
  font-size: 1rem;
}

/* Dashboard Mockup */
.report-preview {
  padding: 120px 0;
  border-top: 1px solid var(--border-color);
}

.report-header {
  margin-bottom: 4rem;
  text-align: center;
}

.report-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.dashboard-mockup {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: #111113;
  display: flex;
  overflow: hidden;
}

.dash-sidebar {
  width: 240px;
  border-right: 1px solid var(--border-color);
  background: #151618;
}

.dash-tab {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid #1a1b1e;
}

.dash-tab.active {
  color: var(--accent-color);
  background: rgba(99, 102, 241, 0.05);
  border-left: 2px solid var(--accent-color);
}

.dash-content {
  flex: 1;
  padding: 2rem;
}

.dash-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.dash-stat {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.error-color { color: #ff6b6b; }
.error-bg { background-color: #ff6b6b !important; }

.dash-panel {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
}

.dash-panel h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bar-row {
  display: flex;
  align-items: center;
}

.bar-name {
  width: 100px;
  font-size: 0.875rem;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  margin: 0 1rem;
}

.bar-fill {
  height: 100%;
  background: var(--text-secondary);
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bar-pct {
  width: 40px;
  text-align: right;
  font-size: 0.875rem;
  font-family: monospace;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-brand {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.3);
  text-underline-offset: 4px;
}

.footer-link:hover {
  text-decoration-color: var(--accent-color);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 27, 30, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent-color);
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-content p {
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  border-radius: var(--border-radius);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: var(--accent-color);
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  color: var(--accent-color);
}

.form-message.error {
  display: block;
  color: #ff6b6b;
}

/* Responsive */
@media (max-width: 900px) {
  .reality-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .step-card {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .step-card:last-child {
    border-bottom: none;
  }
  
  .dashboard-mockup {
    flex-direction: column;
  }
  
  .dash-sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .dash-tab {
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid #1a1b1e;
  }
  
  .dash-tab.active {
    border-left: none;
    border-bottom: 2px solid var(--accent-color);
  }
  
  .dash-top {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
