/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: 222 47% 6%;
  --foreground: 210 40% 98%;
  --card: 222 47% 8%;
  --border: 217 33% 17%;
  --muted-foreground: 215 20% 65%;
  --secondary: 217 33% 12%;
  --primary: 217 91% 60%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Landing page */
.landing-page {
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* Navigation */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
}

.logo-icon.small {
  width: 1.5rem;
  height: 1.5rem;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.logo-subtitle {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.btn-secondary:hover {
  background: hsl(var(--secondary) / 0.8);
}

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background: hsl(var(--secondary));
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Hero Section */
.hero {
  padding: 4rem 1.5rem;
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 1.5rem;
  }
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #22c55e;
  border-radius: 9999px;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-feature svg {
  width: 1rem;
  height: 1rem;
  color: #22c55e;
}

/* Terminal */
.hero-visual {
  width: 100%;
}

.terminal {
  background: #0f172a;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  font-family: monospace;
}

.terminal-spacer {
  width: 3rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.875rem;
  color: #e2e8f0;
  min-height: 320px;
}

.terminal-line {
  margin-bottom: 1rem;
}

.prompt {
  color: #22d3ee;
}

.path {
  color: #a78bfa;
  margin: 0 0.5rem;
}

.command {
  color: white;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.output-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.output-line.success .check {
  color: #22c55e;
}

.terminal-result {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid #334155;
  border-radius: 0.375rem;
  padding: 0.75rem;
  color: #4ade80;
  margin-bottom: 1rem;
}

.terminal-result a {
  color: #94a3b8;
  text-decoration: underline;
  text-decoration-style: dashed;
}

.result-success {
  font-weight: 600;
}

.cursor-line {
  margin-bottom: 0;
}

.cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1rem;
  background: #64748b;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Features Section */
.features {
  padding: 5rem 1.5rem;
  background: hsl(var(--secondary));
}

.features-content {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  max-width: 600px;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  color: #8b5cf6;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

.section-header p {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.feature-visual {
  aspect-ratio: 4/3;
  background: hsl(var(--secondary));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: 60%;
  opacity: 0.6;
}

.grid-item {
  height: 2.5rem;
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 0.25rem;
}

.grid-item.wide {
  grid-column: span 2;
}

.container-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 60%;
  justify-content: center;
  opacity: 0.6;
}

.container-item {
  width: 2rem;
  height: 2rem;
  background: rgba(34, 211, 238, 0.3);
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 0.25rem;
}

.db-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 50%;
  opacity: 0.6;
}

.db-disk {
  height: 1rem;
  background: rgba(139, 92, 246, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 9999px;
}

.feature-info h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-info h3 svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #3b82f6;
}

.feature-info p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 5rem 1.5rem;
  text-align: center;
  border-top: 1px solid hsl(var(--border));
}

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

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .cta h2 {
    font-size: 2.5rem;
  }
}

.cta p {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.footer {
  background: hsl(var(--secondary));
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 1.5rem 2rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #3b82f6;
}

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

.footer-bottom p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Mobile nav toggle - hidden for now */
@media (max-width: 768px) {
  .nav-actions .btn-secondary {
    display: none;
  }
}
