/* Unified corporate navigation for the approved homepage and product landing. */
.special-page-header {
  --nav-ink: #14263a;
  --nav-muted: #6e8094;
  --nav-accent: #557cff;
  --nav-accent-2: #54cfd9;
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 82px;
  border-bottom: 1px solid rgba(105, 134, 158, .15);
  background: rgba(248, 251, 253, .9);
  color: var(--nav-ink);
  box-shadow: 0 10px 38px rgba(19, 43, 67, .06);
  backdrop-filter: blur(22px) saturate(1.35);
  transition: height .3s ease, background .3s ease, box-shadow .3s ease;
}

.special-page-header.is-scrolled {
  height: 72px;
  background: rgba(250, 252, 254, .97);
  box-shadow: 0 16px 52px rgba(19, 43, 67, .13);
}

.special-page-header .site-shell {
  width: min(1320px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
}

.special-page-header .header-shell {
  display: flex;
  align-items: center;
  gap: 28px;
}

.special-page-header .global-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--nav-ink);
  text-decoration: none;
  white-space: nowrap;
}

.special-page-header .global-brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(85, 124, 255, .18);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, rgba(85, 124, 255, .1));
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(85, 124, 255, .14);
}

.special-page-header .global-brand-mark i,
.special-page-header .global-brand-mark b {
  position: absolute;
  top: 7px;
  width: 10px;
  height: 21px;
  display: block;
  border-radius: 3px;
  transform: skew(-16deg);
}

.special-page-header .global-brand-mark i { left: 9px; background: var(--nav-accent); }
.special-page-header .global-brand-mark b { right: 8px; background: var(--nav-accent-2); }
.special-page-header .global-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.special-page-header .global-brand strong { color: var(--nav-ink); font-size: 16px; letter-spacing: -.02em; }
.special-page-header .global-brand small { margin-top: 5px; color: var(--nav-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.special-page-header .global-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--nav-ink);
  font-size: 13px;
  font-weight: 750;
}

.special-page-header .global-menu > a,
.special-page-header .nav-parent,
.special-page-header .nav-toggle {
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.special-page-header .global-menu > a,
.special-page-header .nav-parent { padding: 12px 0; }
.special-page-header .global-menu > a:hover,
.special-page-header .nav-parent:hover,
.special-page-header .nav-toggle:hover { color: var(--nav-accent); }
.special-page-header .nav-group { position: relative; display: inline-flex; align-items: center; }
.special-page-header .nav-toggle { width: 27px; height: 36px; padding: 0; display: grid; place-items: center; }
.special-page-header .nav-toggle span { font-size: 12px; transition: transform .2s ease; }
.special-page-header .nav-group.is-open > .nav-toggle span { transform: rotate(180deg); }

.special-page-header .nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -22px;
  width: 330px;
  padding: 12px;
  border: 1px solid rgba(123, 151, 174, .15);
  border-radius: 20px;
  background: rgba(252, 253, 255, .99);
  box-shadow: 0 28px 70px rgba(14, 35, 57, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s cubic-bezier(.2, .72, .2, 1);
}

.special-page-header .nav-group:hover .nav-panel,
.special-page-header .nav-group:focus-within .nav-panel,
.special-page-header .nav-group.is-open .nav-panel { opacity: 1; visibility: visible; transform: none; }
.special-page-header .nav-panel a { padding: 13px 14px; display: flex; flex-direction: column; border-radius: 13px; color: var(--nav-ink); text-decoration: none; }
.special-page-header .nav-panel a:hover { background: rgba(85, 124, 255, .08); }
.special-page-header .nav-panel b { font-size: 13px; }
.special-page-header .nav-panel small { margin-top: 3px; color: #718095; font-size: 12px; }

.special-page-header .header-button {
  min-height: 43px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(105deg, var(--nav-accent), var(--nav-accent-2));
  box-shadow: 0 12px 26px rgba(85, 124, 255, .24);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.special-page-header .global-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(105, 134, 158, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  color: var(--nav-ink);
}

.special-page-header .global-menu-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  margin: 5px auto;
  display: block;
  border-radius: 2px;
  background: currentColor;
}

.special-page-header .nav-mobile-cta { display: none !important; }

.site-nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.site-menu .site-nav-parent {
  padding-right: 4px;
}

.site-nav-toggle {
  width: 28px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  font-size: 13px;
  line-height: 1;
  transition: transform .22s ease;
}

.site-nav-group.is-open .site-nav-toggle span {
  transform: rotate(180deg);
}

.site-nav-panel {
  position: absolute;
  z-index: 150;
  top: calc(100% + 15px);
  left: -18px;
  width: 330px;
  padding: 11px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(112,145,170,.19);
  border-radius: 20px;
  background: rgba(250,253,255,.97);
  color: #1a3346;
  box-shadow: 0 28px 70px rgba(18,45,67,.2);
  backdrop-filter: blur(22px) saturate(1.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.site-nav-group:hover .site-nav-panel,
.site-nav-group:focus-within .site-nav-panel,
.site-nav-group.is-open .site-nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-menu .site-nav-panel a {
  min-width: 0;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  border-radius: 13px;
  color: inherit;
  text-decoration: none;
}

.site-menu .site-nav-panel a:hover,
.site-menu .site-nav-panel a:focus-visible {
  background: rgba(69,126,202,.09);
}

.site-menu .site-nav-panel b {
  font-size: 13px;
  line-height: 1.25;
}

.site-menu .site-nav-panel small {
  color: #718497;
  font-size: 12px;
  line-height: 1.35;
}

.corporate-home .site-nav-panel {
  border-color: rgba(147,174,224,.17);
  background: rgba(7,13,30,.96);
  color: #eff4ff;
  box-shadow: 0 30px 75px rgba(0,0,0,.42);
}

.corporate-home .site-menu .site-nav-panel a:hover,
.corporate-home .site-menu .site-nav-panel a:focus-visible {
  background: rgba(106,137,255,.12);
}

.corporate-home .site-menu .site-nav-panel small {
  color: #91a0bf;
}

.product-local-nav {
  position: fixed;
  z-index: 96;
  top: 82px;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(109,157,181,.13);
  background: rgba(247,252,253,.83);
  backdrop-filter: blur(18px) saturate(1.25);
}

.product-local-nav .shell {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px,2.6vw,36px);
  overflow-x: auto;
  scrollbar-width: none;
}

.product-local-nav .shell::-webkit-scrollbar {
  display: none;
}

.product-local-nav span,
.product-local-nav a {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.product-local-nav span {
  color: #8a9ca9;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.product-local-nav a {
  color: #416477;
}

.product-local-nav a:hover {
  color: #3d9fbd;
}

.product-alina-page .hero {
  padding-top: 154px;
}

.product-alina-page .hero-channel-button small,
.product-alina-page .consultation-channel small {
  font-size: 13px !important;
}

.product-alina-page .conversation .message p {
  font-size: 14px !important;
}

.corporate-home .hero-note,
.corporate-home .panel-caption,
.product-alina-page .channel-footer p,
.product-alina-page .consultation-status {
  font-size: 14px !important;
}

.corporate-home [data-reveal],
.product-alina-page [data-reveal] {
  transform: translateY(14px);
  transition-duration: .42s;
}

.site-menu > .nav-mobile-cta {
  display: none !important;
}

@media (max-width: 1180px) {
  .site-menu {
    gap: 14px !important;
  }

  .site-menu .site-nav-parent,
  .site-menu > .nav-direct-link {
    font-size: 13px;
  }
}

@media (max-width: 1120px) {
  .special-page-header { height: 72px; }
  .special-page-header .site-shell { width: calc(100% - 28px); }
  .special-page-header .header-button { display: none; }
  .special-page-header .global-menu-toggle { display: block; }
  .special-page-header .global-menu {
    position: fixed;
    inset: 72px 0 auto;
    width: 100%;
    height: calc(100dvh - 72px);
    padding: 22px 20px 32px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
    border-top: 1px solid rgba(105, 134, 158, .15);
    background: rgba(249, 252, 254, .98);
  }
  .special-page-header .global-menu.is-open { display: flex; }
  .special-page-header .global-menu > a,
  .special-page-header .nav-parent { width: 100%; padding: 13px; text-align: left; font-size: 15px; }
  .special-page-header .nav-group { width: 100%; display: grid; grid-template-columns: 1fr 48px; }
  .special-page-header .nav-toggle { width: 48px; height: 48px; justify-self: end; border: 1px solid rgba(105, 134, 158, .2); border-radius: 13px; }
  .special-page-header .nav-panel {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    margin: 0 8px 10px;
    padding: 5px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }
  .special-page-header .nav-group:hover .nav-panel,
  .special-page-header .nav-group:focus-within .nav-panel { display: none; }
  .special-page-header .nav-group.is-open .nav-panel { display: block; }
  .special-page-header .global-menu > .nav-mobile-cta {
    min-height: 50px;
    margin-top: 10px;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(105deg, var(--nav-accent), var(--nav-accent-2));
    color: #fff !important;
    font-weight: 850;
  }

  .corporate-home .site-menu {
    top: 0 !important;
    bottom: auto !important;
    height: 100dvh;
    max-height: 100dvh;
  }

  .product-alina-page .site-menu {
    top: 72px !important;
    bottom: auto !important;
    height: calc(100dvh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }

  .site-nav-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 46px;
  }

  .site-menu .site-nav-parent {
    width: 100%;
    padding-right: 8px;
  }

  .site-nav-toggle {
    width: 46px;
    height: 46px;
    justify-self: end;
    border: 1px solid rgba(104,142,166,.18);
    border-radius: 13px;
  }

  .site-nav-panel {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    margin: 4px 0 10px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .site-nav-group:hover .site-nav-panel,
  .site-nav-group:focus-within .site-nav-panel {
    display: none;
  }

  .site-nav-group.is-open .site-nav-panel {
    display: grid;
  }

  .site-menu .site-nav-panel a {
    font-size: 14px !important;
  }

  .site-menu .site-nav-panel b {
    font-size: 14px;
  }

  .site-menu .site-nav-panel small {
    font-size: 12px;
  }

  .site-menu > .nav-direct-link {
    width: 100%;
  }

  .site-menu > .nav-mobile-cta {
    width: 100%;
    min-height: 52px;
    margin-top: 10px;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(105deg,#547eff,#5ed5dd);
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 850;
    text-align: center;
    box-shadow: 0 16px 34px rgba(75,118,224,.25);
  }

  .product-local-nav {
    top: 72px;
  }

  .product-local-nav .shell {
    justify-content: flex-start;
    padding-inline: 18px;
  }

  .product-alina-page .hero {
    padding-top: 144px;
  }
}

@media (max-width: 640px) {
  .special-page-header .site-shell { width: calc(100% - 22px); }
  .special-page-header .global-brand strong { font-size: 15px; }
  .special-page-header .global-brand small { font-size: 11px; }

  .product-local-nav span {
    display: none;
  }

  .product-local-nav .shell {
    min-height: 42px;
    gap: 23px;
  }

  .product-local-nav a {
    font-size: 12px;
  }

  .product-alina-page .hero {
    padding-top: 136px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-panel,
  .site-nav-toggle span {
    transition: none;
  }
}

/* UX/UI v4: all three homepage principles remain accessible on compact screens. */
@media (max-width: 920px) {
  .corporate-home .hero-points-grid {
    min-height: 104px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .corporate-home .hero-points-grid::-webkit-scrollbar {
    display: none;
  }

  .corporate-home .hero-point,
  .corporate-home .hero-point:first-child {
    flex: 0 0 min(78vw, 330px);
    display: grid;
    padding: 18px 22px;
    border-left: 1px solid rgba(255,255,255,.08);
    scroll-snap-align: start;
  }

  .corporate-home .hero-point:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .corporate-home .hero-point,
  .corporate-home .hero-point:first-child {
    flex-basis: 84vw;
  }

  .corporate-home [data-reveal],
  .product-alina-page [data-reveal] {
    transform: translateY(12px);
    transition-duration: .4s;
  }
}
