 
:root,
[data-theme="dark"] {
  --bg: #1a1a1a;
  --bg-elevated: #222;
  --bg-surface: #252525;
  --bg-input: #2d2d2d;
  --text: #e8eaed;
  --text-secondary: #b8bcc4;
  --text-muted: #8b919e;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #0f766e;
  --accent-hover: #14a094;
  --accent-soft: rgba(15, 118, 110, 0.18);
  --price-flash-up: #0f766e;
  --price-flash-down: #f87171;
  --glass-bg: rgba(28, 28, 28, 0.92);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --theme-duration: 0.35s;
  /* Fixed glass header height — keep in sync with `.header-inner { height }` */
  --header-sticky-h: 56px;
}

[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-elevated: #ffffff;
  --bg-surface: #f8fafc;
  --bg-input: #f1f5f9;
  --text: #1a1d21;
  --text-secondary: #5c6370;
  --text-muted: #8b919e;
  --border: #e4e7eb;
  --border-strong: #d1d5db;
  --accent: #0f766e;
  --accent-hover: #0d5c54;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --radius: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --theme-duration: 0.35s;
  --price-flash-up: #0f766e;
  --price-flash-down: #dc2626;
  --header-sticky-h: 56px;
}

 
@keyframes price-flash-up-fade {
  0%   { color: var(--text); text-shadow: none; }
  18%  { color: var(--price-flash-up); text-shadow: 0 0 14px rgba(15, 118, 110, 0.45), 0 0 28px rgba(15, 118, 110, 0.25); }
  40%  { color: var(--price-flash-up); text-shadow: 0 0 14px rgba(15, 118, 110, 0.45), 0 0 28px rgba(15, 118, 110, 0.25); }
  100% { color: var(--text); text-shadow: none; }
}
@keyframes price-flash-down-fade {
  0%   { color: var(--text); text-shadow: none; }
  18%  { color: var(--price-flash-down); text-shadow: 0 0 14px rgba(220, 38, 38, 0.45), 0 0 28px rgba(220, 38, 38, 0.25); }
  40%  { color: var(--price-flash-down); text-shadow: 0 0 14px rgba(220, 38, 38, 0.45), 0 0 28px rgba(220, 38, 38, 0.25); }
  100% { color: var(--text); text-shadow: none; }
}

/* Removed star concept sitewide. */
.star-glowy { display: none !important; }
.overview-product-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.overview-product-card h3 .star-glowy { margin-right: 0; }
.nav-products-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-products-dropdown .star-glowy { margin-right: 0; }

/* Dropdown icon alignment: center on first-letter cap height */
.nav-products-dropdown .star-glowy {
  /* Keep full size; just micro-adjust alignment */
  align-self: center;
  transform: translateY(-0.5px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--header-sticky-h);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

 
html.page-enter body {
  opacity: 1;
  animation: none;
}
html.page-ready body {
  opacity: 1;
}
html.page-leave body {
  opacity: 1;
}
html.no-page-transition body {
  transition: none !important;
}
@keyframes gg-page-enter-fallback {
  to { opacity: 1; }
}
html.no-page-transition .header--glass {
  animation: none !important;
  transform: none !important;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--theme-duration) ease, color var(--theme-duration) ease;
  overflow-x: hidden;
  max-width: 100%;
}

 
:root body,
[data-theme="dark"] body {
  background: linear-gradient(165deg, #161616 0%, var(--bg) 30%, #1e1e1e 65%, #222 100%);
  background-attachment: fixed;
}
:root body::before,
[data-theme="dark"] body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(15, 118, 110, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] body {
  background: linear-gradient(165deg, #f8fafc 0%, var(--bg) 28%, #eef2f7 70%, #f2f5f9 100%);
  background-attachment: fixed;
}
[data-theme="light"] body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(15, 118, 110, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
 
body > header {
  position: relative;
  z-index: 1;
  max-width: 100%;
}
/* No overflow-x on main/footer: paired with html/body overflow-x, "hidden" here can force
   overflow-y: auto in WebKit → extra vertical scrollbar / “scroll under header” on long pages. */
body > main,
body > footer {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

body.auth-pending .header-right a.nav-link,
body.auth-pending .header-right .header-profile-link,
body.auth-pending .header-right .header-settings-link {
  visibility: hidden;
}




@media (max-width: 768px) {
  :root body,
  [data-theme="light"] body,
  [data-theme="dark"] body {
    position: relative;
    background-attachment: scroll;
    min-height: 100vh;  
    min-height: 100dvh;
    min-height: 100svh;
  }
  :root body::before,
  [data-theme="light"] body::before,
  [data-theme="dark"] body::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;  
    min-height: 100dvh;
    min-height: 100svh;
  }
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 520px;
}

.container--wide {
  max-width: 1280px;
}

 
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 64px;
  height: 32px;
  padding: 0 6px;
  background: #334155;
  border-radius: 16px;
  transition: background 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.theme-toggle:hover .theme-toggle-track {
  background: #475569;
}

 
.theme-toggle-icon-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

 
.theme-icon-sun circle { fill: #fff; }
.theme-icon-sun path { fill: none; stroke: #fff; }
.theme-icon-moon path { fill: #fff; }

[data-theme="light"] .theme-toggle-track { background: #475569; }
[data-theme="light"] .theme-toggle:hover .theme-toggle-track { background: #64748b; }

 
.theme-toggle-knob {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(32px);
}

[data-theme="light"] .theme-toggle-knob {
  transform: translateX(0);
}

.knob-icon {
  width: 14px;
  height: 14px;
  position: absolute;
}
.knob-icon-sun { display: none; }
.knob-icon-moon { display: block; }
.knob-icon-sun circle { fill: #334155; }
.knob-icon-sun path { fill: none; stroke: #334155; }
.knob-icon-moon path { fill: #334155; }

[data-theme="light"] .knob-icon-sun { display: block; }
[data-theme="light"] .knob-icon-moon { display: none; }

 
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}

.header--glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(248, 249, 251, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  animation: header-appear 0.3s ease-out;
}

@keyframes header-appear {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

[data-theme="dark"] .header--glass {
  background: var(--glass-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.header--glass .logo-company {
  color: var(--text);
}
.header--glass .logo-gems {
  color: var(--accent);
}

 
:root .header--glass .logo-company,
[data-theme="light"] .header--glass .logo-company {
  color: #0f1114;
}
:root .header--glass .logo-gems,
[data-theme="light"] .header--glass .logo-gems {
  color: #0f766e;
}
:root .header--glass .nav a:not(.btn),
[data-theme="light"] .header--glass .nav a:not(.btn) {
  background: transparent;
  border: none;
  color: #0f1114;
}
:root .header--glass .nav a:not(.btn):hover,
[data-theme="light"] .header--glass .nav a:not(.btn):hover {
  background: transparent;
  border-color: transparent;
  color: #0f1114;
}
:root .header--glass .nav-products-trigger,
[data-theme="light"] .header--glass .nav-products-trigger {
  background: transparent;
  border: none;
  color: #0f1114;
}
:root .header--glass .nav-products:hover .nav-products-trigger,
[data-theme="light"] .header--glass .nav-products:hover .nav-products-trigger {
  background: transparent;
  border-color: transparent;
  color: #0f1114;
}
:root .header--glass .nav-link,
[data-theme="light"] .header--glass .nav-link {
  color: #0f1114;
}
:root .header--glass .nav-link:hover,
[data-theme="light"] .header--glass .nav-link:hover {
  color: #0f1114;
}

[data-theme="dark"] .header--glass .logo-company {
  color: #fff;
}
[data-theme="dark"] .header--glass .logo-gems {
  color: #0f766e;
}

 
.header--glass ~ main {
  padding-top: var(--header-sticky-h);
}

/* Maintenance banner (one-line by default, expandable on tap). */
.maintenance-banner {
  position: fixed;
  top: calc(var(--header-sticky-h) + 8px);
  left: 12px;
  right: 12px;
  z-index: 150;
  display: none;
  padding: 10px 44px 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.maintenance-banner.is-visible {
  display: block;
}

.maintenance-banner-text {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maintenance-banner.is-expanded .maintenance-banner-text {
  white-space: normal;
}

.maintenance-banner-readmore {
  margin-left: 6px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.maintenance-banner-close {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.maintenance-banner-close:hover {
  background: var(--border);
  color: var(--text);
}

@media (min-width: 901px) {
  .maintenance-banner {
    left: 50%;
    right: auto;
    width: min(780px, calc(100vw - 40px));
    transform: translateX(-50%);
  }
}

/* BSE feeds: keep only a small gap below fixed header (not hero-sized). */
.header--glass ~ main.bse-page {
  padding: calc(var(--header-sticky-h) + 24px) 24px 56px;
}

/* Same layout as home first hero: cancel main top padding with negative margin + pad content below header. */
.header--glass ~ main > .hero--compact:first-child,
.header--glass ~ main > .mission-hero:first-child {
  margin-top: calc(-1 * var(--header-sticky-h));
}

.header--glass ~ main > .hero--compact:first-child {
  padding-top: var(--header-sticky-h);
}

.header--glass ~ main > .mission-hero:first-child {
  padding-top: calc(var(--header-sticky-h) + 24px);
}

.header .container {
  padding-left: 12px;
  padding-right: 12px;
  max-width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-sticky-h);
  gap: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 16px;
}

/* Text “Home” next to logo on secondary pages (settings, legal, login) */
.header-home-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 10px;
  line-height: 1.2;
  border-radius: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.logo-company {
  color: var(--text);
}

.logo-gems {
  color: var(--accent);
}

.logo-product {
  color: var(--accent);
}

 
.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: 24px;
}

/* Mobile/tablet drawer only: no center nav strip on desktop (≥981px hamburger is hidden) */
@media (min-width: 981px) {
  .header-nav-wrap {
    display: none !important;
  }
}

/* Product pages: hide current tab in desktop + drawer */
body.path-filtered-bse-alerts .header-nav-desktop a[href="/filtered-bse-alerts"],
body.path-filtered-bse-alerts .header-nav-drawer-bse {
  display: none !important;
}
body.path-filter-feed .header-nav-desktop a[href="/filter-feed"],
body.path-filter-feed .header-nav-drawer-filter {
  display: none !important;
}

/* Desktop-only center nav: Filtered BSE Alerts + Filter feed (same size for both tabs) */
.header-nav-desktop .nav-link.header-nav-aff {
  letter-spacing: -0.02em;
  padding: 8px 12px;
}
.header-nav-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
@media (min-width: 981px) {
  .header-nav-desktop {
    display: flex;
  }
}
.header-nav-desktop .nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}
.header-nav-desktop .nav-link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .header-nav-desktop .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Login page: hide “Log in” inside drawer */
body.path-login .header-nav-wrap .nav-drawer-links a[href="/login"] {
  display: none !important;
}

/* Logged-in users: hide “Log in” in mobile drawer */
body.gg-logged-in .header-nav-wrap .nav-drawer-links a[href="/login"] {
  display: none !important;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}



/* Tool / product pages (alerts, market data, BSE feeds): hide edu links in header to save space.
   Class `nav-product-tools` is set on body by script.js for matching routes. */
body.nav-product-tools .header-nav-wrap a[href="/overview"],
body.nav-product-tools .header-nav-wrap a[href="/how-pros-use-data"] {
  display: none !important;
}

/* Filtered BSE Alerts + Filter feed: main page title (matches across both tools) */
.alerts-page .market-heading {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

 
#site-beta-notice {
  top: 72px;
  bottom: auto !important;
  right: 16px;
  left: auto;
}

@media (max-width: 768px) {
  #site-beta-notice {
    top: 64px;
    right: 12px;
    left: 12px;  
  }
}

/* Prevent drawer-only row from appearing in header on desktop / when resizing */
.header-nav-wrap .nav-mobile-top {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo-img {
  height: 32px;
  width: auto;
  max-height: 40px;
  object-fit: contain;
  vertical-align: middle;
}
.logo .header-logo-img {
  margin-right: 8px;
  flex-shrink: 0;
}
.header-right .theme-toggle {
  flex-shrink: 0;
}
.header-profile-link {
  display: flex;
  align-items: center;
  padding: 4px;
  color: var(--text-muted);
}
/* Icon-only settings control: square hit target so SVG is not stretched by .nav-link + mobile min-height rules */
.header-right .nav-link.header-profile-link,
.header-right .nav-link.header-settings-link,
.header-nav-wrap .nav-mobile-top-right .nav-link.header-profile-link,
.header-nav-wrap .nav-mobile-top-right .nav-link.header-settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  flex-shrink: 0;
  aspect-ratio: 1;
  overflow: hidden;
}
.header-right .header-profile-link svg,
.header-right .header-settings-link svg,
.header-nav-wrap .nav-mobile-top-right .header-profile-link svg,
.header-nav-wrap .nav-mobile-top-right .header-settings-link svg {
  display: block;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}
.header-profile-link:hover,
.header-settings-link:hover {
  color: var(--text);
}
.header-settings-link {
  display: flex;
  align-items: center;
  padding: 4px;
  color: var(--text-muted);
}

[data-theme="dark"] .header .logo-company {
  color: #fff;
}
[data-theme="dark"] .header .logo-gems {
  color: #0f766e;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  box-sizing: border-box;
  border-radius: var(--radius);
  transition: color var(--theme-duration) ease, background 0.2s ease, border-color 0.2s ease;
}

 
.header--glass .nav a:not(.btn) {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.95);
}
.header--glass .nav a:not(.btn):hover {
  background: transparent;
  border: none;
  color: #fff;
}
[data-theme="dark"] .header--glass .nav a:not(.btn) {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
}
[data-theme="dark"] .header--glass .nav a:not(.btn):hover {
  background: transparent;
  border: none;
  color: #fff;
}

.nav a:hover {
  color: var(--text);
}

.nav-products {
  position: relative;
}

.nav-products-trigger {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  cursor: default;
  border-radius: var(--radius);
  transition: color var(--theme-duration) ease, background 0.2s ease, border-color 0.2s ease;
}
.header--glass .nav-products-trigger {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.95);
}
.header--glass .nav-products:hover .nav-products-trigger {
  background: transparent;
  border: none;
  color: #fff;
}
[data-theme="dark"] .header--glass .nav-products-trigger {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
}
[data-theme="dark"] .header--glass .nav-products:hover .nav-products-trigger {
  background: transparent;
  border: none;
  color: #fff;
}

.nav-products:hover .nav-products-trigger {
  color: var(--text);
}

.nav-products-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 8px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.nav-products:hover .nav-products-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-products-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background var(--theme-duration) ease, color var(--theme-duration) ease;
}

.nav-products-dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-cocktail {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15em;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

[data-theme="dark"] .nav-link {
  color: #e2e8f0;
}

[data-theme="dark"] .nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

[data-theme="dark"] .header .nav-link:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

 
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-height: 40px;
  box-sizing: border-box;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--theme-duration) ease, border-color var(--theme-duration) ease, color var(--theme-duration) ease;
}

 
.btn-primary {
  background: linear-gradient(180deg, #0d6b62 0%, #0f766e 50%, #0b5c54 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.nav .btn-primary {
  background: linear-gradient(180deg, #0d6b62 0%, #0f766e 50%, #0b5c54 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.nav .btn-primary:hover {
  background: linear-gradient(180deg, #11746b 0%, #0f766e 50%, #0d5c54 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

 
.btn-header-cta {
  background: rgba(255, 255, 255, 0.92);
  color: #0f1114;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  font-weight: 600;
}

.btn-header-cta:hover {
  background: #fff;
  color: #0f1114;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .btn-header-cta,
[data-theme="dark"] .header .nav .btn-header-cta {
  background: rgba(255, 255, 255, 0.1);
  color: #e6edf3;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .btn-header-cta:hover,
[data-theme="dark"] .header .nav .btn-header-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

 
[data-theme="dark"] .header a.nav-link,
[data-theme="dark"] .header-right a.nav-link,
[data-theme="dark"] .header--glass a.nav-link {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .header a.nav-link:hover,
[data-theme="dark"] .header-right a.nav-link:hover,
[data-theme="dark"] .header--glass a.nav-link:hover {
  color: #fff !important;
}

 
.btn-hero-cta {
  background: rgba(255, 255, 255, 0.5);
  color: #0f1114;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-hero-cta:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #0f1114;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-hero-cta {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .btn-hero-cta:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .btn-hero-cta {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-hero-cta:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

 
.btn-hero-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-hero-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
[data-theme="dark"] .btn-hero-secondary {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] .btn-hero-secondary:hover {
  background: rgba(15, 118, 110, 0.25);
  color: #14a094;
  border-color: rgba(15, 118, 110, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #11746b 0%, #0f766e 50%, #0d5c54 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

 
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 64px;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.hero--compact {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
}

 
@media (min-width: 901px) {
  .hero.hero--compact {
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100dvh;
    max-height: 100svh;
  }
}

.hero--compact .hero-inner {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity var(--theme-duration) ease;
  pointer-events: none;
  filter: saturate(1.1) contrast(1.05);
   
  min-height: 100%;
  min-width: 100%;
}

[data-theme="dark"] .hero-bg {
  filter: saturate(0.9) contrast(0.85);
}

@keyframes heroBgFadeIn {
  to { opacity: 1; }
}

.hero-bg-light {
  background-image: url("assets/hero-bg-light.png?v=5");
  background-position: center 38%;
  background-size: cover;
  opacity: 0;
  transition: opacity var(--theme-duration) ease;
  animation: heroBgFadeIn 0.35s ease 0.05s forwards;
}
:root .hero-bg-light,
[data-theme="light"] .hero-bg-light {
  filter: saturate(1.1) contrast(1.05) brightness(0.88) blur(2px);
}

.hero-bg-dark {
  background-image: url("assets/hero-bg-dark.png");
  background-position: center 38%;
  background-size: cover;
  opacity: 0;
  transition: opacity var(--theme-duration) ease;
}

[data-theme="dark"] .hero-bg-light {
  animation: none;
  opacity: 0;
}

[data-theme="dark"] .hero-bg-dark {
  filter: saturate(0.9) contrast(0.85) blur(2px);
  animation: heroBgFadeIn 0.35s ease 0.05s forwards;
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(248, 249, 251, 0.08) 0%, rgba(248, 249, 251, 0.18) 50%, rgba(248, 249, 251, 0.28) 100%);
  transition: background var(--theme-duration) ease;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.24) 50%, rgba(0, 0, 0, 0.36) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  max-width: min(900px, 100%);
  padding: 0 24px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.hero-inner h1,
.hero-inner .hero-sub,
.hero-inner .hero-cta,
.hero-inner .hero-cta-wrap {
  max-width: 100%;
  box-sizing: border-box;
}

.hero-inner .hero-cta {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-feedback {
  position: absolute;
  bottom: 28px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: color var(--theme-duration) ease, text-shadow var(--theme-duration) ease;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

:root .hero-feedback,
[data-theme="light"] .hero-feedback {
  color: #4a4a4a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
[data-theme="light"] .hero-feedback-link {
  color: #4a4a4a;
}

[data-theme="dark"] .hero-feedback {
  color: var(--text-secondary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-feedback-text {
  white-space: normal;
}

.hero-feedback-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  transition: color var(--theme-duration) ease, opacity 0.15s ease;
}

.hero-feedback-link:hover {
  opacity: 0.9;
}

[data-theme="dark"] .hero-feedback-link {
  color: var(--text);
}

.hero-feedback-icon {
  width: 22px;
  height: 22px;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 12px;
  transition: color var(--theme-duration) ease;
}

.hero h1 {
  font-size: clamp(4rem, 11vw, 7rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 32px;
  color: var(--text);
  transition: color var(--theme-duration) ease;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.03em;
  white-space: normal;
  overflow-wrap: anywhere;
  border: none;
  outline: none;
}

 
.hero-title-desktop {
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
  max-width: min(96vw, 1120px);
  margin-left: auto;
  margin-right: auto;
  border: none;
  outline: none;
}

@media (min-width: 901px) {
  .hero-inner {
    overflow-x: hidden;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero h1.hero-title-desktop {
    white-space: normal;
    overflow-wrap: anywhere;
    border: none;
    outline: none;
    max-width: min(96vw, 1120px);
    font-size: clamp(2.7rem, 5.6vw, 6.2rem);
    line-height: 1.06;
  }
}

.nav-home-mobile {
  display: none;
}

.hero-title-mobile {
  display: none;
}

.hero-title-line1 {
  display: block;
}

.hero-title-line2 {
  display: block;
  margin-top: 0.06em;
}
.hero-title-line3 {
  display: block;
  margin-top: 0.06em;
}

.hero-cta-pro {
  padding: 8px 20px !important;
  font-size: 0.875rem !important;
  min-height: 40px !important;
}

:root .hero h1,
[data-theme="light"] .hero h1 {
  color: #2d2d2d;
  text-shadow: none;
}

[data-theme="dark"] .hero h1 {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  font-size: 1.35rem;
  font-weight: 500;
  color: #2d2d2d;
  margin: 0 auto 36px;
  max-width: 580px;
  line-height: 1.5;
  text-align: center;
  transition: color var(--theme-duration) ease;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(0, 0, 0, 0.35), 0 4px 20px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .hero-sub {
  color: #4a4a4a;
  text-shadow: none;
}

.hero-sub-bold {
  font-weight: 700;
}
.hero-sub-first {
  font-size: 1.1em;
  font-weight: 800;
}

[data-theme="dark"] .hero-sub {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-cta-note {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: color var(--theme-duration) ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero--compact .hero-inner h1,
  .hero--compact .hero-inner .hero-sub,
  .hero--compact .hero-inner .hero-cta-wrap {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

:root .hero-cta-note,
[data-theme="light"] .hero-cta-note {
  color: #5c5c5c;
}

.hero-cta-note::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 160%;
  height: 240%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.35) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--theme-duration) ease;
}

[data-theme="dark"] .hero-cta-note {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .hero-cta-note::before {
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(15, 118, 110, 0.18) 0%, rgba(15, 118, 110, 0.06) 45%, transparent 72%);
}

 
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50vw;
  margin-left: -26px;  
  transform: translateY(0);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #4a4a4a;
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  animation: heroScrollBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.hero-scroll-indicator:hover {
  opacity: 0.9;
}

[data-theme="dark"] .hero-scroll-indicator {
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.hero-scroll-indicator svg {
  display: block;
  color: inherit;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ----- Our Mission — same scroll/layout model as home `.hero.hero--compact` ----- */
.mission-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  box-sizing: border-box;
  padding: 0 24px 56px;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 901px) {
  .mission-hero {
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100dvh;
    max-height: 100svh;
  }
}

.mission-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, var(--mission-glow, rgba(15, 118, 110, 0.25)) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 80% 80%, rgba(15, 118, 110, 0.12) 0%, transparent 50%),
    var(--bg);
  pointer-events: none;
}

[data-theme="dark"] .mission-hero-bg {
  --mission-glow: rgba(15, 118, 110, 0.2);
}

.mission-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

.mission-hero-inner {
  position: relative;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.mission-label {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: missionFadeUp 0.8s ease 0.2s forwards;
}

.mission-hero h1 {
  font-family: "Syne", var(--font);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 24px;
  opacity: 0;
  animation: missionFadeUp 0.9s ease 0.35s forwards;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.mission-hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
  opacity: 0;
  animation: missionFadeUp 0.9s ease 0.5s forwards;
}

.mission-hero-cta {
  opacity: 0;
  animation: missionFadeUp 0.9s ease 0.65s forwards;
}

.mission-hero-cta .btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
}

@keyframes missionFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .mission-hero {
    padding-bottom: 36px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .header--glass ~ main > .mission-hero:first-child {
    padding-top: calc(var(--header-sticky-h) + 18px);
  }

  .mission-hero-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mission-hero h1 {
    font-size: clamp(1.65rem, 6.5vw, 2.75rem);
  }
}

@media (max-width: 380px) {
  .mission-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mission-hero-inner {
    padding-left: 8px;
    padding-right: 8px;
  }

  .mission-hero h1 {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }
}

.mission-section {
  padding: 100px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.mission-section--alt {
  background: var(--accent-soft);
}

[data-theme="dark"] .mission-section--alt {
  background: rgba(15, 118, 110, 0.06);
}

.mission-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.mission-section h2 {
  font-family: "Syne", var(--font);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.mission-section p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.mission-statement {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  padding: 32px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  margin: 32px 0;
  border-left: 4px solid var(--accent);
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.mission-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.mission-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.mission-card h3 {
  font-family: "Syne", var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.mission-card p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-secondary);
}

.mission-close {
  text-align: center;
  padding: 80px 24px 100px;
}

.mission-close h2 {
  font-family: "Syne", var(--font);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.mission-close p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
}

/* ----- Why us: same hero gradient/grid as our-mission.html; explicit fonts so body Inter never flattens Syne headings ----- */
.page-why-us .mission-hero-inner {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero bg + grid: inherit .mission-hero-bg / .mission-hero-grid (no overrides) = matches reference our-mission page */

.page-why-us .mission-hero h1,
.page-why-us .mission-section h2,
.page-why-us .mission-card h3,
.page-why-us .mission-close h2 {
  font-family: "Syne", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-why-us .mission-label,
.page-why-us .mission-section-label,
.page-why-us .mission-hero-tagline,
.page-why-us .mission-section p,
.page-why-us .mission-card p,
.page-why-us .mission-close p,
.page-why-us .mission-statement {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] .page-why-us .mission-hero h1 {
  color: #000000;
}

.page-why-us .mission-hero-tagline strong {
  font-weight: 700;
  color: #000000;
}

[data-theme="dark"] .page-why-us .mission-hero-tagline strong {
  font-weight: 600;
  color: var(--text);
}

/* Reference-style card polish */
.page-why-us .mission-cards {
  gap: 28px;
}

.page-why-us .mission-card {
  padding: 30px 28px;
  border-radius: 18px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.04),
    0 14px 32px -12px rgba(15, 118, 110, 0.1);
}

[data-theme="dark"] .page-why-us .mission-card {
  box-shadow: var(--shadow);
}

.page-why-us .mission-card:hover {
  transform: translateY(-5px);
  box-shadow:
    var(--shadow-md),
    0 20px 44px -16px rgba(15, 118, 110, 0.14);
}

.page-why-us .mission-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.625rem;
}

.page-why-us .mission-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.page-why-us .mission-statement {
  border-radius: 18px;
  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.06),
    var(--shadow-md);
}

 
#markets {
  scroll-margin-top: var(--header-sticky-h);
}

.market-overview {
  padding: 48px 0 56px;
  min-height: calc(100vh - var(--header-sticky-h));
  min-height: calc(100dvh - var(--header-sticky-h));
  min-height: calc(100svh - var(--header-sticky-h));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background-color var(--theme-duration) ease;
}

.market-overview .container--wide {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 1600px;
  width: 100%;
}

.market-overview .market-layout {
  flex: 1;
  min-height: 0;
  align-items: stretch;
  gap: 28px;
}

.market-overview .section-label,
.market-overview .market-heading {
  text-align: center;
}

.market-heading {
  margin-bottom: 28px;
}

.market-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.market-chart-wrap {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 560px;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.market-chart-wrap .md-chart-wrapper {
  flex: 1;
  min-height: 0;
}

 
.market-chart-wrap .nifty-chart-non-interactive .chart-default-floating {
  display: none !important;
}
.market-chart-wrap .nifty-chart-non-interactive .md-chart {
  pointer-events: none;
}
[data-theme="dark"] .market-overview {
  background: var(--bg);
}
[data-theme="dark"] .market-chart-header {
  background: var(--bg-surface);
}

[data-theme="dark"] .market-chart-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(15, 118, 110, 0.06);
}

[data-theme="dark"] .market-overview .section-label,
[data-theme="dark"] .market-overview .market-heading {
  color: var(--text);
}

.market-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}

.market-chart-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  transition: color var(--theme-duration) ease;
}

.market-chart-symbol {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--theme-duration) ease;
}

.chart-default-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--theme-duration) ease, background var(--theme-duration) ease, border-color var(--theme-duration) ease;
}

.chart-default-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.md-chart-wrapper {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.md-chart-wrapper .md-chart {
  flex: 1;
  min-height: 0;
}

 
.chart-default-floating {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.chart-default-floating .chart-default-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: auto;
}
.chart-default-floating:hover .chart-default-btn {
  opacity: 1;
}
.md-chart-wrapper .chart-default-floating .chart-default-btn,
.watchlist-chart-container ~ .chart-default-floating .chart-default-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.md-chart-wrapper .chart-default-floating .chart-default-btn:hover,
.watchlist-chart-container ~ .chart-default-floating .chart-default-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}
.chart-default-floating .chart-default-btn svg {
  width: 22px;
  height: 22px;
}

.md-chart {
  height: 100%;
  min-height: 320px;
  width: 100%;
  flex: 1;
}

.chart-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  transition: color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}

.chart-load-error {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.market-table-wrap {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .market-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(15, 118, 110, 0.06);
}

.market-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}

.market-table-header h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--theme-duration) ease;
}

.market-table-link {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .market-table-link {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.market-table-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}
[data-theme="dark"] .market-table-link:hover {
  background: #363636;
  color: var(--text);
}

.market-table-scroll {
  overflow: visible;
  flex: 0 0 auto;
  min-height: auto;
  scrollbar-color: var(--border-strong) var(--border);
  scrollbar-width: thin;
}

.market-table-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.market-table-scroll::-webkit-scrollbar-track {
  background: var(--border);
}

.market-table-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.market-table-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.fno-chain-box {
  scrollbar-color: var(--border-strong) var(--border);
  scrollbar-width: thin;
}

.fno-chain-box::-webkit-scrollbar {
  width: 8px;
}

.fno-chain-box::-webkit-scrollbar-track {
  background: var(--border);
}

.fno-chain-box::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.fno-chain-box::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.market-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  transition: background-color var(--theme-duration) ease, color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}
[data-theme="dark"] .market-table th {
  background: var(--bg-surface);
}

.market-table th.num {
  text-align: right;
}

.market-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}

.market-table tbody tr:hover {
  background: var(--accent-soft);
}

.market-table tbody tr:last-child td {
  border-bottom: none;
}

.market-table .sym {
  font-weight: 600;
  color: var(--text);
}

.market-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.market-table .pos {
  color: #0f766e;
}

[data-theme="dark"] .market-table .pos {
  color: #0f766e;
}

.market-table .neg {
  color: #dc2626;
}

[data-theme="dark"] .market-table .neg {
  color: #f87171;
}

.market-table td.num[data-price] {
  color: var(--text);
}

.market-table td.num[data-price].price-flash-up {
  animation: price-flash-up-fade 0.95s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.market-table td.num[data-price].price-flash-down {
  animation: price-flash-down-fade 0.95s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

 
.commodities-section {
  padding: 48px 0 56px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}

[data-theme="dark"] .commodities-section .section-label,
[data-theme="dark"] .commodities-section .commodities-heading {
  color: var(--text);
}

.commodities-section .section-label,
.commodities-section .commodities-heading {
  text-align: center;
}

.commodities-heading {
  margin-bottom: 28px;
}

.commodities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
}

.commodities-grid .commodity-card {
  min-width: 160px;
  max-width: 200px;
  flex: 1 1 160px;
}

.commodity-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}
.commodity-card:hover {
  border-color: var(--border-strong);
}

[data-theme="dark"] .commodity-card {
  background: var(--bg-surface);
  box-shadow: var(--shadow), 0 0 0 1px rgba(15, 118, 110, 0.04);
}

.commodity-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.commodity-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  transition: color var(--theme-duration) ease;
}

.commodity-symbol {
  font-size: 0.6875rem;
  color: var(--text-muted);
  transition: color var(--theme-duration) ease;
}

.commodity-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.commodity-price.price-flash-up {
  animation: price-flash-up-fade 0.95s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.commodity-price.price-flash-down {
  animation: price-flash-down-fade 0.95s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.commodity-change {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.commodity-change.pos {
  color: #0f766e;
}

[data-theme="dark"] .commodity-change.pos {
  color: #0f766e;
}

.commodity-change.neg {
  color: #dc2626;
}

[data-theme="dark"] .commodity-change.neg {
  color: #f87171;
}

 
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.reveal-left {
  transform: translateX(-40px) translateY(0);
}

.scroll-reveal.reveal-up {
  transform: translateY(40px);
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

 
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 32px;
  color: var(--text);
  transition: color var(--theme-duration) ease;
}

.section-label {
  transition: color var(--theme-duration) ease;
}

 
.features {
  padding: 72px 0 80px;
  background: var(--bg);
  transition: background-color var(--theme-duration) ease;
}

[data-theme="dark"] .features .section-label,
[data-theme="dark"] .features h2 {
  color: var(--text);
}

.container--features {
  max-width: 640px;
  margin: 0 auto;
}

.features .section-label,
.features h2 {
  text-align: center;
}

.features h2 {
  margin-bottom: 48px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list .feature-item.scroll-reveal { transition-delay: 0s; }
.feature-list .feature-item.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.feature-list .feature-item.scroll-reveal:nth-child(2) { transition-delay: 0.07s; }
.feature-list .feature-item.scroll-reveal:nth-child(3) { transition-delay: 0.14s; }
.feature-list .feature-item.scroll-reveal:nth-child(4) { transition-delay: 0.21s; }
.feature-list .feature-item.scroll-reveal:nth-child(5) { transition-delay: 0.28s; }
.feature-list .feature-item.scroll-reveal:nth-child(6) { transition-delay: 0.35s; }
.feature-list .feature-item.scroll-reveal:nth-child(7) { transition-delay: 0.42s; }

.feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--theme-duration) ease;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-marker {
  flex-shrink: 0;
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 4px;
  transition: background var(--theme-duration) ease;
}

.feature-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
  transition: color var(--theme-duration) ease;
}

.feature-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color var(--theme-duration) ease;
}

 
.signup {
  padding: 56px 0 72px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}

[data-theme="dark"] .signup .section-label,
[data-theme="dark"] .signup h2,
[data-theme="dark"] .signup-desc {
  color: var(--text);
}

.signup .section-label,
.signup h2 {
  text-align: center;
}

.signup-desc {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}

.signup-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease, color var(--theme-duration) ease, box-shadow var(--theme-duration) ease;
}

.signup-form input::placeholder {
  color: var(--text-muted);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}
 

.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}

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

.footer-brand {
  font-weight: 600;
  font-size: 0.9375rem;
}

.footer-brand .logo-product,
.footer-brand .logo-gems {
  color: var(--accent);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: auto;
  justify-content: flex-end;
}

.footer-links .footer-top-btn {
  flex-shrink: 0;
  margin-left: 4px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* Footer back-to-top: same visual language as .hero-scroll-indicator */
.footer-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #4a4a4a;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  animation: footerScrollBounce 2s ease-in-out infinite;
}
.footer-top-btn:hover {
  opacity: 0.95;
  background: rgba(255, 255, 255, 1);
  color: #1a1d21;
}
.footer-top-btn:active {
  transform: scale(0.96);
}
.footer-top-btn svg {
  display: block;
  color: inherit;
}
[data-theme="dark"] .footer-top-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
[data-theme="dark"] .footer-top-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
@keyframes footerScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

:root .footer-links a,
:root .footer-brand,
:root .footer-feedback,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-brand,
[data-theme="light"] .footer-feedback {
  color: #0f1114;
}
:root .footer-telegram-link,
[data-theme="light"] .footer-telegram-link {
  color: var(--accent);
}
:root .footer-links a:hover,
[data-theme="light"] .footer-links a:hover {
  color: #1a1d21;
}

.footer-feedback {
  width: 100%;
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-telegram-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer-telegram-link:hover {
  opacity: 0.85;
}

.footer-telegram-icon {
  width: 20px;
  height: 20px;
}

.footer-legal {
  width: 100%;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

:root .footer-legal,
[data-theme="light"] .footer-legal {
  color: #1a1d21;
}

 
[data-theme="dark"] .footer {
  background: var(--bg-elevated);
  border-top-color: var(--border);
}
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-brand,
[data-theme="dark"] .footer-brand .logo-company {
  color: var(--text-secondary);
}
[data-theme="dark"] .footer-brand .logo-gems {
  color: #0f766e;
}
[data-theme="dark"] .footer-links a:hover {
  color: var(--text);
}
[data-theme="dark"] .footer-feedback {
  color: var(--text-muted);
}
[data-theme="dark"] .footer-telegram-link {
  color: #0f766e;
}
[data-theme="dark"] .footer-legal {
  color: var(--text-muted);
}

.nav-drawer-close {
  display: none;
}

/* Global search pill (header): short pill, glass; desktop = right of Alerts hub, mobile = left of hamburger */
.global-search-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}
.global-search-pill:hover {
  background: rgba(255, 255, 255, 0.35);
  color: var(--text);
}
[data-theme="light"] .global-search-pill {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}
[data-theme="light"] .global-search-pill:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}
.global-search-pill-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.global-search-pill--mobile {
  display: none;
}
.gg-global-search-dropdown {
  position: fixed;
  z-index: 10000;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.gg-global-search-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.gg-global-search-dropdown[hidden] {
  display: none !important;
}
.gg-global-search-wrap {
  width: 100%;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: background-color var(--theme-duration) ease, border-color var(--theme-duration) ease;
}
.gg-global-search-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  outline: none;
}
.gg-global-search-input::placeholder {
  color: var(--text-muted);
}
.gg-global-search-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-color: var(--border-strong) var(--border);
  scrollbar-width: thin;
}
.gg-global-search-results::-webkit-scrollbar {
  width: 8px;
}
.gg-global-search-results::-webkit-scrollbar-track {
  background: var(--border);
}
.gg-global-search-results::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
.gg-global-search-results::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
.gg-global-search-section-label {
  padding: 6px 18px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.gg-global-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.gg-global-search-row:hover {
  background: var(--accent-soft);
}
.gg-global-search-row--tab {
  border-left: 2px solid var(--accent);
}
.gg-global-search-row--stock {
  /* no green line */
}
.gg-global-search-row-label {
  font-weight: 500;
  flex: 1;
  min-width: 0;
}
.gg-global-search-row-actions {
  flex-shrink: 0;
  margin-left: 8px;
}
.gg-global-search-remove {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.gg-global-search-remove:hover {
  color: var(--text);
  background: var(--border);
}
.gg-global-search-row-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .global-search-pill--desktop {
    display: none;
  }
  .global-search-pill--mobile {
    display: inline-flex;
  }
}

/* Collapse header earlier to prevent nav text wrapping before hamburger appears */
@media (max-width: 980px) and (min-width: 769px) {
  .header-nav-wrap {
    position: fixed;
    top: var(--header-sticky-h);
    left: auto;
    right: 0;
    width: 224px;
    max-width: 64vw;
    min-height: auto;
    max-height: calc(100vh - var(--header-sticky-h));
    max-height: calc(100dvh - var(--header-sticky-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 0 0 0 16px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    gap: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.24s;
    pointer-events: none;
    overflow-y: auto;
  }

  :root .header-nav-wrap,
  [data-theme="light"] .header-nav-wrap {
    background: rgba(255, 255, 255, 0.98);
    border-left-color: rgba(0, 0, 0, 0.1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  }

  [data-theme="dark"] .header-nav-wrap {
    background: rgba(28, 28, 28, 0.98);
    border-left-color: var(--border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .header.nav-open .header-nav-wrap {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-drawer-close {
    display: none !important;
  }

  .header-nav-wrap .nav-mobile-top {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
  }
  .header-nav-wrap .nav-mobile-top-right {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .header-nav-wrap .nav-mobile-top-right .nav-link,
  .header-nav-wrap .nav-mobile-top-right .header-profile-link,
  .header-nav-wrap .nav-mobile-top-right .header-settings-link,
  .header-nav-wrap .nav-mobile-top-right .theme-toggle {
    flex-shrink: 0;
    width: auto;
    min-width: 0;
  }
  .header-nav-wrap .nav-mobile-top-right .nav-link {
    padding: 8px 10px;
    min-height: 44px;
  }

  .header-nav-wrap .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 0 24px;
  }

  .header-nav-wrap .nav a,
  .header-nav-wrap .nav .nav-products-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    border: none;
    background: none;
    cursor: pointer;
  }

  .header-nav-wrap .nav a:hover,
  .header-nav-wrap .nav .nav-products:hover .nav-products-trigger {
    background: var(--accent-soft);
  }

  :root .header-nav-wrap .nav a,
  :root .header-nav-wrap .nav .nav-products-trigger,
  [data-theme="light"] .header-nav-wrap .nav a,
  [data-theme="light"] .header-nav-wrap .nav .nav-products-trigger {
    color: #0f1114;
  }

  [data-theme="dark"] .header-nav-wrap .nav a,
  [data-theme="dark"] .header-nav-wrap .nav .nav-products-trigger {
    color: #fff;
  }

  :root .header-nav-wrap .nav-products-dropdown a,
  [data-theme="light"] .header-nav-wrap .nav-products-dropdown a {
    color: #0f1114;
  }

  [data-theme="dark"] .header-nav-wrap .nav-products-dropdown a {
    color: #fff;
  }

  .header-nav-wrap .nav .nav-products-trigger {
    cursor: pointer;
    user-select: none;
    justify-content: space-between;
  }

  .header-nav-wrap .nav .nav-products-trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
  }

  .header-nav-wrap .nav .nav-products.nav-products-open .nav-products-trigger::after {
    transform: rotate(180deg);
  }

  .header-nav-wrap .nav .nav-products-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .header-nav-wrap .nav .nav-products.nav-products-open .nav-products-dropdown {
    max-height: 320px;
    overflow: visible;
  }

  .header-nav-wrap .nav .nav-products-dropdown a {
    display: block;
    padding: 10px 20px 10px 28px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .header-nav-wrap .nav .nav-products-dropdown a:hover {
    background: var(--accent-soft);
  }

  .header-inner {
    justify-content: space-between;
    gap: 8px;
    overflow: visible;
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: flex;
    order: 3;
    flex-shrink: 0;
    margin-right: 0;
    padding: 12px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .header-left {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    align-items: center;
    margin-left: 0;
  }

  .header-right {
    display: none !important;
  }
}

 
@media (max-width: 768px) {
  .header-nav-wrap {
    position: fixed;
    top: var(--header-sticky-h);
    left: auto;
    right: 0;
    width: 224px;
    max-width: 64vw;
    min-height: auto;
    max-height: calc(100vh - var(--header-sticky-h));
    max-height: calc(100dvh - var(--header-sticky-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 0 0 0 16px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    gap: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.24s;
    pointer-events: none;
    overflow-y: auto;
  }

  :root .header-nav-wrap,
  [data-theme="light"] .header-nav-wrap {
    background: rgba(255, 255, 255, 0.98);
    border-left-color: rgba(0, 0, 0, 0.1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  }

  [data-theme="dark"] .header-nav-wrap {
    background: rgba(28, 28, 28, 0.98);
    border-left-color: var(--border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .header.nav-open .header-nav-wrap {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }

   
  .nav-drawer-close {
    display: none !important;
  }

  .header-nav-wrap .nav-mobile-top {
    display: flex !important;
  }

  .nav-mobile-top {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
  }
  .nav-mobile-top-right {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .nav-mobile-top-right .nav-link,
  .nav-mobile-top-right .header-profile-link,
  .nav-mobile-top-right .header-settings-link,
  .nav-mobile-top-right .theme-toggle {
    flex-shrink: 0;
    width: auto;
    min-width: 0;
  }
  .nav-mobile-top-right .nav-link {
    padding: 8px 10px;
    min-height: 44px;
  }
  .header-nav-wrap .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 0 24px;
  }

  .header-nav-wrap .nav a,
  .header-nav-wrap .nav .nav-products-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    border: none;
    background: none;
    cursor: pointer;
  }

  .header-nav-wrap .nav a:hover,
  .header-nav-wrap .nav .nav-products:hover .nav-products-trigger {
    background: var(--accent-soft);
  }

  :root .header-nav-wrap .nav a,
  :root .header-nav-wrap .nav .nav-products-trigger,
  [data-theme="light"] .header-nav-wrap .nav a,
  [data-theme="light"] .header-nav-wrap .nav .nav-products-trigger {
    color: #0f1114;
  }

  [data-theme="dark"] .header-nav-wrap .nav a,
  [data-theme="dark"] .header-nav-wrap .nav .nav-products-trigger {
    color: #fff;
  }

  :root .header-nav-wrap .nav-products-dropdown a,
  [data-theme="light"] .header-nav-wrap .nav-products-dropdown a {
    color: #0f1114;
  }

  [data-theme="dark"] .header-nav-wrap .nav-products-dropdown a {
    color: #fff;
  }

   
  .header-nav-wrap .nav .nav-products-trigger {
    cursor: pointer;
    user-select: none;
    justify-content: space-between;
  }
  .header-nav-wrap .nav .nav-products-trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
  }
  .header-nav-wrap .nav .nav-products.nav-products-open .nav-products-trigger::after {
    transform: rotate(180deg);
  }
  .header-nav-wrap .nav .nav-products-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .header-nav-wrap .nav .nav-products.nav-products-open .nav-products-dropdown {
    max-height: 320px;
    overflow: visible;
  }
  .header-nav-wrap .nav .nav-products-dropdown a {
    display: block;
    padding: 10px 20px 10px 28px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
  }
  .header-nav-wrap .nav .nav-products-dropdown a:hover {
    background: var(--accent-soft);
  }

   
  .header-inner {
    justify-content: space-between;
    gap: 8px;
    overflow: visible;
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: flex;
    order: 3;
    flex-shrink: 0;
    margin-right: 0;
    padding: 12px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .header-left {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    align-items: center;
    margin-left: 0;
  }
  .header-right {
    display: none !important;
  }

   
  .hero {
    padding-top: max(var(--header-sticky-h), env(safe-area-inset-top));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(56px, env(safe-area-inset-bottom));
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100dvh;
    max-height: 100svh;
    min-height: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-inner {
    padding: 0 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    gap: 0;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-title-desktop {
    display: none !important;
  }

  .hero-title-mobile {
    display: block !important;
  }

   
  .hero-inner h1.hero-title-mobile {
    font-size: clamp(2.2rem, 11.5vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 28px;
    padding: 0 8px;
    white-space: normal;
  }
  .hero-inner h1.hero-title-mobile .hero-title-line1 {
    display: block;
    white-space: normal;
  }
  .hero-inner h1.hero-title-mobile .hero-title-line2 {
    display: block;
  }
  .hero-inner h1.hero-title-mobile .hero-title-line3 {
    display: block;
  }

  .hero-sub {
    font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
    line-height: 1.45;
    margin-bottom: 24px;
    padding: 0 8px;
    max-width: 100%;
  }

  .hero-cta .btn-hero-cta.hero-cta-pro {
    width: auto !important;
    max-width: 100%;
    padding: 8px 20px !important;
    font-size: 0.875rem !important;
    min-height: 40px !important;
  }

  .hero-cta {
    margin-top: 0;
    width: 100%;
    max-width: 320px;
    flex-direction: column;
  }

  .hero-cta .btn-hero-cta,
  .hero-cta .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
  }

  .hero-cta-note {
    font-size: 0.8125rem;
    margin-top: 12px;
  }

   
  .hero-cta-note {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

   
  .hero-scroll-indicator {
    bottom: 28px;
    left: 50vw;
    margin-left: -24px;
    transform: translateY(0);
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .hero-feedback {
    bottom: 28px;
    left: 16px;
    font-size: 0.75rem;
    align-items: flex-start;
    text-align: left;
    flex-wrap: wrap;
    max-width: 120px;
  }
  .hero-feedback-text {
    white-space: normal;
    max-width: 100%;
    display: block;
    line-height: 1.35;
  }
  .nav-home-mobile {
    display: flex !important;
  }

   
  .home-mission-summary {
    padding: 60px 20px 100px;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
  }

  .home-mission-summary-inner {
    padding: 0 12px;
  }

  .home-mission-summary-label {
    font-size: 0.75rem;
    margin-bottom: 16px;
  }

  .home-mission-summary-title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    margin-bottom: 20px;
    padding: 0 8px;
  }

  .home-mission-summary-quote {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    margin-bottom: 32px;
    padding: 0 8px;
  }

  .home-mission-summary-pillars {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 48px;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .home-mission-pillar {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 12px 10px;
    box-sizing: border-box;
  }

  .home-mission-pillar-icon {
    font-size: 1.25rem;
  }

  .home-mission-pillar-text {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.3;
  }

   
  .home-mission-summary-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    display: inline-flex;
  }

  .market-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .market-overview {
    padding: 32px 0 40px;
    min-height: 0;
  }

  .market-overview .section-label {
    font-size: 0.75rem;
  }

  .market-overview .market-heading {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    margin-bottom: 20px;
  }

  .market-chart-wrap {
    min-height: 260px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  [data-theme="dark"] .market-chart-wrap {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .market-chart-header {
    padding: 12px 16px;
    border-radius: 16px 16px 0 0;
  }

  .market-table-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-height: 420px;
    display: flex;
    flex-direction: column;
  }

  [data-theme="dark"] .market-table-wrap {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .market-table-header {
    flex-shrink: 0;
    padding: 14px 16px;
  }

  .market-table-header h3 {
    font-size: 1rem;
    margin: 0;
  }

  .market-table-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
  }

  .market-table {
    width: 100%;
  }

  .market-table th,
  .market-table td {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

   

  .tradingview-chart {
    height: 320px;
  }

  .commodities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .commodities-grid .commodity-card {
    min-width: 0;
    max-width: none;
  }

  .commodity-card {
    padding: 10px 12px;
  }

  .commodity-name {
    font-size: 0.8125rem;
  }

  .commodity-price {
    font-size: 1rem;
  }

  .commodity-change {
    font-size: 0.75rem;
  }

  .section {
    padding: 40px 0;
  }

  .feature-item {
    gap: 16px;
    padding: 20px 0;
  }

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

  .signup-form input {
    min-width: 100%;
  }

  /* One row on mobile: brand (left) + links + back-to-top (right); feedback & legal full width below */
  .footer-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
    text-align: left;
  }

  .footer-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .footer-links {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-left: 0;
    min-width: 0;
  }

  .footer-feedback {
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .footer {
    padding: 24px 0;
  }

  .footer-legal {
    grid-column: 1 / -1;
    text-align: center;
  }

   
  .btn,
  .btn-lg,
  .header .nav-link,
  .theme-toggle,
  .menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  .theme-toggle-track {
    min-width: 44px;
  }
  .header-inner {
    min-height: 56px;
  }
}

 
@media (max-width: 360px) {
  .hero-inner h1.hero-title-mobile {
    font-size: clamp(2.6rem, 13vw, 4.25rem);
  }
}

 
.hero-gift-nifty-pill {
  max-width: calc(100vw - 24px);
  right: max(12px, env(safe-area-inset-right));
}

 
@media (max-width: 480px) {
  .hero {
    padding: 0 16px 52px;
  }

  .hero-inner h1 {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
    margin-bottom: 12px;
  }

  .hero-sub {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }

  .hero-cta {
    max-width: 100%;
  }

  .hero-cta .btn-hero-cta {
    min-height: 48px;
    padding: 14px 20px;
  }

  .hero-scroll-indicator,
  .home-mission-summary-scroll {
    bottom: 24px;
  }

  .hero-feedback {
    bottom: 24px;
    left: 12px;
    max-width: 100px;
  }

  .home-mission-summary {
    padding: 48px 16px 88px;
  }

  .home-mission-summary-title {
    font-size: clamp(1.35rem, 5.5vw, 1.875rem);
    margin-bottom: 16px;
  }

  .home-mission-summary-quote {
    font-size: 0.9375rem;
    margin-bottom: 28px;
  }

  .home-mission-summary-pillars {
    margin-bottom: 32px;
  }

  .home-mission-pillar {
    padding: 16px 20px;
    max-width: 100%;
  }

  .home-mission-summary-scroll {
    font-size: 0.8125rem;
    padding: 0 12px;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
  }

  .home-mission-summary-pillars {
    max-width: 320px;
    gap: 8px;
    padding: 0 12px;
  }

  .home-mission-pillar {
    padding: 10px 8px;
  }

  .home-mission-pillar-text {
    font-size: 0.65rem;
  }

  .hero-inner h1.hero-title-mobile {
    font-size: clamp(2.9rem, 14.3vw, 4.9rem);
  }

  .market-chart-wrap {
    min-height: 220px;
  }

  .market-table-wrap {
    max-height: 360px;
  }

  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .hero-feedback {
    left: max(16px, env(safe-area-inset-left));
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  .hero-scroll-indicator {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}
