:root {
  --bg: #06070c;
  --bg-2: #0b0d14;
  --graphite: #12141c;
  --graphite-2: #191c26;
  --glass: rgba(19, 22, 33, 0.66);
  --glass-strong: rgba(25, 27, 38, 0.82);
  --glass-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(219, 193, 255, 0.28);
  --text: #f7f4ff;
  --muted: rgba(235, 230, 246, 0.72);
  --subtle: rgba(235, 230, 246, 0.52);
  --violet: #a855ff;
  --violet-2: #7c3dff;
  --pink: #ff4fd8;
  --cyan: #5ee7ff;
  --lime: #d7ff59;
  --amber: #ffd36a;
  --danger: #ff657d;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 34px 120px rgba(0, 0, 0, 0.46);
  --inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(8, 9, 15, 0.96), rgba(7, 8, 13, 0.98)),
    var(--bg);
  font-family:
    Manrope,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-backdrop,
.starfield,
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.site-backdrop::before,
.site-backdrop::after,
.starfield::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 16%, rgba(168, 85, 255, 0.08) 16.5% 17%, transparent 17.6% 48%, rgba(94, 231, 255, 0.065) 48.4% 49%, transparent 49.8%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 34%, rgba(168, 85, 255, 0.035));
}

.site-backdrop::after,
.starfield::before {
  opacity: 0.62;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
}

.grid-plane {
  position: absolute;
  left: -15%;
  width: 130%;
  height: 28vh;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: skewY(-7deg);
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
}

.grid-plane--top {
  top: 8vh;
}

.grid-plane--bottom {
  bottom: 6vh;
  transform: skewY(7deg);
  opacity: 0.28;
}

.light-beam {
  position: absolute;
  width: 44vw;
  height: 2px;
  opacity: 0.38;
  filter: blur(0.5px);
  transform: rotate(-18deg);
}

.light-beam--violet {
  top: 21vh;
  right: -10vw;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}

.light-beam--cyan {
  left: -12vw;
  bottom: 24vh;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.cursor-glow {
  z-index: -1;
  opacity: 0.38;
  background:
    linear-gradient(90deg, transparent, rgba(168, 85, 255, 0.055), transparent),
    linear-gradient(120deg, transparent, rgba(94, 231, 255, 0.045), transparent);
  transform: translate3d(calc(var(--cursor-x, 50vw) / 70), calc(var(--cursor-y, 50vh) / 90), 0);
}

.hp-topbar {
  position: sticky;
  top: max(14px, env(safe-area-inset-top));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(13, 15, 22, 0.72);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.36), var(--inner-glow);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.hp-topbar.is-scrolled {
  background: rgba(17, 19, 28, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hp-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  border-radius: 18px;
}

.hp-brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 0 28px rgba(168, 85, 255, 0.36);
}

.hp-brand span {
  display: grid;
  line-height: 1;
}

.hp-brand strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.hp-brand em {
  color: var(--subtle);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
}

.hp-topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hp-topbar__nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease;
}

.hp-topbar__nav a:hover,
.hp-topbar__nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.hp-menu-button {
  display: none;
}

.menu-toggle,
.drawer-close {
  border: 0;
  color: var(--text);
  cursor: pointer;
  background: transparent;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 190ms ease;
}

.drawer-scrim.is-visible {
  opacity: 1;
}

.action-drawer {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 70;
  width: min(390px, calc(100% - 28px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(16, 18, 27, 0.9);
  box-shadow: var(--shadow), var(--inner-glow);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  transform: translateX(calc(100% + 28px));
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.action-drawer.is-open {
  transform: translateX(0);
}

.action-drawer__header,
.legal-header,
.hp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.action-drawer__header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.drawer-close {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.drawer-close span {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.drawer-close span:first-child {
  transform: rotate(45deg);
}

.drawer-close span:last-child {
  transform: rotate(-45deg);
}

.drawer-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.drawer-action {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.drawer-action:hover,
.drawer-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 255, 0.44);
  background: rgba(168, 85, 255, 0.13);
  outline: none;
}

.drawer-action span,
.eyebrow,
.card-index,
.timeline-item span {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.drawer-action strong {
  font-size: 1rem;
}

.hp-shell,
.page-shell,
.hp-docs-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hp-shell {
  display: grid;
  gap: clamp(28px, 7vw, 88px);
  padding: 24px 0 58px;
}

.hp-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 118px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background: #0a0b12;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hp-hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.97) 0%, rgba(7, 8, 13, 0.84) 48%, rgba(7, 8, 13, 0.6) 100%),
    linear-gradient(180deg, rgba(7, 8, 13, 0.05), rgba(7, 8, 13, 0.85)),
    url("assets/branding/harbor-site-background.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0 24%, rgba(168, 85, 255, 0.18) 24.2% 24.8%, transparent 25.1% 62%, rgba(94, 231, 255, 0.13) 62.3% 63%, transparent 63.4%),
    linear-gradient(180deg, transparent 55%, rgba(7, 8, 13, 0.9));
}

.hp-hero__content {
  width: min(760px, 100%);
  padding: clamp(28px, 8vw, 96px);
}

.hp-hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 12vw, 10.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 12px 48px rgba(168, 85, 255, 0.32);
}

.hero-lead {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(2rem, 4.6vw, 4.7rem);
  font-weight: 900;
  line-height: 1.04;
  overflow-wrap: break-word;
}

.hero-text,
.section-heading p,
.pop-card p,
.feature-card p,
.apps-panel p,
.bot-lab p,
.roadmap p,
.hp-final p,
.legal-article p,
.legal-article li,
.hp-docs-page p,
.hp-docs-page li {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.75;
}

.hero-text {
  max-width: 640px;
  margin: 22px 0 0;
}

.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hp-actions--center {
  justify-content: center;
}

.hp-button,
.button,
.download-badge,
.appgallery-badge,
.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 17px;
  color: var(--text);
  font-weight: 900;
  line-height: 1.15;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--inner-glow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hp-button:hover,
.button:hover,
.download-badge:hover,
.appgallery-badge:hover,
.legal-back:hover,
.hp-button:focus-visible,
.button:focus-visible,
.download-badge:focus-visible,
.appgallery-badge:focus-visible,
.legal-back:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.hp-button--primary,
.drawer-action--primary {
  background:
    linear-gradient(135deg, rgba(168, 85, 255, 0.92), rgba(255, 79, 216, 0.78)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(168, 85, 255, 0.26), var(--inner-glow);
}

.hp-button--ghost {
  background: rgba(255, 255, 255, 0.065);
}

.hp-hero__surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.signal-card {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 174px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(18, 21, 31, 0.62);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34), var(--inner-glow);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  animation: driftCard 7s ease-in-out infinite;
}

.signal-card span {
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-card strong,
.signal-card code {
  color: var(--text);
  font-size: 0.96rem;
}

.signal-card code,
.code-window code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.signal-card--feed {
  right: 8%;
  top: 18%;
}

.signal-card--chat {
  right: 15%;
  bottom: 22%;
  animation-delay: -2s;
}

.signal-card--bots {
  right: 31%;
  top: 48%;
  animation-delay: -4s;
}

.hp-section,
.hp-final,
.legal-card,
.hp-docs-hero,
.hp-docs-stats,
.hp-docs-grid,
.hp-docs-split,
.hp-docs-list,
.hp-api-components,
.hp-api-map,
.hp-docs-rules {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    var(--glass);
  box-shadow: var(--shadow), var(--inner-glow);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.hp-section,
.hp-final {
  padding: clamp(24px, 5vw, 58px);
}

.section-heading {
  max-width: 780px;
}

.section-heading--wide {
  max-width: 980px;
}

.section-heading h2,
.apps-panel h2,
.bot-lab h2,
.hp-final h2,
.legal-article h1,
.legal-article h2,
.hp-docs-page h1,
.hp-docs-page h2,
.hp-docs-page h3 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.section-heading h2,
.apps-panel h2,
.bot-lab h2,
.hp-final h2 {
  font-size: clamp(2rem, 4vw, 4.6rem);
}

.pop-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.pop-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pop-card,
.app-card,
.timeline-item {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(168, 85, 255, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--inner-glow);
}

.pop-card::after,
.app-card::after,
.timeline-item::after,
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 231, 255, 0.52), transparent);
  opacity: 0.58;
}

.pop-card h3,
.app-card h3,
.timeline-item h3,
.feature-card h3 {
  margin: 44px 0 12px;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1.08;
}

.feature-stack {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  min-height: 260px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.055);
}

.feature-card__media {
  min-height: 220px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card__body {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 14px 16px 20px 0;
}

.feature-card h3 {
  margin-top: 10px;
  max-width: 720px;
}

.apps-panel,
.bot-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  display: grid;
  align-content: end;
  color: var(--text);
}

.bot-lab {
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
}

.code-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(94, 231, 255, 0.08), transparent 48%),
    rgba(4, 6, 12, 0.78);
  box-shadow: var(--inner-glow);
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.code-window__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-window__bar span:nth-child(1) {
  background: var(--pink);
}

.code-window__bar span:nth-child(2) {
  background: var(--amber);
}

.code-window__bar span:nth-child(3) {
  background: var(--cyan);
}

.code-window__bar strong {
  margin-left: 8px;
  color: var(--subtle);
  font-size: 0.82rem;
}

.code-window pre {
  margin: 0;
  overflow-x: auto;
  padding: clamp(18px, 3vw, 30px);
}

.code-window code {
  color: #e8f7ff;
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  line-height: 1.72;
  white-space: pre;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.hp-final {
  text-align: center;
}

.hp-final > p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hp-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 38px;
  color: var(--muted);
}

.hp-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.hp-footer nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.hp-footer nav a:hover,
.hp-footer nav a:focus-visible {
  color: var(--text);
  outline: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 100;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: var(--text);
  background: rgba(16, 18, 27, 0.9);
  box-shadow: var(--shadow), var(--inner-glow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal,
.reveal-card {
  opacity: 0;
  transform: translateY(46px) scale(0.965);
  filter: blur(8px);
  transition:
    opacity 640ms ease,
    transform 760ms cubic-bezier(0.2, 0.82, 0.2, 1),
    filter 760ms ease;
}

.reveal-card:nth-child(2) {
  transition-delay: 80ms;
}

.reveal-card:nth-child(3) {
  transition-delay: 150ms;
}

.reveal-card:nth-child(4) {
  transition-delay: 210ms;
}

.reveal.is-visible,
.reveal-card.is-visible,
.reveal-card.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 180ms ease;
  will-change: transform;
}

@keyframes driftCard {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

/* Docs and legal compatibility */
.hp-docs-page,
.page-shell--legal {
  padding-bottom: 54px;
}

.page-shell {
  padding: 48px 0;
}

.page-shell--legal {
  max-width: 980px;
}

.legal-header {
  margin-bottom: 18px;
}

.legal-card {
  padding: clamp(22px, 5vw, 54px);
}

.legal-article {
  max-width: 860px;
  margin: 0 auto;
}

.legal-article h1 {
  margin-top: 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.legal-article h1:not(:first-child),
.legal-article h2 {
  margin-top: 38px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.legal-article p,
.legal-article li {
  font-size: 1rem;
}

.legal-article a,
.hp-docs-page a {
  color: var(--cyan);
  font-weight: 800;
}

.hp-docs-shell {
  display: grid;
  gap: 28px;
  padding: 24px 0 54px;
}

.hp-docs-hero,
.hp-docs-stats,
.hp-docs-grid,
.hp-docs-split,
.hp-docs-list,
.hp-api-components,
.hp-api-map,
.hp-docs-rules {
  padding: clamp(22px, 4vw, 44px);
}

.hp-docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
}

.hp-docs-hero h1 {
  font-size: clamp(2.4rem, 5vw, 5.4rem);
}

.hp-docs-hero__robot img {
  width: min(280px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 24px 70px rgba(168, 85, 255, 0.28));
}

.hp-docs-hero__facts,
.hp-docs-stats,
.hp-docs-grid,
.hp-api-map__grid,
.hp-api-components__grid,
.hp-docs-list__grid {
  display: grid;
  gap: 16px;
}

.hp-docs-hero__facts,
.hp-docs-stats,
.hp-docs-grid,
.hp-api-map__grid,
.hp-api-components__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hp-docs-grid article,
.hp-docs-stats article,
.hp-api-map article,
.hp-api-components article,
.hp-docs-list article,
.hp-docs-rules article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--inner-glow);
}

.hp-docs-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 22px;
}

.hp-code-card,
.hp-docs-page pre {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(4, 6, 12, 0.72);
}

.hp-code-card pre,
.hp-docs-page pre {
  margin: 0;
  padding: 20px;
}

.hp-code-card code,
.hp-docs-page code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #eaf9ff;
}

/* Legacy classes from the previous landing */
.hp-page,
.hp-home,
.hp-official-site,
.hp-story-site {
  color: var(--text);
}

.hp-kicker {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hp-section-heading h2,
.hp-webapp-panel h2,
.hp-feature-row h3,
.hp-audience h2,
.hp-security-official h2,
.hp-faq h2 {
  color: var(--text);
}

.hp-section-heading p,
.hp-webapp-panel p,
.hp-feature-row p,
.hp-audience p,
.hp-security-official p,
.hp-faq p {
  color: var(--muted);
}

.shooting-star {
  display: none;
}

@media (max-width: 920px) {
  .hp-topbar__nav {
    display: none;
  }

  .hp-menu-button {
    display: inline-block;
  }

  .hp-hero {
    min-height: auto;
  }

  .signal-card {
    display: none;
  }

  .pop-grid--three,
  .feature-card,
  .apps-panel,
  .bot-lab,
  .timeline,
  .hp-docs-hero,
  .hp-docs-split {
    grid-template-columns: 1fr;
  }

  .feature-card__body {
    padding: 4px 4px 18px;
  }
}

@media (max-width: 640px) {
  .hp-topbar,
  .hp-shell,
  .page-shell,
  .hp-docs-shell,
  .hp-footer {
    width: min(100% - 20px, var(--max));
  }

  .hp-topbar {
    top: max(8px, env(safe-area-inset-top));
    margin-top: 8px;
    border-radius: 20px;
  }

  .hp-shell,
  .hp-docs-shell {
    padding-top: 14px;
  }

  .hp-hero,
  .hp-section,
  .hp-final,
  .legal-card,
  .hp-docs-hero,
  .hp-docs-stats,
  .hp-docs-grid,
  .hp-docs-split,
  .hp-docs-list,
  .hp-api-components,
  .hp-api-map,
  .hp-docs-rules {
    border-radius: 22px;
  }

  .hp-hero__content {
    padding: 26px 20px 34px;
  }

  .hero-lead {
    font-size: clamp(1.85rem, 9.4vw, 3rem);
    line-height: 1.08;
  }

  .legal-article h1 {
    font-size: clamp(1.75rem, 7.2vw, 2.6rem);
    line-height: 1.14;
    overflow-wrap: anywhere;
  }

  .hp-actions,
  .app-cards {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hp-button,
  .button,
  .download-badge,
  .appgallery-badge {
    width: 100%;
  }

  .pop-card,
  .app-card,
  .timeline-item {
    min-height: 210px;
  }

  .feature-card__media {
    min-height: 180px;
  }

  .hp-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hp-footer nav {
    justify-content: flex-start;
  }
}

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

  .reveal,
  .reveal-card {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
