/* FlashDB Marketing Site */

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --accent: #06b6d4;
  --bg: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-elevated: #2a2a2a;
  --border: #3a3a3a;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --success: #10b981;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  gap: 4rem;
  padding: 2rem 0;
}

.stat {
  text-align: center;
}

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

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-large {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  width: 100%;
  text-align: center;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  background: var(--primary);
  color: white;
}

.btn-large:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Query Demo */
.section-demo {
  background: var(--bg-card);
  padding: 6rem 0;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: 4rem;
}

.query-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.query-input, .query-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.query-label {
  background: var(--bg-elevated);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.query-text, .result-json {
  padding: 1.5rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.query-arrow {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.code-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.code-example {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.code-example h3 {
  background: var(--bg-elevated);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.code-example pre {
  padding: 1.5rem;
  font-family: 'Monaco', monospace;
  font-size: 0.85rem;
  overflow-x: auto;
}

/* Features */
.section-features {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.feature p {
  color: var(--text-muted);
}

/* CRDT Demo */
.section-crdt {
  background: var(--bg-card);
  padding: 6rem 0;
}

.crdt-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.crdt-node {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.node-header {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.node-action {
  padding: 0.5rem 0;
  font-family: 'Monaco', monospace;
  color: var(--text-muted);
}

.node-value {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--primary);
}

.crdt-sync {
  text-align: center;
}

.sync-arrow {
  font-size: 2.5rem;
  color: var(--accent);
}

.sync-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.crdt-result {
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.crdt-note {
  display: block;
  margin-top: 0.5rem;
  color: var(--success);
}

/* Comparison */
.section-comparison {
  padding: 6rem 0;
}

.comparison-table {
  max-width: 900px;
  margin: 0 auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 0.75rem;
  overflow: hidden;
}

th, td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-elevated);
  font-weight: 600;
}

.highlight-col {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
}

/* Use Cases */
.section-use-cases {
  background: var(--bg-card);
  padding: 6rem 0;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.use-case {
  background: var(--bg);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.use-case:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.use-case h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.use-case p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */
.section-pricing {
  padding: 6rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
}

.badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* CTA */
.section-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 6rem 2rem;
  text-align: center;
}

.section-cta h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .section-title {
    font-size: 2rem;
  }

  .query-demo {
    grid-template-columns: 1fr;
  }

  .query-arrow {
    transform: rotate(90deg);
  }

  .code-examples {
    grid-template-columns: 1fr;
  }

  .crdt-demo {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
