/* ── minc — cool technical palette ── */
:root {
  /* backgrounds */
  --bg-deep:       #12141f;
  --bg-main:       #1a1e2e;
  --bg-card:       #222738;
  --bg-code:       #161926;

  /* accents */
  --accent:        #6cb4ee;
  --accent-dim:    #4a8ec8;
  --accent2:       #8edba5;
  --accent-subtle: #3a4a6a;

  /* text */
  --text:          #e0e4f0;
  --text-dim:      #9aa0b8;
  --text-bright:   #ffffff;

  /* code tokens */
  --code-keyword:  #6cb4ee;
  --code-type:     #8edba5;
  --code-string:   #f0c674;
  --code-comment:  #5a6078;
  --code-number:   #d4a0e0;
  --code-fn:       #e0e4f0;
  --code-op:       #c0c8d8;

  /* layout */
  --content-width: 1200px;
  --nav-height:    60px;

  /* fonts */
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-code:     'Cascadia Mono', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

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

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

code, pre {
  font-family: var(--font-code);
  font-size: 0.85rem;
}

/* ── layout ── */
.content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

/* ── navbar ── */
.navbar {
  z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--accent-subtle);
  min-height: var(--nav-height);
}

.navbar .content {
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
  gap: 16px;
}

.navbar .logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.navbar .logo:hover { color: var(--accent); }

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bg-deep);
  font-family: var(--font-code);
}

.nav-badge {
  font-family: var(--font-code);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-code);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 12px 24px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-bright); }

/* ── hero ── */
.hero {
  background: var(--bg-deep);
  padding: 80px 0 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero h1 .hl { color: var(--accent); }

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-code {
  background: var(--bg-code);
  border: 1px solid var(--accent-subtle);
  border-radius: 8px;
  padding: 24px 32px;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  overflow-x: auto;
}

.hero-code pre {
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  padding-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: var(--text-bright);
  color: var(--bg-deep);
}

.btn-secondary {
  background: var(--accent-subtle);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--accent-dim);
  color: var(--text-bright);
}

/* ── wave divider ── */
.wave-divider {
  display: block;
  width: 100%;
  height: 80px;
}
.wave-divider.dark-to-main { background: var(--bg-deep); }
.wave-divider.dark-to-main svg { display: block; width: 100%; height: 100%; }
.wave-divider.main-to-dark { background: var(--bg-main); }
.wave-divider.main-to-dark svg { display: block; width: 100%; height: 100%; }

/* ── feature pipeline ── */
.pipeline {
  background: var(--bg-main);
  padding: 60px 0 40px;
  text-align: center;
}

.pipeline-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-code);
  font-size: 0.95rem;
}

.pipeline-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pipeline-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 340px;
}

.pipeline-box {
  background: var(--bg-card);
  border: 1px solid var(--accent-subtle);
  border-radius: 6px;
  padding: 10px 20px;
  color: var(--text);
}

.pipeline-box.hl {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.pipeline-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
}

.pipeline-note {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── feature pairs ── */
.features { padding: 40px 0 60px; }

.pair {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 48px 0;
}

.pair:nth-child(even) { flex-direction: row-reverse; }

.pair-text {
  flex: 1;
  min-width: 0;
}

.pair-text h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.pair-text p {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 1rem;
}

.pair-code {
  flex: 1;
  min-width: 0;
  width: 0;
  overflow: hidden;
}

.pair-code pre {
  background: var(--bg-code);
  border: 1px solid var(--accent-subtle);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  line-height: 1.6;
  max-width: 100%;
}

/* ── playground section ── */
.playground-section {
  background: var(--bg-deep);
  padding: 60px 0;
}

.playground-section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: 8px;
}

.playground-section .subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.playground-canvas-wrap {
  background: var(--bg-code);
  border: 1px solid var(--accent-subtle);
  border-radius: 8px;
  padding: 4px;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playground-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: block;
}

.playground-placeholder {
  color: var(--text-dim);
  font-family: var(--font-code);
  font-size: 0.9rem;
}

.playground-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── download CTA ── */
.cta {
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-dim);
  margin-bottom: 28px;
  font-size: 1rem;
}

.cta .platforms {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 16px;
}

.cta .platforms span { color: var(--accent2); }

/* ── footer ── */
.footer {
  border-top: 1px solid var(--accent-subtle);
  padding: 40px 0;
  background: var(--bg-deep);
}

.footer .content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

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

.footer a.footer-impressum { color: var(--text-dim); font-size: 0.8rem; }
.footer a.footer-impressum:hover { color: var(--text-bright); }

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

/* ── newsletter ── */
.newsletter {
  padding: 60px 0;
  text-align: center;
  background: var(--bg-card);
}

.newsletter h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.newsletter p {
  color: var(--text-dim);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 100px;
  border: 1px solid var(--accent-subtle);
  background: var(--bg-main);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form input::placeholder {
  color: var(--text-dim);
}

.newsletter-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ── pricing (Option A: cards) ── */
.pricing {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-main);
}

.pricing h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.pricing-subtitle {
  color: var(--text-dim);
  margin-bottom: 40px;
  font-size: 1rem;
}

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 690px;
  margin: 0 auto;
}

.pricing-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--accent-subtle);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card.featured {
  border-color: var(--accent);
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.pricing-detail {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
}

.pricing-card li {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 4px 0;
}

.pricing-card li::before {
  content: "—  ";
  color: var(--accent-subtle);
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 520px;
  margin: 32px auto 0;
  line-height: 1.6;
}

/* ── pricing (Option C: prose) ── */
.pricing-text {
  text-align: left;
}

.pricing-text h2 {
  text-align: center;
}

.pricing-prose {
  max-width: 640px;
  margin: 0 auto;
}

.pricing-prose p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.pricing-prose strong {
  color: var(--text-bright);
}

.pricing-prose .btn {
  margin-top: 12px;
  display: inline-flex;
}

.pricing-prose {
  text-align: center;
}

.pricing-prose p {
  text-align: left;
}

/* ── syntax highlighting (manual spans) ── */
.kw  { color: var(--code-keyword); }
.ty  { color: var(--code-type); }
.str { color: var(--code-string); }
.cm  { color: var(--code-comment); }
.num { color: var(--code-number); }
.fn  { color: var(--code-fn); font-weight: 600; }
.op  { color: var(--code-op); }

/* ── responsive ── */
@media (max-width: 700px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.8rem; }
  .pair { flex-direction: column !important; gap: 24px; }
  .pair-code { width: auto; }
  .pair-code pre { width: calc(100vw - 48px); }
  .pair-text h2 { font-size: 1.3rem; }
  .hero-code { padding: 16px 20px; max-width: calc(100vw - 48px); }
  .pair-code pre { font-size: 0.75rem; padding: 16px; }
  .navbar .content { padding: 12px 24px !important; overflow: visible !important; flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
  .nav-links { margin-left: 0 !important; flex: none !important; justify-content: flex-start !important; gap: 16px !important; font-size: 0.8rem !important; }
  .nav-badge { display: none; }
  .playground-links { flex-direction: column; align-items: center; }
  .pipeline-diagram { font-size: 0.8rem; gap: 8px; flex-direction: column; align-items: center; }
  .pipeline-left { gap: 8px; }
  .pipeline-targets { flex-direction: row; flex-wrap: wrap; gap: 6px; justify-content: center; }
  .pipeline-box { padding: 8px 12px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .pricing-cards { flex-direction: column; max-width: 400px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}
