:root {
  --page-bg: #f2f4f6;
  --page-gradient: radial-gradient(circle at top right, rgba(31, 41, 55, 0.2), transparent 55%),
    radial-gradient(circle at bottom left, rgba(55, 65, 81, 0.15), transparent 50%);
  --surface: #ffffff;
  --surface-muted: #ebeef2;
  --surface-glass: rgba(255, 255, 255, 0.8);
  --text: #111827;
  --text-muted: #4b5563;
  --accent: #1f2937;
  --accent-secondary: #111827;
  --accent-soft: rgba(31, 41, 55, 0.12);
  --accent-border: rgba(31, 41, 55, 0.22);
  --border: rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 20px 48px rgba(17, 24, 39, 0.12);
  --shadow-card: 0 28px 60px rgba(17, 24, 39, 0.16);
  --footer-bg: #0b1120;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--page-gradient);
  opacity: 0.55;
  z-index: -2;
}

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

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 0;
  position: relative;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  color: var(--text-muted);
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  color: inherit;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: rgba(17, 24, 39, 0.2);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(55, 65, 81, 0.75));
  color: var(--white);
  font-weight: 600;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  background: linear-gradient(140deg, rgba(17, 24, 39, 0.98), rgba(55, 65, 81, 0.9));
  color: var(--white);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 52px rgba(17, 24, 39, 0.36);
  filter: brightness(1.05);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(17, 24, 39, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 24, 39, 0.4);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.contact-form-fallback {
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed var(--accent-border);
  background: rgba(17, 24, 39, 0.04);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-form-fallback a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 960px) {
  .site-nav {
    gap: 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    width: min(280px, calc(100vw - 32px));
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid rgba(17, 24, 39, 0.1);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 15;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
  }

  .nav-bar .primary-button {
    margin-left: auto;
    order: 3;
  }

  .brand {
    order: 1;
  }

  .page-header {
    padding: 0 8px;
  }
}

@media (max-width: 600px) {
  .nav-bar .primary-button {
    padding: 10px 16px;
  }
}

.hero {
  padding: 120px 0 84px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(243, 244, 246, 0.95) 100%);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 65, 81, 0.18), transparent 70%);
  top: -260px;
  right: -220px;
  filter: blur(20px);
  z-index: -1;
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  position: relative;
  text-align: center;
}

.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.02));
  color: var(--accent);
  border: 1px solid rgba(17, 24, 39, 0.18);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.pill-ghost {
  background: rgba(107, 114, 128, 0.12);
  color: #1f2937;
  border-color: rgba(107, 114, 128, 0.28);
}

.pill-outline {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.45);
  color: #f97316;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.hero-highlights li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(17, 24, 39, 0.92), rgba(75, 85, 99, 0.78));
  opacity: 0.9;
}

.hero-highlights li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 6px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
}

.hero-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: rgba(79, 94, 113, 0.85);
  font-weight: 500;
  text-align: center;
}

.hero-card {
  margin: 72px auto 0;
  max-width: 900px;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(229, 231, 235, 0.96));
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  opacity: 0.6;
  pointer-events: none;
}

.hero-metrics {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.metric-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(229, 231, 235, 0.96));
  border-radius: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  display: grid;
  gap: 6px;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.14);
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -32px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 65, 81, 0.16), transparent 72%);
  opacity: 0.8;
}

.metric-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.metric-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 500;
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 64px;
}

.hero-divider .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.5);
  opacity: 0.8;
}

.hero-divider .line {
  width: 140px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(55, 65, 81, 0.4), transparent);
}

.section {
  padding: 96px 0;
  position: relative;
  z-index: 0;
}

.section::before {
  content: "";
  position: absolute;
  top: -56px;
  left: 50%;
  width: min(860px, 80vw);
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(55, 65, 81, 0.12), transparent 72%);
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

.theme-panel {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.92), rgba(226, 232, 240, 0.92));
}

.theme-neutral {
  background: #f8fafc;
}

.section-intro {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-intro.align-left {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}
.section-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.pill-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  text-transform: uppercase;
}

.about-card {
  max-width: 940px;
  margin: 0 auto;
  padding: 52px;
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(229, 231, 235, 0.96));
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 36px;
  position: relative;
}

.about-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 1px dashed rgba(55, 65, 81, 0.18);
  pointer-events: none;
}

.about-header {
  display: grid;
  gap: 18px;
}

.about-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.about-body {
  display: grid;
  gap: 22px;
}

.about-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-weight: 500;
  color: var(--text);
}

.about-list li {
  position: relative;
  padding-left: 32px;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(75, 85, 99, 0.8));
  opacity: 0.85;
}

.partnership-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.partnership-card {
  display: grid;
  gap: 36px;
  padding: 48px;
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(231, 232, 236, 0.96));
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-soft);
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.partnership-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 65, 81, 0.18), transparent 65%);
  opacity: 0.75;
  pointer-events: none;
}

.partnership-card::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 163, 175, 0.2), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

.partnership-card > * {
  position: relative;
  z-index: 1;
}

.partnership-intro {
  display: grid;
  gap: 18px;
}

.partnership-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.partnership-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.partnership-list li {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.12);
}

.partnership-list h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.partnership-list p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

.contact-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.contact-card {
  display: grid;
  gap: 48px;
  padding: 48px;
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(231, 232, 236, 0.97));
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-soft);
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -160px;
  left: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 163, 175, 0.22), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
}

.contact-card::after {
  content: "";
  position: absolute;
  bottom: -140px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 65, 81, 0.2), transparent 65%);
  opacity: 0.8;
  pointer-events: none;
}

.contact-copy {
  display: grid;
  gap: 18px;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.contact-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.contact-form-wrapper {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.contact-form-wrapper iframe,
.contact-form-wrapper .hs-form-frame {
  width: 100%;
}

.acceleris-form form {
  display: grid;
  gap: 20px;
}

.acceleris-form .hs-form-field {
  display: grid;
  gap: 8px;
}

.acceleris-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.acceleris-form .hs-input,
.acceleris-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.acceleris-form .hs-input::placeholder,
.acceleris-form textarea::placeholder {
  color: rgba(107, 114, 128, 0.7);
}

.acceleris-form .hs-input:focus,
.acceleris-form textarea:focus {
  border-color: rgba(17, 24, 39, 0.45);
  outline: none;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.12);
  background: #ffffff;
}

.acceleris-form .hs-form-required {
  color: rgba(17, 24, 39, 0.6);
}

.acceleris-form .legal-consent-container {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
}

.acceleris-form .hs-richtext {
  font-size: 0.92rem;
  color: rgba(55, 65, 81, 0.8);
  line-height: 1.6;
}

.acceleris-form .actions {
  margin-top: 8px;
}

.acceleris-form .hs-button.primary.large {
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(140deg, rgba(17, 24, 39, 0.98), rgba(55, 65, 81, 0.9));
  box-shadow: 0 18px 32px rgba(17, 24, 39, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.acceleris-form .hs-button.primary.large:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(17, 24, 39, 0.3);
  filter: brightness(1.05);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.metric-card:nth-child(1),
.metric-card:nth-child(2),
.metric-card:nth-child(3),
.metric-card:nth-child(4) {
  animation: float 6s ease-in-out infinite;
}

.metric-card:nth-child(2) {
  animation-delay: 1.2s;
}

.metric-card:nth-child(3) {
  animation-delay: 2.4s;
}

.metric-card:nth-child(4) {
  animation-delay: 3.6s;
}

.hero-card,
.about-card,
.contact-card {
  backdrop-filter: blur(6px);
}

.footer {
  background: linear-gradient(145deg, #0b1120, #132544);
  color: var(--white);
  padding: 88px 0 40px;
}

.footer-grid {
  display: grid;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto 56px;
}

.footer-grid h2 {
  margin: 0;
  line-height: 1.2;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.footer-grid p {
  margin: 16px 0 0;
  color: rgba(226, 232, 240, 0.8);
}

.footer-actions {
  display: grid;
  gap: 14px;
}

.footer .primary-button {
  justify-self: flex-start;
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.4);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  .nav-bar {
    padding: 14px 0;
  }

  .page-header {
    position: static;
  }

  .hero {
    padding: 96px 0 72px;
  }

  .hero-visual {
    height: 200px;
    margin-top: 56px;
  }

  .hero-card {
    padding: 32px;
    margin-top: 56px;
  }

  .about-card {
    padding: 40px;
  }

  .contact-card {
    padding: 40px;
  }

  .partnership-card {
    padding: 40px;
  }

  .hero-divider {
    margin-top: 48px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.4rem;
  }

  .pill {
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .hero-card {
    padding: 28px;
  }

  .hero-visual {
    height: 180px;
    margin-top: 48px;
  }

  .about-card {
    padding: 32px;
  }

  .contact-card {
    padding: 32px;
  }

  .partnership-card {
    padding: 32px;
  }

  .hero-divider .line {
    width: 100px;
  }

  .hero-highlights li {
    padding-left: 30px;
  }

  .footer .primary-button {
    width: 100%;
    justify-content: center;
  }
}

/* Chat widget styles */
.al-chat-widget {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  z-index: 999;
  font-family: inherit;
  color: #1e293b;
}

.al-chat-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.al-chat-toggle:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
}

.al-chat-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.al-chat-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.22);
}

.al-chat-toggle-icon svg {
  width: 18px;
  height: 18px;
}

.al-chat-toggle-label {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.al-chat-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 72px));
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 120px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.al-chat-panel.al-open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.al-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(120deg, #1d4ed8, #3b82f6);
  color: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.al-chat-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.al-chat-header p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.al-chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.al-chat-close:hover,
.al-chat-close:focus-visible {
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(90deg);
}

.al-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.al-chat-message {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.al-chat-message.al-user {
  align-self: flex-end;
  background: #1d4ed8;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.al-chat-message.al-assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom-left-radius: 4px;
}

.al-chat-input {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: #fff;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.al-chat-input textarea {
  flex: 1;
  resize: none;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.4;
}

.al-chat-input textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
}

.al-send-button {
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
}

.al-send-button[disabled],
.al-chat-input textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.al-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.al-chat-message.al-lead-form {
  align-self: stretch;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
}

.al-lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.al-lead-form h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #1e293b;
}

.al-lead-intro {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

.al-lead-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.al-lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #0f172a;
}

.al-lead-field span {
  font-weight: 600;
}

.al-lead-field input,
.al-lead-field textarea {
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  line-height: 1.35;
  background: #fff;
}

.al-lead-field input:focus,
.al-lead-field textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
}

.al-lead-field textarea {
  resize: vertical;
  min-height: 72px;
}

.al-lead-form-actions {
  display: flex;
  justify-content: flex-end;
}

.al-lead-submit {
  padding-inline: 18px;
}

.al-lead-error {
  margin: 0;
  min-height: 1em;
  font-size: 0.8rem;
  color: #dc2626;
}

@media (max-width: 600px) {
  .al-chat-widget {
    right: max(12px, env(safe-area-inset-right, 12px));
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  }

  .al-chat-panel {
    width: calc(100vw - 24px);
    right: max(12px, env(safe-area-inset-right, 12px));
    bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 72px));
  }

  .hero-content {
    text-align: left;
  }

  .hero-highlights {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-note {
    text-align: left;
  }
}

/* Article page */
.article-page {
  background: #f8fafc;
  color: #0f172a;
}

.article-page-header {
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.article-back-link {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.article-back-link:hover,
.article-back-link:focus-visible {
  text-decoration: underline;
}

.article-hero {
  padding: 80px 0 40px;
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.18), transparent 55%);
}

.article-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.article-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #0f172a;
}

.article-summary {
  font-size: 1.15rem;
  max-width: 720px;
  color: rgba(15, 23, 42, 0.8);
}

.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(15, 23, 42, 0.7);
  font-size: 0.95rem;
  justify-content: center;
}

.article-body {
  max-width: 760px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-body h2 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 1.5rem;
  color: #0f172a;
  text-align: center;
}

.article-callout {
  background: #eef2ff;
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 16px;
  padding: 20px 24px;
}

.article-callout h3 {
  margin-top: 0;
}

.article-callout ul {
  margin: 0;
  padding-left: 20px;
}

.article-highlight {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1d4ed8;
}

.article-footer {
  background: #0f172a;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.article-footer .primary-button {
  margin-top: 12px;
}

/* Blog section */
.blog-section {
  background: #0f172a;
  color: #f8fafc;
  padding-top: 80px;
  padding-bottom: 80px;
}

.blog-section .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-header h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
}

.blog-header p {
  max-width: 640px;
  color: rgba(248, 250, 252, 0.85);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.blog-card {
  background: #1e293b;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.blog-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.blog-card time {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.65);
}

.blog-card p {
  margin: 0;
  color: rgba(248, 250, 252, 0.85);
}

.blog-card a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
}

.blog-card a:hover,
.blog-card a:focus-visible {
  color: #bfdbfe;
  text-decoration: underline;
}

.blog-empty {
  text-align: center;
  padding: 40px 24px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 20px;
  color: rgba(248, 250, 252, 0.75);
  font-size: 0.95rem;
}

.blog-subtitle {
  margin: 0;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.95rem;
}

.calculator-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.9));
  border-radius: 36px;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-card);
}

.calculator-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.08), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.calculator-card > * {
  position: relative;
  z-index: 1;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.calculator-form {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 4vw, 32px);
  border-radius: 26px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 20px 38px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(4px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.calculator-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.form-field {
  display: grid;
  gap: 8px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  padding: 14px 16px;
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: rgba(17, 24, 39, 0.45);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  min-width: 0;
}

.input-wrapper input:focus-visible {
  outline: none;
}

.input-prefix,
.input-suffix {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calculator-note {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(17, 24, 39, 0.16);
  background: rgba(17, 24, 39, 0.04);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calculator-results {
  position: relative;
  border-radius: 30px;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.calculator-results::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  top: -120px;
  right: -140px;
  pointer-events: none;
}

.results-header {
  position: relative;
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.results-label {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.results-subtext {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.results-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.result-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.result-label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.result-value {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
}

.results-summary {
  position: relative;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.results-money-label {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.results-money-value {
  margin: 6px 0 12px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
}

.results-footnote {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.calculator-cta {
  position: relative;
  margin-top: 32px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 16px;
}

.calculator-cta h3 {
  margin: 0;
  font-size: 1.2rem;
}

.calculator-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.calculator-cta .primary-button {
  padding: 12px 22px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.calculator-form input::-webkit-outer-spin-button,
.calculator-form input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calculator-form input[type="number"] {
  -moz-appearance: textfield;
}

@media (max-width: 820px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .input-wrapper {
    flex-wrap: wrap;
    gap: 6px;
  }

  .input-prefix,
  .input-suffix {
    order: -1;
  }

  .calculator-card {
    padding: 28px 20px;
  }
}
