:root {
  --ast-coral: #ef6142;
  --ast-red: #dd4c2c;
  --ast-red-deep: #a92319;
  --ast-teal: #1f9184;
  --ast-dark: #070b13;
  --ast-dark-2: #0b111d;
  --ast-paper: #f7f8fb;
  --ast-line: rgba(16, 17, 36, 0.09);
  --ast-muted: #74778a;
}

body[data-assistant] {
  background: var(--ast-dark);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

body[data-assistant] :focus-visible {
  outline-color: rgba(239, 97, 66, 0.6);
}

.ast-hero {
  position: relative;
  min-height: clamp(470px, 46vw, 522px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(58% 82% at 76% 42%, rgba(221, 76, 44, 0.17), transparent 65%),
    radial-gradient(38% 66% at 16% 92%, rgba(31, 145, 132, 0.1), transparent 70%),
    linear-gradient(118deg, #050a13 0%, #07101d 52%, #140b0d 100%);
  isolation: isolate;
}

.ast-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 26%, rgba(255,255,255,.42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 65% 76%, rgba(255,255,255,.32) 0 1px, transparent 1.5px),
    radial-gradient(circle at 34% 68%, rgba(255,255,255,.28) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 240px 240px, 210px 210px, 260px 260px;
  content: "";
}

.ast-hero__wash {
  position: absolute;
  top: 86px;
  right: 2%;
  width: min(700px, 62vw);
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(239, 97, 66, 0.12), transparent 67%);
  filter: blur(20px);
}

.ast-hero__inner {
  position: relative;
  display: grid;
  min-height: clamp(470px, 46vw, 522px);
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
  gap: 32px;
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: 96px;
}

.ast-hero__copy {
  position: relative;
  z-index: 3;
  align-self: center;
}

.ast-hero .crumbs {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.54);
}

.ast-hero .crumbs a {
  color: rgba(255, 255, 255, 0.7);
}

.ast-hero .crumbs a:hover {
  color: #fff;
}

.ast-kicker {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 13px;
  border: 1px solid rgba(239, 97, 66, 0.52);
  border-radius: 8px;
  color: #ff9b88;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ast-hero h1 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(3.05rem, 4.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

body[data-assistant] .nav__burger {
  display: flex;
}

body[data-assistant] .nav__cta--ghost {
  display: none;
}

body[data-assistant] .nav.is-stuck {
  background: rgba(7, 9, 15, .98);
}

.ast-hero h1 span {
  display: block;
  margin-top: 10px;
  color: var(--ast-coral);
}

.ast-hero__lead {
  max-width: 44ch;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.8;
}

.ast-hero__art {
  position: relative;
  align-self: stretch;
  min-width: 0;
}

.ast-hero__art img {
  position: absolute;
  z-index: 3;
  right: 17%;
  top: 0;
  bottom: auto;
  width: min(365px, 48vw);
  height: auto;
  filter: drop-shadow(0 32px 40px rgba(0, 0, 0, 0.44));
  animation: ast-float 5.8s ease-in-out infinite;
}

.ast-orbit {
  position: absolute;
  z-index: 1;
  top: 52%;
  left: 48%;
  width: 90%;
  height: 40%;
  border: 1px solid rgba(239, 97, 66, 0.48);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  box-shadow: 0 0 24px rgba(239, 97, 66, 0.14), inset 0 0 18px rgba(239, 97, 66, 0.07);
}

.ast-orbit--two {
  width: 72%;
  height: 31%;
  border-color: rgba(31, 145, 132, 0.35);
  transform: translate(-48%, -42%) rotate(8deg);
}

.ast-orbit__spark {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9b88;
  box-shadow: 0 0 18px 5px rgba(239, 97, 66, 0.74);
}

.ast-orbit__spark--one { top: 36%; left: 12%; }
.ast-orbit__spark--two { right: 8%; bottom: 27%; width: 5px; height: 5px; background: #58b8aa; box-shadow: 0 0 16px 4px rgba(31,145,132,.55); }

.ast-speech {
  position: absolute;
  z-index: 4;
  display: flex;
  width: 72px;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(239, 97, 66, 0.28);
  border-radius: 14px;
  background: rgba(123, 30, 22, 0.58);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.ast-speech::after {
  position: absolute;
  bottom: -8px;
  left: 15px;
  width: 14px;
  height: 14px;
  background: rgba(123, 30, 22, 0.8);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  content: "";
}

.ast-speech i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8d78;
}

.ast-speech--one { top: 28%; right: 2%; }
.ast-speech--two { left: 13%; bottom: 28%; transform: scale(.78); }

@keyframes ast-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

.ast-light {
  position: relative;
  z-index: 4;
  padding-bottom: 86px;
  color: var(--ink);
  background: #f5f6f9;
}

.ast-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, .92fr);
  gap: 24px;
  align-items: start;
  transform: translateY(-36px);
  margin-bottom: -36px;
}

.ast-chat,
.ast-side-card {
  border: 1px solid #e8e9ee;
  background: #fff;
  box-shadow: 0 18px 48px rgba(14, 20, 42, 0.075);
}

.ast-chat {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
}

.ast-chat__header {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 15px;
  padding: 18px 26px;
  border-bottom: 1px solid #ececf1;
  background: #fff;
}

.ast-chat__header h2 {
  color: var(--ink);
  font-size: 1.07rem;
  letter-spacing: 0;
}

.ast-chat__header p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: var(--ast-muted);
  font-size: .76rem;
}

.ast-chat__header p span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35b87a;
  box-shadow: 0 0 0 4px rgba(53,184,122,.1);
}

.ast-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(239, 97, 66, 0.16);
  border-radius: 50%;
  background: #fff2ef;
}

.ast-avatar img {
  width: 43px;
  max-width: none;
  transform: translateY(6px);
}

.ast-avatar--large {
  width: 56px;
  height: 56px;
}

.ast-avatar--large img {
  width: 67px;
  transform: translateY(10px);
}

.ast-clear {
  display: grid;
  width: 38px;
  height: 38px;
  margin-left: auto;
  place-items: center;
  border-radius: 10px;
  color: #9093a3;
  background: transparent;
  transition: color .2s ease, background .2s ease;
}

.ast-clear:hover { color: var(--ast-red); background: #fff1ee; }
.ast-clear svg { width: 17px; height: 17px; }

.ast-chat__log {
  display: flex;
  min-height: 430px;
  max-height: 540px;
  flex-direction: column;
  gap: 19px;
  overflow-y: auto;
  padding: 32px 28px 28px;
  background: #fff;
  scrollbar-color: rgba(239, 97, 66, .42) transparent;
  scrollbar-width: thin;
}

.ast-chat__log::-webkit-scrollbar { width: 7px; }
.ast-chat__log::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(239,97,66,.42); background-clip: padding-box; }

.ast-message {
  display: flex;
  max-width: 74%;
  align-items: flex-end;
  gap: 10px;
  animation: ast-message-in .32s ease both;
}

.ast-message > div { min-width: 0; }

.ast-message p {
  padding: 14px 16px;
  border-radius: 7px 16px 16px 16px;
  color: #202238;
  background: #f0f1f6;
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.65;
}

.ast-message time {
  display: block;
  margin-top: 5px;
  color: #9699aa;
  font-size: .66rem;
}

.ast-message a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0 14px;
  color: var(--ast-red);
  font-size: .76rem;
  font-weight: 700;
}

.ast-message--user {
  align-self: flex-end;
}

.ast-message--user p {
  border-radius: 16px 7px 16px 16px;
  color: #fff;
  background: var(--btn);
  box-shadow: 0 12px 24px rgba(221, 76, 44, .17);
}

.ast-message--user time { text-align: right; }
.ast-message--user time span { margin-left: 4px; color: var(--ast-red); font-weight: 800; }

.ast-message--typing p {
  display: flex;
  min-width: 64px;
  gap: 5px;
}

.ast-message--typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a4a6b2;
  animation: ast-dot 1.1s ease-in-out infinite;
}

.ast-message--typing i:nth-child(2) { animation-delay: .12s; }
.ast-message--typing i:nth-child(3) { animation-delay: .24s; }

.ast-message--streaming p::after {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  border-radius: 2px;
  background: var(--ast-coral);
  animation: ast-caret .72s steps(1) infinite;
  content: "";
}

@keyframes ast-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ast-caret { 50% { opacity: 0; } }
@keyframes ast-message-in { from { opacity: 0; transform: translateY(8px); } }

.ast-quick {
  padding: 22px 28px 26px;
  border-top: 1px solid #f0f0f3;
  background: #fff;
}

.ast-quick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.ast-quick__head h3 { color: var(--ink); font-size: .8rem; font-weight: 700; letter-spacing: 0; }
.ast-quick__head button { display: inline-flex; align-items: center; gap: 7px; color: var(--ast-red); background: none; font-size: .74rem; font-weight: 700; }
.ast-quick__head button svg { width: 15px; height: 15px; }

.ast-quick__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ast-quick__grid button {
  display: flex;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 13px;
  border: 1px solid var(--ast-line);
  border-radius: 8px;
  color: #24263b;
  background: #fff;
  font-family: inherit;
  text-align: left;
  font-size: .72rem;
  font-weight: 500;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ast-quick__grid button:hover { border-color: rgba(239,97,66,.35); background: #fff8f6; transform: translateY(-1px); }
.ast-quick__grid button > span:last-child { flex: none; color: var(--ast-red); font-size: 1rem; }

.ast-compose {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  margin: 0 28px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--ast-line);
  border-radius: 12px;
  background: #f6f7f9;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ast-compose:focus-within { border-color: rgba(239,97,66,.44); box-shadow: 0 0 0 4px rgba(239,97,66,.08); }
.ast-compose textarea { display: block; width: 100%; min-height: 38px; max-height: 116px; padding: 9px 0; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .81rem; line-height: 20px; }
.ast-compose textarea::placeholder { color: #9a9dab; }

.ast-compose__send {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 10px;
}

.ast-compose__send { color: #fff; background: var(--btn); box-shadow: 0 9px 20px rgba(221,76,44,.22); }
.ast-compose__send:hover { transform: translateY(-1px); }
.ast-compose__send svg { width: 18px; height: 18px; }

.ast-chat__note {
  padding: 14px 28px 22px;
  color: #9497a6;
  font-size: .66rem;
}

.ast-sidebar {
  display: grid;
  gap: 20px;
}

.ast-side-card {
  padding: 24px;
  border-radius: 12px;
}

.ast-side-card h2,
.ast-contact-card h2 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ast-topics {
  display: grid;
  gap: 3px;
  margin-top: 14px;
}

.ast-topics button,
.ast-topics a {
  display: grid;
  min-height: 43px;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 3px 0;
  color: #2c2e42;
  background: transparent;
  font-family: inherit;
  text-align: left;
  font-size: .76rem;
  font-weight: 500;
  transition: color .18s ease, transform .18s ease;
}

.ast-topics button:hover,
.ast-topics a:hover { color: var(--ast-red); transform: translateX(3px); }
.ast-topics i { color: #8f92a1; font-style: normal; font-size: 1rem; }

.ast-side-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  color: var(--ast-red);
  background: #fff0ed;
}

.ast-side-icon svg { width: 17px; height: 17px; }

.ast-announcements {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ast-announcements a {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.ast-announcements a > span:last-child { min-width: 0; }
.ast-announcements strong { display: block; color: #27293d; font-size: .73rem; line-height: 1.45; }
.ast-announcements small { display: block; margin-top: 2px; color: #999ba8; font-size: .62rem; }
.ast-announcements a:hover strong { color: var(--ast-red); }

.ast-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--ast-red);
  font-size: .74rem;
  font-weight: 700;
}

.ast-more:hover { gap: 13px; }

.ast-contact-card {
  position: relative;
  min-height: 204px;
  overflow: hidden;
  padding: 26px;
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(70% 95% at 94% 14%, rgba(31,145,132,.22), transparent 70%),
    linear-gradient(135deg, #311012, #761a13 68%, #9f2318);
  box-shadow: 0 20px 48px rgba(94, 20, 15, 0.2);
}

.ast-contact-card__ring {
  position: absolute;
  right: -44px;
  bottom: -58px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255,255,255,.025), 0 0 0 50px rgba(255,255,255,.018);
}

.ast-contact-card__eyebrow { margin-bottom: 5px; color: #ffad9f; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ast-contact-card h2 { position: relative; color: #fff; }
.ast-contact-card > p:not(.ast-contact-card__eyebrow) { position: relative; max-width: 25ch; margin-top: 12px; color: rgba(255,255,255,.7); font-size: .76rem; }
.ast-contact-card a { position: relative; display: inline-flex; min-height: 42px; align-items: center; gap: 9px; margin-top: 20px; padding: 0 18px; border-radius: 8px; color: #6c1c16; background: #fff; font-size: .76rem; font-weight: 800; }
.ast-contact-card a svg { width: 16px; height: 16px; }

@media (max-width: 1000px) {
  .ast-hero { min-height: 500px; }
  .ast-hero__inner { min-height: 500px; grid-template-columns: .9fr 1.1fr; }
  .ast-hero__art img { right: 8%; width: min(340px, 43vw); }
  .ast-layout { grid-template-columns: minmax(0, 1.7fr) minmax(255px, .85fr); }
  .ast-side-card { padding: 20px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body[data-assistant] .nav__links {
    gap: 17px;
  }

  body[data-assistant] .nav__links a {
    font-size: .78rem;
  }

  body[data-assistant] .footer__grid {
    grid-template-columns: 1.35fr .72fr .78fr 1.08fr 1.18fr;
    gap: 20px;
  }

  body[data-assistant] .footer__contact,
  body[data-assistant] .newsletter {
    grid-column: auto;
    max-width: none;
  }

  body[data-assistant] .footer a,
  body[data-assistant] .footer__contact span,
  body[data-assistant] .newsletter p,
  body[data-assistant] .footer__brand p {
    font-size: .7rem;
  }
}

@media (max-width: 820px) {
  .ast-hero { min-height: 700px; }
  .ast-hero__inner { min-height: 700px; grid-template-columns: 1fr; align-content: start; gap: 0; padding-top: calc(var(--nav-h) + 34px); padding-bottom: 0; }
  .ast-hero__copy { align-self: start; }
  .ast-hero h1 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .ast-hero__lead { max-width: 38ch; }
  .ast-hero__art { min-height: 340px; }
  .ast-hero__art img { right: 50%; top: auto; bottom: -10px; width: min(330px, 72vw); transform: translateX(50%); animation: none; }
  .ast-orbit { top: 58%; left: 50%; width: 88vw; max-width: 620px; }
  .ast-orbit--two { width: 68vw; }
  .ast-speech--one { top: 17%; right: 10%; }
  .ast-speech--two { left: 10%; bottom: 24%; }
  .ast-layout { grid-template-columns: 1fr; transform: translateY(-22px); margin-bottom: -22px; }
  .ast-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ast-contact-card { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .ast-hero { min-height: 650px; }
  .ast-hero__inner { min-height: 650px; padding-top: calc(var(--nav-h) + 24px); }
  .ast-hero .crumbs { margin-bottom: 16px; font-size: .7rem; }
  .ast-kicker { margin-bottom: 12px; }
  .ast-hero h1 { font-size: clamp(2.45rem, 13vw, 3.35rem); }
  .ast-hero__lead { margin-top: 16px; font-size: .86rem; line-height: 1.68; }
  .ast-hero__art { min-height: 310px; }
  .ast-hero__art img { width: min(295px, 78vw); }
  .ast-speech { width: 58px; height: 44px; }
  .ast-speech--one { right: 3%; }
  .ast-layout { width: min(100% - 24px, var(--container)); }
  .ast-chat__header { min-height: 82px; padding: 14px 16px; }
  .ast-chat__header h2 { font-size: .92rem; }
  .ast-avatar--large { width: 48px; height: 48px; }
  .ast-chat__log { min-height: 380px; max-height: 480px; padding: 20px 14px; }
  .ast-message { max-width: 88%; }
  .ast-message p { padding: 12px 13px; font-size: .8rem; }
  .ast-quick { padding: 4px 14px 18px; }
  .ast-quick__grid { grid-template-columns: 1fr; }
  .ast-quick__grid button:nth-child(n+4) { display: none; }
  .ast-compose { margin: 0 14px; }
  .ast-chat__note { padding: 13px 14px 18px; }
  .ast-sidebar { grid-template-columns: 1fr; }
  .ast-contact-card { grid-column: auto; }
  .ast-light { padding-bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .ast-hero__art img,
  .ast-message,
  .ast-message--typing i { animation: none; }
}
