/* =========================================================================
   layout.css — header/nav, top bar, footers, hero shells, glass surfaces.
   ========================================================================= */

/* --------------------------------- topbar -------------------------------- */
.topbar {
  position: relative;
  z-index: 60;
  font-size: 0.85rem;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.08) 45%, rgba(168, 85, 247, 0.12));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}
.topbar__inner { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; min-height: 40px; flex-wrap: wrap; padding-block: 5px; }
.topbar__msg { flex: 1 1 420px; min-width: 0; }
.topbar__links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 550; white-space: nowrap; }
.topbar__links a:hover { color: #fff; }
.topbar__sep { color: var(--hairline-strong); }

/* --------------------------------- header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(5, 7, 13, 0.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-stuck {
  background: rgba(5, 7, 13, 0.88);
  box-shadow: 0 20px 50px -34px rgba(0, 0, 0, 1), 0 0 0 1px rgba(34, 211, 238, 0.08);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; padding: 6px 8px 6px 4px; border-radius: 14px; flex: none; }
.brand__mark { width: 40px; height: 40px; display: grid; place-items: center; filter: drop-shadow(0 6px 18px rgba(34, 211, 238, 0.35)); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: grid; line-height: 1.05; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.055em;
  font-size: clamp(0.86rem, 1.02vw, 1.02rem);
  background: linear-gradient(92deg, #fff, #bcd8ff 55%, #c9b4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.brand:hover .brand__mark { filter: drop-shadow(0 8px 26px rgba(168, 85, 247, 0.55)); }

.main-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 0.925rem;
  font-weight: 550;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-list a[aria-current="page"] { color: #fff; background: rgba(34, 211, 238, 0.12); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.28); }
.nav-item--account > a { color: var(--cyan); font-weight: 650; }
.nav-caret { transition: transform 0.2s ease; }
.nav-item--menu.is-open .nav-caret { transform: rotate(180deg); }

/* mega menu */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -20px;
  width: min(430px, 88vw);
  padding: 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(18, 26, 44, 0.96), rgba(9, 13, 24, 0.97));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0) scale(0.985);
  transition: opacity 0.2s ease, transform 0.24s ease, visibility 0.2s;
}
.nav-item--menu.is-open .mega, .mega:hover { opacity: 1; visibility: visible; transform: none; }
.mega__title { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.mega__list { list-style: none; padding: 0; display: grid; gap: 2px; }
.mega__list a { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 9px; font-size: 0.9rem; }
.mega__list a:hover { background: rgba(34, 211, 238, 0.1); color: #fff; }
.mega__list .icon { color: var(--cyan); }
.mega__foot { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }

.header-actions { display: flex; align-items: center; gap: 9px; position: relative; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  cursor: pointer;
  transition: 0.18s;
}
.icon-btn:hover { color: #fff; border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 22px -6px rgba(34, 211, 238, 0.6); }
.icon-btn .icon { width: 20px; height: 20px; }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(268px, 86vw);
  padding: 14px;
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(18, 26, 44, 0.97), rgba(9, 13, 24, 0.98));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-2);
  z-index: 80;
}
.dropdown[hidden] { display: none; }
.dropdown__title { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.dropdown ul { list-style: none; padding: 0; margin: 8px 0 0; }
.dropdown li + li { margin-top: 2px; }
.dropdown a { display: block; padding: 8px 10px; border-radius: 9px; font-size: 0.9rem; color: var(--ink-2); }
.dropdown a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.dropdown__note { font-size: 0.78rem; color: var(--faint); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); }

.nav-toggle { display: none; width: 44px; height: 40px; border-radius: 12px; border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 4px; place-items: center; }
.nav-toggle__bars i { display: block; width: 18px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform 0.22s ease, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }
.nav-scrim { position: fixed; inset: 0; background: rgba(3, 5, 10, 0.72); backdrop-filter: blur(3px); z-index: 55; }
.nav-scrim[hidden] { display: none; }

/* ------------------------------ section heads ---------------------------- */
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 3vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 10px; }
.section-head__sub { color: var(--muted); margin-top: 12px; font-size: clamp(0.98rem, 1.05vw, 1.1rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow__line { display: inline-block; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.section-head--center .eyebrow__line { background: linear-gradient(90deg, transparent, var(--cyan), transparent); }

/* ---------------------------------- hero --------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(34px, 4.6vw, 74px) clamp(44px, 5.4vw, 92px);
  overflow: clip;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 54px); align-items: center; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero__badge .icon { color: var(--amber); width: 16px; height: 16px; }
.hero h1 { margin-top: 16px; text-transform: none; }
.hero .lead { margin-top: 16px; }
.hero__sub2 { margin-top: 12px; color: var(--muted); font-size: 0.95rem; max-width: 56ch; }
.hero .btn-row { margin-top: 26px; }
.hero__facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 0.9rem; color: var(--ink-2); }
.hero__facts li { display: flex; gap: 9px; align-items: flex-start; }
.hero__art { position: relative; min-height: clamp(320px, 34vw, 470px); }

/* ------------------------------- page hero ------------------------------- */
.page-hero { position: relative; padding-block: clamp(38px, 5vw, 78px) clamp(30px, 3.4vw, 54px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: clamp(22px, 3vw, 52px); align-items: center; }
.page-hero--compact .page-hero__grid { grid-template-columns: 1fr; }
.page-hero--compact .page-hero__art { display: none; }
.page-hero__copy h1 { margin-top: 14px; }
.page-hero__copy .lead { margin-top: 14px; }
.page-hero__art { position: relative; }
.hero-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.hero-points li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 0.95rem; }
.hero-meta { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta li {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  min-width: 130px;
}
.hero-meta span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.hero-meta strong { font-size: 0.95rem; }
.artnote { font-size: 0.78rem; color: var(--faint); margin-top: 10px; text-align: center; }

/* ------------------------------- glass shells ---------------------------- */
.glass-card {
  position: relative;
  padding: clamp(18px, 2vw, 30px);
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.glass-card > h3 { margin-bottom: 10px; }
.glass-card--pad-lg { padding: clamp(22px, 2.6vw, 40px); }
.glass-panel {
  border-radius: var(--r-xl);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-2);
  padding: clamp(20px, 2.6vw, 40px);
  position: relative;
  overflow: clip;
}
.glass-panel::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), rgba(168, 85, 247, 0.6), transparent);
}

.card3d {
  position: relative;
  padding: clamp(18px, 1.7vw, 26px);
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  transform-style: preserve-3d;
  transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.34s, background 0.3s;
  will-change: transform;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card3d:hover { border-color: rgba(34, 211, 238, 0.34); box-shadow: 0 40px 70px -46px rgba(0, 0, 0, 1), 0 0 0 1px rgba(34, 211, 238, 0.14), 0 0 44px -18px rgba(34, 211, 238, 0.5); }
.card3d__glow {
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 130%;
  background: radial-gradient(50% 50% at 50% 100%, rgba(34, 211, 238, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.34s;
  pointer-events: none;
  z-index: -1;
}
.card3d:hover .card3d__glow { opacity: 1; }
.card3d h3 { margin-bottom: 8px; }
.card3d p { font-size: 0.935rem; }

/* --------------------------------- footer -------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 90px);
  padding-top: clamp(34px, 4vw, 62px);
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.2), rgba(3, 5, 10, 0.92) 55%, #03050a);
  border-top: 1px solid var(--hairline);
}
.footer__grid { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0, 0.75fr)); gap: clamp(20px, 3vw, 44px); padding-bottom: clamp(24px, 3vw, 44px); }
.footer__brand .brand--footer { padding-left: 0; }
.footer__tag { margin-top: 12px; color: var(--muted); font-size: 0.93rem; max-width: 34ch; }
.footer__addr { display: grid; gap: 7px; margin: 16px 0 0; font-style: normal; font-size: 0.9rem; }
.footer__addr a, .footer__addr span { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-2); }
.footer__addr a:hover { color: #fff; }
.footer__addr em { color: var(--faint); font-style: normal; font-size: 0.8rem; }
.footer__cta { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.footer__col h2 { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); font-family: var(--font-body); font-weight: 700; margin-bottom: 12px; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 3px; }
.footer__col a { display: inline-block; padding: 4px 0; font-size: 0.9rem; color: var(--ink-2); }
.footer__col a:hover { color: var(--cyan); transform: translateX(2px); }
.footer__legal { border-top: 1px solid var(--hairline); padding: 18px 0 26px; display: grid; gap: 10px; }
.footer__disclaimer { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--faint); max-width: 110ch; }
.footer__disclaimer .icon { color: var(--amber); flex: none; margin-top: 2px; }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--faint); border-top: 1px dashed rgba(255, 255, 255, 0.08); padding-top: 14px; }
.footer__bar p { color: var(--faint); }
.footer__meta { text-align: right; }

/* ---------------------------------- FAB ---------------------------------- */
.fab-stack { position: fixed; z-index: 65; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.fab {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab .icon { width: 25px; height: 25px; }
.fab--wa { background: linear-gradient(150deg, #22c55e, #059669); color: #04160c; }
.fab--call { background: linear-gradient(150deg, rgba(34, 211, 238, 0.95), rgba(79, 124, 255, 0.95)); color: #04121f; }
.fab:hover { transform: translateY(-3px) scale(1.03); }
.fab--wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: fabPulse 3.4s ease-out infinite;
}
.fab--wa { position: relative; overflow: hidden; }
@keyframes fabPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
