:root {
  --helmi-fuchsia: #8f1e65;
  --helmi-fuchsia-dark: #741850;
  --helmi-fuchsia-soft: rgba(143, 30, 101, 0.08);
  --helmi-fuchsia-line: rgba(143, 30, 101, 0.22);
  --helmi-fuchsia-deep: #5a133f;
  --helmi-cyan: #20b8c6;
  --helmi-cyan-dark: #1698a3;
  --helmi-cyan-soft: rgba(32, 184, 198, 0.1);
  --helmi-cyan-line: rgba(32, 184, 198, 0.24);
  --helmi-ink: #0f172a;
  --helmi-surface: #ffffff;
  --helmi-surface-soft: #f8fafc;
  --helmi-line: rgba(148, 163, 184, 0.18);
  --helmi-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --helmi-shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.14);
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.helmi-site {
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.08), transparent 24rem),
    radial-gradient(circle at top right, rgba(143, 30, 101, 0.08), transparent 22rem),
    #ffffff;
}

.helmi-site ::selection {
  background: rgba(143, 30, 101, 0.18);
  color: inherit;
}

.helmi-site [class*="text-fuchsia-700"] {
  color: var(--helmi-fuchsia) !important;
}

.helmi-site [class*="text-fuchsia-800"] {
  color: var(--helmi-fuchsia-dark) !important;
}

.helmi-site [class*="hover:text-fuchsia-700"]:hover,
.helmi-site [class*="hover:text-fuchsia-800"]:hover {
  color: var(--helmi-fuchsia) !important;
}

.helmi-site [class*="bg-fuchsia-50"] {
  background-color: var(--helmi-fuchsia-soft) !important;
}

.helmi-site [class*="bg-fuchsia-700"] {
  background-color: var(--helmi-fuchsia) !important;
}

.helmi-site [class*="bg-fuchsia-800"] {
  background-color: var(--helmi-fuchsia-dark) !important;
}

.helmi-site [class*="bg-fuchsia-950"] {
  background-color: var(--helmi-fuchsia-deep) !important;
}

.helmi-site [class*="hover:bg-fuchsia-800"]:hover,
.helmi-site [class*="hover:bg-fuchsia-700"]:hover {
  background-color: var(--helmi-fuchsia-dark) !important;
}

.helmi-site [class*="border-fuchsia-700"] {
  border-color: var(--helmi-fuchsia) !important;
}

.helmi-site [class*="shadow-fuchsia-700/20"],
.helmi-site [class*="shadow-fuchsia-700/30"] {
  box-shadow: 0 16px 34px rgba(143, 30, 101, 0.22) !important;
}

.helmi-site [class*="text-cyan-400"],
.helmi-site [class*="text-cyan-500"],
.helmi-site [class*="text-cyan-600"] {
  color: var(--helmi-cyan) !important;
}

.helmi-site [class*="text-cyan-800"] {
  color: var(--helmi-cyan-dark) !important;
}

.helmi-site [class*="hover:text-cyan-300"]:hover,
.helmi-site [class*="hover:text-cyan-400"]:hover,
.helmi-site [class*="hover:text-cyan-500"]:hover,
.helmi-site [class*="hover:text-cyan-600"]:hover {
  color: var(--helmi-cyan) !important;
}

.helmi-site [class*="bg-cyan-50"] {
  background-color: var(--helmi-cyan-soft) !important;
}

.helmi-site [class*="bg-cyan-100"] {
  background-color: rgba(32, 184, 198, 0.16) !important;
}

.helmi-site [class*="bg-cyan-500"],
.helmi-site [class*="bg-cyan-600"] {
  background-color: var(--helmi-cyan) !important;
}

.helmi-site [class*="hover:bg-cyan-600"]:hover,
.helmi-site [class*="hover:bg-cyan-500"]:hover {
  background-color: var(--helmi-cyan-dark) !important;
}

.helmi-site [class*="border-cyan-100"],
.helmi-site [class*="border-cyan-500"] {
  border-color: var(--helmi-cyan-line) !important;
}

.helmi-site [class*="shadow-cyan-500/20"],
.helmi-site [class*="shadow-cyan-500/30"] {
  box-shadow: 0 16px 34px rgba(32, 184, 198, 0.22) !important;
}

.helmi-site [class*="from-fuchsia-950"] {
  --tw-gradient-from: var(--helmi-fuchsia-deep) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgba(90, 19, 63, 0) var(--tw-gradient-to-position) !important;
}

.helmi-site [class*="via-fuchsia-900"] {
  --tw-gradient-via: rgba(143, 30, 101, 0.88) var(--tw-gradient-via-position) !important;
}

.helmi-site [class*="to-violet-700"] {
  --tw-gradient-to: rgba(143, 30, 101, 0.58) var(--tw-gradient-to-position) !important;
}

.helmi-site #navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: rgba(226, 232, 240, 0.8);
}

.helmi-site #mobile-menu-panel {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.helmi-site main > section:not(:first-of-type) {
  position: relative;
}

.helmi-site main > section:not(:first-of-type)::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: min(92%, 78rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.22), transparent);
}

.helmi-site .rounded-3xl,
.helmi-site .rounded-\[2rem\] {
  box-shadow: var(--helmi-shadow);
}

.helmi-site .bg-white.rounded-3xl,
.helmi-site .bg-slate-50.rounded-3xl,
.helmi-site .bg-cyan-50.rounded-\[2rem\],
.helmi-site aside.bg-slate-900,
.helmi-site .bg-slate-50.rounded-\[2rem\] {
  border: 1px solid var(--helmi-line);
}

.helmi-site .group.flex.flex-col.h-full,
.helmi-site .bg-white.rounded-3xl.overflow-hidden,
.helmi-site .bg-slate-50.rounded-3xl.p-8,
.helmi-site .bg-slate-50.rounded-3xl.p-8.md\:p-10,
.helmi-site .bg-white.rounded-3xl.p-8.shadow-sm.border,
.helmi-site .bg-slate-50.p-8.md\:p-10.rounded-3xl.shadow-lg.border {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.helmi-site .group.flex.flex-col.h-full:hover,
.helmi-site .bg-white.rounded-3xl.overflow-hidden:hover,
.helmi-site .bg-slate-50.rounded-3xl.p-8:hover,
.helmi-site .bg-slate-50.rounded-3xl.p-8.md\:p-10:hover,
.helmi-site .bg-slate-50.p-8.md\:p-10.rounded-3xl.shadow-lg.border:hover {
  transform: translateY(-4px);
  box-shadow: var(--helmi-shadow-strong);
  border-color: rgba(6, 182, 212, 0.24);
}

.helmi-site img {
  image-rendering: auto;
}

.helmi-site .overflow-hidden img {
  transition: transform 400ms ease, filter 400ms ease;
}

.helmi-site .overflow-hidden:hover img {
  transform: scale(1.03);
  filter: saturate(1.03) contrast(1.02);
}

.helmi-site h1,
.helmi-site h2,
.helmi-site h3,
.helmi-site h4 {
  letter-spacing: -0.025em;
}

.helmi-site p,
.helmi-site li,
.helmi-site label,
.helmi-site input,
.helmi-site textarea {
  letter-spacing: -0.01em;
}

.helmi-site input,
.helmi-site textarea {
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.helmi-site input:hover,
.helmi-site textarea:hover {
  border-color: rgba(148, 163, 184, 0.56);
}

.helmi-site input:focus,
.helmi-site textarea:focus {
  box-shadow:
    0 0 0 4px rgba(6, 182, 212, 0.12),
    inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.helmi-site button,
.helmi-site a[class*="bg-cyan-500"],
.helmi-site a[class*="bg-fuchsia-700"] {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.helmi-site footer {
  position: relative;
  overflow: hidden;
}

.helmi-site footer::before {
  content: "";
  position: absolute;
  inset: -8rem auto auto -6rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
  pointer-events: none;
}

.helmi-site footer::after {
  content: "";
  position: absolute;
  inset: auto -7rem -9rem auto;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(143, 30, 101, 0.14), transparent 70%);
  pointer-events: none;
}

.helmi-site footer > div {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .helmi-site .bg-slate-50.rounded-3xl.p-8,
  .helmi-site .bg-slate-50.rounded-3xl.p-8.md\:p-10,
  .helmi-site .bg-slate-50.p-8.md\:p-10.rounded-3xl.shadow-lg.border,
  .helmi-site .bg-white.rounded-3xl.p-8.shadow-sm.border {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  }

  .helmi-site footer::before,
  .helmi-site footer::after {
    opacity: 0.7;
  }
}

.helmi-chat {
  position: fixed;
  left: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  display: block;
}

.helmi-chat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--helmi-fuchsia), var(--helmi-fuchsia-dark));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  padding: 0.82rem 1rem;
  box-shadow: 0 16px 32px rgba(162, 28, 175, 0.24);
  cursor: pointer;
}

.helmi-chat__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.helmi-chat__toggle-icon svg {
  width: 100%;
  height: 100%;
}

.helmi-chat__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.75rem);
  width: min(19.5rem, calc(100vw - 1.5rem));
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-origin: left bottom;
  opacity: 0;
  transform: translateY(0.8rem) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
  pointer-events: none;
}

.helmi-chat.is-open .helmi-chat__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.helmi-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.72rem 0.88rem 0.68rem;
  background: linear-gradient(135deg, var(--helmi-fuchsia), var(--helmi-fuchsia-dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.helmi-chat__eyebrow {
  margin: 0 0 0.08rem;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.helmi-chat__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.helmi-chat__close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.helmi-chat__body {
  padding: 0.62rem 0.78rem 0.78rem;
  overflow: visible;
}

.helmi-chat__intro {
  margin: 0 0 0.55rem;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.35;
}

.helmi-chat__form {
  display: grid;
  gap: 0.45rem;
}

.helmi-chat__field {
  display: grid;
  gap: 0.35rem;
}

.helmi-chat__field span {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.helmi-chat__field input,
.helmi-chat__field textarea {
  width: 100%;
  border: 1px solid rgba(203, 213, 225, 1);
  border-radius: 0.85rem;
  padding: 0.54rem 0.72rem;
  font: inherit;
  font-size: 0.86rem;
  color: #0f172a;
  background: #fff;
  resize: vertical;
}

.helmi-chat__field textarea {
  min-height: 3.2rem;
}

.helmi-chat__field input:focus,
.helmi-chat__field textarea:focus {
  outline: 0;
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.helmi-chat__submit {
  border: 0;
  border-radius: 0.85rem;
  padding: 0.68rem 0.82rem;
  background: linear-gradient(135deg, var(--helmi-fuchsia), var(--helmi-fuchsia-dark));
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(162, 28, 175, 0.22);
}

.helmi-chat__submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.helmi-chat__status {
  margin-bottom: 0.55rem;
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.helmi-chat__status.is-success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.helmi-chat__status.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.helmi-chat__bubble {
  margin: 0;
}

.helmi-chat__honeypot {
  display: none;
}

@media (max-width: 767px) {
  .helmi-chat {
    left: 0.75rem;
    right: auto;
    max-width: calc(100vw - 1.5rem);
  }

  .helmi-chat__toggle {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    align-self: flex-start;
    box-shadow: 0 16px 30px rgba(162, 28, 175, 0.24);
  }

  .helmi-chat__toggle-text {
    display: none;
  }

  .helmi-chat__toggle-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .helmi-chat__panel {
    width: min(17.5rem, calc(100vw - 1.5rem));
    border-radius: 1.25rem;
    bottom: calc(100% + 0.6rem);
  }

  .helmi-chat__header {
    padding: 0.62rem 0.72rem 0.58rem;
    gap: 0.5rem;
  }

  .helmi-chat__eyebrow {
    font-size: 0.52rem;
    margin-bottom: 0.05rem;
  }

  .helmi-chat__title {
    font-size: 0.85rem;
  }

  .helmi-chat__close {
    font-size: 1rem;
    margin-top: 0.05rem;
  }

  .helmi-chat__body {
    padding: 0.54rem 0.64rem 0.64rem;
  }

  .helmi-chat__intro,
  .helmi-chat__status {
    font-size: 0.72rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .helmi-chat__form {
    gap: 0.36rem;
  }

  .helmi-chat__field span {
    font-size: 0.54rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
  }

  .helmi-chat__field input,
  .helmi-chat__field textarea {
    padding: 0.48rem 0.62rem;
    border-radius: 0.72rem;
    font-size: 0.82rem;
  }

  .helmi-chat__field textarea {
    min-height: 2.7rem;
  }

  .helmi-chat__submit {
    padding: 0.58rem 0.72rem;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
}
