:root {
  --blue: #0070c0;
  --blue-bright: #3b9de0;
  --blue-soft: #dcecfb;
  --ink-dark: #090d16;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.14);
  --glass-soft: rgba(255, 255, 255, 0.09);
  --glass-line: rgba(255, 255, 255, 0.24);
  font-family:
    Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 320px;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--text);
  background: #11244c;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  width: 100%;
  height: 76px;
  padding: 0 42px;
  background: linear-gradient(
    180deg,
    rgba(5, 13, 30, 0.58),
    rgba(5, 13, 30, 0.16) 70%,
    transparent
  );
  backdrop-filter: blur(12px);
}

.header-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-self: start;
}

.header-brand img {
  display: block;
  width: 54px;
  height: auto;
}

.header-brand span {
  font-size: 18px;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  justify-self: center;
}

.nav-link,
.nav-menu summary {
  position: relative;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 450;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-menu summary:hover,
.nav-menu[open] summary {
  color: #ffffff;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.nav-menu[open] summary svg,
.nav-menu:hover summary svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  display: grid;
  width: 190px;
  padding: 8px;
  visibility: hidden;
  background: rgba(10, 22, 49, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate(-50%, -6px);
  backdrop-filter: blur(22px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.nav-menu[open] .dropdown-menu,
.nav-menu:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  border-radius: 9px;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.employee-menu .dropdown-menu {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(680px, calc(100vw - 64px));
}

.employee-menu .dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  line-height: 1.35;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.header-search {
  display: flex;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  transition:
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 160ms ease,
    border-color 160ms ease;
}

.header-search:hover,
.header-search:focus-within {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.3);
}

.header-search.is-open {
  width: min(285px, 30vw);
  padding-left: 13px;
}

.header-search-input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  padding: 0;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  background: transparent;
  border: 0;
  outline: 0;
  opacity: 0;
  transition: opacity 150ms ease 70ms;
}

.header-search.is-open .header-search-input {
  width: auto;
  padding-right: 8px;
  opacity: 1;
}

.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.header-search-input::-webkit-search-cancel-button {
  display: none;
}

.header-search-toggle {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  place-items: center;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.header-search-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.header-search-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 1px;
}

.header-search-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-profile {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  max-width: 210px;
  padding: 4px 12px 4px 4px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.header-profile-menu {
  position: relative;
}

.header-profile:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.profile-dropdown {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  width: 150px;
  padding: 7px;
  visibility: hidden;
  background: rgba(12, 24, 51, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-6px);
  backdrop-filter: blur(22px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.header-profile-menu:hover .profile-dropdown,
.header-profile-menu:focus-within .profile-dropdown,
.header-profile-menu.is-open .profile-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.profile-logout-button {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.profile-logout-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.18);
}

.profile-logout-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.profile-logout-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  background: linear-gradient(135deg, #0070c0, #7357d9);
  border-radius: 50%;
  place-items: center;
}

.header-profile-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-link,
.signup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 11px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.account-link {
  min-width: 68px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.84);
}

.account-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.signup-button {
  min-width: 88px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 112, 192, 0.26);
}

.signup-button:hover {
  background: #0086df;
  transform: translateY(-1px);
}

.account-link:focus-visible,
.signup-button:focus-visible,
.header-profile:focus-visible,
.nav-link:focus-visible,
.nav-menu summary:focus-visible,
.hero-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 3px;
}

.hero-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #13264f;
}

.hero-visual,
.hero-visual img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual img {
  display: block;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.88) contrast(1.03);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(
      115deg,
      rgba(4, 25, 53, 0.86) 0%,
      rgba(7, 40, 72, 0.68) 43%,
      rgba(49, 30, 83, 0.76) 100%
    ),
    linear-gradient(180deg, rgba(3, 10, 26, 0.68) 0%, transparent 43%);
}

.hero-copy {
  position: absolute;
  z-index: 4;
  top: 17%;
  left: 50%;
  width: min(820px, 88vw);
  text-align: center;
  transform: translateX(-50%);
}

.hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 68px;
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.hero-copy h1 span {
  white-space: nowrap;
}

.hero-copy p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 450;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  height: 54px;
  margin-top: 30px;
  padding: 0 22px 0 26px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
  background: rgba(5, 8, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  transition:
    background-color 170ms ease,
    transform 170ms ease,
    box-shadow 170ms ease;
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 170ms ease;
}

.hero-cta:hover {
  background: #121722;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

.glass-panel {
  position: absolute;
  z-index: 3;
  color: #ffffff;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(24px) saturate(132%);
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.31);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.ai-panel {
  top: 49%;
  left: 4.2vw;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  width: min(25vw, 360px);
  min-width: 300px;
  padding: 16px;
}

.panel-toolrail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 12px;
  margin-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.tool-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 0;
  border-radius: 9px;
  place-items: center;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.tool-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.tool-button[aria-pressed="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.tool-button:focus-visible,
.message-tab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 2px;
}

.tool-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.ai-mark {
  display: grid;
  width: 30px;
  height: 30px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 750;
  background: linear-gradient(135deg, #27a2df, #7767e8);
  border-radius: 9px;
  place-items: center;
}

.panel-heading strong,
.message-heading strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.panel-heading small,
.message-heading small {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.panel-heading small::before {
  width: 5px;
  height: 5px;
  content: "";
  background: #7be0b3;
  border-radius: 50%;
}

.chat-stream {
  display: grid;
  gap: 8px;
}

.chat-bubble {
  width: fit-content;
  max-width: 92%;
  margin: 0;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10.5px;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px 10px 10px 4px;
}

.chat-bubble.user {
  justify-self: end;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(45, 128, 207, 0.28);
  border-radius: 10px 10px 4px 10px;
}

.message-panel {
  top: 52%;
  right: 4.2vw;
  width: min(23vw, 350px);
  min-width: 286px;
  padding: 17px;
}

.message-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.message-count {
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
}

.message-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

.message-tab {
  margin: 0;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.54);
  font: inherit;
  font-size: 9.5px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
}

.message-tab[aria-selected="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.message-list {
  display: grid;
  gap: 7px;
}

.message-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
}

.message-icon {
  display: grid;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  place-items: center;
}

.message-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-copy {
  min-width: 0;
}

.message-copy strong {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-copy span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-time {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8.5px;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 28px;
  }

  .primary-nav {
    display: none;
  }

  .hero-copy h1 {
    font-size: 60px;
  }

  .ai-panel {
    left: 2.5vw;
  }

  .message-panel {
    right: 2.5vw;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .header-brand img {
    width: 46px;
  }

  .header-brand span {
    font-size: 16px;
  }

  .hero-copy {
    top: 16%;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .hero-copy h1 span {
    white-space: normal;
  }

  .hero-copy p {
    margin-top: 15px;
    font-size: 16px;
  }

  .hero-cta {
    height: 50px;
    margin-top: 24px;
  }

  .glass-panel {
    opacity: 0.52;
    pointer-events: none;
    transform: scale(0.86);
  }

  .ai-panel {
    top: 58%;
    left: -42px;
    transform-origin: left center;
  }

  .message-panel {
    top: 61%;
    right: -42px;
    transform-origin: right center;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 0 14px;
  }

  .header-brand {
    gap: 7px;
  }

  .header-brand img {
    width: 40px;
  }

  .header-brand span {
    font-size: 15px;
  }

  .header-actions {
    gap: 3px;
  }

  .header-search {
    height: 36px;
  }

  .header-search-toggle {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .header-actions.is-search-open .header-profile-name {
    display: none;
  }

  .header-actions.is-search-open .header-profile {
    max-width: 40px;
    padding-right: 3px;
  }

  .header-search.is-open {
    width: min(185px, calc(100vw - 205px));
  }

  .header-profile {
    max-width: 132px;
    padding-right: 8px;
  }

  .header-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .header-profile-name {
    font-size: 12px;
  }

  .account-link,
  .signup-button {
    height: 36px;
    font-size: 12px;
    border-radius: 9px;
  }

  .account-link {
    min-width: 54px;
    padding: 0 8px;
  }

  .signup-button {
    min-width: 66px;
    padding: 0 12px;
  }

  .hero-copy {
    top: 19%;
    width: 92vw;
  }

  .hero-copy h1 {
    font-size: 39px;
    line-height: 1.18;
  }

  .hero-copy p {
    margin-top: 14px;
    font-size: 14px;
  }

  .hero-cta {
    gap: 10px;
    min-width: 146px;
    height: 48px;
    margin-top: 22px;
    font-size: 14px;
    border-radius: 12px;
  }

  .glass-panel {
    display: none;
  }
}

@media (max-height: 700px) and (min-width: 821px) {
  .site-header {
    height: 68px;
  }

  .hero-copy {
    top: 15%;
  }

  .hero-copy h1 {
    font-size: 54px;
  }

  .hero-copy p {
    margin-top: 13px;
    font-size: 15px;
  }

  .hero-cta {
    height: 48px;
    margin-top: 20px;
  }

  .glass-panel {
    transform: scale(0.86);
  }

  .ai-panel {
    top: 55%;
    transform-origin: left center;
  }

  .message-panel {
    top: 58%;
    transform-origin: right center;
  }
}

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