:root {
  color-scheme: light;
  --ink: #121417;
  --muted: #5e6670;
  --line: #e6e8eb;
  --panel: #ffffff;
  --brand: #ffff00ff;
  --brand-hover: #eded00;
  --blue: #2f5f9f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family:
    Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

.page-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 92svh;
  grid-template-columns: 1fr;
  align-content: center;
  padding: 72px 0 64px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 36px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow.brand-name {
  color: #000000;
  font-family: Viga, Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(44px, 6.4vw, 72px);
  font-weight: 880;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 440px);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
  margin-top: 84px;
}

h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 840;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.5;
}

.hero-copy.compact {
  display: grid;
  gap: 6px;
  max-width: 620px;
  margin-top: 32px;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--brand);
  color: #000000;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 790;
}

.button:hover {
  background: var(--brand-hover);
}

.chat-preview {
  width: 100%;
  height: 460px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px 16px 16px;
}

.chat-mode {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  padding: 0 0 18px;
}

.chat-mode strong {
  color: #000000;
  font-size: 16px;
}

.chat-mode span {
  text-align: right;
}

.chat-messages {
  min-height: 0;
  overflow: hidden auto;
  padding-top: 0;
  scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

.chat-stack {
  display: grid;
  justify-self: end;
  width: min(440px, 100%);
}

.message {
  width: fit-content;
  max-width: 86%;
  margin-top: 14px;
  border-radius: 8px;
  padding: 13px 15px;
  animation: message-pop 180ms ease-out;
  font-size: 15px;
  line-height: 1.45;
}

.chat-messages .message:first-child {
  margin-top: 0;
}

.message.user {
  margin-left: auto;
  background: var(--brand);
  color: #000000;
}

.message.bot {
  background: #ffffff;
  color: #252b31;
  border: 1px solid rgba(18, 20, 23, 0.08);
}

.typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 15px;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: typing-dot 900ms ease-in-out infinite;
  background: #747b83;
}

.typing span:nth-child(2) {
  animation-delay: 120ms;
}

.typing span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes message-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing-dot {
  0%,
  70%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  color: #3c444d;
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-links a:hover {
  color: #000000;
}

.footer {
  color: var(--muted);
  padding: 22px clamp(18px, 4vw, 56px);
  text-align: center;
  font-size: 14px;
}

.not-found {
  display: grid;
  min-height: 100vh;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: 28px;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
}

.not-found p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 900px) {
  .hero-body {
    grid-template-columns: 1fr;
    gap: 54px;
    margin-top: 64px;
  }

  .hero-copy,
  .hero-copy.compact {
    max-width: 760px;
  }

  .chat-stack {
    justify-self: center;
    width: min(560px, 100%);
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .hero {
    min-height: auto;
    padding: 42px 0 48px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
    line-height: 1;
  }

  .hero-body {
    gap: 44px;
    margin-top: 48px;
  }

  .hero-copy {
    font-size: 18px;
    line-height: 1.48;
  }

  .hero-copy.compact {
    gap: 5px;
    margin-top: 26px;
    font-size: 17px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 30px;
  }

  .button {
    width: 100%;
  }

  .chat-preview {
    height: 430px;
    padding: 6px 12px 12px;
  }

  .chat-mode {
    gap: 10px;
    padding-bottom: 14px;
  }

  .chat-mode strong {
    font-size: 15px;
  }

  .chat-mode span {
    max-width: 58%;
    font-size: 12px;
  }

  .message {
    max-width: 92%;
    padding: 12px 13px;
    font-size: 14px;
  }

  .brand-row {
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
  }

  .eyebrow.brand-name {
    font-size: 26px;
  }

  .social-links a {
    width: 36px;
    height: 36px;
  }

  .social-links svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: calc(100% - 22px);
  }

  .hero {
    padding-top: 32px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 46px);
  }

  .hero-body {
    margin-top: 38px;
  }

  .chat-preview {
    height: 400px;
  }

  .chat-mode {
    display: grid;
    gap: 4px;
  }

  .chat-mode span {
    max-width: none;
    text-align: left;
  }

  .footer {
    padding-inline: 14px;
    font-size: 12px;
  }
}
