/* ── Design Tokens ── */
:root {
  --color-bg: #ffffff;
  --color-surface: #f7f7f8;
  --color-surface-2: #eeeff1;
  --color-border: #e2e2e5;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-pink: #FF5CF1;
  --color-cyan: #40E5FF;
  --gradient: linear-gradient(135deg, var(--color-pink), var(--color-cyan));
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max-width: 1100px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-pink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-header .wordmark {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.site-header .wordmark:hover { text-decoration: none; }
.wordmark-logo {
  width: 28px;
  height: 28px;
}
.wordmark-text {
  height: 32px;
  width: auto;
}
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--color-text); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--color-pink);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255, 92, 241, 0.2);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(255, 92, 241, 0.3); }
.btn-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-text-muted); }

/* ── Prose Page ── */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 0;
}
.prose-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 20px;
}
.inline-logo {
  width: 18px;
  height: 18px;
  display: inline;
  vertical-align: -2px;
  margin-right: 5px;
}
.prose-page > p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin-bottom: 24px;
}
.prose-page > p + ul {
  margin-top: -16px;
}
.prose-page > ul {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-left: 24px;
}
.prose-page .demos-intro {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 24px;
  margin-top: 48px;
}
.prose-page .demos-intro + .demo-header {
  margin-top: 32px;
}
.prose-page .demo-header {
  margin-top: 80px;
  border-top: 2px solid var(--color-border);
  padding-top: 32px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}
.prose-page .demo-header + p {
  margin-bottom: 24px;
}
.prose-page .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Demo breakout — expand demos to full container width */
.demo-breakout {
  width: calc(var(--max-width) - 48px);
  max-width: calc(100vw - 48px);
  margin-left: calc((720px - var(--max-width)) / 2);
  position: relative;
}

/* ── Sections ── */
section { padding: 80px 0; }
section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
section .section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 48px;
  max-width: 520px;
}
.section-centered { text-align: center; }
.section-centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Capabilities Grid ── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.capability-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: left;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.capability-card h3 {
  font-size: 1.05rem;
  margin: 0;
}
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid;
  line-height: 1.4;
}
.tag-stats      { color: #7c6eff; border-color: #7c6eff30; background: #7c6eff10; }
.tag-visual     { color: #e67e22; border-color: #e67e2230; background: #e67e2210; }
.tag-clinical   { color: #e84393; border-color: #e8439330; background: #e8439310; }
.tag-data-i-o   { color: #00b894; border-color: #00b89430; background: #00b89410; }
.tag-dna        { color: #0984e3; border-color: #0984e330; background: #0984e310; }
.tag-rna        { color: #6c5ce7; border-color: #6c5ce730; background: #6c5ce710; }
.tag-platform   { color: #636e72; border-color: #636e7230; background: #636e7210; }
.tag-pharma     { color: #d63031; border-color: #d6303130; background: #d6303110; }
.capability-card p {
  flex: 1;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Vote Button ── */
.vote-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.vote-btn:hover:not(:disabled) {
  border-color: var(--color-pink);
  color: var(--color-pink);
}
.vote-btn.voted {
  border-color: var(--color-pink);
  color: var(--color-pink);
}
.vote-arrow {
  font-size: 0.7rem;
  line-height: 1;
}

/* ── Screenshots ── */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 20px;
}
.screenshot-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.screenshot-card img { width: 100%; }
.screenshot-card figcaption {
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.team-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-surface-2);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.team-card .avatar-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .role {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.team-card p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ── Social Proof ── */
.social-proof {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ── CTA Banner ── */
.cta-section {
  text-align: center;
  padding: 80px 0 100px;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Contact Form ── */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form .form-row {
  display: flex;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-pink);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: center; border: none; cursor: pointer; }
.form-status {
  font-size: 0.85rem;
  min-height: 1.4em;
}
.form-status.success { color: #22c55e; }
.form-status.error { color: #ef4444; }

@media (max-width: 480px) {
  .contact-form .form-row { flex-direction: column; }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.site-footer nav a:hover { color: var(--color-text); }

/* ── Blog ── */
#blog-content > h1 { margin-bottom: 32px; }
.blog-list { list-style: none; }
.blog-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}
.blog-list li:first-child { padding-top: 0; }
.blog-list .post-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.blog-list h3 { font-size: 1.15rem; margin-bottom: 6px; }
.blog-list h3 a { color: var(--color-text); }
.blog-list h3 a:hover { color: var(--color-pink); }
.blog-list .summary {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.breadcrumb {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-pink); }

.blog-post { max-width: 700px; }
.blog-post .post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}
.blog-post h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* Blog post prose */
.blog-post .prose h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; }
.blog-post .prose h3 { font-size: 1.15rem; margin-top: 32px; margin-bottom: 8px; }
.blog-post .prose p { margin-bottom: 16px; }
.blog-post .prose ul, .blog-post .prose ol { margin-bottom: 16px; padding-left: 24px; }
.blog-post .prose li { margin-bottom: 6px; }
.blog-post .prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.blog-post .prose pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}
.blog-post .prose pre code { background: none; padding: 0; }
.blog-post .prose img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.blog-post .prose blockquote {
  border-left: 3px solid var(--color-pink);
  padding-left: 16px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.blog-post .back-link { margin-top: 48px; display: inline-block; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .demo-breakout {
    width: calc(100vw - 48px);
    margin-left: calc((100% - 100vw + 48px) / 2);
  }
}

@media (max-width: 768px) {
  .prose-page { padding: 48px 24px 0; }
  .prose-page h2 { margin-top: 48px; }
  section { padding: 48px 0; }
  .screenshots { grid-template-columns: 1fr; }
  .site-header nav { gap: 16px; }
  .demo-breakout {
    width: calc(100vw - 32px);
    margin-left: calc((100% - 100vw + 32px) / 2);
  }
}

@media (max-width: 480px) {
  .site-header nav .btn { display: none; }
  .prose-page .hero-actions { flex-direction: column; align-items: center; }
}
