:root {
  --pixel-blue: #1976d2;
  --pixel-blue-soft: #e8f3ff;
  --pixel-navy: #123c69;
  --pixel-yellow: #ffc928;
  --pixel-yellow-soft: #fff7d8;
  --paper: #ffffff;
  --mist: #eef4f9;
  --mist-strong: #dce8f2;
  --text: #17233c;
  --muted: #637188;
  --line: #dce5ee;
  --shadow: 0 22px 65px rgba(24, 55, 91, 0.13);
  --shadow-soft: 0 14px 35px rgba(23, 48, 78, 0.10);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(25, 118, 210, 0.08), transparent 30%),
    linear-gradient(145deg, #f8fbff 0%, var(--mist) 52%, #e6eef6 100%);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.suite-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 78px;
}

.suite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  margin-bottom: 56px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.82)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(29, 65, 101, 0.10);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  min-width: 0;
  padding: 7px 12px 7px 7px;
  border-radius: 22px;
  transition: background 180ms ease, transform 180ms ease;
}

.brand:hover {
  background: rgba(238, 244, 249, 0.76);
  transform: translateY(-1px);
}

.brand-logo-wrap {
  display: grid;
  place-items: center;
  width: 66px;
  height: 58px;
  padding: 8px;
  border-radius: 19px;
  background: linear-gradient(145deg, #ffffff, #f0f6fc);
  box-shadow: inset 0 0 0 1px rgba(18, 60, 105, 0.08), 0 13px 28px rgba(18, 60, 105, 0.11);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-eyebrow {
  color: var(--pixel-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-title {
  color: var(--pixel-navy);
  font-size: clamp(1.22rem, 2.6vw, 1.62rem);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.access-note {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--pixel-navy);
  background: rgba(238, 244, 249, 0.82);
  border: 1px solid rgba(220, 229, 238, 0.92);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.suite-main {
  display: grid;
  gap: 38px;
}

.hero {
  text-align: center;
  animation: heroRise 680ms ease both;
}

.systems-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--pixel-navy);
  border: 1px solid rgba(25, 118, 210, 0.14);
  box-shadow: 0 12px 28px rgba(18, 60, 105, 0.09);
  font-weight: 800;
  font-size: 0.9rem;
}

.systems-badge span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #25b96f;
  box-shadow: 0 0 0 5px rgba(37, 185, 111, 0.13);
}

.hero h1 {
  max-width: 780px;
  margin: 22px auto 12px;
  color: var(--text);
  font-size: clamp(2.1rem, 6vw, 4.55rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.22rem);
  font-weight: 500;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.system-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transform: translateY(22px);
  opacity: 0;
  animation: cardIn 640ms ease forwards;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.system-card:nth-child(1) {
  animation-delay: 130ms;
}

.system-card:nth-child(2) {
  animation-delay: 250ms;
}

.system-card:nth-child(3) {
  animation-delay: 370ms;
}

.system-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -62px auto;
  width: 155px;
  height: 155px;
  border-radius: 44px;
  opacity: 0.12;
  transform: rotate(18deg);
  transition: transform 220ms ease, opacity 220ms ease;
}

.system-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(25, 118, 210, 0.18);
}

.system-card:hover::after {
  opacity: 0.18;
  transform: rotate(10deg) translateY(-7px);
}

.card-topline {
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
}

.system-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 28px;
  padding: 12px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 30px rgba(23, 48, 78, 0.12);
}

.system-icon svg,
.system-button svg,
.chat-close svg,
.chat-form button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-icon svg {
  width: 34px;
  height: 34px;
}

.system-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.system-copy {
  position: relative;
  z-index: 1;
  flex: 1;
}

.system-copy h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.system-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 500;
}

.system-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 28px;
  padding: 13px 18px;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(18, 60, 105, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.system-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -70%;
  width: 44%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transition: left 420ms ease;
}

.system-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 32px rgba(18, 60, 105, 0.22);
}

.system-button:hover::before {
  left: 122%;
}

.card-blue .card-topline,
.card-blue .system-button,
.card-blue::after {
  background: linear-gradient(135deg, var(--pixel-blue), #3aa0ff);
}

.card-blue .system-icon {
  color: var(--pixel-blue);
  background: var(--pixel-blue-soft);
}

.card-yellow .card-topline,
.card-yellow .system-button,
.card-yellow::after {
  background: linear-gradient(135deg, #f2b600, var(--pixel-yellow));
}

.card-yellow .system-icon {
  color: #9a7100;
  background: #fffdf5;
}

.card-yellow .system-button {
  color: #2d2a18;
}

.card-navy .card-topline,
.card-navy .system-button,
.card-navy::after {
  background: linear-gradient(135deg, var(--pixel-navy), #1d5d95);
}

.card-navy .system-icon {
  color: var(--pixel-navy);
  background: #eaf1f8;
}

.pixel-chat {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 50;
  width: 92px;
}

.pixel-chat.is-open {
  z-index: 80;
}

.chat-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: filter 200ms ease, transform 200ms ease;
}

.chat-launcher:hover {
  filter: drop-shadow(0 18px 24px rgba(25, 118, 210, 0.28)) drop-shadow(0 0 18px rgba(255, 201, 40, 0.3));
  transform: scale(1.04);
}

.help-bubble {
  position: absolute;
  right: 76px;
  bottom: 64px;
  width: max-content;
  max-width: 210px;
  padding: 10px 13px;
  border-radius: 14px 14px 3px 14px;
  background: #fff;
  border: 1px solid rgba(220, 229, 238, 0.9);
  box-shadow: 0 13px 28px rgba(18, 60, 105, 0.13);
  color: var(--pixel-navy);
  font-weight: 800;
  font-size: 0.82rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.pixel-bot {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  overflow: visible;
  animation: botFloat 3.2s ease-in-out infinite;
}

.pixel-bot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(18, 60, 105, 0.22));
  transform-origin: 56% 68%;
}

.pixel-chat.show-bubble .help-bubble {
  opacity: 1;
  transform: translateY(0);
}

.pixel-chat.is-open .pixel-bot {
  animation-play-state: paused;
}

.pixel-chat.is-open .chat-launcher {
  cursor: default;
  transform: none;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 100px;
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto auto;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 130px));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(18, 60, 105, 0.25);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 210ms ease, transform 210ms ease;
}

.pixel-chat.is-open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, var(--pixel-navy), var(--pixel-blue));
  color: #fff;
}

.chat-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mini-bot,
.message-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #05051d;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mini-bot img,
.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-header h2 {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.chat-header p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.83rem;
  font-weight: 700;
}

.chat-header p span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #44e185;
  box-shadow: 0 0 0 4px rgba(68, 225, 133, 0.18);
}

.chat-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  cursor: pointer;
  transition: background 170ms ease, transform 170ms ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(4deg);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(238, 244, 249, 0.78), rgba(255, 255, 255, 0.94));
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  animation: messageIn 220ms ease both;
}

.message p {
  max-width: 78%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 17px;
  line-height: 1.48;
  font-size: 0.91rem;
  font-weight: 500;
}

.bot-message p {
  color: var(--text);
  background: #fff;
  border-bottom-left-radius: 6px;
  box-shadow: 0 10px 22px rgba(18, 60, 105, 0.08);
}

.bot-message .message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #05051d;
  border: 1px solid var(--line);
}

.user-message {
  justify-content: flex-end;
}

.user-message p {
  color: #fff;
  background: linear-gradient(135deg, var(--pixel-blue), var(--pixel-navy));
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 20px rgba(25, 118, 210, 0.18);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 4px;
  background: #fff;
}

.quick-actions button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(25, 118, 210, 0.14);
  border-radius: 999px;
  color: var(--pixel-navy);
  background: var(--pixel-blue-soft);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.quick-actions button:hover {
  transform: translateY(-2px);
  background: #dcefff;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  padding: 14px 16px 16px;
  background: #fff;
}

.chat-form input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  color: var(--text);
  background: #f8fbff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.chat-form input:focus {
  border-color: rgba(25, 118, 210, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

.chat-form button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--pixel-blue), var(--pixel-navy));
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(25, 118, 210, 0.22);
  transition: transform 170ms ease;
}

.chat-form button:hover {
  transform: translateY(-2px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes botFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .suite-shell {
    width: min(760px, calc(100% - 32px));
  }

  .suite-header {
    margin-bottom: 42px;
  }

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

  .system-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .suite-shell {
    width: min(100% - 24px, 500px);
    padding-top: 12px;
    padding-bottom: 94px;
  }

  .suite-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    margin-bottom: 34px;
    border-radius: 22px;
  }

  .brand-title {
    white-space: normal;
  }

  .access-note {
    min-height: 36px;
    font-size: 0.84rem;
  }

  .hero h1 {
    margin-top: 18px;
  }

  .system-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .system-card,
  .system-card:last-child {
    grid-column: auto;
    min-height: 300px;
    padding: 22px;
  }

  .system-icon {
    margin-bottom: 22px;
  }

  .pixel-chat {
    right: 14px;
    bottom: 14px;
    width: 76px;
  }

  .chat-launcher {
    width: 76px;
    height: 76px;
  }

  .pixel-bot {
    width: 76px;
    height: 76px;
  }

  .help-bubble {
    right: 62px;
    bottom: 56px;
    max-width: 170px;
  }

  .chat-panel {
    right: -2px;
    bottom: 100px;
    width: calc(100vw - 24px);
    height: min(600px, calc(100vh - 104px));
    border-radius: 22px;
  }

  .message p {
    max-width: 84%;
  }
}

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