@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #182033;
  --muted: #667085;
  --purple: #5b35b5;
  --purple-dark: #402281;
  --orange: #ff8a3d;
  --paper: #fbfaff;
  --line: #ece9f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
}

.navbar {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.logo img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.logo strong {
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 9px;
  color: #50576a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease, background .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
  background: #f0ebff;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 45%, rgba(111, 73, 195, .12), transparent 36%),
    linear-gradient(120deg, #fbfaff 20%, #f5f0ff 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: 570px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 50px;
  padding: 58px 0 74px;
}

.hero-text {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(52px, 7vw, 82px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

.hero h1 span {
  color: var(--purple);
}

.hero h2 {
  margin: 24px 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 700;
}

.hero-description {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 14px 20px;
  border-radius: 10px;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 10px 24px rgba(91, 53, 181, .2);
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  background: var(--purple-dark);
}

.cta-button span {
  font-size: 20px;
}

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 480px);
  aspect-ratio: 1;
  justify-self: center;
  background: radial-gradient(circle, rgba(121, 84, 213, .15), transparent 65%);
}

.orbit-track {
  position: absolute;
  inset: 0;
  transform: rotate(var(--tilt));
  pointer-events: none;
}

.orbit-track::before {
  content: "";
  position: absolute;
  inset: calc(50% - var(--ry)) calc(50% - var(--rx));
  border: 1px solid rgba(91, 53, 181, .29);
  border-radius: 50%;
}

.orbit-track--one {
  --rx: 34%;
  --ry: 18%;
  --tilt: -24deg;
  --period: 18s;
  --phase: -2s;
}

.orbit-track--two {
  --rx: 39%;
  --ry: 25%;
  --tilt: 33deg;
  --period: 24s;
  --phase: -7s;
}

.orbit-track--three {
  --rx: 42%;
  --ry: 29%;
  --tilt: -58deg;
  --period: 30s;
  --phase: -15s;
}

.orbit-track--four {
  --rx: 42%;
  --ry: 36%;
  --tilt: 12deg;
  --period: 38s;
  --phase: -30s;
}

.orbit-item {
  position: absolute;
  inset: 50% auto auto calc(50% + var(--rx));
  translate: -50% -50%;
  transform: rotate(calc(-1 * var(--tilt)));
  display: grid;
  place-items: center;
  width: clamp(30px, 5vw, 48px);
  aspect-ratio: 1;
  border: 1px solid rgba(91, 53, 181, .16);
  border-radius: 12px;
  color: var(--purple-dark);
  background: #fff;
  box-shadow: 0 6px 18px rgba(69, 42, 130, .16);
}

@supports (offset-path: ellipse(40% 20% at 50% 50%)) {
  .orbit-item {
    inset: 0 auto auto 0;
    translate: none;
    offset-path: ellipse(var(--rx) var(--ry) at 50% 50%);
    offset-rotate: 0deg;
    animation: orbit-travel var(--period) linear var(--phase) infinite;
  }
}

.orbit-item svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-item--create {
  width: auto;
  height: clamp(27px, 3.6vw, 38px);
  aspect-ratio: auto;
  padding-inline: clamp(6px, 1vw, 12px);
  color: #91431c;
  font-size: clamp(8px, 1vw, 10px);
  font-weight: 800;
  letter-spacing: .09em;
}

.art-core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31%;
  aspect-ratio: 1;
  border: clamp(3px, .7vw, 7px) solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 30% 22%, #8c6ae1, #53309b 57%, #331965);
  box-shadow: 0 12px 32px rgba(69, 42, 130, .28);
  font-family: "Manrope", sans-serif;
  font-size: clamp(23px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.07em;
}

.art-core span {
  color: #ffbd7e;
}

@keyframes orbit-travel {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-item {
    animation-play-state: paused;
  }
}

.tag-top {
  top: 17%;
  right: 4%;
}

.tag-bottom {
  bottom: 16%;
  left: 3%;
  color: #a65118;
}

.hero-glow {
  position: absolute;
  right: -130px;
  bottom: -240px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 138, 61, .08);
  filter: blur(2px);
}

.features {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 48px));
  margin: -34px auto 60px;
  padding: 25px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(38, 28, 69, .07);
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}

.icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f3efff;
  font-size: 22px;
}

.feature h3 {
  margin: 0 0 4px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}

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

.chat-button {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 5;
  padding: 14px 19px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 10px 30px rgba(50, 31, 91, .25);
  cursor: pointer;
  font: 700 14px "DM Sans", sans-serif;
}

.chat-button:hover {
  background: var(--purple-dark);
}

.chat-container {
  position: fixed;
  right: 26px;
  bottom: 86px;
  z-index: 5;
  width: min(360px, calc(100vw - 32px));
  height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(24, 16, 48, .2);
}

.chat-container[hidden] {
  display: none;
}

.chat-header {
  min-height: 70px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--purple);
}

.chat-header strong,
.chat-header small {
  display: block;
}

.chat-header strong {
  font-size: 14px;
}

.chat-header small {
  margin-top: 4px;
  color: #e1d8f7;
  font-size: 12px;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #75e0aa;
}

.close-chat {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 25px;
}

.chat-messages {
  height: calc(100% - 130px);
  overflow-y: auto;
  padding: 16px;
  background: #faf9fd;
}

.chat-footer {
  height: 60px;
  padding: 9px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.chat-footer input {
  min-width: 0;
  flex: 1;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font: inherit;
}

.chat-footer input:focus {
  border-color: var(--purple);
}

.chat-footer button {
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--purple);
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 850px) {
  .navbar {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero-content {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 55px 0 80px;
  }

  .hero-art {
    width: min(72vw, 360px);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .navbar,
  .hero-content,
  .features {
    width: min(100% - 32px, 1180px);
  }

  .hero-content {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .features {
    grid-template-columns: 1fr;
    margin-top: -35px;
    padding: 12px;
  }

  .feature {
    padding: 10px;
  }

  .chat-button {
    right: 16px;
    bottom: 16px;
  }

  .chat-container {
    right: 16px;
    bottom: 76px;
  }
}
.chat-message {
  width: fit-content;
  max-width: 85%;
  margin: 0 0 10px;
  padding: 10px 13px;
  border-radius: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.chat-message.user {
  margin-left: auto;
  color: #fff;
  background: #5b35b5;
  border-bottom-right-radius: 4px;
}

.chat-message.assistant {
  margin-right: auto;
  color: #172033;
  background: #eeeaf7;
  border-bottom-left-radius: 4px;
}

#sendBtn:disabled {
  cursor: wait;
  opacity: .65;
}

/* Projects page: shown while the team is preparing its project listings. */
.projects-page {
  min-height: calc(100vh - 88px);
  padding: clamp(3rem, 8vw, 6rem) 24px;
  background:
    radial-gradient(ellipse at 50% 68%, rgba(111, 73, 195, .10), transparent 42%),
    linear-gradient(135deg, #fbfaff 20%, #f5f0ff 100%);
}

.projects-intro {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.projects-eyebrow {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.projects-intro h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: -.05em;
}

.projects-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.projects-section {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) 0 0;
}

.projects-card {
  width: min(100%, 620px);
  padding: clamp(2rem, 6vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 50px rgba(64, 34, 129, .10);
  text-align: center;
}

.projects-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #f4dda0;
  border-radius: 999px;
  color: #745400;
  background: #fff7dc;
  font-size: 13px;
  font-weight: 700;
}

.projects-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e6a700;
  box-shadow: 0 0 0 3px rgba(230, 167, 0, .15);
}

.projects-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 25px auto 18px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #7954d5, #432482);
  box-shadow: 0 12px 25px rgba(91, 53, 181, .22);
  font-size: 34px;
}

.projects-card h2 {
  margin: 0 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(22px, 4vw, 30px);
}

.projects-card p {
  max-width: 48ch;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 520px) {
  .projects-page {
    min-height: calc(100vh - 125px);
    padding-inline: 16px;
  }
}
