/* Shared NextSay AI marketing theme. Keep aligned with the homepage. */
:root {
  color-scheme: light;
  --nextsay-bg: #f7f9fd;
  --nextsay-panel: #ffffff;
  --nextsay-line: #c8d5ff;
  --nextsay-text: #0f172a;
  --nextsay-muted: #66748a;
  --nextsay-primary: #3857ff;
  --nextsay-accent: #09b8d8;
  --nextsay-soft: #eef3ff;
  --nextsay-shadow: 0 18px 48px rgba(35, 53, 94, 0.07);
  --nextsay-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--nextsay-bg);
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8faff 0%, #f4f7fc 100%) !important;
  color: var(--nextsay-text);
  font-family: var(--nextsay-font) !important;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.topbar {
  position: sticky !important;
  top: 0;
  z-index: 20 !important;
  background: rgba(248, 250, 255, 0.96) !important;
  color: var(--nextsay-text) !important;
  border-bottom: 1px solid rgba(200, 213, 255, 0.95) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar .topbar-inner {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar .brand {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: var(--nextsay-text) !important;
  text-decoration: none !important;
  font-size: 19px;
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1;
}

.topbar .brand .brand-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 24px rgba(56, 87, 255, 0.18);
}

.topbar .brand img.brand-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px;
}

.topbar .brand .brand-text {
  color: var(--nextsay-text);
  white-space: nowrap;
}

.topbar .nav,
.topbar .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: var(--nextsay-muted) !important;
  font-size: 13.5px;
  font-weight: 700;
  min-width: 0;
}

.topbar .nav a,
.topbar .nav-links a {
  color: var(--nextsay-muted) !important;
  opacity: 1 !important;
  text-decoration: none;
}

.topbar .nav a:hover,
.topbar .nav-links a:hover {
  color: var(--nextsay-primary) !important;
}

.topbar .nav .nav-cta,
.topbar .nav-links .nav-cta,
.topbar .nav .button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0 !important;
  border-radius: 999px;
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    var(--nextsay-primary),
    var(--nextsay-accent)
  ) !important;
  box-shadow: 0 12px 28px rgba(56, 87, 255, 0.18);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .topbar .topbar-inner {
    width: min(1180px, calc(100% - 28px)) !important;
    gap: 12px;
  }

  .topbar .brand {
    gap: 8px;
    font-size: 18px;
  }

  .topbar .brand .brand-icon,
  .topbar .brand img.brand-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .topbar .nav,
  .topbar .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .topbar .nav .nav-cta,
  .topbar .nav-links .nav-cta,
  .topbar .nav .button.primary {
    min-height: 38px;
    padding: 0 14px;
  }
}

@media (max-width: 820px) {
  .topbar .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .topbar .nav,
  .topbar .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .topbar .nav::-webkit-scrollbar,
  .topbar .nav-links::-webkit-scrollbar {
    display: none;
  }

  .topbar .nav a,
  .topbar .nav-links a {
    flex: 0 0 auto;
  }

  .topbar .nav a[href="/app#/login"],
  .topbar .nav-links a[href="/app#/login"] {
    order: -2;
  }

  .topbar .nav .nav-cta,
  .topbar .nav-links .nav-cta {
    order: -1;
  }
}
