/* ─── pibiCollab landing — modern, mobile-first, WebGL backdrop ───────────── */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

.landing-body {
  font-family: 'Figtree', 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #2c5171 0%, #4682b4 50%, #6a9bc3 100%);
  background-attachment: fixed;
  color: #f5f9fc;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WebGL canvas — fixed full-viewport backdrop */
#canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#threeCanvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* Overlay shell — relative above canvas */
.landing-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ─── Header ──────────────────────────────────────────────────────────── */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(20, 40, 64, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.landing-brand img {
  display: block;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.55));
}
.landing-brand .brand-mark {
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.55);
}
.landing-section-logo {
  display: block;
  width: clamp(160px, 28vw, 280px);
  height: auto;
  margin: 0 auto 16px;
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 36px rgba(255, 255, 255, 0.6));
}
.title-inline-logo {
  display: inline-block;
  vertical-align: middle;
  height: 1.2em;
  width: auto;
  margin: 0 0.25em;
  transform: translateY(-0.05em);
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.55));
}
.section-title .title-inline-logo {
  height: 2.4em;
  margin: 0 0.35em;
  transform: translateY(-0.1em);
}
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.55);
}
.brand-mark .bm-pibi { color: #4682b4; font-weight: 600; }
.brand-mark .bm-collab { color: #fba100; font-weight: 700; }

/* Mobile-first nav: collapsed by default */
.landing-nav { position: relative; }
.landing-nav-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #fff;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
}
.landing-nav-items {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(20, 40, 64, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.landing-nav-items.is-open { display: flex; }
.landing-nav-items a:not(.landing-cta-btn) {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 4px;
}
.landing-nav-items a:not(.landing-cta-btn):hover { color: #fff; }

.landing-lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  align-self: flex-start;
}
.landing-lang button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.landing-lang button.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.landing-cta-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 28px;
  border-radius: 999px;
  background: #0e2438;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.landing-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); background: #1a3a55; }
.landing-cta-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  font-weight: 600;
}
.landing-cta-ghost:hover { background: rgba(255, 255, 255, 0.24); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }

/* ─── Main + sections ────────────────────────────────────────────────── */
.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.landing-hero {
  position: relative;
  min-height: calc(100vh - 200px);
  min-height: calc(100dvh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 20px 64px;
  gap: 18px;
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(8, 18, 30, 0.55) 0%, rgba(8, 18, 30, 0.20) 55%, rgba(8, 18, 30, 0) 100%);
  z-index: -1;
}
.landing-eyebrow {
  font-family: 'Figtree', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.landing-wordmark {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 16vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  color: #fff;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.25);
}
.wm-pibi { font-weight: 600; opacity: 0.78; }
.wm-collab { font-weight: 700; }

.landing-hero-logo {
  display: block;
  width: clamp(280px, 60vw, 720px);
  height: auto;
  margin: 0 auto;
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 36px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 64px rgba(255, 255, 255, 0.4));
}

.landing-hero-headline {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 18px auto 8px;
  max-width: 22ch;
}
.landing-hero-sub {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  line-height: 1.45;
  max-width: 50ch;
  margin: 6px auto 0;
  color: rgba(255, 255, 255, 0.86);
}
.features-sub {
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: -22px auto 28px;
  max-width: 60ch;
  text-align: center;
}
.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}
.cta-btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cta-primary {
  background: #fff;
  color: #2c5171;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3); }
.cta-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cta-ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* ─── Features ───────────────────────────────────────────────────────── */
.landing-features {
  padding: 64px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.section-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-align: center;
  color: #fff;
}
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.feat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 20px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.feat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1;
}
.feat-badge-personal {
  background: rgba(79, 209, 122, 0.22);
  color: #aef3c0;
  border: 1px solid rgba(79, 209, 122, 0.45);
}
.feat-badge-shared {
  background: rgba(255, 140, 60, 0.22);
  color: #ffd4b3;
  border: 1px solid rgba(255, 140, 60, 0.5);
}
.feat-badge-assignable {
  background: rgba(180, 130, 255, 0.22);
  color: #d9bbff;
  border: 1px solid rgba(180, 130, 255, 0.5);
}
.feat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.feat-icon {
  color: #cfe5f6;
  margin-bottom: 8px;
  display: block;
}
.feat-card h3 {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  margin: 0 0 4px;
  line-height: 1;
  color: #fff;
}
.feat-card p {
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

/* ─── Tour carousel ──────────────────────────────────────────────────── */
.landing-tour {
  padding: 64px 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.tour-sub {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin: -18px auto 28px;
  max-width: 56ch;
}
.tour-frame {
  position: relative;
}
.tour-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(20, 40, 64, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.tour-arrow:hover { background: rgba(20, 40, 64, 0.9); transform: translateY(-50%) scale(1.06); }
.tour-prev { left: 12px; }
.tour-next { right: 12px; }
/* Breakout to full viewport width — slides spill past .landing-tour padding */
.tour-viewport {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0 14px;
  -webkit-overflow-scrolling: touch;
}
.tour-viewport::-webkit-scrollbar { display: none; }
.tour-track {
  display: flex;
  gap: 14px;
  padding: 0 8vw;
  width: max-content;
}
.tour-slide {
  flex: 0 0 clamp(280px, 80vw, 360px);
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: left;
  box-sizing: border-box;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.4s ease;
  opacity: 0.7;
  transform: scale(0.96);
}
.tour-slide.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.tour-mock {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(20, 40, 64, 0.55);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35),
              inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.tour-mock .mock-svg,
.tour-mock .mock-img {
  width: 100%;
  height: auto;
  display: block;
}
.tour-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 6px 8px;
}
.tour-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: 'Figtree', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent, #4fc3f7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--accent, #4fc3f7);
}
.tour-info h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 4px 0 0;
  color: #fff;
}
.tour-info p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
.tour-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}
.tour-dot.active {
  background: #fff;
  width: 22px;
}

/* ─── Mini-cases / Use cases ─────────────────────────────────────────── */
.landing-usecases {
  padding: 96px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.usecases-sub {
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  margin: 0 auto 40px;
  max-width: 640px;
}
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
.usecase-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.usecase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.usecase-header h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.usecase-tag {
  display: inline-block;
  background: rgba(251,161,0,.18);
  color: #fba100;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.usecase-body { display: flex; flex-direction: column; gap: 14px; }
.usecase-quote {
  font-style: italic;
  color: rgba(255,255,255,.88);
  background: rgba(70,130,180,.16);
  border-left: 3px solid #6a9bc3;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.usecase-body h4 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.usecase-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.usecase-flow li {
  color: rgba(255,255,255,.82);
  font-size: 0.92rem;
  line-height: 1.45;
  padding-left: 12px;
  position: relative;
}
.usecase-flow li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #fba100;
  font-weight: 700;
}
.usecase-flow b { color: #fff; font-weight: 600; }
.usecase-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.usecase-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 80px;
}
.usecase-stat b {
  color: #fba100;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.usecase-stat span {
  color: rgba(255,255,255,.7);
  font-size: 0.78rem;
  margin-top: 2px;
}
.usecase-modules {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  margin: 0;
  line-height: 1.5;
}
.usecase-modules b { color: rgba(255,255,255,.9); font-weight: 600; }
@media (max-width: 720px) {
  .landing-usecases { padding: 64px 16px 40px; }
  .usecase-card { padding: 22px; }
}

/* ─── App store badges — coming soon ─────────────────────────────────── */
.landing-apps {
  padding: 56px 20px 8px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.apps-sub {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: -16px auto 24px;
  max-width: 56ch;
}
.apps-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.app-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  background: #0e2438;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  font-family: 'Figtree', sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
a.app-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.app-badge[disabled] { pointer-events: none; cursor: not-allowed; opacity: 0.7; }
.app-badge svg { flex: 0 0 auto; }
.app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.app-badge-small {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.app-badge-big {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.app-badge-soon {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ffd54f;
  color: #0a1c2a;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ─── HAL tooltip — 2001 Space Odyssey monolith terminal ────────────── */
#nodeTooltip {
  position: fixed;
  z-index: 20;
  width: min(360px, calc(100vw - 32px));
  max-height: min(440px, calc(100vh - 80px));
  background: linear-gradient(180deg, rgba(2, 6, 12, 0.96), rgba(8, 14, 22, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #cfe5f6;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85) translateY(8px);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--hal-accent, #4fc3f7) inset,
    0 0 30px var(--hal-accent, #4fc3f7);
}
#nodeTooltip.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
#nodeTooltip .hal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--hal-accent, #4fc3f7);
  text-transform: uppercase;
}
#nodeTooltip .hal-logo {
  height: 120px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(79, 195, 247, 0.5));
}
#nodeTooltip .hal-eye {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--hal-accent, #4fc3f7);
  box-shadow: 0 0 12px var(--hal-accent, #4fc3f7);
  animation: hal-blink 2s infinite;
}
@keyframes hal-blink {
  0%, 60%, 100% { opacity: 1; }
  70% { opacity: 0.3; }
  80% { opacity: 1; }
}
#nodeTooltip .hal-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.15em;
  padding: 2px 6px;
}
#nodeTooltip .hal-close:hover { color: #fff; }
#nodeTooltip .hal-mock {
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
}
#nodeTooltip .hal-mock svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  filter: drop-shadow(0 0 8px var(--hal-accent, #4fc3f7));
}
#nodeTooltip .hal-body {
  padding: 12px 14px 14px;
  position: relative;
}
#nodeTooltip .hal-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 2px,
    rgba(255, 255, 255, 0.025) 3px
  );
  pointer-events: none;
}
#nodeTooltip .hal-id {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  margin-bottom: 4px;
}
#nodeTooltip .hal-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  text-transform: uppercase;
}
#nodeTooltip .hal-desc {
  color: rgba(207, 229, 246, 0.85);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
#nodeTooltip .hal-prompt {
  color: var(--hal-accent, #4fc3f7);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#nodeTooltip .hal-prompt::after {
  content: '_';
  display: inline-block;
  animation: hal-cursor 1s infinite steps(1);
}
@keyframes hal-cursor {
  50% { opacity: 0; }
}

/* ─── Pricing ────────────────────────────────────────────────────────── */
.landing-pricing {
  padding: 72px 20px 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.pricing-sub {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: -16px auto 32px;
  max-width: 64ch;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 28px 24px 24px;
  backdrop-filter: blur(14px);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}
.pricing-card-featured {
  background: linear-gradient(160deg, rgba(255, 140, 60, 0.18) 0%, rgba(255, 255, 255, 0.08) 60%);
  border-color: rgba(255, 140, 60, 0.55);
  box-shadow: 0 12px 32px rgba(255, 140, 60, 0.18);
}
.pricing-card-featured:hover {
  box-shadow: 0 24px 56px rgba(255, 140, 60, 0.28);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff8c3c;
  color: #1a1a1a;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-plan {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8c3c;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 6px;
  flex-wrap: wrap;
}
.pricing-amount {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: #fff;
}
.pricing-unit {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}
.pricing-desc {
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
}
.pricing-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pricing-feats li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}
.pricing-feats li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #4fd97a;
  font-weight: 700;
}
.pricing-feats li.dim {
  color: rgba(255, 255, 255, 0.4);
}
.pricing-feats li.dim::before {
  content: "\2014";
  color: rgba(255, 255, 255, 0.35);
}
.pricing-feats li.pricing-credits {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 10px 8px 30px;
  margin: 4px 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
}
.pricing-feats li.pricing-credits::before {
  left: 10px;
  top: 8px;
  color: #ffb86c;
  content: "\26A1";
}
.pricing-feats li.pricing-highlight {
  color: #fff;
  font-weight: 600;
}
.pricing-feats li.pricing-highlight::before {
  content: "\2728";
  color: #ffb86c;
}
.pricing-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
  justify-content: center;
}
.pricing-annual {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ─── Privacy ────────────────────────────────────────────────────────── */
.landing-privacy {
  padding: 56px 20px 80px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.privacy-lead {
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 auto 22px;
  max-width: 56ch;
}
.privacy-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  text-align: left;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.privacy-bullets li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
  position: relative;
  padding-left: 36px;
}
.privacy-bullets li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cfe5f6;
  box-shadow: 0 0 12px rgba(207, 229, 246, 0.6);
}
.privacy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.privacy-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
}
.privacy-links a:hover { color: #fff; border-bottom-color: #fff; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.landing-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(20, 40, 64, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.landing-footer a,
.landing-footer .footer-link-btn {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.landing-footer a:hover,
.landing-footer .footer-link-btn:hover { color: #fff; }
.footer-sep { color: rgba(255, 255, 255, 0.3); }

/* ─── Tablet+ (≥768px) ───────────────────────────────────────────────── */
@media (min-width: 768px) {
  .landing-header { padding: 16px 32px; }
  .landing-brand { font-size: 1.1rem; }

  .landing-nav-toggle { display: none; }
  .landing-nav-items {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    background: transparent;
    border: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    min-width: 0;
  }
  .landing-nav-items a:not(.landing-cta-btn) {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
  }

  .landing-hero { padding: 80px 32px 96px; gap: 22px; }
  .landing-hero-sub { font-size: 1.2rem; }

  .landing-features { padding: 96px 32px 56px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .landing-tour { padding: 80px 32px 64px; }
  .tour-slide {
    flex: 0 0 clamp(320px, 28vw, 420px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .tour-info { padding: 8px 6px 12px; justify-content: center; }
  .tour-info h3 { font-size: 1.3rem; }
  .tour-info p { font-size: 0.95rem; }
  .tour-track { padding: 0 calc(50vw - clamp(320px, 28vw, 420px) / 2 - 8px); }

  .landing-privacy { padding: 80px 32px 96px; }
}

/* ─── Desktop (≥1024px) ──────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .landing-hero { padding: 100px 32px 120px; }
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .feat-card, .cta-btn, .landing-cta-btn { transition: none; }
}

/* ─── Cards: unified compact line-height ─────────────────────────────── */
.feat-card, .feat-card *,
.usecase-card, .usecase-card *,
.pricing-card, .pricing-card * {
  line-height: 1.1 !important;
}
