/* ── Myrtle AI — dark forest OS window theme ── */

:root,
[data-theme="dark"] {
  --win-bg:      #0d130f;
  --win-border:  rgba(109,191,120,.2);
  --win-head:    rgba(109,191,120,.08);
  --text:        #e6f1e8;
  --text-muted:  rgba(207,231,211,.65);
  --accent:      #6dbf78;
  --accent-dim:  rgba(109,191,120,.15);
  --bg:          #08100a;
  --icon-border: rgba(109,191,120,.22);
  --pill-bg:     rgba(109,191,120,.12);
  --pill-border: rgba(109,191,120,.3);
}

[data-theme="light"] {
  --win-bg:      #f4faf5;
  --win-border:  rgba(31,107,58,.2);
  --win-head:    rgba(31,107,58,.07);
  --text:        #0d2e14;
  --text-muted:  rgba(13,46,20,.65);
  --accent:      #1f6b3a;
  --accent-dim:  rgba(31,107,58,.1);
  --bg:          #edf7ef;
  --icon-border: rgba(31,107,58,.2);
}

body {
  background: var(--bg); color: var(--text);
  overflow-y: auto; height: auto;
  font-family: var(--font-ui);
}

main {
  min-height: 100vh;
  background: var(--win-bg);
  border: 1.5px solid var(--win-border);
}

/* ── Hero ── */
.myrtle-hero {
  padding: 32px 36px 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: start;
  border-bottom: 1px solid var(--win-border);
}
.myrtle-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.myrtle-title-row { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.myrtle-leaf {
  width: 56px; height: 56px; flex-shrink: 0;
  border: 1.5px solid var(--accent); border-radius: 50% 50% 50% 0;
  transform: rotate(-30deg);
  background: repeating-linear-gradient(45deg, rgba(109,191,120,.18) 0 4px, transparent 4px 8px);
}
.myrtle-title {
  font-family: var(--font-display); font-size: 60px;
  line-height: .9; letter-spacing: -2px;
  color: var(--text); font-weight: 400;
}
.myrtle-title span { color: var(--accent); font-style: italic; }
.myrtle-tagline {
  font-family: var(--font-ui); font-size: 17px;
  line-height: 1.55; color: var(--text-muted);
  margin-bottom: 22px; max-width: 540px;
}
.myrtle-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.myrtle-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px;
  padding: 5px 11px; border: 1px solid var(--accent);
  border-radius: 4px; color: var(--accent);
}
.myrtle-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.myrtle-btn {
  font-family: var(--font-mono); font-size: 12px;
  padding: 11px 20px; border-radius: 5px;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent;
  transition: background .15s, color .15s, transform .15s;
  display: inline-block;
}
.myrtle-btn:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-1px);
}

/* Graph viz */
.graph-viz {
  border: 1px solid var(--win-border);
  border-radius: 8px;
  background: rgba(109,191,120,.04);
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  cursor: pointer;
}
.graph-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-viz-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(109,191,120,.4); text-transform: uppercase; letter-spacing: 1.5px;
  pointer-events: none;
}

/* Mascot */
.myrtle-mascot {
  border: 1px dashed var(--accent);
  border-radius: 6px;
  padding: 14px 18px; margin-top: 14px;
  display: flex; gap: 14px; align-items: center;
  background: rgba(109,191,120,.04);
}
.myrtle-mascot-leaf {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--accent); border-radius: 50% 50% 50% 0;
  transform: rotate(-30deg);
  background: repeating-linear-gradient(45deg, rgba(109,191,120,.12) 0 3px, transparent 3px 6px);
  transition: transform .3s;
}
.myrtle-mascot:hover .myrtle-mascot-leaf {
  transform: rotate(-30deg) scale(1.12);
}
.myrtle-mascot-text {
  font-family: var(--font-ui); font-size: 13px;
  color: var(--text-muted); line-height: 1.5;
}

/* ── Manifesto sections ── */
#manifesto {
  padding: 0 36px 60px;
  max-width: 880px; margin: 0 auto;
}
.myrtle-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--win-border);
}
.myrtle-section:last-child { border-bottom: none; }
.myrtle-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.myrtle-section h2 {
  font-family: var(--font-display); font-size: 32px;
  line-height: 1.1; letter-spacing: -.5px;
  color: var(--text); margin-bottom: 18px; font-weight: 400;
}
.myrtle-section p {
  font-family: var(--font-ui); font-size: 15px;
  line-height: 1.7; color: var(--text-muted);
  margin-bottom: 14px; max-width: 720px;
}

.myrtle-quote {
  font-family: var(--font-display); font-size: 19px;
  line-height: 1.5; color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 16px 0 18px; font-style: italic;
  background: rgba(109,191,120,.06);
  border-radius: 0 6px 6px 0;
}

/* Pipeline */
.myrtle-pipeline {
  list-style: none; padding: 0; margin: 18px 0 0;
  counter-reset: step;
}
.myrtle-pipeline li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--win-border);
  border-radius: 6px;
  background: rgba(109,191,120,.04);
  margin-bottom: 8px;
}
.pipe-num {
  font-family: var(--font-display); font-size: 24px;
  color: var(--accent); width: 40px; flex-shrink: 0;
}
.myrtle-pipeline h3 {
  font-family: var(--font-display); font-size: 18px;
  color: var(--text); margin-bottom: 4px; font-weight: 400;
}
.myrtle-pipeline p {
  font-size: 13px !important; line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* Code block */
.myrtle-code {
  font-family: var(--font-mono); font-size: 12px;
  background: rgba(0,0,0,.45);
  border: 1px solid var(--win-border);
  border-radius: 6px;
  padding: 16px 20px;
  color: #b5e853;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
  margin-top: 14px;
}
.myrtle-code .cmt { color: rgba(109,191,120,.7); }
.myrtle-code .str { color: #e6f1e8; }
.myrtle-code .val { color: var(--accent); }

/* Tier cards */
.myrtle-tier {
  border: 1px solid var(--win-border); border-radius: 8px;
  padding: 20px 22px; margin-bottom: 12px;
  background: rgba(109,191,120,.04);
}
.tier-name {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.myrtle-tier h3 {
  font-family: var(--font-display); font-size: 22px;
  color: var(--text); margin-bottom: 8px; font-weight: 400;
}
.myrtle-tier p {
  font-size: 14px !important; margin-bottom: 0 !important;
}

/* Bullets */
.myrtle-bullets { list-style: none; padding: 0; margin: 18px 0 0; }
.myrtle-bullets li {
  font-family: var(--font-ui); font-size: 14px; line-height: 1.7;
  color: var(--text-muted); padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px dashed var(--win-border);
}
.myrtle-bullets li:last-child { border-bottom: none; }
.myrtle-bullets li::before {
  content: '◆'; color: var(--accent);
  position: absolute; left: 0; top: 8px;
}
.myrtle-bullets strong { color: var(--text); font-weight: 600; }

/* CTA */
.myrtle-cta { text-align: center; padding: 56px 0 40px; }

@media (max-width: 800px) {
  .myrtle-hero { grid-template-columns: 1fr; padding: 24px 18px; gap: 24px; }
  .myrtle-title { font-size: 44px; }
  #manifesto { padding: 0 18px 60px; }
  .myrtle-section { padding: 28px 0; }
  .myrtle-section h2 { font-size: 26px; }
  .myrtle-pipeline li { flex-direction: column; gap: 6px; }
}
