:root {
  --bg: #08080a;
  --panel: #101014;
  --panel-soft: #15151a;
  --text: #f6f5f2;
  --muted: #a6a4aa;
  --line: rgba(255, 255, 255, 0.12);
  --lime: #c9ff5b;
  --lime-soft: rgba(201, 255, 91, 0.14);
  --pink: #ff70c8;
  --orange: #ff9c55;
  --radius: 26px;
  --shell: min(1220px, calc(100vw - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 5%, rgba(116, 62, 255, 0.16), transparent 31%),
    radial-gradient(circle at 16% 33%, rgba(201, 255, 91, 0.06), transparent 24%),
    var(--bg);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 255, 91, 0.08), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}
.section-shell { width: var(--shell); margin: 0 auto; }

.site-header {
  width: var(--shell);
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lime);
  color: #111;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  transform: rotate(-5deg);
}
.desktop-nav { display: flex; gap: 34px; color: #c8c6cc; font-size: 14px; }
.desktop-nav a { transition: color 180ms ease; }
.desktop-nav a:hover { color: white; }
.wallet-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.wallet-button:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: #75747a; box-shadow: 0 0 0 4px rgba(117, 116, 122, 0.12); }
.wallet-button.connected .wallet-dot { background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  padding: 70px 0 100px;
}
.eyebrow {
  margin: 0 0 24px;
  color: var(--lime);
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 26px;
  max-width: 760px;
  font-size: clamp(58px, 6.5vw, 102px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 700;
}
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.72); }
.hero-description { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin: 36px 0 60px; }
.primary-button {
  min-height: 52px;
  padding: 0 23px;
  border-radius: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--lime);
  color: #111;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  box-shadow: 0 15px 45px rgba(201, 255, 91, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 20px 55px rgba(201, 255, 91, 0.2); }
.text-button { color: #d8d6dc; font-size: 14px; border-bottom: 1px solid #55545b; padding-bottom: 6px; }
.hero-metrics { display: flex; gap: 48px; }
.hero-metrics div { display: grid; gap: 7px; }
.hero-metrics strong { font-size: 24px; letter-spacing: -0.04em; }
.hero-metrics span { color: #77757d; font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; }

.hero-visual { min-height: 620px; position: relative; display: grid; place-items: center; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.09), rgba(132, 70, 255, .12) 45%, transparent 70%);
  filter: blur(8px);
}
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.orbit-one { width: 510px; height: 510px; animation: spin 26s linear infinite; }
.orbit-two { width: 620px; height: 340px; transform: rotate(25deg); animation: spinReverse 32s linear infinite; }
.orbit::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 22px var(--lime); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { from { transform: rotate(25deg); } to { transform: rotate(-335deg); } }
.hero-card { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-main { width: min(390px, 72%); aspect-ratio: 1; border-radius: 34px; z-index: 3; transform: rotate(2deg); }
.hero-card-main::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -90px 80px rgba(0,0,0,.48); pointer-events: none; }
.hero-card-meta { position: absolute; z-index: 2; bottom: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-family: "DM Mono", monospace; font-size: 11px; }
.hero-card-left, .hero-card-right { width: 170px; aspect-ratio: 1; border-radius: 22px; filter: saturate(.78) brightness(.72); }
.hero-card-left { left: 0; top: 90px; transform: rotate(-11deg); }
.hero-card-right { right: -10px; bottom: 65px; transform: rotate(13deg); }
.floating-chip { position: absolute; z-index: 5; border: 1px solid rgba(255,255,255,.14); background: rgba(13,13,17,.8); backdrop-filter: blur(16px); padding: 12px 15px; border-radius: 999px; font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.floating-chip span { display: inline-block; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 12px var(--lime); }
.chip-one { right: 10px; top: 135px; }
.chip-two { left: 23px; bottom: 128px; }

.ticker { border-block: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,.015); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 32px; padding: 19px 0; animation: marquee 23s linear infinite; }
.ticker span { font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: .15em; }
.ticker i { color: var(--lime); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.agents-section, .system-section, .faq-section { padding: 140px 0; }
.section-heading { display: grid; grid-template-columns: 1fr .72fr; gap: 90px; align-items: end; margin-bottom: 68px; }
.section-heading h2, .system-copy h2, .mint-terminal h2 { margin-bottom: 0; font-size: clamp(44px, 5vw, 76px); line-height: .98; letter-spacing: -.065em; }
.section-heading > p { max-width: 480px; color: var(--muted); line-height: 1.75; margin-bottom: 6px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 10px 16px; cursor: pointer; color: #8f8d95; font-size: 12px; transition: .2s ease; }
.filter-button:hover, .filter-button.active { background: var(--text); color: #111; border-color: var(--text); }
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.agent-card { min-width: 0; cursor: pointer; transition: opacity .25s ease, transform .25s ease; }
.agent-card.filtered-out { display: none; }
.agent-card-wide { grid-column: span 2; }
.agent-image-wrap { position: relative; aspect-ratio: .88; overflow: hidden; border-radius: 22px; background: var(--panel); border: 1px solid rgba(255,255,255,.09); }
.agent-card-wide .agent-image-wrap { aspect-ratio: 1.84; }
.agent-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(0,0,0,.3)); pointer-events: none; }
.agent-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 550ms cubic-bezier(.2,.8,.2,1), filter 450ms ease; }
.agent-card:hover img { transform: scale(1.045); filter: saturate(1.08); }
.agent-index, .rarity-tag { position: absolute; z-index: 2; top: 14px; font-family: "DM Mono", monospace; font-size: 10px; border-radius: 999px; background: rgba(10,10,12,.72); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.12); }
.agent-index { left: 14px; padding: 8px 9px; }
.rarity-tag { right: 14px; padding: 8px 11px; color: var(--lime); }
.agent-card-copy { padding: 17px 3px 0; display: flex; align-items: center; justify-content: space-between; }
.agent-card-copy p { color: #7f7d84; margin-bottom: 5px; text-transform: uppercase; font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .08em; }
.agent-card-copy h3 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.agent-card:hover .icon-button { background: var(--lime); color: #111; transform: rotate(45deg); }

.system-panel { padding: 30px; border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; }
.system-copy { padding: 38px 28px; }
.system-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.74; margin: 28px 0 36px; }
.system-steps { display: grid; gap: 2px; }
.system-steps div { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.system-steps span { font-family: "DM Mono", monospace; color: var(--lime); font-size: 11px; }
.system-steps p { margin: 0; display: grid; gap: 4px; color: #89878f; font-size: 13px; }
.system-steps strong { color: var(--text); font-size: 15px; }
.terminal { align-self: stretch; min-height: 620px; border-radius: 24px; background: #08090a; border: 1px solid rgba(255,255,255,.1); overflow: hidden; box-shadow: inset 0 1px rgba(255,255,255,.04), 0 20px 70px rgba(0,0,0,.25); }
.terminal-topbar { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 17px; background: #111216; border-bottom: 1px solid var(--line); }
.terminal-topbar span { width: 8px; height: 8px; border-radius: 50%; background: #3a3a40; }
.terminal-topbar p { margin: 0 0 0 auto; font-family: "DM Mono", monospace; font-size: 10px; color: #66656b; }
.terminal-body { padding: 34px; font-family: "DM Mono", monospace; }
.terminal-muted { color: #56555c; font-size: 10px; letter-spacing: .11em; }
.terminal-agent { display: flex; align-items: center; gap: 17px; padding: 22px; margin: 22px 0 34px; border-radius: 18px; background: linear-gradient(120deg, rgba(201,255,91,.09), rgba(255,255,255,.03)); border: 1px solid rgba(201,255,91,.13); }
.terminal-agent img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.terminal-agent div { display: grid; gap: 7px; }
.terminal-agent span { font-size: 18px; }
.terminal-agent strong { font-size: 10px; color: var(--lime); }
.terminal-line { display: grid; grid-template-columns: 75px 1fr; gap: 14px; margin: 23px 0; }
.terminal-line span { color: #77757d; font-size: 10px; }
.terminal-line p { margin: 0; font-size: 12px; line-height: 1.7; color: #d6d4da; }
.terminal-line.response p { color: var(--lime); }
.terminal-progress { height: 5px; background: #1a1b1f; border-radius: 999px; overflow: hidden; margin: 36px 0; }
.terminal-progress span { display: block; width: 72%; height: 100%; background: var(--lime); box-shadow: 0 0 18px var(--lime); animation: pulseWidth 4s ease-in-out infinite; }
@keyframes pulseWidth { 50% { width: 91%; } }
.terminal-input { margin-top: 80px; border: 1px solid var(--line); padding: 16px 18px; border-radius: 13px; color: #59585e; font-size: 11px; display: flex; justify-content: space-between; }

.mint-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; padding: 140px 0; }
.mint-art { min-width: 0; }
.mint-stack { height: 520px; position: relative; display: grid; place-items: center; }
.mint-stack::before { content: ""; position: absolute; width: 70%; height: 70%; border-radius: 50%; background: rgba(255,112,200,.16); filter: blur(90px); }
.mint-stack img { position: absolute; width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: 30px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 90px rgba(0,0,0,.42); }
.mint-stack img:nth-child(1) { transform: translate(-95px, 38px) rotate(-11deg); }
.mint-stack img:nth-child(2) { transform: translate(92px, 27px) rotate(10deg); }
.mint-stack img:nth-child(3) { z-index: 2; transform: translateY(-27px) rotate(-1deg); }
.mint-art > p { color: var(--muted); max-width: 490px; line-height: 1.7; margin: 25px auto 0; text-align: center; }
.mint-terminal { border-radius: 30px; border: 1px solid var(--line); background: var(--panel); padding: 46px; }
.mint-terminal h2 { margin-bottom: 42px; }
.mint-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 21px 0; border-block: 1px solid var(--line); }
.mint-stats div { display: grid; gap: 8px; }
.mint-stats span, .quantity-row > span { color: #737178; font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.mint-stats strong { font-size: 17px; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; margin: 34px 0; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.quantity-control button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; }
.quantity-control button:hover { background: rgba(255,255,255,.06); }
.quantity-control strong { min-width: 44px; text-align: center; }
.mint-button { width: 100%; min-height: 58px; background: var(--lime); color: #111; border: 0; border-radius: 15px; font-weight: 800; cursor: pointer; }
.mint-button:hover { filter: brightness(1.05); }
.mint-button:disabled { cursor: not-allowed; filter: grayscale(.5); opacity: .6; }
.mint-note { color: #68666e; font-size: 11px; line-height: 1.6; margin: 16px 0 0; }
.mint-note code { color: #aaa7af; }

.faq-section { padding-bottom: 170px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; padding: 26px 0; font-size: clamp(18px, 2vw, 24px); letter-spacing: -.03em; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--lime); transition: transform .2s ease; }
details[open] summary span { transform: rotate(45deg); }
details p { max-width: 760px; color: var(--muted); line-height: 1.7; padding: 0 0 28px; }
.site-footer { padding: 35px 0 50px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #7d7b83; font-size: 12px; }
.site-footer > div { display: flex; gap: 20px; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 25px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.74); backdrop-filter: blur(18px); }
.modal-panel { position: relative; z-index: 2; width: min(940px, 100%); max-height: min(720px, calc(100vh - 50px)); overflow: auto; background: #111216; border: 1px solid rgba(255,255,255,.15); border-radius: 30px; display: grid; grid-template-columns: .9fr 1.1fr; box-shadow: 0 35px 130px rgba(0,0,0,.65); }
.modal-image { min-height: 550px; background: #090a0c; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 62px 55px; }
.modal-content h2 { font-size: 62px; margin-bottom: 20px; letter-spacing: -.06em; }
.modal-content > p:not(.eyebrow) { color: var(--muted); line-height: 1.72; }
.modal-capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 29px 0 36px; }
.modal-capabilities span { padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; font-family: "DM Mono", monospace; font-size: 10px; color: #bbb9c0; }
.modal-close { position: absolute; z-index: 3; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(8,8,10,.72); border: 1px solid var(--line); cursor: pointer; font-size: 24px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 30px; transform: translate(-50%, 20px); border: 1px solid var(--line); background: rgba(18,18,22,.92); backdrop-filter: blur(14px); padding: 14px 18px; border-radius: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-copy { text-align: center; }
  .hero-description { margin-inline: auto; }
  .hero-actions, .hero-metrics { justify-content: center; }
  .hero-visual { min-height: 590px; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-card-wide { grid-column: span 2; }
  .system-panel { grid-template-columns: 1fr; }
  .mint-section { grid-template-columns: 1fr; }
  .mint-terminal { width: min(680px, 100%); margin: 0 auto; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1220px); }
  .desktop-nav { display: none; }
  .wallet-button { padding: 0 13px; }
  .brand > span:last-child { display: none; }
  h1 { font-size: clamp(52px, 16vw, 76px); }
  .hero { padding: 50px 0 70px; gap: 25px; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-metrics { gap: 22px; }
  .hero-metrics strong { font-size: 20px; }
  .hero-visual { min-height: 480px; }
  .hero-card-main { width: 72%; }
  .hero-card-left, .hero-card-right { width: 125px; }
  .orbit-one { width: 380px; height: 380px; }
  .orbit-two { width: 430px; height: 260px; }
  .chip-one { top: 70px; }
  .chip-two { left: 5px; bottom: 75px; }
  .agents-section, .system-section, .faq-section, .mint-section { padding: 95px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; margin-bottom: 45px; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-card-wide { grid-column: auto; }
  .agent-card-wide .agent-image-wrap { aspect-ratio: .88; }
  .system-panel { padding: 12px; border-radius: 25px; }
  .system-copy { padding: 27px 16px; }
  .terminal { min-height: 570px; }
  .terminal-body { padding: 24px 18px; }
  .terminal-line { grid-template-columns: 55px 1fr; }
  .mint-stack { height: 390px; }
  .mint-stack img { width: 215px; border-radius: 22px; }
  .mint-stack img:nth-child(1) { transform: translate(-65px, 35px) rotate(-11deg); }
  .mint-stack img:nth-child(2) { transform: translate(65px, 28px) rotate(10deg); }
  .mint-terminal { padding: 30px 22px; }
  .mint-stats { gap: 14px; }
  .mint-stats strong { font-size: 13px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-image { min-height: 300px; max-height: 320px; }
  .modal-content { padding: 34px 24px; }
  .modal-content h2 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.collection-image-wrap { aspect-ratio: 1; }
.collection-card-copy h3 { font-size: 16px; line-height: 1.25; max-width: 240px; }
.collection-card-copy p { margin-bottom: 7px; }
@media (min-width: 1200px) {
  #agentGrid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1040px) {
  #agentGrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  #agentGrid { grid-template-columns: 1fr; }
}

/* Independent mind interface */
.collection-image-wrap { aspect-ratio: 1; }
.collection-card-copy { align-items: flex-start; gap: 14px; }
.collection-card-copy > div { min-width: 0; }
.collection-card-copy h3 { font-size: 22px; line-height: 1; margin-bottom: 9px; }
.collection-card-copy small {
  display: block;
  color: #77757d;
  font-size: 11px;
  line-height: 1.5;
  max-width: 230px;
}
.rarity-tag { color: var(--lime); }

.mind-modal { padding: 18px; }
.mind-panel {
  width: min(1380px, 100%);
  height: min(860px, calc(100vh - 36px));
  max-height: none;
  grid-template-columns: minmax(330px, .72fr) minmax(500px, 1.28fr);
  overflow: hidden;
}
.mind-profile {
  min-width: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #0d0e11;
}
.mind-profile .modal-image {
  min-height: 0;
  aspect-ratio: 1;
  border-bottom: 1px solid var(--line);
}
.mind-profile-copy { padding: 34px; }
.mind-profile-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: .9;
  letter-spacing: -.065em;
}
.mind-tagline {
  color: var(--lime) !important;
  font-size: 14px;
  line-height: 1.55 !important;
  font-weight: 600;
}
.mind-profile-copy > p:not(.eyebrow, .mind-tagline) {
  color: var(--muted);
  line-height: 1.65;
}
.personality-block {
  margin-top: 24px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.personality-block span {
  display: block;
  margin-bottom: 9px;
  color: var(--lime);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: .12em;
}
.personality-block p { margin: 0; color: #bdbbc2; font-size: 12px; line-height: 1.6; }
.mind-profile .modal-capabilities {
  margin: 18px 0 0;
  grid-template-columns: 1fr 1fr;
}

.mind-console {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  background:
    radial-gradient(circle at 70% 0%, rgba(201,255,91,.07), transparent 34%),
    #101115;
}
.mind-console-header {
  min-height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.mind-console-header > div { display: flex; align-items: center; gap: 10px; }
.mind-console-header strong {
  color: #c7c5cc;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
}
#mindStatus.thinking + * { opacity: .8; }
.mind-console-header button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: #86848c;
  font-size: 10px;
  cursor: pointer;
}
.mind-console-header button:hover { color: white; border-color: rgba(255,255,255,.28); }
.starter-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}
.starter-prompts button {
  border: 1px solid rgba(201,255,91,.18);
  background: rgba(201,255,91,.055);
  color: #bfcf9c;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 10px;
  cursor: pointer;
}
.starter-prompts button:hover { background: rgba(201,255,91,.12); color: var(--lime); }
.chat-log {
  min-height: 0;
  overflow-y: auto;
  padding: 28px;
  scroll-behavior: smooth;
}
.chat-message {
  max-width: min(760px, 88%);
  margin-bottom: 22px;
}
.chat-message > span {
  display: block;
  margin-bottom: 7px;
  color: #66646c;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: .1em;
}
.chat-message p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #d9d7de;
  font-size: 13px;
  line-height: 1.7;
  background: rgba(255,255,255,.025);
}
.user-message { margin-left: auto; }
.user-message > span { text-align: right; }
.user-message p {
  border-color: rgba(201,255,91,.18);
  background: rgba(201,255,91,.075);
  color: #eefbd7;
}
.mind-message p { box-shadow: inset 3px 0 0 rgba(201,255,91,.55); }
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px 28px 12px;
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  resize: none;
  min-height: 58px;
  max-height: 140px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: white;
  background: #0b0c0f;
  outline: none;
}
.chat-form textarea:focus { border-color: rgba(201,255,91,.45); box-shadow: 0 0 0 3px rgba(201,255,91,.06); }
.chat-form button {
  align-self: stretch;
  min-width: 94px;
  border: 0;
  border-radius: 15px;
  background: var(--lime);
  color: #111;
  font-weight: 800;
  cursor: pointer;
}
.chat-form button:disabled, .chat-form textarea:disabled { opacity: .5; cursor: wait; }
.mind-mode-note {
  margin: 0;
  padding: 0 28px 17px;
  color: #5f5d65;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  line-height: 1.5;
}

@media (min-width: 1200px) {
  #agentGrid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1040px) {
  #agentGrid { grid-template-columns: repeat(3, 1fr); }
  .mind-panel { grid-template-columns: 330px 1fr; }
}

@media (max-width: 780px) {
  #agentGrid { grid-template-columns: 1fr; }
  .mind-modal { padding: 0; }
  .mind-panel {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow-y: auto;
  }
  .mind-profile {
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mind-profile .modal-image { max-height: 270px; aspect-ratio: auto; }
  .mind-profile .modal-image img { height: 270px; object-fit: cover; }
  .mind-profile-copy { padding: 25px 20px; }
  .mind-console { min-height: 680px; }
  .mind-console-header, .starter-prompts, .chat-log { padding-left: 18px; padding-right: 18px; }
  .chat-form { padding-left: 18px; padding-right: 18px; grid-template-columns: 1fr; }
  .chat-form button { min-height: 48px; }
  .mind-mode-note { padding-left: 18px; padding-right: 18px; }
  .modal-close { position: fixed; }
}

/* NFT ownership gate */
.locked-console {
  position: relative;
  overflow: hidden;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}
.locked-dot {
  background: #77757d;
  box-shadow: 0 0 0 4px rgba(117,116,122,.12);
}
.owner-lock-label {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: #8d8b93;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: .1em;
}
.locked-prompts,
.locked-chat-preview,
.locked-chat-form {
  filter: blur(3px);
  opacity: .32;
  pointer-events: none;
  user-select: none;
}
.locked-prompts button,
.locked-chat-form textarea,
.locked-chat-form button {
  cursor: not-allowed !important;
}
.locked-prompts button:disabled {
  color: #77757d;
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.025);
}
.locked-chat-preview {
  min-height: 0;
  overflow: hidden;
  padding: 30px;
}
.ghost-message {
  margin-top: 24px;
}
.ownership-gate {
  position: absolute;
  z-index: 6;
  inset: 69px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px;
  text-align: center;
  background: linear-gradient(180deg, rgba(13,14,17,.74), rgba(13,14,17,.96));
  backdrop-filter: blur(12px);
}
.gate-lock {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(201,255,91,.2);
  border-radius: 22px;
  background: rgba(201,255,91,.07);
  font-size: 30px;
  box-shadow: 0 20px 55px rgba(0,0,0,.3);
}
.ownership-gate .eyebrow {
  margin-bottom: 13px;
}
.ownership-gate h3 {
  max-width: 560px;
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.055em;
}
.ownership-gate > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.ownership-gate .primary-button {
  min-width: 190px;
}
.locked-chat-form textarea:disabled,
.locked-chat-form button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 780px) {
  .ownership-gate {
    position: sticky;
    top: 0;
    inset: auto;
    min-height: 520px;
    padding: 38px 22px;
  }
  .locked-prompts,
  .locked-chat-preview,
  .locked-chat-form,
  .locked-console .mind-mode-note {
    display: none;
  }
}
