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

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #171717;
  --text-muted: #737373;
  --border: #e5e5e5;
  --accent: #171717;
  --accent-hover: #404040;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Demo Cards */
.demos {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

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

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.demo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.demo-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.demo-1-preview {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.demo-2-preview {
  background: var(--surface);
}

.preview-ui {
  text-align: center;
}

/* Demo 1 Mock UI */
.mock-card {
  width: 100px;
  height: 130px;
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mock-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.mock-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-block;
}

.mock-btn.archive {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.mock-btn.keep {
  background: linear-gradient(135deg, #4ecdc4, #3dbdb5);
}

/* Demo 2 Mock UI */
.ship-wireframe {
  width: 120px;
  height: 120px;
  color: var(--text);
  opacity: 0.8;
}

/* Demo Info */
.demo-info {
  padding: 1.5rem;
}

.demo-info h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.demo-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.demo-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tech-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

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

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

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

/* Installation */
.installation {
  margin-bottom: 4rem;
}

.installation h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.install-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.install-block h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.install-block pre {
  background: #1a1a2e;
  color: #e5e5e5;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.install-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.install-note code {
  background: var(--bg);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.8125rem;
}

.install-note a {
  color: var(--primary);
  text-decoration: none;
}

.install-note a:hover {
  text-decoration: underline;
}

/* About */
.about {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 2rem;
}

.about h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

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

.about a:hover {
  text-decoration: underline;
}

.links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.link-item:hover {
  color: var(--primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .demo-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}
