/* ============================================================
   MyPace Life — Global Stylesheet
   Palette: #0047AB · #A2E4B8 · #8EA4D2 · #496F5D · #FFFFFF
   ============================================================ */

/* --- Simplified Chinese font ------------------------------ */
:lang(zh-Hans) {
  font-family: 'Noto Sans SC', sans-serif;
}

/* --- Reset & Base ----------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 130%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  background: var(--color-mist);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-forest);
}

ul, ol {
  padding-left: 1.5em;
}

/* --- Custom Properties ------------------------------------ */
:root {
  /* Palette */
  --color-blue:        #0047AB;
  --color-blue-dark:   #003080;
  --color-blue-darker: #001B44;
  --color-mint:        #A2E4B8;
  --color-periwinkle:  #8EA4D2;
  --color-forest:      #496F5D;
  --color-white:       #FFFFFF;

  /* Derived tones */
  --color-mist:        #F0F3F9;
  --color-ice:         #E4EAF5;
  --color-charcoal:    #1A1A2E;
  --color-gray:        #5C6578;
  --color-gray-light:  #D5DAE6;
  --color-forest-dark: #3A5A4A;
  --color-mint-dark:   #7BCFA0;

  /* Legacy aliases */
  --color-green:       #496F5D;
  --color-green-light: #A2E4B8;
  --color-cream:       #F0F3F9;

  /* Type */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-width:     1140px;
  --header-height: 76px;
  --radius:        12px;
  --radius-sm:     6px;
  --shadow:        0 2px 16px rgba(0, 45, 128, 0.06);
  --shadow-lg:     0 8px 32px rgba(0, 45, 128, 0.11);
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-blue-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

p + p { margin-top: 1em; }

.text-muted {
  color: var(--color-gray);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

/* --- Layout ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--cream {
  background: var(--color-mist);
}

.section--white {
  background: var(--color-white);
}

.section--blue {
  background: linear-gradient(135deg, var(--color-blue-darker) 0%, var(--color-blue-dark) 40%, var(--color-blue) 100%);
  color: var(--color-white);
}

.section--blue h1,
.section--blue h2,
.section--blue h3,
.section--blue h4,
.section--blue h5,
.section--blue p,
.section--blue a {
  color: var(--color-white);
}

.section--blue a:hover {
  color: var(--color-mint);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}

.grid-2--reverse .grid-2__text { order: 2; }
.grid-2--reverse .grid-2__image { order: 1; }

/* --- Gradient Divider ------------------------------------- */
.divider {
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-periwinkle), var(--color-mint), var(--color-periwinkle), var(--color-blue));
  border: none;
  margin: 0;
  opacity: 0.45;
}

/* --- Header / Navigation ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(240, 243, 249, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--color-gray-light);
  box-shadow: 0 1px 10px rgba(0, 45, 128, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-header__logo img {
  height: 47px;
  width: auto;
  mix-blend-mode: multiply;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-forest);
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  width: 28px;
  height: 24px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle span {
  position: relative;
  top: 0;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }

.nav-toggle.open span {
  background: transparent;
}

.nav-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- Language Toggle --------------------------------------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--color-gray-light);
  border-radius: 20px;
  overflow: hidden;
}

.lang-toggle a {
  padding: 0.3rem 0.65rem;
  color: var(--color-gray);
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1;
}

.lang-toggle a:hover {
  color: var(--color-blue);
}

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

.lang-toggle a.active:hover {
  color: var(--color-white);
}

@media (max-width: 767px) {
  .lang-toggle {
    margin-left: auto;
    margin-right: 0;
    order: 2;
  }
}

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  text-align: center;
}

.hero--home {
  padding: 8rem 0 6rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(142, 164, 210, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(162, 228, 184, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  display: block;
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.75rem;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-periwinkle);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero-info-box {
  background: rgba(142, 164, 210, 0.12);
  border: 1px solid rgba(142, 164, 210, 0.25);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  max-width: 700px;
  margin: 1.5rem auto 0;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-info-box p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hero-info-box p:last-child {
  margin-bottom: 0;
}

.hero-info-box strong {
  color: var(--color-white);
}

.section--blue .hero-info-box a,
.section--blue .hero-info-box a strong {
  color: var(--color-green-light);
  font-weight: 700;
}

.hero-info-box a:hover {
  color: var(--color-white);
}

.hero__cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.hero__cta--primary,
.section--blue .hero__cta--primary {
  background: var(--color-mint);
  color: var(--color-blue);
}

.hero__cta--primary:hover {
  background: rgba(142, 164, 210, 0.35);
  color: var(--color-mint);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(142, 164, 210, 0.3);
}

.hero__cta--secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.section--blue .hero__cta--secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(142, 164, 210, 0.3);
}

/* Page hero (smaller, for inner pages) */
.hero--page {
  padding: 4.5rem 0 3rem;
}

.hero--page h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

/* --- Content Sections ------------------------------------- */
.section__header {
  margin-bottom: 2rem;
}

.section__header h2 {
  margin-bottom: 0.75rem;
}

.section__header p {
  color: var(--color-gray);
  max-width: 640px;
}

.grid-2__image {
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.section-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.section__text ul {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.section__text li {
  margin-bottom: 0.5rem;
}

.section__text li strong {
  color: var(--color-charcoal);
}

.section__link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-blue);
  border-bottom: 2px solid var(--color-periwinkle);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.section__link:hover {
  color: var(--color-forest);
  border-bottom-color: var(--color-forest);
}

/* --- Two-Column Feature ----------------------------------- */
.feature-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-pair__item {
  padding: 2.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-blue);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-pair__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-pair__item:nth-child(2) {
  border-left-color: var(--color-forest);
}

.feature-pair--stacked {
  margin-top: 2rem;
}

.feature-pair--horizontal {
  grid-template-columns: 1fr 1fr;
}

.feature-pair__item h3 {
  margin-bottom: 0.75rem;
}

/* --- Technology Section (Dark Showcase) ------------------- */
.section--tech {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #010E24 0%, #001B44 45%, #012358 80%, #010E24 100%);
  padding: 6rem 0 7rem;
}

/* Slow-drifting ambient blue glow */
.section--tech::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 10%;
  width: 80%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(0, 71, 171, 0.30) 0%, transparent 58%);
  pointer-events: none;
  animation: techGlowBlue 8s ease-in-out infinite;
}

/* Mint accent glow — lower right */
.section--tech::after {
  content: '';
  position: absolute;
  bottom: -25%;
  right: 0%;
  width: 55%;
  height: 110%;
  background: radial-gradient(ellipse, rgba(162, 228, 184, 0.09) 0%, transparent 60%);
  pointer-events: none;
  animation: techGlowMint 11s ease-in-out infinite;
}

@keyframes techGlowBlue {
  0%, 100% { transform: translate(0, 0) scale(1);     opacity: 0.85; }
  40%       { transform: translate(5%, 4%) scale(1.06); opacity: 1;    }
  70%       { transform: translate(-3%, -3%) scale(0.96); opacity: 0.7; }
}
@keyframes techGlowMint {
  0%, 100% { transform: translate(0, 0) scale(1);      opacity: 0.7; }
  55%       { transform: translate(-6%, -5%) scale(1.1); opacity: 1;   }
}

/* --- Tech Section Intro ------------------------------------ */
.tech-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.tech-intro__tag {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(162, 228, 184, 0.85);
  margin-bottom: 1rem;
}

.tech-intro__logo {
  display: block;
  height: 160px;
  width: auto;
  margin: 0 auto 1.5rem;
  filter: brightness(0) invert(1);
}

.tech-intro__body {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.tech-intro__pills {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tech-intro__pills span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(162, 228, 184, 0.3);
  color: rgba(162, 228, 184, 0.8);
  background: rgba(162, 228, 184, 0.06);
  letter-spacing: 0.03em;
}

/* --- Module Grid (Technology Modules) --------------------- */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.module-card {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border-top: 4px solid var(--color-blue);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.module-card:nth-child(2) { border-top-color: var(--color-forest); }
.module-card:nth-child(3) { border-top-color: var(--color-periwinkle); }
.module-card:nth-child(4) { border-top-color: var(--color-mint-dark); }

.module-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.module-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-blue-dark);
  letter-spacing: -0.01em;
}

.module-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray);
  background: var(--color-ice);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
}

.module-logo {
  height: 28px;
  width: auto;
}

@media (max-width: 767px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
  .module-connections-svg {
    display: none;
  }
}

/* Dark-theme card overrides */
.section--tech .module-grid {
  gap: 1.25rem;
}

.section--tech .module-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-width: 3px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  padding: 2.5rem;
  opacity: 0; /* hidden until stagger fires */
}

/* Decorative watermark letter per card */
.section--tech .module-card::before {
  content: attr(data-deco);
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  opacity: 0.045;
  pointer-events: none;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  transition: opacity 0.4s ease;
}
.section--tech .module-card:hover::before { opacity: 0; }

/* Module accent colours — brighter on dark bg */
.section--tech [data-module="clonoic"]   { border-top-color: #4D9EFF; }
.section--tech [data-module="coreflexi"] { border-top-color: #A2E4B8; }
.section--tech [data-module="tasklawn"]  { border-top-color: #8EA4D2; }
.section--tech [data-module="cashfluid"] { border-top-color: #7BCFA0; }

/* Hover: lift + glass brighten + per-module glow */
.section--tech .module-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-5px) scale(1.007);
  box-shadow: 0 16px 52px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.section--tech [data-module="clonoic"]:hover   { box-shadow: 0 16px 52px rgba(0,0,0,0.35), 0 0 70px rgba(77,158,255,0.22),   inset 0 1px 0 rgba(255,255,255,0.1); }
.section--tech [data-module="coreflexi"]:hover { box-shadow: 0 16px 52px rgba(0,0,0,0.35), 0 0 70px rgba(162,228,184,0.18), inset 0 1px 0 rgba(255,255,255,0.1); }
.section--tech [data-module="tasklawn"]:hover  { box-shadow: 0 16px 52px rgba(0,0,0,0.35), 0 0 70px rgba(142,164,210,0.22), inset 0 1px 0 rgba(255,255,255,0.1); }
.section--tech [data-module="cashfluid"]:hover { box-shadow: 0 16px 52px rgba(0,0,0,0.35), 0 0 70px rgba(123,207,160,0.18), inset 0 1px 0 rgba(255,255,255,0.1); }

/* Text colours for dark bg */
.section--tech .module-card__header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.section--tech .module-name {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.section--tech .module-tag {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.section--tech .module-card p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.93rem;
  line-height: 1.7;
}
.section--tech .module-logo {
  filter: brightness(0) invert(1);
  opacity: 0.88;
  height: 26px;
}

/* Watermark logo — fades in on hover */
.module-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  pointer-events: none;
  filter: brightness(0) invert(1);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.section--tech .module-card:hover .module-watermark {
  opacity: 0.22;
}

/* Keep card text above watermark */
.section--tech .module-card__header,
.section--tech .module-card p {
  position: relative;
  z-index: 1;
}

/* On hover: brighten text for contrast against the watermark */
.section--tech .module-card:hover .module-name {
  color: #fff;
}
.section--tech .module-card:hover .module-tag {
  color: rgba(255, 255, 255, 0.80);
  background: rgba(255, 255, 255, 0.12);
}
.section--tech .module-card:hover p {
  color: rgba(255, 255, 255, 0.88);
}

/* Interaction states for dark bg */
.section--tech .module-card--dimmed  { opacity: 0.15 !important; }
.section--tech .module-card--connected { outline-color: rgba(255,255,255,0.10); }
.section--tech .module-card--active,
.section--tech .module-card--connected { opacity: 1 !important; }

/* Connection SVG colours for dark bg */
.section--tech .sister-line            { stroke: rgba(162,228,184,0.42); }
.section--tech .sister-line--active    { stroke: rgba(162,228,184,0.9); stroke-width: 2.5; }
.section--tech .sister-label-bg        { fill: rgba(1,14,36,0.88); stroke: rgba(162,228,184,0.35); }
.section--tech .sister-label-bg--active{ fill: rgba(162,228,184,0.15); stroke: rgba(162,228,184,0.7); }
.section--tech .sister-label-text      { fill: rgba(162,228,184,0.6); }
.section--tech .sister-label-text--active { fill: rgba(162,228,184,1); }
.section--tech .connection-line        { stroke: rgba(255,255,255,0.28); }

/* Stagger entrance animation */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section--tech .module-card.module-card--in {
  animation: cardEntrance 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Module interaction states */
.module-card--active {
  transform: translateY(-5px) scale(1.01) !important;
  box-shadow: var(--shadow-lg) !important;
}

.module-card--connected {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 24px rgba(0, 71, 171, 0.18) !important;
  outline: 2px solid rgba(0, 71, 171, 0.15);
  outline-offset: 1px;
}

.module-card--dimmed {
  opacity: 0.28 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* SVG connection overlay */
.module-connections-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

/* Sister Systems permanent line */
.sister-line {
  stroke: var(--color-periwinkle);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  opacity: 0.45;
  transition: opacity 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease;
}
.sister-line--active {
  opacity: 1;
  stroke: var(--color-blue);
  stroke-width: 2.5;
}

.sister-label-bg {
  fill: var(--color-ice);
  stroke: var(--color-periwinkle);
  stroke-width: 1;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.sister-label-bg--active {
  fill: var(--color-blue);
  stroke: var(--color-blue);
}

.sister-label-text {
  fill: var(--color-gray);
  font-family: var(--font-body, sans-serif);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: fill 0.3s ease;
  user-select: none;
}
.sister-label-text--active {
  fill: var(--color-white);
}

/* Animated hover connection lines */
.connection-line {
  stroke: var(--color-blue);
  stroke-width: 2;
  opacity: 0.55;
  stroke-dasharray: 6 4;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Platform Performance Chart -------------------------- */
.chart-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.75rem 1.25rem;
}

.chart-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.chart-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.chart-legend__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-gray);
  font-weight: 500;
}

.chart-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chart-wrap {
  position: relative;
}

.pace-chart {
  display: block;
  width: 100%;
  height: 270px;
  overflow: visible;
}

@media (max-width: 767px) {
  .pace-chart { height: 200px; }
}

.chart-tooltip {
  position: absolute;
  display: none;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  pointer-events: none;
  z-index: 10;
}

.chart-tooltip__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue-dark);
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-tooltip__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.22rem 0;
}

.chart-tooltip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chart-tooltip__name {
  flex: 1;
  font-size: 0.78rem;
  color: var(--color-gray);
}

.chart-tooltip__val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

/* Animated line paths */
.chart-line {
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Shareholders ----------------------------------------- */
.shareholders {
  text-align: center;
}

.shareholders h2 {
  margin-bottom: 1rem;
}

.shareholders__text {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--color-gray);
}

.shareholders__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.shareholders__logo {
  transition: transform 0.3s ease;
}

.shareholders__logo:hover {
  transform: scale(1.08);
}

.shareholders__logo img {
  height: 104px;
  width: auto;
  object-fit: contain;
}

.shareholders__logos .shareholders__logo:nth-child(1) img {
  height: 135px;
}

.shareholders__logos .shareholders__logo:nth-child(2) img {
  height: 73px;
}

/* --- Card (News articles) --------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--horizontal {
  display: flex;
  min-height: 280px;
}

.card__content {
  flex: 0 0 60%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card__image-box {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
}

.card__image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__image-box img {
  transform: scale(1.05);
}

.card__date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gray);
  margin-bottom: 0.75rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--color-blue-dark);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

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

.card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-blue);
  font-size: 0.95rem;
}

.card__read-more::before {
  content: '→';
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-blue);
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  transition: all 0.3s ease;
}

.card:hover .card__read-more::before {
  background: var(--color-blue);
  color: var(--color-white);
}

/* --- News Carousel ---------------------------------------- */
.news-carousel-container {
  margin-bottom: 4rem;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.news-header h2 {
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.carousel-index {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-blue-dark);
  font-size: 1.1rem;
}

.carousel-index span {
  color: var(--color-gray);
  font-weight: 400;
}

.carousel-nav {
  display: flex;
  gap: 0.75rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-gray-light);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.news-carousel-wrapper {
  overflow: hidden;
  margin: 0 -0.75rem; /* Match gap */
}

.news-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 50%; /* Show 2 per view on desktop */
  padding: 0 0.75rem;
}

@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 100%; /* Show 1 per view on tablet/mobile */
  }
}

@media (max-width: 767px) {
  .card--horizontal {
    flex-direction: column;
    min-height: auto;
  }
  
  .card__content {
    flex: 0 0 100%;
    order: 1;
  }
  
  .card__image-box {
    flex: 0 0 100%;
    aspect-ratio: 16/9;
    order: 2;
  }
  
  .card__image-box img {
    border-radius: var(--radius);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* --- Article --------------------------------------------- */
.article {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.article__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-bottom: 0.5rem;
}

.article h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.article p {
  margin-bottom: 1rem;
}

.article .update-notice {
  background: linear-gradient(135deg, var(--color-blue-dark), var(--color-blue));
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.article ol {
  margin: 1.5rem 0;
  padding-left: 1.75rem;
}

.article ol li {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.article ol li a {
  border-bottom: 1px solid var(--color-gray-light);
  padding-bottom: 1px;
}

.article ol li a:hover {
  border-bottom-color: var(--color-forest);
}

.article__meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-light);
  font-size: 0.9rem;
  color: var(--color-gray);
}

/* --- Legal Pages ------------------------------------------ */
.legal-content {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-blue);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content .effective-date {
  margin-top: 2rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

/* --- Team ------------------------------------------------- */
.team {
  text-align: center;
}

.team__heading {
  margin-bottom: 3rem;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 2rem;
}

.team-member {
  text-align: center;
  width: 200px;
}

.team-member__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  position: relative;
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-member__photo--blue {
  background: var(--color-blue);
}

.team-member__photo--mint {
  background: var(--color-mint);
}

.team-member__name {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--color-charcoal);
}

.team-member__role {
  font-size: 0.85rem;
  color: var(--color-gray);
  line-height: 1.4;
}

@media (max-width: 767px) {
  .team-member {
    width: 140px;
  }

  .team-member__photo {
    width: 130px;
    height: 130px;
  }

  .team-grid {
    gap: 2rem 1.5rem;
  }
}

/* --- Contact Section -------------------------------------- */
.contact-section {
  background: linear-gradient(135deg, var(--color-blue-darker) 0%, var(--color-blue-dark) 50%, var(--color-blue) 100%);
  color: var(--color-white);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.contact-company {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-mint);
  margin-bottom: 1.5rem;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-mint);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: #fff;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(142, 164, 210, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-section h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-section .address {
  color: var(--color-white);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-section .address a {
  color: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: rgba(142, 164, 210, 0.1);
  border: 1px solid rgba(142, 164, 210, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  background: rgba(142, 164, 210, 0.18);
  border-color: rgba(142, 164, 210, 0.35);
}

.contact-card h4 {
  color: var(--color-mint);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.contact-card ul {
  list-style: none;
  padding: 0;
}

.contact-card li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-card a {
  color: var(--color-mint);
}

.contact-card a:hover {
  color: var(--color-white);
}

.contact-logo img {
  height: 32px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.contact-logo:hover img {
  opacity: 1;
}

/* --- Footer ---------------------------------------------- */
.site-footer {
  background: var(--color-blue-darker);
  color: rgba(255, 255, 255, 0.55);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: var(--color-mint);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

/* --- Animations ------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.hero-animate:nth-child(1) { animation-delay: 0.1s; }
.hero-animate:nth-child(2) { animation-delay: 0.25s; }
.hero-animate:nth-child(3) { animation-delay: 0.4s; }
.hero-animate:nth-child(4) { animation-delay: 0.55s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive ------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-2__image {
    padding-top: 0;
  }

  .grid-2--reverse .grid-2__text { order: 1; }
  .grid-2--reverse .grid-2__image { order: 2; }

  .feature-pair {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero--home {
    padding: 6rem 0 4rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-mist);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-gray-light);
    box-shadow: 0 4px 12px rgba(0, 45, 128, 0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-light);
    font-size: 1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .site-nav {
    order: 4;
  }

  .hero--home {
    padding: 4rem 0 3rem;
  }

  .hero--page {
    padding: 3rem 0 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .article {
    padding: 1.5rem;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .feature-pair__item {
    padding: 1.5rem;
  }

  .shareholders__logos {
    gap: 2rem;
  }

  .shareholders__logo img {
    height: 78px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hero__cta--secondary {
    background: var(--color-blue);
    color: var(--color-white);
  }
}


/* ===== Mobile fixes ===== */
@media (max-width: 767px) {

  .carousel-index {
    white-space: nowrap;
  }


  .card__content {
    justify-content: flex-start;
  }

  .card__image-box {
    aspect-ratio: unset;
    min-height: 0;
  }

  .card__image-box img {
    max-height: 220px;
    object-fit: cover;
  }
}