:root {
  --bg: #07090d;
  --bg-elev: #10141c;
  --panel: #151a24;
  --ink: #e8edf4;
  --mute: #8b95a5;
  --line: rgba(232, 237, 244, 0.1);
  --accent: #6eb6ff;
  --accent-deep: #3a8de0;
  --sage: #95ec69;
  --display: "Noto Serif SC", "Songti SC", serif;
  --body: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --max: 1120px;
  --nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Atmosphere —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 18% -8%, rgba(110, 182, 255, 0.16), transparent 58%),
    radial-gradient(700px 420px at 92% 12%, rgba(58, 141, 224, 0.12), transparent 55%),
    radial-gradient(600px 360px at 70% 90%, rgba(149, 236, 105, 0.05), transparent 50%),
    linear-gradient(180deg, #07090d 0%, #0b1018 45%, #07090d 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 20s ease-in-out infinite;
}

.g1 {
  width: 280px;
  height: 280px;
  left: 6%;
  top: 22%;
  background: rgba(110, 182, 255, 0.22);
}

.g2 {
  width: 340px;
  height: 340px;
  right: 4%;
  top: 48%;
  background: rgba(58, 141, 224, 0.16);
  animation-delay: -8s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -18px, 0);
  }
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(18px, 4vw, 48px);
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(7, 9, 13, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1a2740, #0f1724);
  border: 1px solid rgba(110, 182, 255, 0.35);
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--mute);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #071018;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 6px 18px rgba(58, 141, 224, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* —— Hero —— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 7vh, 72px) clamp(18px, 4vw, 48px) clamp(48px, 8vh, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 40px);
}

.hero-copy {
  animation: rise 0.85s ease both;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.hero-brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: #f4f7fb;
  text-shadow: 0 10px 40px rgba(110, 182, 255, 0.12);
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 18em;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--mute);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #071018;
  box-shadow: 0 10px 28px rgba(58, 141, 224, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1px solid rgba(232, 237, 244, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(110, 182, 255, 0.55);
  background: rgba(110, 182, 255, 0.08);
}

.hero-visual {
  animation: rise 1s ease 0.12s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Product mockup — dominant visual */
.desk-window {
  display: grid;
  grid-template-columns: 52px 180px minmax(0, 1fr);
  height: min(420px, 58vh);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, #1a2030 0%, #121722 100%);
  border: 1px solid rgba(232, 237, 244, 0.12);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(110, 182, 255, 0.06) inset;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transform-origin: left center;
  animation: window-float 8s ease-in-out infinite;
}

@keyframes window-float {
  0%,
  100% {
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) translateY(0);
  }
  50% {
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) translateY(-6px);
  }
}

.dw-rail {
  background: #0c0f14;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
}

.dw-ava {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(145deg, #4a7ab5, #2a4f7a);
}

.dw-rail i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  display: block;
}

.dw-rail i.on {
  background: rgba(110, 182, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 182, 255, 0.15);
}

.dw-side {
  background: #1c2230;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dw-search {
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  margin-bottom: 4px;
}

.dw-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
}

.dw-item.on {
  background: rgba(110, 182, 255, 0.14);
}

.dw-item b {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(145deg, #7eb8ff, #4a8fd4);
  flex-shrink: 0;
}

.dw-item b.b2 {
  background: linear-gradient(145deg, #f0a878, #d47848);
}

.dw-item b.b3 {
  background: linear-gradient(145deg, #8fd9a8, #4aaa72);
}

.dw-item .t {
  display: block;
  font-size: 11px;
  color: #eef2f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.dw-item .p {
  display: block;
  font-size: 10px;
  color: #7f8898;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  margin-top: 2px;
}

.dw-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(rgba(255, 255, 255, 0.03) 0.7px, transparent 0.7px) 0 0 / 14px 14px,
    #161b26;
}

.dw-bar {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 500;
  color: #eef2f8;
}

.dw-msgs {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.bubble {
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  animation: bubble-in 0.7s ease both;
}

.bubble.peer {
  align-self: flex-start;
  background: #2a3140;
  color: #e8edf4;
}

.bubble.self {
  align-self: flex-end;
  background: var(--sage);
  color: #111;
  animation-delay: 0.15s;
}

.bubble.peer:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dw-composer {
  height: 48px;
  margin: 0 12px 12px;
  border-radius: 10px;
  background: #1e2533;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #6b7382;
  font-size: 12px;
}

.dw-composer em {
  font-style: normal;
  color: #071018;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* —— Sections —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 100px) clamp(18px, 4vw, 48px);
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f2f5fa;
}

.section-lead {
  margin: 12px 0 0;
  max-width: 32em;
  color: var(--mute);
  font-size: 1rem;
}

.feat-rows {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.feat-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 20px 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.feat-row:hover {
  background: linear-gradient(90deg, rgba(110, 182, 255, 0.04), transparent 60%);
}

.feat-row h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f0f4fa;
}

.feat-row p {
  margin: 0;
  color: var(--mute);
  font-size: 0.98rem;
  max-width: 36em;
}

/* Enter */
.enter-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
}

.enter-link {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 20px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.enter-link:hover {
  background: rgba(110, 182, 255, 0.05);
  padding-left: 14px;
}

.enter-label {
  grid-row: 1 / span 2;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.enter-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f2f5fa;
}

.enter-desc {
  color: var(--mute);
  font-size: 0.92rem;
}

.enter-go {
  grid-row: 1 / span 2;
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.enter-link:hover .enter-go {
  transform: translateX(4px);
  opacity: 1;
}

/* Download */
.dl-list {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dl-item {
  padding: 28px 26px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dl-item:hover {
  border-color: rgba(110, 182, 255, 0.4);
  transform: translateY(-2px);
}

.dl-item h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f2f5fa;
}

.dl-ver {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.dl-notes {
  min-height: 2.6em;
  margin: 8px 0 8px;
  color: var(--mute);
  font-size: 0.88rem;
}
.dl-hint {
  margin: 0 0 16px;
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.45;
}

.dl-hist-link {
  margin: 14px 0 0;
  font-size: 0.86rem;
}

.dl-hist-link a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-lead a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* History page */
.hist-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 28px) clamp(18px, 4vw, 48px) 64px;
}

.hist-page-head {
  margin-bottom: 28px;
}

.hist-page-head h1 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #f2f5fa;
}

.hist-back {
  margin: 0;
  font-size: 0.88rem;
}

.hist-back a {
  color: var(--mute);
}

.hist-back a:hover {
  color: var(--accent);
}

.hist-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hist-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--mute);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.hist-tab:hover {
  color: var(--ink);
  border-color: rgba(110, 182, 255, 0.35);
}

.hist-tab.is-active {
  color: #0c1218;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.hist-summary {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 0.88rem;
}

.hist-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hist-list-page {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.hist-item {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.hist-item.is-current {
  border-color: rgba(110, 182, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(110, 182, 255, 0.12);
}

.hist-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hist-item-title {
  min-width: 0;
}

.hist-item-title strong {
  display: inline;
  font-size: 0.98rem;
  font-weight: 600;
  color: #f2f5fa;
}

.hist-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0c1218;
  background: var(--accent);
  vertical-align: middle;
}

.hist-meta {
  margin: 6px 0 0;
  color: var(--mute);
  font-size: 0.78rem;
  line-height: 1.4;
  word-break: break-all;
}

.hist-dl {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.hist-notes {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.hist-notes ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--mute);
  font-size: 0.86rem;
  line-height: 1.55;
}

.hist-notes li + li {
  margin-top: 4px;
}

.hist-notes-empty,
.hist-empty {
  margin: 0;
  color: var(--mute);
  font-size: 0.86rem;
}

.hist-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.hist-page-btn {
  appearance: none;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.hist-page-btn:hover:not(:disabled):not(.is-current) {
  border-color: rgba(110, 182, 255, 0.45);
  color: var(--accent);
}

.hist-page-btn.is-current {
  background: rgba(110, 182, 255, 0.18);
  border-color: rgba(110, 182, 255, 0.5);
  color: var(--accent);
  cursor: default;
}

.hist-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hist-page-dots {
  color: var(--mute);
  padding: 0 2px;
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 48px) 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.88rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #f2f5fa;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: left;
  }

  .hero-lead {
    max-width: none;
  }

  .desk-window {
    transform: none;
    height: 360px;
    animation: none;
  }

  .feat-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .desk-window {
    grid-template-columns: 44px minmax(0, 1fr);
    height: 320px;
  }

  .dw-side {
    display: none;
  }

  .dl-list {
    grid-template-columns: 1fr;
  }

  .enter-link {
    grid-template-columns: 1fr auto;
  }

  .enter-label {
    grid-row: auto;
    margin-bottom: 4px;
  }

  .enter-go {
    grid-row: 1 / span 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
