:root {
  color-scheme: light;
  --landing-bg: #f8fafc;
  --landing-surface: #ffffff;
  --landing-ink: #0f172a;
  --landing-muted: #64748b;
  --landing-border: #e2e8f0;
  --landing-blue: #0ea5e9;
  --landing-teal: #14b8a6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.hs-landing {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--landing-ink);
  background:
    radial-gradient(ellipse at 78% 16%, rgba(14, 165, 233, 0.1), transparent 32rem),
    radial-gradient(ellipse at 8% 52%, rgba(20, 184, 166, 0.06), transparent 28rem),
    var(--landing-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.hs-landing[data-theme="histosuite-dark"] {
  color-scheme: dark;
  --landing-bg: #020617;
  --landing-surface: #0f172a;
  --landing-ink: #f1f5f9;
  --landing-muted: #94a3b8;
  --landing-border: #1e293b;
  --landing-blue: #38bdf8;
  --landing-teal: #2dd4bf;
  background:
    radial-gradient(ellipse at 78% 16%, rgba(14, 165, 233, 0.16), transparent 34rem),
    radial-gradient(ellipse at 8% 52%, rgba(20, 184, 166, 0.1), transparent 30rem),
    var(--landing-bg);
}

.hs-landing .bg-animation {
  display: none;
}

.hs-landing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hs-landing-header {
  width: min(100% - 3rem, 1200px);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.hs-brand,
.hs-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.hs-brand-icon {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 12px rgba(14, 165, 233, 0.16));
}

.hs-brand-copy {
  display: grid;
  gap: 3px;
}

.hs-brand-title {
  color: var(--landing-ink);
  font-size: 17px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.hs-brand-subtitle {
  color: var(--landing-muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hs-landing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.hs-landing .hs-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hs-landing .hs-btn:hover {
  transform: translateY(-1px);
}

.hs-landing .hs-btn-primary {
  color: #ffffff;
  background: linear-gradient(115deg, #0284c7, #0f9f9a);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.18);
}

.hs-landing .hs-btn-primary:hover {
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.26);
}

.hs-landing .hs-btn-secondary {
  color: #334155;
  background: rgba(255, 255, 255, 0.82);
  border-color: #cbd5e1;
}

.hs-landing .hs-btn-secondary:hover {
  color: #0369a1;
  background: #ffffff;
  border-color: #7dd3fc;
}

.hs-landing .hs-theme-toggle {
  width: 42px;
  min-width: 42px;
  padding: 0;
  color: #475569;
  font-size: 15px;
}

.hs-landing .hs-theme-toggle:hover {
  color: #0369a1;
}

.hs-landing .hs-hero {
  width: min(100% - 3rem, 1200px);
  flex: 1;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 100px) 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
}

.hs-hero-copy {
  max-width: 570px;
}

.hs-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hs-hero-eyebrow::before {
  width: 24px;
  height: 1px;
  content: "";
  background: var(--landing-teal);
}

.hs-hero-title {
  margin: 0;
  color: var(--landing-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.06;
  font-weight: 750;
  letter-spacing: -0.065em;
}

.hs-hero-title span {
  color: #0284c7;
}

.hs-hero-description {
  max-width: 510px;
  margin: 22px 0 28px;
  color: #475569;
  font-size: 16px;
  line-height: 1.75;
}

.hs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.hs-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--landing-border);
}

.hs-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.hs-hero-note i {
  color: #059669;
  font-size: 13px;
}

.hs-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hs-feature {
  min-height: 192px;
  padding: 23px 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hs-feature:hover {
  transform: translateY(-3px);
  border-color: #bae6fd;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.075);
}

.hs-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  color: #0284c7;
  background: #f0f9ff;
  font-size: 17px;
}

.hs-feature:nth-child(2) .hs-feature-icon {
  color: #0f766e;
  border-color: #99f6e4;
  background: #f0fdfa;
}

.hs-feature:nth-child(3) .hs-feature-icon {
  color: #b45309;
  border-color: #fde68a;
  background: #fffbeb;
}

.hs-feature:nth-child(4) .hs-feature-icon {
  color: #4f46e5;
  border-color: #c7d2fe;
  background: #eef2ff;
}

.hs-feature h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hs-feature p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.hs-landing-footer {
  border-top: 1px solid var(--landing-border);
  background: rgba(255, 255, 255, 0.58);
}

.hs-footer-inner {
  width: min(100% - 3rem, 1200px);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hs-footer-brand .hs-brand-icon {
  width: 34px;
  height: 34px;
  filter: none;
}

.hs-footer-brand .hs-brand-title {
  font-size: 13px;
}

.hs-footer-brand .hs-brand-subtitle {
  font-size: 9px;
}

.hs-footer-links {
  display: flex;
  gap: 6px;
}

.hs-footer-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.hs-footer-links a:hover {
  color: #0369a1;
  background: #f0f9ff;
}

.hs-footer-copy {
  color: #64748b;
  font-size: 11px;
  text-align: right;
}

.hs-footer-copy strong {
  color: #334155;
  font-weight: 700;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-landing-header {
  border-bottom-color: rgba(51, 65, 85, 0.72);
}

body.hs-landing[data-theme="histosuite-dark"] .hs-brand-title,
body.hs-landing[data-theme="histosuite-dark"] .hs-feature h2 {
  color: #f1f5f9;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-brand-subtitle,
body.hs-landing[data-theme="histosuite-dark"] .hs-footer-brand .hs-brand-subtitle {
  color: #94a3b8;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-btn-secondary {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
  border-color: #334155;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-btn-secondary:hover {
  color: #7dd3fc;
  background: #0f172a;
  border-color: #0ea5e9;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-hero-eyebrow {
  color: #7dd3fc;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-hero-title span {
  color: #38bdf8;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-hero-description,
body.hs-landing[data-theme="histosuite-dark"] .hs-hero-note {
  color: #cbd5e1;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-hero-notes {
  border-top-color: #1e293b;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-feature {
  background: rgba(15, 23, 42, 0.88);
  border-color: #263449;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

body.hs-landing[data-theme="histosuite-dark"] .hs-feature:hover {
  border-color: #25617b;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

body.hs-landing[data-theme="histosuite-dark"] .hs-feature-icon {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.26);
}

body.hs-landing[data-theme="histosuite-dark"] .hs-feature:nth-child(2) .hs-feature-icon {
  color: #5eead4;
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(45, 212, 191, 0.25);
}

body.hs-landing[data-theme="histosuite-dark"] .hs-feature:nth-child(3) .hs-feature-icon {
  color: #fcd34d;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(251, 191, 36, 0.25);
}

body.hs-landing[data-theme="histosuite-dark"] .hs-feature:nth-child(4) .hs-feature-icon {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.13);
  border-color: rgba(129, 140, 248, 0.26);
}

body.hs-landing[data-theme="histosuite-dark"] .hs-feature p {
  color: #94a3b8;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-landing-footer {
  background: rgba(2, 6, 23, 0.7);
  border-top-color: #1e293b;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-footer-links a {
  color: #94a3b8;
}

body.hs-landing[data-theme="histosuite-dark"] .hs-footer-links a:hover {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
}

body.hs-landing[data-theme="histosuite-dark"] .hs-footer-copy,
body.hs-landing[data-theme="histosuite-dark"] .hs-footer-copy strong {
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .hs-landing-header,
  .hs-hero,
  .hs-footer-inner {
    width: min(100% - 2.5rem, 720px);
  }

  .hs-landing .hs-hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 64px 0;
  }

  .hs-hero-copy {
    max-width: 680px;
  }
}

@media (max-width: 600px) {
  .hs-landing-header {
    width: calc(100% - 32px);
    min-height: 72px;
    gap: 12px;
  }

  .hs-brand-icon {
    width: 40px;
    height: 40px;
  }

  .hs-brand-title {
    font-size: 15px;
  }

  .hs-brand-subtitle {
    font-size: 9px;
  }

  .hs-landing-actions {
    gap: 7px;
  }

  .hs-landing .hs-btn {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .hs-landing-actions > a.hs-btn-secondary {
    display: none;
  }

  .hs-landing .hs-hero {
    width: calc(100% - 36px);
    padding: 50px 0;
    gap: 34px;
  }

  .hs-hero-title {
    font-size: clamp(38px, 11vw, 50px);
  }

  .hs-hero-description {
    margin: 17px 0 24px;
    font-size: 15px;
  }

  .hs-hero-actions .hs-btn {
    flex: 1 1 150px;
  }

  .hs-hero-notes {
    display: grid;
    gap: 12px;
    margin-top: 24px;
  }

  .hs-feature-grid {
    gap: 10px;
  }

  .hs-feature {
    min-height: 0;
    padding: 17px 15px;
  }

  .hs-feature-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
  }

  .hs-feature h2 {
    font-size: 14px;
  }

  .hs-feature p {
    font-size: 12px;
  }

  .hs-footer-inner {
    width: calc(100% - 36px);
    padding: 18px 0;
    justify-content: center;
  }

  .hs-footer-links {
    display: none;
  }

  .hs-footer-copy {
    text-align: center;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-landing *,
  .hs-landing *::before,
  .hs-landing *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
