:root {
  --bg: #07090a;
  --panel: #0c1012;
  --panel-2: #10161a;
  --line: #1c2428;
  --line-2: #2a353a;
  --muted: #8a979c;
  --text: #c9d3d6;
  --bright: #f1f5f6;
  --accent: #36e2c4;
  --claude: #d97757;
  --done: #4ade80;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px / 1.6 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code,
kbd {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

:not(.install) > code {
  font-size: 0.88em;
  background: #151c1f;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.35em;
}

kbd {
  font-size: 0.82em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.05em 0.4em;
  margin: 0 0.1em;
}

/* Background: a soft teal glow and a faint grid that fades out */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 70% -10%, rgb(54 226 196 / 0.13), transparent 60%),
    radial-gradient(40rem 30rem at 0% 10%, rgb(217 119 87 / 0.07), transparent 60%);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px) saturate(1.4);
  background: rgb(7 9 10 / 0.6);
  border-bottom: 1px solid rgb(255 255 255 / 0.04);
}

.nav-inner,
main,
footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--bright);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

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

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

.nav .gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--bright);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 12px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 96px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.02);
  border-radius: 999px;
  padding: 4px 12px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

h1 {
  color: var(--bright);
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 22px 0 20px;
}

.grad {
  background: linear-gradient(100deg, #eafffb 0%, var(--accent) 45%, #7cc8ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s ease-in-out infinite alternate;
}

h2 {
  color: var(--bright);
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}

h3 {
  color: var(--bright);
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.lead {
  font-size: 18.5px;
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.sub {
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 17px;
}

/* Install command */
.install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 7px 7px 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(var(--panel-2), var(--panel));
  box-shadow:
    0 0 0 4px rgb(54 226 196 / 0.04),
    0 20px 40px -20px rgb(0 0 0 / 0.8);
  max-width: 100%;
}

.install .prompt {
  color: var(--accent);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.install code {
  color: var(--bright);
  font-size: 14.5px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.install button {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #04110e;
  background: var(--accent);
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.2s;
}

.install button:hover {
  box-shadow: 0 0 22px rgb(54 226 196 / 0.45);
  transform: translateY(-1px);
}

/* Works with */
.works {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgb(255 255 255 / 0.02);
}

.chip img {
  width: 15px;
  height: 15px;
}

.chip-claude {
  color: var(--bright);
  font-weight: 600;
  padding: 6px 14px 6px 11px;
  border-color: rgb(217 119 87 / 0.45);
  background: rgb(217 119 87 / 0.1);
  box-shadow: 0 0 24px -6px rgb(217 119 87 / 0.5);
}

.chip-claude img {
  width: 18px;
  height: 18px;
}

/* Demo window */
.demo {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(16 22 26 / 0.92), rgb(9 12 14 / 0.96));
  box-shadow:
    0 40px 80px -30px rgb(0 0 0 / 0.9),
    0 0 0 1px rgb(255 255 255 / 0.02) inset,
    0 0 80px -30px rgb(54 226 196 / 0.35);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.lights {
  display: flex;
  gap: 6px;
}

.lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3337;
}

.demo-title {
  color: var(--muted);
  flex: 1;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 550;
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.wave i {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  animation: wave 1s ease-in-out infinite;
}

.wave i:nth-child(2) {
  animation-delay: -0.2s;
}

.wave i:nth-child(3) {
  animation-delay: -0.45s;
}

.wave i:nth-child(4) {
  animation-delay: -0.7s;
}

.demo-body {
  height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0, #000 70px);
  transition: opacity 0.6s;
}

.demo-body.fade {
  opacity: 0;
}

.msg {
  flex-shrink: 0;
  max-width: 88%;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.msg.show {
  opacity: 1;
  transform: none;
}

.msg.user {
  align-self: flex-end;
  background: rgb(54 226 196 / 0.12);
  border: 1px solid rgb(54 226 196 / 0.25);
  color: var(--bright);
  padding: 8px 13px;
  border-radius: 14px 14px 4px 14px;
}

.msg .src {
  width: 13px;
  height: 13px;
  margin-right: 7px;
  vertical-align: -1px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.msg.mimir {
  align-self: flex-start;
  color: var(--text);
  padding: 2px 2px;
}

.msg.step {
  align-self: stretch;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.025);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    border-color 0.5s;
}

.msg.step.done {
  border-color: rgb(74 222 128 / 0.3);
}

.msg.step img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.msg.step b {
  color: var(--bright);
  font-weight: 550;
}

.step-label {
  color: var(--muted);
}

.msg.step small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  font-weight: 600;
  color: #fbbf24;
}

.done .state {
  color: var(--done);
}

.st {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.st-work {
  border: 2px solid #fbbf24;
  border-right-color: transparent;
  animation: spin 0.9s linear infinite;
}

.st-done {
  background: var(--done);
  box-shadow: 0 0 8px var(--done);
}

.demo-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
}

.caption {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  min-height: 1.5em;
  transition: color 0.2s;
}

.caption.hearing {
  color: var(--bright);
  font-style: normal;
}

/* The well: a still pool that ripples, same as the app's voice indicator. */
.well {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.well span {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  animation: ripple 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.well span:nth-child(2) {
  animation-delay: 0.93s;
}

.well span:nth-child(3) {
  animation-delay: 1.86s;
}

.well i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

/* Agents */
.agents {
  padding: 40px 0 72px;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.agent {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 26px;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease);
}

.agent:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.agent p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.agent-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.03);
  margin-bottom: 18px;
}

.agent-logo img {
  width: 24px;
  height: 24px;
}

.agent-claude {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px;
  border-color: rgb(217 119 87 / 0.35);
  background: radial-gradient(28rem 20rem at 100% 0%, rgb(217 119 87 / 0.18), transparent 70%), var(--panel);
}

.agent-claude:hover {
  border-color: rgb(217 119 87 / 0.6);
}

.agent-claude .agent-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border-color: rgb(217 119 87 / 0.4);
  background: rgb(217 119 87 / 0.1);
  box-shadow: 0 0 40px -8px rgb(217 119 87 / 0.6);
  margin-bottom: 26px;
}

.agent-claude .agent-logo img {
  width: 40px;
  height: 40px;
}

.agent-claude h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.agent-claude p {
  font-size: 16.5px;
  max-width: 420px;
  margin-bottom: 28px;
}

.agent-sample {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgb(0 0 0 / 0.25);
  color: var(--bright);
  font-size: 14px;
}

.agent-sample em {
  font-style: normal;
  color: var(--muted);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0 88px;
}

.features article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 26px;
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease);
}

.features article:hover {
  border-color: rgb(54 226 196 / 0.3);
  transform: translateY(-3px);
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgb(54 226 196 / 0.1);
  border: 1px solid rgb(54 226 196 / 0.22);
  margin-bottom: 16px;
}

.ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* How it works */
.how,
.faq {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps li {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 24px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #04110e;
  background: var(--accent);
}

/* FAQ */
.faq {
  max-width: 760px;
}

.faq h2 {
  margin-bottom: 20px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--bright);
  font-weight: 550;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Closing call to action */
.cta {
  text-align: center;
  padding: 88px 24px;
  margin: 32px 0 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(30rem 16rem at 50% 120%, rgb(54 226 196 / 0.18), transparent 70%), var(--panel);
}

.cta .install {
  margin-top: 18px;
}

footer {
  display: flex;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 48px;
  font-size: 13px;
  color: var(--muted);
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--bright);
}

/* Guides and blog posts */
.doc {
  max-width: 760px;
  padding-top: 64px;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 50px);
  margin: 10px 0 18px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.date {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.prose {
  margin-top: 40px;
  font-size: 16.5px;
  line-height: 1.75;
}

.prose h2 {
  font-size: 26px;
  margin: 48px 0 14px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 18px;
}

.prose li {
  margin-bottom: 8px;
}

.prose b {
  color: var(--bright);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration-color: rgb(54 226 196 / 0.4);
  text-underline-offset: 3px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14.5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose thead th {
  color: var(--bright);
  background: var(--panel-2);
  font-weight: 600;
}

.prose tbody td:first-child {
  color: var(--muted);
  white-space: nowrap;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.doc-cta {
  margin: 56px 0 8px;
  padding: 48px 24px;
}

.doc-cta p {
  margin: 0;
  color: var(--muted);
}

.doc-faq {
  border-top: 0;
  padding: 48px 0 16px;
}

.related {
  padding: 40px 0 24px;
}

.related h2,
.prose .related-grid + h2 {
  font-size: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.related-grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease);
}

.related-grid a:hover {
  border-color: rgb(54 226 196 / 0.35);
  transform: translateY(-2px);
}

.related-grid b {
  color: var(--bright);
  line-height: 1.35;
}

.related-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease) var(--d, 0ms),
    transform 0.8s var(--ease) var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.agent.reveal.in:hover,
.features article.reveal.in:hover {
  transform: translateY(-3px);
  transition-delay: 0ms;
}

@keyframes ripple {
  from {
    transform: scale(0.4);
    opacity: 0.8;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sheen {
  to {
    background-position: 100% 0;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }
  .agent-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .agent-claude {
    grid-row: auto;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
  .nav nav a:not(.gh) {
    display: none;
  }
  .install code {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion has to override every animation */
    animation: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: same */
    transition: none !important;
  }
  .reveal,
  .msg {
    opacity: 1;
    transform: none;
  }
}
