:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #3b82f6;
  --brand-light: #93c5fd;
  --white: #ffffff;
  --spacing-unit: 1rem;
  --radius: 0.5rem;
  --transition: all 0.2s ease;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
  width: 100%;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-unit) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.download-btn {
  background: var(--brand);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.download-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: calc(var(--spacing-unit) * 4) 0;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.hero-label {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-unit);
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-unit);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0 auto var(--spacing-unit);
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  flex-wrap: wrap;
}

.tag {
  background: var(--brand);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
}

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

.hero-screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: calc(var(--spacing-unit) * 2);
}

.hero-screenshots img {
  width: 100%;
  max-width: 320px;
  justify-self: center;
  display: block;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

/* Section Styling */
.section {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.section-header {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: calc(var(--spacing-unit) * 2);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: calc(var(--spacing-unit) * 2);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-content {
  color: var(--muted);
  line-height: 1.6;
}

/* Matrix/Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: calc(var(--spacing-unit) * 2);
}

.feature-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-value {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Code Blocks */
.code-block {
  background: #111827;
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: calc(var(--spacing-unit) * 2) 0;
}

.code-block pre {
  margin: 0;
  color: #e5e7eb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: calc(var(--spacing-unit) * 2);
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: var(--transition);
}

.step:hover {
  border-color: var(--brand);
}

.step-number {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 3rem;
}

.step-content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.step-content p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: calc(var(--spacing-unit) * 2) 0;
  margin-top: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

/* Docs Page */
.docs-section {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.docs-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: calc(var(--spacing-unit) * 2);
  background: var(--white);
}

.docs-content > :first-child {
  margin-top: 0;
}

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.docs-content h1 {
  font-size: 2rem;
}

.docs-content h2 {
  font-size: 1.5rem;
}

.docs-content h3 {
  font-size: 1.2rem;
}

.docs-content p,
.docs-content li {
  color: var(--ink);
}

.docs-content ul,
.docs-content ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.docs-content a {
  color: var(--brand);
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
}

.docs-content th,
.docs-content td {
  border: 1px solid var(--line);
  padding: 0.7rem;
  text-align: left;
  white-space: nowrap;
}

.docs-content th {
  background: #f9fafb;
}

.docs-content pre {
  background: #111827;
  color: #e5e7eb;
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.docs-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88rem;
}

.docs-content p code,
.docs-content li code,
.docs-content td code,
.docs-content th code {
  background: #f3f4f6;
  border-radius: 0.3rem;
  padding: 0.1rem 0.35rem;
  color: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

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

  .hero-screenshots {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 1rem;
  }

  .docs-content {
    padding: 1.25rem;
  }

  .docs-content h1 {
    font-size: 1.7rem;
  }
}
