:root {
  --blue: #00166d;
  --cyan: #00b1df;
  --cyan-rgb: 0, 177, 223;
  --ice: #f8fdff;
  --line: rgba(var(--cyan-rgb), 0.28);
  --text: #284766;
  --muted: #61798d;
  --cyan-soft: rgba(var(--cyan-rgb), 0.1);
  --cyan-pale: #ccf7ff;
  --coral: #ff7d68;
  --sun: #f6c85f;
  --champagne: #f7d989;
  --champagne-soft: #fff7df;
  --champagne-line: #e6bd55;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ice);
  color: var(--blue);
  font-family: Inter, Manrope, Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
li,
td,
th {
  color: var(--text);
  line-height: 1.7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.16;
}

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

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.version-bar {
  background: var(--blue);
  color: white;
  font-size: 12px;
}

.version-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.version-bar span {
  color: white;
}

.version-bar b {
  color: var(--cyan-pale);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
}

.brand-logo {
  width: 218px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 14.4px;
  font-weight: 800;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.nav-links a.active,
.nav-links a:hover {
  border-color: var(--cyan);
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.button,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 14px 22px;
}

.button.cyan,
.chip-button.active {
  background: var(--cyan);
  color: white;
}

.button.outline,
.chip-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--blue);
}

.button.light {
  background: white;
  color: var(--blue);
}

.button.small {
  padding: 10px 14px;
  font-size: 13px;
}

.button.ghost {
  background: transparent;
  color: var(--blue);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  flex: 0 0 auto;
  padding: 2px;
}

.lang-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 7px;
}

.lang-toggle button.active {
  background: var(--blue);
  color: white;
}

.hero {
  position: relative;
  overflow: hidden;
  background: white;
}

.hero::before {
  position: absolute;
  inset: 0 0 0 39%;
  content: "";
  background:
    linear-gradient(90deg, white 0%, rgba(255, 255, 255, 0.78) 28%, rgba(255, 255, 255, 0) 60%),
    url("assets/reference/virtus-ways-hero.png") right center / cover no-repeat;
}

.hero-grid {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(0, 22, 109, 0.94), rgba(0, 177, 223, 0.68)),
    url("assets/reference/guide-hong-kong-hiking.png") center / cover;
  color: white;
  padding: 98px 0;
}

.page-hero h1 {
  max-width: 760px;
  color: white;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.03;
}

.page-hero .lead {
  max-width: 680px;
  font-size: 21px;
  line-height: 1.65;
}

.page-hero.community-bg {
  background:
    linear-gradient(120deg, rgba(0, 22, 109, 0.92), rgba(0, 177, 223, 0.5)),
    url("assets/reference/community-circle.png") center / cover;
}

.page-hero.shop-bg {
  background:
    linear-gradient(120deg, rgba(0, 22, 109, 0.92), rgba(0, 177, 223, 0.58)),
    url("assets/reference/virtus-ways-hero.png") center / cover;
}

.page-hero.ways-membership-bg {
  background:
    linear-gradient(120deg, rgba(0, 22, 109, 0.92), rgba(0, 177, 223, 0.58)),
    url("assets/reference/member-signup.png") center / cover;
}

.page-hero.get-active-bg {
  background:
    linear-gradient(120deg, rgba(0, 22, 109, 0.9), rgba(0, 177, 223, 0.54)),
    url("assets/reference/classes-events.png") center / cover;
}

.page-hero.ways-media-bg {
  background:
    linear-gradient(120deg, rgba(0, 22, 109, 0.92), rgba(0, 177, 223, 0.6)),
    url("assets/reference/shop-consult.png") center / cover;
}

.page-hero p,
.page-hero .lead {
  color: var(--cyan-pale);
}

.eyebrow,
.small-title,
.tag {
  display: none;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: none;
  margin: 0 0 24px;
  border: 1px solid #a8e6f2;
  border-radius: 999px;
  background: #e9faff;
  color: #007fa3;
  padding: 9px 16px;
}

.lead {
  max-width: 680px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

section {
  padding: 84px 0;
}

.section-white {
  background: white;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cyan);
}

.two {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.two.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.three,
.four,
.card-grid,
.shop-grid,
.topic-grid,
.media-grid,
.offer-grid {
  display: grid;
  gap: 18px;
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

.four {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid,
.topic-grid {
  grid-template-columns: repeat(2, 1fr);
}

.shop-grid,
.media-grid,
.offer-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.panel,
.product-card,
.media-card,
.event-panel,
.topic-card,
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(0, 22, 109, 0.06);
}

.card h3,
.panel h3,
.product-card h3,
.media-card h3,
.topic-card h3,
.testimonial-card h3 {
  font-size: 24px;
  line-height: 1.16;
}

.card.sky,
.panel.sky {
  background: var(--cyan-soft);
}

.card.dark,
.panel.dark {
  border: 0;
  background: var(--blue);
  color: white;
}

.card.dark p,
.panel.dark p,
.panel.dark li {
  color: white;
}

.vip-card {
  border-color: var(--champagne-line);
  background: linear-gradient(145deg, var(--champagne-soft) 0%, var(--champagne) 100%);
}

.wellness-support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.wellness-support-grid > .card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.wellness-support-grid .actions {
  margin-top: auto;
}

.wellness-medical-card h2 {
  color: white;
}

.icon-badge {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: #e9faff;
  color: var(--cyan);
  font-weight: 900;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0fbff;
  padding: 18px;
}

.tile {
  min-height: 102px;
  border-radius: 8px;
  background: white;
  padding: 16px;
  font-weight: 900;
}

.tile::before,
.rule {
  display: block;
  width: 42px;
  height: 8px;
  margin-bottom: 22px;
  border-radius: 99px;
  background: var(--cyan);
  content: "";
}

.journey-section .two {
  align-items: center;
}

.journey-steps h3 {
  margin: 0 0 20px 8px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.journey-steps .tile-grid {
  padding: 24px;
  gap: 20px;
}

.journey-steps .tile {
  min-height: 132px;
  padding: 26px 22px 22px;
}

.journey-steps .tile::before {
  width: 112px;
  height: 30px;
  margin-bottom: 24px;
  border-radius: 0;
  clip-path: polygon(0 36%, 62% 36%, 62% 0, 100% 50%, 62% 100%, 62% 64%, 0 64%);
}

.filter-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 26px;
  box-shadow: 0 12px 32px rgba(0, 22, 109, 0.08);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-input,
.text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue);
  padding: 14px 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 22, 109, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.media-thumb,
.product-thumb,
.video-frame {
  display: grid;
  min-height: 190px;
  margin: -26px -26px 22px;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, #eef3f6 0%, #e2e9ee 100%);
  color: #8aa0af;
  font-weight: 900;
}

.video-frame {
  min-height: 320px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.carousel-shell {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--cyan) transparent;
}

.carousel-item {
  min-width: min(420px, 86vw);
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.app-screen {
  display: none;
  margin-top: 28px;
}

.app-screen.active {
  display: block;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.drawer,
.modal {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: none;
}

.drawer.open,
.modal.open {
  display: block;
}

.modal-backdrop,
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 109, 0.48);
}

.modal-panel,
.drawer-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 880px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: white;
  padding: 32px;
  box-shadow: 0 22px 58px rgba(0, 22, 109, 0.24);
}

.drawer-panel {
  right: 0;
  left: auto;
  width: min(440px, calc(100vw - 32px));
  height: calc(100vh - 36px);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

.footer {
  border-top: 1px solid var(--line);
  background: white;
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-grid > div:not(:first-child) {
  padding-top: 76px;
}

.footer a,
.footer p {
  color: var(--muted);
}

.footer .footer-brand-copy {
  max-width: 360px;
  margin-top: 18px;
  color: var(--blue);
}

.footer .footer-brand-copy b {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.newsletter {
  border-bottom: 1px solid var(--line);
  background: var(--cyan-soft);
  padding: 48px 0;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.newsletter-form input {
  min-width: min(360px, 100%);
  flex: 1;
}

.page-lines {
  display: grid;
  gap: 18px;
  padding: 52px 0;
}

.page-lines span {
  display: block;
  max-width: 240px;
  border-top: 2px solid var(--line);
}

.member-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 96px 0;
}

.member-hero::before {
  position: absolute;
  inset: 0 0 0 58%;
  content: "";
  background:
    linear-gradient(90deg, white 0%, rgba(255, 255, 255, 0.86) 36%, rgba(255, 255, 255, 0.1) 100%),
    url("assets/reference/community-circle.png") center / cover no-repeat;
}

.member-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.member-status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 32px;
  box-shadow: 0 14px 34px rgba(0, 22, 109, 0.1);
}

.member-dashboard {
  display: grid;
  grid-template-columns: 0.78fr 1.42fr;
  gap: 28px;
  align-items: start;
}

.member-side,
.member-main {
  display: grid;
  gap: 22px;
}

.member-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 22, 109, 0.06);
}

.member-card h2,
.member-panel h2,
.member-status-card h2,
.member-details h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.member-card {
  display: grid;
  gap: 8px;
}

.member-card .button,
.member-panel .button {
  justify-self: start;
}

.section-heading-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.member-message-grid,
.member-feed-grid,
.member-detail-grid {
  display: grid;
  gap: 18px;
}

.member-message-grid,
.member-feed-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-link-card,
.member-feed-card,
.member-detail-card {
  display: flex;
  flex-direction: column;
}

.member-link-card b,
.member-feed-card b,
.member-detail-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
}

.progress-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 22px;
}

.progress-summary span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cyan-soft);
  color: var(--text);
  padding: 12px;
  font-size: 14px;
}

.progress-summary b {
  display: block;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.progress-chart {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 150px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, white 0%, var(--cyan-soft) 100%);
  padding: 18px;
}

.progress-chart span {
  flex: 1;
  min-height: 28px;
  border-radius: 8px 8px 0 0;
  background: var(--cyan);
}

.profile-list {
  display: grid;
  gap: 8px;
}

.profile-list p,
.member-saved-list a {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 12px 0;
}

.profile-list p:last-child,
.member-saved-list a:last-child {
  border-bottom: 0;
}

.profile-list span,
.member-saved-list span {
  color: var(--muted);
  text-align: right;
}

.member-saved-list {
  display: grid;
}

.member-details {
  scroll-margin-top: 120px;
}

.member-detail-card {
  scroll-margin-top: 120px;
}

.watermark {
  border-top: 1px solid var(--line);
  background: var(--blue);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  padding: 16px;
  text-align: center;
}

.watermark a {
  color: var(--cyan-pale);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  box-shadow: 0 16px 36px rgba(0, 22, 109, 0.22);
}

.empty-state {
  display: none;
  margin-top: 22px;
}

.empty-state.active {
  display: block;
}

.developer-notes,
[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .nav-links {
    order: 4;
    width: 100%;
    overflow-x: auto;
    padding: 6px 0 2px;
    scrollbar-width: thin;
    white-space: nowrap;
  }

  .hero::before {
    position: relative;
    display: block;
    height: 330px;
    inset: auto;
    background-position: 72% center;
  }

  .hero-grid,
  .two,
  .two.reverse,
  .filter-panel,
  .footer-grid,
  .member-hero-grid,
  .member-dashboard {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .member-hero::before {
    inset: 0 0 auto;
    height: 300px;
    opacity: 0.18;
  }

  .footer-grid > div:not(:first-child) {
    padding-top: 0;
  }

  .hero-grid {
    padding: 58px 0 72px;
  }

  .three,
  .four,
  .shop-grid,
  .media-grid,
  .offer-grid,
  .member-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 660px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .version-bar .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: 166px;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .nav-links {
    display: flex;
    align-items: center;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero::before {
    height: 240px;
    background-position: 0 0, 72% 52%;
    background-size: auto, 132% auto;
  }

  .page-hero {
    padding: 70px 0;
  }

  h1 {
    font-size: 43px;
    line-height: 1.03;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 43px;
    line-height: 1.03;
  }

  .lead,
  .hero .lead,
  .page-hero .lead {
    font-size: 20px;
    line-height: 1.6;
  }

  .card-grid,
  .topic-grid,
  .tile-grid,
  .three,
  .four,
  .shop-grid,
  .media-grid,
  .offer-grid,
  .member-message-grid,
  .member-feed-grid,
  .member-detail-grid,
  .progress-summary {
    grid-template-columns: 1fr;
  }

  .member-hero {
    padding: 70px 0;
  }

  .section-heading-row {
    flex-direction: column;
  }

  .profile-list p,
  .member-saved-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .profile-list span,
  .member-saved-list span {
    text-align: left;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .floating-cta {
    right: 14px;
    bottom: 14px;
  }

}

@media print {
  .version-bar,
  .site-header,
  .floating-cta,
  .developer-notes {
    display: none !important;
  }

  body {
    background: white;
  }
}
