/* mind landing page — bio-luminescent theme.
   Dark teal-black ground, glowing aqua->lime brain and tentacles. */

:root {
  --ink: #05131a;
  --ink-2: #07191f;
  --panel: rgba(13, 38, 44, 0.55);
  --panel-line: rgba(94, 234, 212, 0.18);
  --text: #d6f5ee;
  --muted: #8fb9b3;
  --aqua: #2dd4bf;
  --lime: #a3e635;
  --teal-deep: #0e7d74;
  --glow: 0 0 40px rgba(45, 212, 191, 0.35);
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 70% -10%, #0a2a2c 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 10%, #0a232b 0%, transparent 55%),
    var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---- animated background ---- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite;
}
.orb-a { width: 460px; height: 460px; left: -80px; top: 6%;
  background: radial-gradient(circle, #1ed3b8, transparent 65%); }
.orb-b { width: 540px; height: 540px; right: -120px; top: 22%;
  background: radial-gradient(circle, #6fe06a, transparent 65%);
  animation-delay: -7s; }
.orb-c { width: 380px; height: 380px; left: 36%; bottom: -120px;
  background: radial-gradient(circle, #19b6c7, transparent 65%);
  animation-delay: -13s; }
.grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(120, 220, 200, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 24px) scale(0.96); }
}

/* ---- nav ---- */
.nav {
  position: relative; z-index: 3;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 50% 50% 48% 52% / 55% 55% 45% 45%;
  background: linear-gradient(150deg, var(--aqua), var(--lime));
  box-shadow: var(--glow);
}
.brand-name { letter-spacing: 0.3px; }
.nav-links { display: flex; gap: 22px; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---- hero ---- */
.hero {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 24px 40px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: center;
  min-height: 72vh;
}
.hero-stage { display: flex; justify-content: center; align-items: center; }
.brain { width: min(100%, 520px); height: auto; overflow: visible; will-change: transform; }

.hero-copy { max-width: 520px; min-width: 0; }
.title {
  font-size: clamp(56px, 9vw, 104px); line-height: 0.95; margin: 0 0 14px;
  font-weight: 800; letter-spacing: -2px;
  background: linear-gradient(120deg, #eafff9 10%, var(--aqua) 55%, var(--lime) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 26px; }
.tagline strong { color: var(--text); font-weight: 600; }

.cmds { margin-bottom: 26px; }
.cmd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: 12px; padding: 12px 12px 12px 16px;
  backdrop-filter: blur(8px); margin-bottom: 26px;
}
.cmds .cmd { margin-bottom: 0; }

/* ---- install box with method tabs ---- */
.install { margin-bottom: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tab {
  cursor: pointer; font-family: inherit;
  border: 1px solid var(--panel-line);
  background: var(--panel); color: var(--muted);
  border-radius: 9px; padding: 7px 16px; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}
.tab:hover { color: var(--text); }
.tab:active { transform: scale(0.97); }
.tab.is-active {
  color: #04231f; border-color: transparent;
  background: linear-gradient(120deg, var(--aqua), var(--lime));
  box-shadow: var(--glow);
}
.panel { display: none; }
.panel.is-active { display: block; }
/* Multi-line install snippets render their newlines and scroll if too wide. */
.cmd-multiline { align-items: flex-start; }
.cmd-multiline code { white-space: pre; line-height: 1.7; }
/* The GitHub tab's "Open" is a link styled like the Copy button. */
.copy-link { display: inline-flex; align-items: center; }

/* divider label between the two steps */
.then {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 2px; color: var(--muted);
  font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase;
}
.then::before, .then::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--panel-line), transparent);
}
.then a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--panel-line);
  transition: color 0.2s, border-color 0.2s;
}
.then a:hover { color: var(--aqua); border-color: var(--aqua); }

/* the Claude-session step: pixel spark tucked top-right, command below */
.cmd-session { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 14px 16px; }
.cmd-session .session-top { display: flex; justify-content: flex-start; min-height: 30px; }
.cmd-session .session-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cmd-session code .prompt-claude { color: #e8916c; }
.spark {
  flex: none; image-rendering: pixelated;
  filter: drop-shadow(0 0 5px rgba(224, 138, 99, 0.5));
  transform-origin: center; animation: twinkle 3.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.09); opacity: 1; }
}
.cmd code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; color: #c9ffe9; white-space: nowrap; overflow-x: auto;
  /* Allow the code to shrink below its content width so it scrolls inside the
     box instead of shoving the Copy button off a narrow screen. */
  min-width: 0; scrollbar-width: none;
}
.cmd code::-webkit-scrollbar { display: none; }
.cmd .prompt { color: var(--lime); margin-right: 8px; user-select: none; }
.copy {
  flex: none; cursor: pointer; border: 1px solid var(--panel-line);
  background: rgba(45, 212, 191, 0.12); color: var(--text);
  border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.copy:hover { background: rgba(45, 212, 191, 0.22); }
.copy:active { transform: scale(0.96); }
.copy.copied { color: var(--lime); border-color: var(--lime); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 11px; font-weight: 600; font-size: 15px;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--aqua), var(--lime));
  color: #04231f; box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 56px rgba(120, 230, 150, 0.5); }
.btn-ghost {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--panel-line); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(45, 212, 191, 0.14); }

/* ---- features ---- */
.features {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 60px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.card {
  background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: var(--radius); padding: 22px; backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(163, 230, 53, 0.4); }
.card h3 { margin: 0 0 8px; font-size: 18px; color: #eafff7; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card code {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.86em;
  color: var(--lime); background: rgba(163, 230, 53, 0.1);
  padding: 1px 5px; border-radius: 5px;
}

/* ---- footer ---- */
.foot {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 50px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 14px; border-top: 1px solid var(--panel-line);
}
.foot a:hover { color: var(--text); }

/* ---- brain + tentacle animation ---- */
.brain-body { animation: breathe 6s ease-in-out infinite; transform-origin: 300px 200px; }
@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.035) translateY(-4px); }
}
.glint { animation: glint 6s ease-in-out infinite; }
@keyframes glint { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.t { transform-box: fill-box; }
.t1 { transform-origin: 250px 310px; animation: sway 5.5s ease-in-out infinite; }
.t2 { transform-origin: 355px 312px; animation: sway 6.2s ease-in-out infinite reverse; }
.t3 { transform-origin: 300px 332px; animation: sway 7s ease-in-out infinite; }
.t4 { transform-origin: 232px 312px; animation: sway 5s ease-in-out infinite reverse; }
.t5 { transform-origin: 372px 310px; animation: sway 6.6s ease-in-out infinite; }
.t6 { transform-origin: 330px 336px; animation: sway 4.6s ease-in-out infinite reverse; }
@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3.2deg); }
}

.mascots { filter: drop-shadow(0 0 7px rgba(150, 255, 225, 0.6)); }
.cat { fill: #f1fff9; transform-box: fill-box; transform-origin: center; }
.grab { fill: #04231f; opacity: 0.65; }
.cat1 { animation: struggle 3.1s ease-in-out infinite; }
.cat2 { animation: struggle 3.6s ease-in-out infinite reverse; }
.cat3 { animation: struggle 2.8s ease-in-out infinite; }
@keyframes struggle {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-1.5px); }
}

/* ---- responsive ---- */
@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; min-height: auto; padding-top: 8px; gap: 8px; }
  /* Stretch to the track; auto margins would shrink-to-content and overflow. */
  .hero-copy { width: 100%; margin: 0; }
  .hero-stage { order: -1; margin-bottom: 6px; }
  .brain { width: min(76%, 340px); }
  .cta { justify-content: center; }
  .cmd code { font-size: 12.5px; }
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .foot { flex-direction: column; gap: 10px; }
  /* Shrink the ambient orbs so they don't read as a bright band on a phone. */
  .orb { opacity: 0.32; filter: blur(60px); }
  .orb-a { width: 300px; height: 300px; }
  .orb-b { width: 340px; height: 340px; right: -150px; }
  .orb-c { width: 280px; height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .brain-body, .glint, .t, .cat, .spark { animation: none !important; }
  html { scroll-behavior: auto; }
}
