:root{
  --bone:#FCFCF9;
  --ink:#171E20;
  --green:#325C4E;
  --green-soft:#A3B893;
  --blue-soft:#C3D2E3;
  --lime:#C3E38A;
  --orange:#FC6E3D;
  --sand:#F0ECDA;
  --muted:rgba(23,30,32,.58);
  --line:rgba(23,30,32,.09);
  --content:780px;
  --font-heading:"Brevia","Avenir Next","Segoe UI",system-ui,sans-serif;
  --font-body:"A-OTF Jun Pro","Avenir Next","Segoe UI",system-ui,sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  overflow:hidden;
  background:var(--bone);
  color:var(--ink);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button,textarea{font:inherit;color:inherit}
button{appearance:none}
.app{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-rows:auto 1fr;
  height:100dvh;
  overflow:hidden;
  background:
    radial-gradient(circle at 82% 18%,rgba(195,227,138,.07),transparent 21rem),
    radial-gradient(circle at 15% 82%,rgba(195,210,227,.08),transparent 24rem);
}

/* Header */
.topbar{
  position:relative;
  z-index:20;
  height:90px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 34px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  font-family:var(--font-heading);
}
.musicpass-mark{
  width:74px;
  height:56px;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:none;
}
.musicpass-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.brandname{
  font-size:19px;
  font-weight:620;
  letter-spacing:-.025em;
  color:var(--green);
}

.events-link{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:0 15px 0 12px;
  border:1px solid rgba(50,92,78,.14);
  border-radius:999px;
  background:rgba(252,252,249,.82);
  color:var(--green);
  text-decoration:none;
  box-shadow:0 4px 16px rgba(23,30,32,.025);
  backdrop-filter:blur(12px);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.events-link:hover{
  transform:translateY(-1px);
  border-color:rgba(50,92,78,.28);
  background:#fff;
  box-shadow:0 8px 22px rgba(23,30,32,.05);
}
.events-link:focus-visible{
  outline:3px solid rgba(195,227,138,.30);
  outline-offset:3px;
}
.events-icon{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none;
}
.events-icon .events-wave{stroke-width:1.35}
.events-icon .events-dot{
  fill:var(--lime);
  stroke:var(--green);
  stroke-width:1;
}
.events-label{
  font-size:14px;
  font-weight:580;
  letter-spacing:-.01em;
}


/* MusicPass wave language */
.wave-system{
  position:fixed;
  z-index:-1;
  top:86px;
  right:-92px;
  width:min(720px,48vw);
  height:min(560px,68vh);
  pointer-events:none;
  transition:opacity .35s ease,transform .5s cubic-bezier(.2,.8,.2,1);
}
.wave-system svg{width:100%;height:100%;overflow:visible}
.wave-line{
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.wave-line-1{stroke:rgba(50,92,78,.16);stroke-width:3.1}
.wave-line-2{stroke:rgba(163,184,147,.28);stroke-width:2.15}
.wave-line-3{stroke:rgba(195,210,227,.48);stroke-width:1.55}
.wave-node-soft{fill:rgba(195,227,138,.085)}
.wave-node-hot{fill:rgba(195,227,138,.22)}
.chat-active .wave-system{
  opacity:0;
  transform:translateX(34px) scale(.985);
}

/* Hero */
.stage{
  position:relative;
  min-height:0;
  display:flex;
}
.welcome{
  width:min(700px,calc(100% - 48px));
  margin-left:clamp(28px,8vw,124px);
  margin-right:auto;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  text-align:left;
  padding-bottom:128px;
  transition:opacity .28s ease,transform .36s cubic-bezier(.2,.8,.2,1),visibility .28s;
}
.agent-orbit{
  position:relative;
  width:84px;
  height:84px;
  margin-bottom:28px;
  display:grid;
  place-items:center;
  border-radius:28px;
  background:rgba(240,236,218,.70);
  box-shadow:inset 0 0 0 1px rgba(50,92,78,.07);
}
.agent-orbit:after{
  content:"";
  position:absolute;
  inset:-8px;
  border:1px solid rgba(50,92,78,.09);
  border-radius:34px;
  animation:breathe 4s ease-in-out infinite;
}
.agentmark{width:56px;height:40px}
.agentmark img{width:100%;height:100%;display:block}
@keyframes breathe{
  0%,100%{transform:scale(.97);opacity:.35}
  50%{transform:scale(1.035);opacity:.82}
}
h1{
  max-width:680px;
  margin:0;
  color:var(--green);
  font-family:var(--font-heading);
  font-size:clamp(42px,4.8vw,66px);
  font-weight:620;
  letter-spacing:-.045em;
  line-height:1.01;
}
.lede{
  max-width:560px;
  margin:22px 0 0;
  color:var(--muted);
  font-size:clamp(17px,1.7vw,20px);
  line-height:1.52;
}
.chips{
  max-width:690px;
  margin-top:30px;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  gap:10px;
}
.chip{
  border:1px solid rgba(50,92,78,.14);
  border-radius:999px;
  padding:11px 15px;
  background:rgba(252,252,249,.82);
  box-shadow:0 3px 15px rgba(23,30,32,.025);
  backdrop-filter:blur(12px);
  cursor:pointer;
  font-size:14px;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.chip:hover{
  transform:translateY(-1px);
  border-color:rgba(50,92,78,.28);
  background:#fff;
}

/* Conversation */
.conversation{
  position:absolute;
  inset:0;
  padding:28px 20px 170px;
  overflow:auto;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .3s ease,transform .34s ease,visibility .3s;
  scrollbar-width:thin;
  scrollbar-color:rgba(50,92,78,.16) transparent;
}
.conversation-inner{
  width:min(var(--content),100%);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:26px;
}
.message{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:14px;
  align-items:start;
  animation:rise .28s ease both;
}
.message.user{
  grid-template-columns:1fr;
  justify-items:end;
}
@keyframes rise{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}
.mini-agent{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(240,236,218,.78);
  box-shadow:inset 0 0 0 1px rgba(50,92,78,.06);
}
.mini-agent img{width:25px;height:18px;display:block}
.bubble{
  max-width:670px;
  font-size:16px;
  line-height:1.6;
}
.assistant .bubble{padding:5px 0}
.assistant .bubble p{margin:0 0 12px}
.assistant .bubble p:last-child{margin-bottom:0}
.assistant .bubble a{
  color:var(--green);
  font-weight:620;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}
.assistant .bubble a:hover{color:var(--orange)}
.assistant .bubble ul,
.assistant .bubble ol{
  margin:8px 0 14px;
  padding-left:1.35em;
}
.assistant .bubble li{margin:5px 0;padding-left:.15em}
.assistant .bubble blockquote{
  margin:10px 0 14px;
  padding:2px 0 2px 14px;
  border-left:2px solid var(--green-soft);
  color:var(--muted);
}
.assistant .bubble code{
  padding:.12em .38em;
  border-radius:6px;
  background:rgba(240,236,218,.72);
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:.9em;
}
.assistant .bubble pre{
  margin:10px 0 14px;
  padding:12px 14px;
  overflow:auto;
  border-radius:12px;
  background:rgba(240,236,218,.72);
}
.assistant .bubble pre code{padding:0;background:transparent}
.assistant .bubble h3,
.assistant .bubble h4,
.assistant .bubble h5,
.assistant .bubble h6{
  margin:14px 0 8px;
  color:var(--green);
  font-family:var(--font-heading);
  line-height:1.25;
}
.assistant .bubble del{opacity:.65}
.user .bubble{
  max-width:min(620px,85%);
  padding:12px 16px;
  border-radius:20px 20px 6px 20px;
  background:var(--green);
  color:#fff;
  box-shadow:0 8px 24px rgba(50,92,78,.10);
}
.typing{display:flex;gap:4px;padding:14px 0}
.typing i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green-soft);
  animation:dot 1s infinite;
}
.typing i:nth-child(2){animation-delay:.15s}
.typing i:nth-child(3){animation-delay:.3s}
@keyframes dot{
  0%,60%,100%{transform:translateY(0);opacity:.4}
  30%{transform:translateY(-4px);opacity:1}
}

/* Composer */
.composer-wrap{
  position:fixed;
  z-index:30;
  left:0;
  right:0;
  bottom:0;
  padding:18px 20px calc(22px + env(safe-area-inset-bottom));
  pointer-events:none;
  background:linear-gradient(to top,var(--bone) 55%,rgba(252,252,249,.94) 73%,transparent);
}
.composer-shell{
  width:min(850px,100%);
  margin:0 auto;
  pointer-events:auto;
}
.composer{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:10px;
  padding:10px 10px 10px 20px;
  border:1px solid rgba(50,92,78,.12);
  border-radius:28px;
  background:rgba(255,255,255,.94);
  box-shadow:0 14px 42px rgba(23,30,32,.075),0 2px 8px rgba(23,30,32,.025);
  backdrop-filter:blur(18px);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.composer:focus-within{
  border-color:rgba(50,92,78,.24);
  box-shadow:0 18px 52px rgba(23,30,32,.09),0 0 0 3px rgba(195,227,138,.10);
}
textarea{
  width:100%;
  min-height:44px;
  max-height:128px;
  padding:11px 2px 8px;
  resize:none;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font-size:16px;
  line-height:1.4;
}
textarea::placeholder{color:rgba(23,30,32,.40)}
.composer-actions{display:flex;align-items:center}
.round-btn{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease;
}
.send{
  background:var(--orange);
  color:#fff;
  box-shadow:0 8px 18px rgba(252,110,61,.20);
}
.send:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(252,110,61,.25);
}
.send svg{
  width:16px;
  height:18px;
  margin-left:2px;
  fill:currentColor;
}
.footnote{
  margin-top:8px;
  text-align:center;
  color:rgba(23,30,32,.34);
  font-size:11px;
  letter-spacing:.01em;
}

/* State */
.chat-active .welcome{
  opacity:0;
  visibility:hidden;
  transform:translate(-22px,-10px) scale(.992);
}
.chat-active .conversation{
  opacity:1;
  visibility:visible;
  transform:none;
}
.chat-active .topbar{
  border-bottom:1px solid rgba(23,30,32,.055);
  background:rgba(252,252,249,.74);
  backdrop-filter:blur(12px);
}

/* Mobile */
@media(max-width:700px){
  .topbar{
    height:72px;
    padding:0 16px;
  }
  .musicpass-mark{width:56px;height:42px}
  .brandname{font-size:16px}
  .events-link{
    width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    justify-content:center;
    border-color:rgba(50,92,78,.14);
    background:rgba(252,252,249,.88);
  }
  .events-label{display:none}
  .events-icon{width:23px;height:23px}
  .wave-system{
    top:102px;
    right:-47vw;
    width:94vw;
    height:340px;
    opacity:.68;
  }
  .wave-line-1{stroke-width:2.4}
  .wave-line-2{stroke-width:1.8}
  .wave-line-3{display:none}
  .wave-node-soft{fill:rgba(195,227,138,.06)}
  .wave-node-hot{fill:rgba(195,227,138,.15)}
  .welcome{
    width:calc(100% - 28px);
    margin:0 auto;
    align-items:center;
    justify-content:flex-start;
    text-align:center;
    padding:9vh 0 150px;
  }
  .agent-orbit{
    width:72px;
    height:72px;
    margin-bottom:24px;
    border-radius:24px;
  }
  .agentmark{width:48px;height:35px}
  h1{
    max-width:430px;
    font-size:clamp(36px,11vw,48px);
  }
  .lede{
    max-width:360px;
    margin:18px auto 0;
    font-size:16px;
  }
  .chips{
    width:calc(100vw - 28px);
    margin-top:28px;
    padding:2px 2px 8px;
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .chips::-webkit-scrollbar{display:none}
  .chip{white-space:nowrap;flex:none}
  .conversation{
    padding:20px 14px 135px;
  }
  .conversation-inner{gap:22px}
  .message{
    grid-template-columns:32px 1fr;
    gap:10px;
  }
  .mini-agent{
    width:32px;
    height:32px;
    border-radius:10px;
  }
  .mini-agent img{width:22px;height:16px}
  .bubble{font-size:15.5px}
  .user .bubble{max-width:88%}
  .composer-wrap{
    padding:12px 10px calc(12px + env(safe-area-inset-bottom));
    background:linear-gradient(to top,var(--bone) 64%,rgba(252,252,249,.95) 80%,transparent);
  }
  .composer{
    padding:7px 7px 7px 14px;
    border-radius:23px;
  }
  .round-btn{width:42px;height:42px}
  .footnote{display:none}
}

@media(max-height:650px) and (min-width:701px){
  .welcome{
    justify-content:flex-start;
    padding-top:5vh;
  }
  .agent-orbit{margin-bottom:18px}
  .lede{margin-top:14px}
  .chips{margin-top:18px}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}