/* ====================================================================
   CUSTOM STYLES - REFACTORED & MODULAR
   ==================================================================== */

/* ------------------------------
 * >> UTILITIES & SHARED
 * ------------------------------ */

/* Vertical spacing utility */
.u-section-gap {
  margin-top: 3.5rem !important;
  margin-bottom: 3.5rem !important;
}

.platform-modal__overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(43, 108, 255, 0.35), rgba(14, 22, 40, 0.75));
  backdrop-filter: blur(6px);
  z-index: 999;
  padding: 1.5rem;
  overscroll-behavior: contain;
  overflow: auto;
}

.platform-modal__overlay.is-visible {
  display: flex;
}



.platform-modal {
  position: relative;
  max-width: 480px;
  width: 100%;
  padding: 3.4rem 2.5rem 2.35rem;
  border-radius: 22px;
  text-align: center;
  color: #111319;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 239, 251, 0.95) 55%, rgba(208, 223, 247, 0.94) 100%);
  box-shadow: 0 28px 60px rgba(18, 28, 60, 0.18);
  border: 1px solid rgba(29, 41, 58, 0.08);
}

.platform-modal h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1d293a;
}

.platform-modal__desc {
  margin: 0 0 1.35rem 0;
  color: rgba(29, 41, 58, 0.72);
  font-size: 0.96rem;
  line-height: 1.55;
}

.platform-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.7rem;
}

.platform-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  width: 100%;
  border-radius: 12px;
  font-weight: 600;
  color: #0d101d !important;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
  box-shadow: 0 12px 26px rgba(12, 23, 46, 0.16);
  letter-spacing: normal !important;
}

.platform-modal__action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(12, 23, 46, 0.22);
}

.platform-modal__action--arm {
  background: linear-gradient(140deg, #ff8a3d 0%, #ff6d4b 100%);
  color: #ffffff !important;
}

.platform-modal__action--arm:hover {
  background: linear-gradient(140deg, #ffa45f 0%, #ff825c 100%);
}

.platform-modal__action--intel {
  background: linear-gradient(140deg, #43d3ff 0%, #2bb8ff 100%);
}

.platform-modal__action--intel:hover {
  background: linear-gradient(140deg, #66ddff 0%, #4ac6ff 100%);
}



.platform-modal__close {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  border: none;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(29, 41, 58, 0.58);
  font-size: 1.1rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(14, 28, 58, 0.12);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.platform-modal__close:hover {
  background: rgba(255, 255, 255, 0.85);
  color: rgba(29, 41, 58, 0.85);
  transform: translateY(-1px);
}

.platform-modal__close .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  letter-spacing: normal;
}

body.modal-open {
  overflow: auto;
}

/* Glass effect base variables */
:root {
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-hover: rgba(255, 255, 255, 0.12);
  --glass-blur: 14px;
  --glass-saturation: 120%;
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
  --glass-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Glass effect utility class */
.u-glass {
  position: relative;
  background: var(--glass-bg) !important;
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

/* Fallback for browsers without backdrop-filter support */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .u-glass { background: rgba(255, 255, 255, 0.15) !important; }
}

/* Compatibility for HTML5UP's .wrapper overlays */
.wrapper.u-glass:before {
  background: inherit !important;
  opacity: 1 !important;
}


/* ------------------------------
 * >> COMPONENTS
 * ------------------------------ */

#nav > ul {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
#header nav > ul > li > a.menuToggle:after
{
  vertical-align: middle !important;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  
}
.lang-switch * {
  vertical-align: middle !important;
}
.lang-switch__container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.lang-switch .sep { opacity: 0.6; }
.lang-switch a { text-decoration: none; border-bottom: none; opacity: 0.85; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.active { font-weight: 700; opacity: 1; }

.slide-in-menu.u-glass {
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-blur: 12px;
}

/* --- Breadcrumbs --- */
.breadcrumb {
  margin: 0.25rem auto 1rem;
  padding: 0;
  color: #7f888f;
  font-size: 0.95rem;
}
.breadcrumb ol { list-style: none !important; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumb li { display: inline-flex; align-items: center; list-style: none !important; }
.breadcrumb li a { color: inherit; text-decoration: none; border-bottom: none; }
.breadcrumb li a:hover { color: #3d4449; }
.breadcrumb li + li::before { content: "›"; opacity: 0.5; margin: 0 0.35rem; }
.breadcrumb li:first-child { padding-left: 0; }

/* --- Platform Buttons (Banner) --- */
.platform-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-buttons__button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.platform-buttons__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  color: #000000 !important;
  min-width: 22em;
  letter-spacing: normal;
}

.platform-buttons__button--pending {
  color: rgba(0, 0, 0, 0.5) !important;
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
}

.platform-buttons__button--pending .icon {
  opacity: 0.6;
}

.platform-buttons__button.u-glass {
  --glass-bg: rgba(255, 255, 255, 1);
  --glass-bg-hover: rgba(255, 255, 255, 1);
  --glass-blur: 10px;
}

.platform-buttons__button:hover {
  transform: scale(1.1);
  box-shadow: var(--glass-shadow-hover);
  background-color: var(--glass-bg-hover) !important; /* Ensure hover bg changes */
}

.platform-buttons__button--pending:hover {
  transform: translateZ(0);
  box-shadow: var(--glass-shadow);
  background-color: var(--glass-bg) !important;
}

/* Neutralize HTML5UP's default .button.primary styles */
.platform-buttons__button.primary:before,
.platform-buttons__button.primary:after {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* --- Generic Content Pages (Terms/Privacy) --- */
article#main {
  background-color: #ffffff;
}

article#main > header {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.5rem 0 !important;
  min-height: auto !important;
}

article#main > section h1,
article#main > header h2 {
  color: #2E3842;
}

article#main > header p {
  color: #8E8892;
}

/* --- App Downloads --- */
.app-downloads {
  display: flex;
  justify-content: center;
  margin: 10rem auto 0 auto;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.app-card {
  width: 280px;
  border-radius: 6px;
  padding: 0.9rem;
  text-align: center;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05) inset;
}

.app-card__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
}

.app-card__qr {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.5rem auto;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05) inset;
  overflow: hidden;
}
.app-card__qr--placeholder {
  color: #9aa0a6;
  font-weight: 600;
}
.app-card__qr img { max-width: 100%; height: auto; display: block; }

.app-card__hint, .app-card__link { font-size: 0.9rem; }

.app-card__button {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.app-card__button.u-glass {
  --glass-blur: 8px;
  background-color: black !important;
}

.app-card__button:hover {
  transform: translateY(-1px);
  box-shadow: var(--glass-shadow-hover);
  /* background-color: var(--glass-bg-hover) !important; */
}


/* --- Two-Split Layout (Gallery & Text) --- */
.two-split__inner {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  max-width: 80em !important;
  width: 100% !important;
  padding: 2rem 0;
}

.gallery-strip {
  flex: 0 0 50%;
  display: flex;
  gap: 1rem;
  position: relative;
}

.phone-frame {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: block;
  padding: 12px;
  border-radius: 20px;
  transform: translateZ(0) scale(1);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
  border-bottom: 0 !important;
}

.phone-frame.u-glass {
  --glass-bg: rgba(255,255,255,0.10);
  --glass-blur: 12px;
}

@media screen and (min-width: 1111px) {
  .phone-frame:hover {
    transform: scale(1.06);
    z-index: 2;
    box-shadow: var(--glass-shadow-hover);
    background-color: var(--glass-bg-hover) !important;
  }
}

.phone-frame__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  position: relative;
}

/* Top speaker notch */
.phone-frame::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15) inset;
  pointer-events: none;
}

.strip-text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.75rem;
}
.strip-text__item h2 { margin: 0 0 0.25rem 0; }
.strip-text__item p { margin: 0 0 0.5rem 0; }


/* --- Media Queries --- */
@media screen and (max-width: 1110px) {
  .two-split__inner {
    flex-direction: column;
    gap: 1rem;
  }
  .gallery-strip, .strip-text {
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
  }

}

@media screen and (max-width: 640px) {

  .phone-frame {
    padding: 0;
  }
  
}

@media screen and (max-width: 736px) {
  .u-section-gap { margin-top: 2rem !important; margin-bottom: 2rem !important; }

  .platform-modal {
    padding: 1.5rem;
  }
  .platform-modal__actions {
    gap: 0.6rem;
  }
}

@media screen and (max-width: 480px) {
  .header-nav > ul { gap: 0.5rem; }
  .lang-switch { font-size: 0.9rem; }
}

@media screen and (max-width: 450px) {
  .gallery-strip {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  .phone-frame {
    padding: 8px;
    border-radius: 16px;
  }

  .phone-frame__screen {
    border-radius: 10px;
  }
}

/* --- Banner Logo --- */
.banner-logo {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.banner-logo img {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
}

.banner-logo__title {
  font-size: 2.25rem;
  color: #fff;
  margin-top: 1rem;
  letter-spacing: 0.1em;
}

/* --- Footer Credits --- */
.credits {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.credits li {
  display: inline;
  margin: 0 0.5em;
  white-space: nowrap;
}

.credits a {
  color: inherit;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

.credits a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.app-card__title {
  text-transform: none;
  letter-spacing: normal;
}
.article {
  padding: 2em 0 4em 0;
}

.single-page #header.alt h1 {
  opacity: 1 !important; 
}

@media screen and (max-width: 980px) {
  .single-page .wrapper > .inner
  {
    width: 90%;
  }
}
