:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --fg: #f0f0f5;
  --fg-muted: #8a8a9a;
  --accent: #22c55e;
  --accent-dim: rgba(34, 197, 94, 0.15);
  --border: rgba(240, 240, 245, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 197, 94, 0.15), transparent),
    var(--bg);
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--fg) 0%, var(--fg-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
}

.hero-visual {
  margin-top: 3rem;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 140px;
}

.flow-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.flow-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border-radius: 12px;
  color: var(--fg-muted);
}

.flow-node-ai .flow-icon {
  background: var(--accent-dim);
  color: var(--accent);
}

.flow-arrow {
  color: var(--fg-muted);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .flow-diagram {
    flex-direction: column;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
}

/* Features Section */
.features {
  padding: 6rem 2rem;
  background: var(--bg);
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.features-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.features-header p {
  color: var(--fg-muted);
  font-size: 1.125rem;
}

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

.feature-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 14px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Vision Section */
.vision {
  padding: 8rem 2rem;
  background: 
    radial-gradient(ellipse 60% 40% at 30% 50%, rgba(34, 197, 94, 0.08), transparent),
    var(--bg-elevated);
}

.vision-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.vision-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.vision-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.vision-content p {
  color: var(--fg-muted);
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Closing Section */
.closing {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--bg);
}

.closing-content {
  max-width: 600px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.125rem;
}

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

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

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-brand p {
  color: var(--fg-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.footer-links {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 6rem 1.5rem 3rem;
  }
  
  .features, .vision, .closing {
    padding: 4rem 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}