/* Chiral Website Styles */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #0f172a;
  --bg-hover: #1e293b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --border: #1e293b;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: var(--accent-hover);
}

code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  background: var(--bg-card);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid var(--border);
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-brand .logo {
  border-radius: 6px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 50%),
    var(--bg-dark);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

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

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

.btn-small {
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
}

/* Features Section */
.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

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

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

.feature-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Showcase Section */
.showcase {
  padding: 6rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.showcase h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.showcase-content > p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.showcase-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 3rem;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.showcase-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Install Section */
.install {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.install h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

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

.install-steps-simple {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.install-step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.install-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.install-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.install-step code {
  display: block;
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  word-break: break-all;
}

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

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-brand .logo {
  border-radius: 4px;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-legal {
  color: var(--text-secondary);
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

/* Content Pages (Privacy, etc.) */
.page-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.page-header .nav-brand a {
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.page-header .brand-text {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-left: 0.75rem;
}

.content-page {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

.policy h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.policy .effective-date {
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.policy section {
  margin-bottom: 2.5rem;
}

.policy h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.policy p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.policy strong {
  color: var(--text-primary);
}

/* Documentation Page */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

.docs-sidebar {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: fit-content;
  max-height: 100vh;
  overflow-y: auto;
}

.docs-nav h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 1.5rem 0 0.75rem;
}

.docs-nav h3:first-child {
  margin-top: 0;
}

.docs-nav ul {
  list-style: none;
}

.docs-nav li {
  margin-bottom: 0.25rem;
}

.docs-nav a {
  display: block;
  padding: 0.375rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.docs-content {
  padding: 3rem 4rem;
  max-width: 800px;
}

.docs-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.docs-intro {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.docs-content section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.docs-content section:last-child {
  border-bottom: none;
}

.docs-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.docs-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

.docs-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.docs-list {
  list-style: none;
  margin-bottom: 1rem;
}

.docs-list li {
  color: var(--text-secondary);
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.docs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.docs-list strong {
  color: var(--text-primary);
}

.docs-steps {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.docs-steps li {
  color: var(--text-secondary);
  padding: 0.375rem 0;
}

.docs-content code {
  font-size: 0.85em;
}

.status-green { color: #22c55e; }
.status-blue { color: #3b82f6; }
.status-orange { color: #f59e0b; }
.status-red { color: #ef4444; }

.docs-table {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid #1e293b;
  border-radius: 6px;
}

.docs-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #1e293b;
}

.docs-table th {
  color: #e2e8f0;
  font-weight: 600;
  background: #0f172a;
}

.docs-table td {
  color: #94a3b8;
}

.docs-table tbody tr:last-child td {
  border-bottom: none;
}

.docs-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.docs-code {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
  margin: 1rem 0;
}

.badge-green {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
}

.badge-orange {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
}

.badge-purple {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-brand span,
  .nav-brand .brand-text {
    display: none;
  }

  .content-page {
    padding: 2rem 1.5rem;
  }

  .policy h1 {
    font-size: 2rem;
  }

  .showcase-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-content {
    padding: 2rem 1.5rem;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }

  .features,
  .install {
    padding: 4rem 1.5rem;
  }

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

  .install-steps,
  .install-steps-simple {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeIn 0.8s ease-out;
}

.feature-card {
  animation: fadeIn 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
