/* Shared layout partial hooks and public header/footer styles. */
:root {
  --xv-font-main: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  font-family: var(--xv-font-main);
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

#site-header,
#site-footer {
  display: contents;
}

#site-header .site-navbar {
  background: rgba(10, 15, 25, 0.78) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0 !important;
  z-index: 1200;
}

#site-header .site-navbar .header-container {
  width: 100% !important;
  max-width: none !important;
  padding-left: clamp(18px, 3vw, 56px) !important;
  padding-right: clamp(18px, 3vw, 56px) !important;
}

#site-header .site-navbar .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

#site-header .site-navbar .site-logo {
  flex: 0 0 auto;
  min-width: 0;
}

#site-header .site-navbar .site-logo h1 {
  line-height: 1;
}

#site-header .site-navbar .site-logo a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
}

#site-header .header-menu {
  position: relative;
  flex: 0 0 auto;
}

#site-header .header-menu__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

#site-header .header-menu__button:hover,
#site-header .header-menu__button:focus-visible,
#site-header .site-navbar.is-menu-open .header-menu__button {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  outline: none;
}

#site-header .header-menu__button:hover {
  transform: translateY(-1px);
}

#site-header .header-menu__button:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72);
}

#site-header .header-menu__hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 18px;
}

#site-header .header-menu__hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

#site-header .site-navbar.is-menu-open .header-menu__hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#site-header .site-navbar.is-menu-open .header-menu__hamburger span:nth-child(2) {
  opacity: 0;
}

#site-header .site-navbar.is-menu-open .header-menu__hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

#site-header .header-menu__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

#site-header .header-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, calc(100vw - 28px));
  padding: 10px;
  border-radius: 16px;
  background: rgba(10, 15, 25, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 64px rgba(2, 6, 23, 0.42);
  z-index: 1300;
}

#site-header .header-menu__panel[hidden] {
  display: none !important;
}

#site-header .site-navbar .site-navigation {
  display: block;
}

#site-header .site-navbar .site-menu {
  display: grid !important;
  gap: 4px;
  margin: 0 !important;
  padding: 0 0 10px !important;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#site-header .site-navbar .site-menu > li {
  min-width: 0;
}

#site-header .site-navbar .site-menu > li > a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 850;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 10px 12px !important;
  border-radius: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

#site-header .site-navbar .site-menu > li > a .header-menu__link-icon {
  display: inline-flex;
  width: 18px;
  min-width: 18px;
  align-items: center;
  justify-content: center;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

#site-header .site-navbar .site-menu > li > a:hover,
#site-header .site-navbar .site-menu > li.active > a {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

#site-header .site-navbar .site-menu > li > a:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  outline: 2px solid rgba(255, 255, 255, 0.56);
  outline-offset: 2px;
}

#site-header .header-menu__language {
  padding-top: 10px;
}

#site-header .header-menu__label {
  margin: 0 0 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

#site-header .header-menu__lang-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

#site-header .header-menu__lang-options button {
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

#site-header .header-menu__lang-options button:hover,
#site-header .header-menu__lang-options button:focus-visible,
#site-header .header-menu__lang-options button.is-active,
#site-header .header-menu__lang-options button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  outline: none;
}

#site-header .header-menu__lang-options button:hover {
  transform: translateY(-1px);
}

#site-header .header-menu__lang-options button:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

#site-footer .site-footer .container {
  width: 100% !important;
  max-width: none !important;
  padding-left: clamp(18px, 3vw, 56px) !important;
  padding-right: clamp(18px, 3vw, 56px) !important;
}

#site-footer .site-footer {
  background: #0f1115;
  color: #d1d5db;
  padding: 42px 0 28px;
}

#site-footer .site-footer a {
  color: #d1d5db;
  text-decoration: none;
}

#site-footer .site-footer a:hover {
  color: #fff;
}

#site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) minmax(180px, 0.95fr) minmax(150px, 0.7fr) minmax(180px, 0.8fr);
  gap: 22px 28px;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 22px;
  margin-top: 6px;
}

#site-footer .footer-grid > * {
  min-width: 0;
}

#site-footer .footer-contact-social-group {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(150px, 0.7fr) minmax(180px, 0.8fr);
  gap: 0 28px;
  align-items: start;
  min-width: 0;
}

#site-footer .footer-contact-column {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

#site-footer .footer-social-column {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#site-footer .footer-spacer {
  display: none !important;
}

#site-footer .footer-heading {
  color: #fff;
  font-weight: 950 !important;
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

#site-footer .footer-company {
  max-width: 440px;
}

#site-footer .footer-kicker {
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

#site-footer .footer-text {
  color: #9ca3af;
  line-height: 1.55;
  font-size: 14px;
  margin-bottom: 0;
}

#site-footer .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#site-footer .footer-list li {
  margin-bottom: 8px;
}

#site-footer .footer-legal .footer-list li + li {
  margin-top: 6px;
}

#site-footer .footer-contact-actions,
#site-footer .footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#site-footer .footer-social {
  margin-top: 12px;
}

#site-footer .footer-support-block {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 14px;
}

#site-footer .footer-support-label {
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

#site-footer .footer-icon-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d1d5db;
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#site-footer .footer-icon-link svg {
  width: 18px;
  height: 18px;
}

#site-footer .footer-icon-link:hover,
#site-footer .footer-icon-link:focus-visible {
  transform: translateY(-1px);
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  outline: none;
}

#site-footer .footer-icon-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.38);
}

#site-footer .footer-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#site-footer .footer-support-btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

#site-footer .footer-support-btn:hover,
#site-footer .footer-support-btn:focus-visible {
  color: #fff;
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.22);
  outline: none;
}

#site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 22px;
  padding-top: 14px;
}

#site-footer .footer-bottom small {
  color: #9ca3af;
}

#site-footer .footer-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
}

#site-footer .footer-contact-modal[hidden] {
  display: none !important;
}

#site-footer .footer-contact-modal__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 24px;
  border-radius: 16px;
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color: #d1d5db;
}

#site-footer .footer-contact-modal__panel h2 {
  margin: 0 40px 8px 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
}

#site-footer .footer-contact-modal__panel p {
  margin: 0 0 16px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
}

#site-footer .footer-contact-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #161b22;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#site-footer .footer-contact-options {
  display: grid;
  gap: 10px;
}

#site-footer .footer-contact-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#site-footer .footer-contact-option span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#site-footer .footer-contact-option strong {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

#site-footer .footer-contact-option:hover,
#site-footer .footer-contact-option:focus-visible,
#site-footer .footer-contact-modal__close:hover,
#site-footer .footer-contact-modal__close:focus-visible {
  background: #1f2937;
  color: #fff;
  outline: none;
}

#site-footer .footer-contact-option:focus-visible,
#site-footer .footer-contact-modal__close:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.38);
}

/* Phase 4.1: restrained public-page depth polish. */
body[data-page="home"] #main-content #section-home .hero-card,
body[data-page="company"] #main-content #section-top .hero-card,
body[data-page="support"] #main-content #section-top .hero-card,
body[data-page="ecosystem"] #main-content .eco-hero .hero-card {
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body[data-page="home"] #main-content .app-banner,
body[data-page="company"] #main-content .company-banner,
body[data-page="support"] #main-content .support-card {
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.13) !important;
}

body[data-page="home"] #main-content .unit-4,
body[data-page="company"] #main-content .unit-4,
body[data-page="support"] #main-content .faq-card,
body[data-page="ecosystem"] #main-content .eco-card {
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1) !important;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] #main-content .app-banner:hover,
  body[data-page="company"] #main-content .company-banner:hover,
  body[data-page="support"] #main-content .support-card:hover {
    box-shadow: 0 26px 68px rgba(15, 23, 42, 0.16) !important;
  }

  body[data-page="home"] #main-content .unit-4:hover,
  body[data-page="company"] #main-content .unit-4:hover,
  body[data-page="support"] #main-content .faq-card:hover,
  body[data-page="ecosystem"] #main-content .eco-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.13) !important;
  }
}

@media (max-width: 991.98px) {
  #site-header .site-navbar {
    padding: 10px 0 !important;
  }

  #site-header .site-navbar .navbar-inner {
    gap: 10px;
  }

  #site-header .site-navbar .site-logo a {
    font-size: 18px;
  }

  #site-header .header-menu__button {
    min-height: 36px;
    padding: 7px 10px;
  }

  #site-header .header-menu__panel {
    right: 0;
  }

  #site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  #site-footer .footer-contact-social-group {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  body[data-page="ecosystem"] #main-content .eco-card h3,
  body[data-page="ecosystem"] #main-content .flow-step h4,
  body[data-page="company"] #main-content #businessOverviewTitle,
  body[data-page="company"] #main-content .business-card h3,
  body[data-page="company"] #main-content .business-overview-panel h3,
  body[data-page="company"] #main-content .company-banner h3,
  body[data-page="company"] #main-content .company-banner-section h4,
  body[data-page="company"] #main-content .company-banner-inquiry h4,
  body[data-page="company"] #main-content .unit-4 h3,
  body[data-page="support"] #main-content .faq-q,
  body[data-page="support"] #main-content .support-guide h3 {
    text-align: center !important;
  }

  #site-header .header-menu__button {
    gap: 6px;
  }

  #site-header .header-menu__panel {
    position: fixed;
    top: 64px;
    left: 14px;
    right: 14px;
    width: auto;
  }

  #site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  #site-footer .footer-contact-social-group {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 18px;
  }

  #site-footer .footer-contact-column {
    grid-column: 1;
    grid-row: 1;
  }

  #site-footer .footer-social-column {
    grid-column: 2;
    grid-row: 1;
  }

  #site-footer .footer-support-block {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }

  #site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  #site-footer .footer-contact-modal__panel {
    padding: 22px;
  }
}
