/* Shared header from the main Reezonly site; body keeps its own typography. */
:root { --header-height: 96px; }
html { scroll-padding-top: calc(var(--header-height) + 18px); }
.site-header {
  --site-header-height: 96px;
  --site-header-surface: #111019;
  --site-header-border: #ffffff16;
  position: sticky;
  top: var(--site-header-top, 0px);
  z-index: 40;
  background: #08090ff2;
  border-bottom: 1px solid #ffffff0b;
  color: var(--rz-text, #f6f5ff);
  font-family: 'Manrope', Arial, sans-serif;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header, .site-header * { box-sizing: border-box; }
.site-header [hidden] { display: none !important; }
.site-header :is(a, button) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.site-header a { color: inherit; text-decoration: none; }
.site-header :where(button) { margin: 0; font: inherit; cursor: pointer; }
.site-header :is(a, button):focus-visible { outline: 2px solid var(--rz-link, #b7a0ff); outline-offset: 5px; }
.site-header svg { flex-shrink: 0; }

.site-header__inner { position: relative; display: flex; align-items: center; gap: 54px; width: min(1328px, calc(100% - 112px)); min-height: var(--site-header-height); margin-inline: auto; }
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.site-header__logo img { display: block; width: 156px; height: auto; }
.site-header__navigation { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 28px; min-width: 0; }
.site-header__links { display: flex; align-items: center; gap: 27px; }
.site-header__disclosure, .site-header__deployment { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0; border: 0; background: transparent; color: #d3d0df; font-size: 14px; line-height: 1.5; white-space: nowrap; transition: color .18s ease; }
.site-header .site-header__disclosure { font-size: 14px; }
.site-header .site-header__deployment { color: #d3d0df; }
.site-header__disclosure svg { transition: transform .18s ease; opacity: .75; }
.site-header__disclosure[aria-expanded='true'] { color: var(--rz-link, #b7a0ff); }
.site-header__disclosure[aria-expanded='true'] svg { transform: rotate(180deg); }
.site-header__actions { order: 2; display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.site-header__quiet-action { min-height: 46px; padding: 0; border: 0; background: transparent; color: var(--rz-muted, #b4b1c5); font-size: 13px; line-height: 1.5; transition: color .18s ease; }
.site-header__primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 46px; padding: 10px 18px; border: 1px solid #9c7df152; border-radius: 9px; background: #8058e8; color: white; font-size: 13px; font-weight: 550; line-height: 1.5; white-space: nowrap; transition: background .18s ease, border-color .18s ease; }
.site-header__mobile-toggle { display: none; }
.site-header__navigation { order: 1; }
.theme-toggle{position:relative;display:block;width:64px;height:44px;flex:none;padding:0;border:0;border-radius:999px;background:transparent;touch-action:manipulation}
.theme-toggle::before{content:"";position:absolute;inset:6px 0;border:1px solid var(--cn-border);border-radius:999px;background:var(--cn-surface);transition:border-color .2s,background .2s}
.theme-toggle:hover::before{border-color:var(--rz-link)}
.theme-toggle-thumb{position:absolute;z-index:1;left:4px;top:10px;width:24px;height:24px;border-radius:50%;background:var(--rz-violet);transform:translateX(0);transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.theme-toggle .icon{position:absolute;z-index:2;top:14px;width:16px;height:16px;pointer-events:none}
.theme-toggle .theme-icon-moon{display:block;left:8px;color:#fff}
.theme-toggle .theme-icon-sun{right:8px;color:var(--rz-muted)}
.site-header__project-short { display: none; }
.site-header__logo .site-header__logo-light { display: none; }

.site-header__panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: calc(100dvh - var(--site-header-top, 0px) - var(--site-header-height) - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #544963 transparent; padding: 26px; border: 1px solid #ffffff1d; border-radius: 19px; background: var(--site-header-surface); box-shadow: 0 26px 70px #0008; animation: site-header-reveal .18s ease both; }
.site-header__products-panel { display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 18px; width: min(920px, 100%); margin-inline: auto; padding: 18px; border-radius: 16px; }
.site-header__products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.site-header__product { display: grid; grid-template-columns: minmax(0, 1fr) 17px; align-content: start; column-gap: 10px; row-gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--site-header-border); border-radius: 10px; background: #ffffff02; transition: border-color .18s ease, background .18s ease; }
.site-header__product--space { border-color: #b7a0ff4d; background: #b7a0ff0b; }
.site-header__product-brand { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 32px; }
.site-header__product-brand img { display: block; width: 142px; max-width: 100%; height: auto; }
.site-header__product-brand--lms img { width: 158px; }
.site-header__product-brand--copilot img { width: 128px; }
.site-header__product-brand--edwayser img { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; }
.site-header__product-arrow { grid-column: 2; grid-row: 1; align-self: center; width: 17px; margin: 0; color: #a7a0b8; transition: color .18s ease, transform .18s ease; }
.site-header__product-name { font-size: 18px; font-weight: 550; line-height: 1.35; letter-spacing: -.025em; }
.site-header__product-description { grid-column: 1 / -1; grid-row: 2; color: var(--rz-muted, #b4b1c5); font-size: 13px; line-height: 1.5; }
.site-header__space-feature { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 18px 12px 12px; border: 1px solid #b7a0ff24; border-radius: 10px; background: linear-gradient(150deg, #262033, #14111e 65%); }
.site-header__feature-copy { padding-inline: 6px; }
.site-header__feature-title { display: block; font-size: 22px; font-weight: 550; line-height: 1.2; letter-spacing: -.035em; }
.site-header__space-feature img { display: block; width: 100%; height: auto; margin-block: auto; border: 1px solid #ffffff16; border-radius: 7px; }

.site-header__solutions-panel { width: min(1120px, 100%); margin-inline: auto; padding: 26px 26px 0; }
.site-header__solution-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.site-header__solution-group + .site-header__solution-group { padding-left: 28px; border-left: 1px solid var(--site-header-border); }
.site-header .site-header__group-title { margin: 0 10px 12px; color: var(--rz-link, #b7a0ff); font-size: 14px; font-weight: 550; line-height: 1.5; letter-spacing: 0; }
.site-header__solution-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.site-header__solution-list li { min-width: 0; }
.site-header__solution-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; height: 100%; padding: 8px 10px; border-radius: 7px; font-size: 14px; line-height: 1.45; letter-spacing: -.015em; transition: color .18s ease, background .18s ease; }
.site-header__solution-link svg { color: var(--rz-muted, #b4b1c5); opacity: .65; }
.site-header__panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 20px; padding: 12px 10px 14px; border-top: 1px solid var(--site-header-border); }
.site-header__text-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; flex-shrink: 0; padding: 0; border: 0; background: none; color: var(--rz-link, #b7a0ff); font-size: 14px; line-height: 1.5; }

@keyframes site-header-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

@media (hover: hover) {
  .site-header__disclosure:hover, .site-header .site-header__deployment:hover, .site-header__quiet-action:hover { color: #fff; }
  .site-header__primary-action:hover { background: #9068f0; border-color: #b7a0ff; }
  .site-header__product:hover { background: #b7a0ff0c; border-color: #b7a0ff55; }
  .site-header__product:hover .site-header__product-arrow { transform: translateX(2px); color: var(--rz-link, #b7a0ff); }
  .site-header__space-feature:hover { border-color: #b7a0ff66; }
  .site-header__solution-link:hover { background: #b7a0ff0c; color: var(--rz-link, #b7a0ff); }
  .site-header__text-action:hover { color: #dfd3ff; }
}

@media (max-width: 1279px) and (min-width: 1100px) {
  .site-header__inner { gap: 42px; }
  .site-header__quiet-action { display: none; }
}

@media (max-width: 1099px) {
  .site-header { --site-header-height: 80px; }
  .site-header__inner { justify-content: space-between; gap: 16px; }
  .site-header__mobile-toggle { order: 3; }
  .site-header__mobile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex-shrink: 0; padding: 0; border: 1px solid var(--site-header-border); border-radius: 9px; background: transparent; color: inherit; }
  .site-header__navigation { display: none; position: absolute; top: 100%; left: -56px; right: -56px; max-height: calc(100dvh - var(--site-header-top, 0px) - var(--site-header-height)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #544963 transparent; padding: 8px 56px max(28px, env(safe-area-inset-bottom)); border-bottom: 1px solid #ffffff25; border-radius: 0 0 16px 16px; background: var(--site-header-surface); box-shadow: 0 30px 55px #0007; }
  .site-header__navigation[data-open='true'] { display: block; }
  .site-header__links { display: block; }
  .site-header__nav-item { border-bottom: 1px solid var(--site-header-border); }
  .site-header .site-header__disclosure { justify-content: space-between; width: 100%; min-height: 64px; font-size: 17px; }
  .site-header__disclosure svg { width: 18px; height: 18px; }
  .site-header .site-header__deployment { display: flex; min-height: 64px; font-size: 16px; }
  .site-header__panel { position: static; max-height: none; overflow: visible; margin: 0 0 20px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .site-header__products-panel { display: block; width: 100%; border-radius: 0; }
  .site-header__space-feature { display: none; }
  .site-header__solutions-panel { width: 100%; padding-bottom: 0; }
  .site-header__solution-groups { gap: 28px; }
  .site-header .site-header__group-title { padding-top: 8px; }
  .site-header__solution-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 8px; }
  .site-header__solution-link { font-size: 15px; }
  .site-header__panel-footer { gap: 24px; margin-top: 10px; padding-bottom: 6px; }
  .site-header__actions { margin-left: auto; gap: 12px; }
  .site-header__quiet-action { display: none; }
  .site-header__primary-action { min-height: 44px; padding-inline: 16px; font-size: 14px; }
  .site-header__project-full, .site-header__primary-action svg { display: none; }
  .site-header__project-short { display: inline; }
}

@media (max-width: 760px) {
  .site-header { --site-header-height: 76px; }
  .site-header__inner { width: calc(100% - 32px); gap: 8px; }
  .site-header__logo img { width: 142px; }
  .site-header__navigation { left: -16px; right: -16px; padding-inline: 24px; }
  .site-header__actions { gap: 8px; }
  .site-header__mobile-toggle { width: 44px; height: 44px; }
  .site-header__solution-groups { grid-template-columns: 1fr; gap: 24px; }
  .site-header__solution-group + .site-header__solution-group { padding: 20px 0 0; border-top: 1px solid var(--site-header-border); border-left: 0; }
  .site-header__panel-footer { gap: 24px; padding-block: 14px 0; }
}

@media (max-width: 560px) {
  .site-header__products-grid { grid-template-columns: 1fr; gap: 9px; }
  .site-header__product { row-gap: 6px; padding: 17px; }
  .site-header__product-description { font-size: 12px; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-header *::before, .site-header *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1099px) { :root { --header-height: 80px; } }
@media (max-width: 760px) { :root { --header-height: 76px; } }

@media (max-width: 440px) {
  .site-header__logo img { width: 112px; }
  .site-header__primary-action { padding-inline: 12px; font-size: 13px; }
}
@media (max-width: 360px) {
  .theme-toggle { width: 56px; }
  .theme-toggle .theme-icon-moon { left: 9px; width: 14px; height: 14px; top: 15px; }
  .theme-toggle .theme-icon-sun { right: 9px; width: 14px; height: 14px; top: 15px; }
}
@media (max-width: 340px) {
  .site-header__inner { width: calc(100% - 16px); }
  .site-header__logo img { width: 88px; }
  .site-header__primary-action { padding-inline: 10px; font-size: 12px; }
  .site-header__navigation { left: -8px; right: -8px; }
}

[data-theme=light] .site-header { --site-header-surface: #fff; --site-header-border: #201d3214; background: #fdfdfdf2; border-bottom-color: var(--rz-line); }
[data-theme=light] .site-header__logo .site-header__logo-dark { display: none; }
[data-theme=light] .site-header__logo .site-header__logo-light { display: block; }
[data-theme=light] .theme-toggle-thumb { transform: translateX(32px); }
[data-theme=light] .theme-toggle .theme-icon-sun { color: #fff; }
[data-theme=light] .theme-toggle .theme-icon-moon { color: var(--rz-muted); }
@media (max-width: 360px) { [data-theme=light] .theme-toggle-thumb { transform: translateX(24px); } }
[data-theme=light] .site-header__disclosure, [data-theme=light] .site-header .site-header__deployment { color: var(--rz-muted); }
[data-theme=light] .site-header__disclosure[aria-expanded=true] { color: var(--rz-link); }
[data-theme=light] .site-header__panel { border-color: var(--rz-line); box-shadow: 0 26px 70px #20183b1a; }
[data-theme=light] .site-header__product-arrow { color: var(--rz-muted); }
.site-header__product-brand .site-header__logo-dark { display: none; }
.site-header__product-brand .site-header__logo-light { display: block; }
[data-theme=light] .site-header__product-brand .site-header__logo-dark { display: block; }
[data-theme=light] .site-header__product-brand .site-header__logo-light { display: none; }
[data-theme=light] .site-header__space-feature { background: linear-gradient(150deg, #eee8fa, #faf8ff 65%); }

[data-theme=light] .site-header__primary-action { background: var(--rz-violet); }
@media (max-width: 1099px) {
  [data-theme=light] .site-header__panel { box-shadow: none; }
}
@media (hover: hover) {
  [data-theme=light] .site-header__disclosure:hover, [data-theme=light] .site-header .site-header__deployment:hover, [data-theme=light] .site-header__quiet-action:hover { color: var(--rz-link); }
  [data-theme=light] .site-header__text-action:hover { color: var(--rz-link-hover); }
  [data-theme=light] .site-header__primary-action:hover { background: var(--rz-violet-hover); }
}
