/* Streamlitr static landing — aligned with apps/web marketing palette */
:root {
  --sl-brand-cyan: #00c8ff;
  --sl-brand-blue: #2962ff;
  --sl-brand-purple: #7c3aed;
  --sl-brand-magenta: #e879f9;
  /* One stack for nav, body, and all headings */
  --sl-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial,
    sans-serif;
}

.sl-landing {
  --sl-lp-bg: #070711;
  --sl-lp-surface: rgba(20, 22, 40, 0.65);
  --sl-lp-border: rgba(0, 200, 255, 0.12);
  --sl-lp-muted: rgba(232, 232, 248, 0.65);
  position: relative;
  min-height: 100vh;
  background: var(--sl-lp-bg);
  color: #e8e8f8;
  overflow-x: hidden;
  font-family: var(--sl-font-sans);
}

/* Headings: override UA defaults so every title matches body / hero type */
.sl-landing h1,
.sl-landing h2,
.sl-landing h3,
.sl-landing h4,
.sl-landing h5,
.sl-landing h6 {
  font-family: var(--sl-font-sans);
}

.sl-landing button,
.sl-landing input,
.sl-landing select,
.sl-landing textarea {
  font-family: inherit;
}

/* Single sticky top bar: full-width opaque chrome (no see-through gap above nav) */
.sl-landing__header-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--sl-lp-bg);
  border-bottom: 1px solid var(--sl-lp-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.sl-landing__audience-switch-wrap {
  display: flex;
  justify-content: center;
  padding: 0.4rem 1rem 0;
  pointer-events: auto;
}
.sl-landing__audience-switch-wrap .sl-landing__audience-switch {
  pointer-events: auto;
}
.sl-landing__audience-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.55rem 1.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: none;
  border-radius: 0 0 14px 14px;
  background: #14141c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sl-landing__audience-switch-sep {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
  user-select: none;
}
.sl-landing__audience-switch-link {
  color: rgba(232, 232, 248, 0.38);
  text-decoration: none;
  transition: color 0.15s ease;
}
.sl-landing__audience-switch-link:hover {
  color: rgba(232, 232, 248, 0.65);
}
.sl-landing__audience-switch-link.is-active {
  color: #f0f0fa;
}

.sl-landing__bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(41, 98, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 58, 237, 0.2), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(0, 200, 255, 0.15), transparent 50%);
}
.sl-landing__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.sl-landing__orb--1 {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  top: 8%;
  right: -8%;
  background: linear-gradient(135deg, var(--sl-brand-cyan), var(--sl-brand-blue));
}
.sl-landing__orb--2 {
  width: min(320px, 60vw);
  height: min(320px, 60vw);
  bottom: 20%;
  left: -5%;
  background: linear-gradient(135deg, var(--sl-brand-purple), var(--sl-brand-magenta));
}
.sl-landing__orb--3 {
  width: min(240px, 50vw);
  height: min(240px, 50vw);
  top: 45%;
  left: 35%;
  background: linear-gradient(135deg, var(--sl-brand-magenta), var(--sl-brand-cyan));
  opacity: 0.35;
}

.sl-landing__nav {
  position: relative;
  z-index: 1;
  border-bottom: none;
  background: var(--sl-lp-bg);
}
.sl-landing__nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sl-landing__brand img {
  display: block;
  height: auto;
  width: min(160px, 42vw);
  max-height: 40px;
  object-fit: contain;
}
.sl-landing__links {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Unified styling: Features, Pricing, and same anchors everywhere */
a.sl-section-link,
button.sl-section-link {
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--sl-lp-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}
a.sl-section-link:hover,
button.sl-section-link:hover {
  color: #fff;
}
.sl-section-link--cta {
  color: #fff !important;
  font-weight: 600;
}
.sl-section-link--cta:hover {
  color: var(--sl-brand-cyan) !important;
}
.sl-section-link--footer {
  font-size: 0.9rem;
}

/* Same look as nav/footer for any in-page jump to Features or Pricing */
a.sl-section-link.sl-section-link--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sl-landing__container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.sl-landing__hero {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
}
.sl-landing__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sl-brand-cyan);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.sl-landing__title {
  margin: 0 0 1.5rem;
  font-weight: 800;
  line-height: 0.95;
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  letter-spacing: -0.02em;
}
.sl-landing__title-line {
  display: block;
}
.sl-landing__title-line--accent {
  background: linear-gradient(90deg, var(--sl-brand-cyan), var(--sl-brand-blue) 40%, var(--sl-brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sl-landing__lead {
  max-width: 36rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--sl-lp-muted);
  margin-bottom: 2rem;
}
.sl-landing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}
.sl-landing__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: #fff !important;
  background: linear-gradient(135deg, var(--sl-brand-blue), var(--sl-brand-purple));
  box-shadow: 0 8px 28px rgba(41, 98, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sl-landing__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
  color: #fff !important;
}
.sl-landing__btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}
.sl-landing__btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
  color: #fff !important;
}
.sl-landing__btn--ghost:hover {
  border-color: var(--sl-brand-cyan);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.25);
}

.sl-landing__section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 200, 255, 0.85);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.sl-landing__section-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.sl-landing__gradient-text {
  background: linear-gradient(90deg, var(--sl-brand-cyan), var(--sl-brand-blue) 45%, var(--sl-brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sl-landing__section-desc {
  max-width: 40rem;
  color: var(--sl-lp-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.sl-landing__stats {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--sl-lp-border);
  position: relative;
  z-index: 1;
}
.sl-landing__stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .sl-landing__stat-grid {
    grid-template-columns: 1fr;
  }
}
.sl-landing__stat-card {
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  background: var(--sl-lp-surface);
  border: 1px solid var(--sl-lp-border);
  backdrop-filter: blur(8px);
}
.sl-landing__stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sl-lp-muted);
  margin-bottom: 0.5rem;
}
.sl-landing__stat-value {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #fff, var(--sl-brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sl-landing__stat-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sl-lp-muted);
  line-height: 1.5;
}
.sl-landing__features {
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 1;
  scroll-margin-top: 6rem;
}
.sl-landing__feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .sl-landing__feature-grid {
    grid-template-columns: 1fr;
  }
}
.sl-landing__feature-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--sl-lp-surface);
  border: 1px solid var(--sl-lp-border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sl-landing__feature-card:hover {
  border-color: rgba(0, 200, 255, 0.35);
  transform: translateY(-3px);
}
.sl-landing__feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--sl-brand-cyan), var(--sl-brand-blue));
  box-shadow: 0 6px 20px rgba(0, 200, 255, 0.25);
}
.sl-landing__feature-card:nth-child(2) .sl-landing__feature-icon {
  background: linear-gradient(135deg, var(--sl-brand-blue), var(--sl-brand-purple));
}
.sl-landing__feature-card:nth-child(3) .sl-landing__feature-icon {
  background: linear-gradient(135deg, var(--sl-brand-purple), var(--sl-brand-magenta));
}
.sl-landing__feature-card:nth-child(4) .sl-landing__feature-icon {
  background: linear-gradient(135deg, var(--sl-brand-magenta), var(--sl-brand-cyan));
}
.sl-landing__feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.sl-landing__feature-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sl-lp-muted);
  line-height: 1.55;
}
.sl-landing__audience {
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--sl-lp-border);
  position: relative;
  z-index: 1;
}
.sl-landing__audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 48rem;
}
.sl-landing__audience-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: rgba(15, 16, 32, 0.6);
  border: 1px solid var(--sl-lp-border);
}
@media (min-width: 640px) {
  .sl-landing__audience-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }
}
.sl-landing__audience-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sl-brand-cyan);
  min-width: 7rem;
}
.sl-landing__audience-item p {
  margin: 0;
  color: var(--sl-lp-muted);
  line-height: 1.55;
}

/* Pricing block — section anchor uses same link class in nav/footer */
.sl-pricing {
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--sl-lp-border);
  position: relative;
  z-index: 1;
  scroll-margin-top: 6rem;
}
.sl-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .sl-pricing__grid {
    grid-template-columns: 1fr;
  }
}
.sl-pricing__card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--sl-lp-surface);
  border: 1px solid var(--sl-lp-border);
}
.sl-pricing__name {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.sl-pricing__price {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--sl-brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sl-pricing__notes {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sl-lp-muted);
  line-height: 1.5;
}
.sl-pricing__lead {
  max-width: 40rem;
  color: var(--sl-lp-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.sl-landing__cta {
  padding: 3rem 0;
  margin: 0 1.25rem 2rem;
  border-radius: 1.25rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(41, 98, 255, 0.35), rgba(124, 58, 237, 0.25));
  border: 1px solid rgba(0, 200, 255, 0.2);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 6rem;
}
.sl-landing__cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.sl-landing__cta-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
}
.sl-landing__cta-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
  line-height: 1.55;
}
.sl-landing__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sl-landing__footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--sl-lp-border);
  padding: 2rem 0;
  background: rgba(5, 5, 14, 0.9);
}
.sl-landing__footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sl-landing__footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sl-lp-muted);
}
.sl-landing__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

/* Alerts */
.sl-alert {
  position: relative;
  z-index: 25;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--sl-lp-border);
}
.sl-alert--success {
  background: rgba(0, 200, 255, 0.12);
  color: #e8f8ff;
}
.sl-alert--error {
  background: rgba(255, 80, 100, 0.15);
  color: #ffe8ec;
}

/* Modal */
.sl-modal[hidden] {
  display: none !important;
}
.sl-modal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
}
.sl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.sl-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 10vh auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1rem;
  background: #12121c;
  border: 1px solid var(--sl-lp-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.sl-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--sl-lp-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.sl-modal__close:hover {
  color: #fff;
}
.sl-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
}
.sl-modal__lead {
  margin: 0 0 1.25rem;
  color: var(--sl-lp-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.sl-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}
.sl-field {
  display: block;
  margin-bottom: 1rem;
}
.sl-field__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
}
.sl-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--sl-lp-border);
  background: rgba(7, 7, 17, 0.8);
  color: #fff;
  font-size: 1rem;
}
.sl-field input:focus {
  outline: none;
  border-color: var(--sl-brand-cyan);
  box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.2);
}
.sl-modal__submit {
  width: 100%;
  margin-top: 0.5rem;
}

body.sl-modal-open {
  overflow: hidden;
}
