/* N8N_INSPIRED_HEADER_V1_START
   Mahyar Molavi — Deep Ink / Glass Gold / Ice Blue
   Floating announcement + navigation treatment inspired by n8n's header behavior.
   ========================================================================== */

.site-header-glass {
  top: 10px;
  display: grid;
  gap: 8px;
  width: min(1360px, calc(100% - 28px));
  margin: 8px auto 0;
  transition: top .32s ease, gap .32s ease, margin-top .32s ease;
}

.site-header-glass::before {
  display: none !important;
}

.site-header__announcement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-height: 54px;
  border: 1px solid rgba(221, 227, 238, .14);
  border-radius: 17px;
  background:
    radial-gradient(circle at 58% 50%, rgba(213, 174, 98, .20), transparent 31%),
    radial-gradient(circle at 92% 0%, rgba(207, 226, 255, .08), transparent 30%),
    linear-gradient(100deg, rgba(18, 20, 24, .98), rgba(35, 40, 51, .97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 12px 34px rgba(0, 0, 0, .16);
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height .34s cubic-bezier(.2, .72, .2, 1),
    opacity .24s ease,
    transform .34s cubic-bezier(.2, .72, .2, 1),
    border-width .34s ease;
}

.site-header__announcement::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.035) 42%, transparent 64%);
}

.site-header__announcement-inner {
  position: relative;
  z-index: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 12px;
}

.site-header__announcement-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #f6f7fb;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.site-header__announcement-copy::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #d5ae62;
  box-shadow: 0 0 0 4px rgba(213, 174, 98, .10), 0 0 18px rgba(213, 174, 98, .34);
}

.site-header__announcement-cta {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 229, 168, .40);
  border-radius: 10px;
  background: linear-gradient(145deg, #efca77, #bd842d);
  color: #171713 !important;
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.46),
    0 8px 22px rgba(185,133,47,.20);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.site-header__announcement-cta:hover,
.site-header__announcement-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.045);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.52),
    0 10px 28px rgba(185,133,47,.27);
}

.site-header__announcement-cta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header__shell {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 1px solid rgba(221, 227, 238, .14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 76% -10%, rgba(207, 226, 255, .09), transparent 31%),
    radial-gradient(circle at 92% 120%, rgba(213, 174, 98, .08), transparent 28%),
    linear-gradient(105deg, rgba(14, 19, 27, .95), rgba(18, 22, 31, .97));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 18px 54px rgba(0, 0, 0, .20);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
  transition:
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease,
    border-radius .25s ease;
}

.site-header-glass.is-scrolled {
  top: 10px;
  gap: 0;
  margin-top: 6px;
}

.site-header-glass.is-scrolled .site-header__announcement {
  max-height: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.site-header-glass.is-scrolled .site-header__shell {
  border-color: rgba(213, 174, 98, .22);
  background:
    radial-gradient(circle at 82% -10%, rgba(207, 226, 255, .08), transparent 27%),
    linear-gradient(105deg, rgba(11, 15, 21, .975), rgba(18, 22, 30, .985));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 16px 48px rgba(0,0,0,.27);
}

/* Keep the nav intentionally Deep Ink in both site themes, matching the Brand Book. */
.site-header-glass .site-header__brand-copy strong,
.site-header-glass .site-header__link,
.site-header-glass .site-header__icon,
.site-header-glass .site-header__language,
.site-header-glass .site-header__menu-toggle {
  color: #f6f7fb;
}

.site-header-glass .site-header__brand-copy small {
  color: #9da8b7;
}

.site-header-glass .site-header__link {
  color: #b8c1cd;
}

.site-header-glass .site-header__link:hover,
.site-header-glass .site-header__link.is-active {
  background: rgba(213, 174, 98, .09);
  color: #f6f7fb;
}

.site-header-glass .site-header__icon,
.site-header-glass .site-header__language,
.site-header-glass .site-header__menu-toggle {
  border-color: rgba(221, 227, 238, .13);
  background: rgba(255, 255, 255, .035);
}

.site-header-glass .site-header__icon:hover,
.site-header-glass .site-header__language:hover,
.site-header-glass .site-header__menu-toggle:hover {
  border-color: rgba(213, 174, 98, .34);
  color: #e4bd6b;
}

.site-header-glass .site-header__mobile-nav {
  color: #f6f7fb;
}

.site-header-glass .site-header__mobile-panel {
  border-color: rgba(221, 227, 238, .13) !important;
  background:
    radial-gradient(circle at 80% 0%, rgba(207, 226, 255, .07), transparent 32%),
    rgba(14, 19, 27, .98) !important;
  box-shadow: 0 22px 54px rgba(0,0,0,.30) !important;
}

.site-header-glass .site-header__mobile-panel a:not(.site-header__mobile-cta) {
  color: #d5dbe4 !important;
}

.site-header-glass .site-header__mobile-panel a:not(.site-header__mobile-cta):hover,
.site-header-glass .site-header__mobile-panel a:not(.site-header__mobile-cta):focus-visible {
  background: rgba(213, 174, 98, .08) !important;
  color: #f6f7fb !important;
}

@media (max-width: 960px) {
  .site-header-glass {
    width: min(100% - 18px, 1360px);
  }

  .site-header__announcement-inner {
    gap: 10px;
  }

  .site-header__announcement-copy {
    max-width: min(68vw, 620px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 760px) {
  .site-header-glass,
  .site-header-glass.is-scrolled {
    top: 6px;
  }

  .site-header-glass {
    width: calc(100% - 12px);
    margin-top: 6px;
    gap: 6px;
  }

  .site-header__announcement {
    border-radius: 14px;
  }

  .site-header__announcement-inner {
    min-height: 38px;
    padding: 5px 10px;
  }

  .site-header__announcement-copy {
    max-width: 100%;
    font-size: 11.5px;
  }

  .site-header__announcement-copy::before {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
  }

  .site-header__announcement-cta {
    display: none;
  }

  .site-header__shell {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header-glass,
  .site-header__announcement,
  .site-header__shell,
  .site-header__announcement-cta {
    transition: none !important;
  }
}
/* N8N_INSPIRED_HEADER_V1_END */

/* HEADER_GRAIN_GRADIENT_V1_START
   Fine film-grain over the existing Brand Book gradients. The texture is
   decorative only and sits behind interactive/text content.
   ========================================================================== */
.site-header__shell::after,
.site-header__announcement::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 16% 18%, rgba(213, 174, 98, .13), transparent 29%),
    radial-gradient(circle at 78% 12%, rgba(207, 226, 255, .10), transparent 31%),
    radial-gradient(circle at 58% 120%, rgba(213, 174, 98, .07), transparent 34%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
  background-size: auto, auto, auto, 180px 180px;
  background-position: center, center, center, center;
  mix-blend-mode: soft-light;
  opacity: .14;
}

.site-header__announcement::after {
  opacity: .11;
}

.site-header-glass.is-scrolled .site-header__shell::after {
  opacity: .17;
}

@media (max-width: 760px) {
  .site-header__shell::after,
  .site-header__announcement::after {
    opacity: .10;
  }

  .site-header-glass.is-scrolled .site-header__shell::after {
    opacity: .13;
  }
}
/* HEADER_GRAIN_GRADIENT_V1_END */
