/* ═══════════════════════════════════════════
   LME Design Tokens & Component Styles
   ═══════════════════════════════════════════ */

/* ── Type Scale ── */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-brand-caption: 0.75rem;
  --text-brand-support: 0.8125rem;

  /* ── Spacing ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-14: 3.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Radius ── */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Content Widths ── */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* ── Font Families ── */
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* ── Glass Effects ── */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 12px;
  --glass-bg-light: rgba(255, 255, 255, 0.7);
  --glass-border-light: rgba(255, 255, 255, 0.5);
}

/* MiXi name story */
.name-story-copy {
  display: grid;
  gap: var(--space-4);
}

.name-story-copy > p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.name-story-attributes {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-2) 0;
}

.name-story-attributes > div {
  padding: var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.09);
  border-radius: var(--radius-lg);
  background: oklch(from var(--color-surface) l c h / 0.72);
}

.name-story-attributes dt {
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.name-story-attributes dd {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── LIGHT MODE ── */
:root,
[data-theme='light'] {
  --color-bg: #F5F8FA;
  --color-surface: #FFFFFF;
  --color-surface-2: #EDF3F7;
  --color-surface-offset: #E5EDF3;
  --color-divider: #D7E2EA;
  --color-border: #C5D3DE;

  --color-text: #0C1B2A;
  --color-text-muted: #526578;
  --color-text-faint: #7C8FA0;
  --color-text-inverse: #F7FAFC;

  --color-primary: #176FA6;
  --color-primary-hover: #125B8B;
  --color-primary-active: #0B456D;
  --color-primary-highlight: #DCEBF5;

  --color-navy: #091F34;
  --color-navy-light: #123A57;
  --color-mint: #70A9C5;

  --shadow-sm: 0 1px 2px rgba(7, 24, 39, 0.05);
  --shadow-md: 0 10px 30px rgba(7, 24, 39, 0.08);
  --shadow-lg: 0 24px 64px rgba(7, 24, 39, 0.12);
  --shadow-glow: 0 12px 30px rgba(23, 111, 166, 0.14);

  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(119, 145, 158, 0.28);
  --card-backdrop: blur(18px);
}

/* ── DARK MODE ── */
[data-theme='dark'] {
  --color-bg: #071522;
  --color-surface: #0D2030;
  --color-surface-2: #132B3E;
  --color-surface-offset: #102638;
  --color-divider: #203A4F;
  --color-border: #2C4960;

  --color-text: #EDF4F7;
  --color-text-muted: #9AABBA;
  --color-text-faint: #647789;
  --color-text-inverse: #0B1728;

  --color-primary: #6AAED4;
  --color-primary-hover: #82BCD9;
  --color-primary-active: #4E95BE;
  --color-primary-highlight: #163449;

  --color-navy: #06111C;
  --color-navy-light: #10283B;
  --color-mint: #82B9D2;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(106, 174, 212, 0.2);

  --card-bg: rgba(13, 26, 40, 0.78);
  --card-border: rgba(148, 181, 196, 0.14);
  --card-backdrop: blur(18px);
}

/* System preference fallback removed: light mode is always default.
   Users can toggle to dark via the theme button. */

/* ═══════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(0.95); }
  66% { transform: translate(15px, -25px) scale(1.05); }
}

@keyframes subtle-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(23, 111, 166, 0.3); }
  50% { box-shadow: 0 0 35px rgba(23, 111, 166, 0.5); }
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(23, 111, 166, 0.2); }
  50% { box-shadow: 0 0 16px rgba(23, 111, 166, 0.4); }
}

@keyframes border-rotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

@keyframes cta-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes dot-fade {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.06; }
}

/* ═══════════════════════════════════════════
   GLOBAL COMPONENTS
   ═══════════════════════════════════════════ */

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-2);
}

/* ── Anchor offset for sticky nav ── */
[id] {
  scroll-margin-top: 5.5rem;
}

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.site-header--scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: oklch(from var(--color-text) l c h / 0.1);
}

.nav-container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  width: auto;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  content: url("site-assets/mixi-logo-black.png");
  filter:
    contrast(1.14)
    saturate(1.12)
    drop-shadow(0 2px 3px rgba(4, 18, 35, 0.24));
}

.mobile-nav-logo img {
  width: auto;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  content: url("site-assets/mixi-logo-black.png");
}

.footer-brand img {
  width: auto;
  height: 76px;
  content: url("site-assets/mixi-logo-dark.png");
  filter: none;
}

.brand-parent {
  display: block;
  margin-top: 0.15rem;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mixi-brand-panel {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mixi-brand-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1.35rem -1.8rem 1rem -1.8rem;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 42% 46%,
    rgba(241, 248, 255, 0.94) 0%,
    rgba(226, 242, 255, 0.76) 43%,
    rgba(74, 155, 210, 0.2) 66%,
    transparent 80%
  );
  filter: blur(16px);
  pointer-events: none;
}

.mixi-brand-panel img {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  height: auto;
  content: url("site-assets/mixi-logo-dark.png");
  filter: none;
}

.hero .brand-parent {
  position: relative;
  z-index: 1;
  color: #A9BACB;
  margin-top: 0;
}

.product-card-thumb img,
.miximed-banner-icon img,
.login-hero img,
.gate-logo {
  content: url("site-assets/mixi-logo-black.png");
}

[data-theme="dark"] .nav-logo img,
[data-theme="dark"] .mobile-nav-logo img,
[data-theme="dark"] .login-hero img,
[data-theme="dark"] .gate-logo {
  filter:
    drop-shadow(1px 0 0 rgba(255, 255, 255, 0.82))
    drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.82))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.82))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.82))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0 auto;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  white-space: nowrap;
  font-family: var(--font-body);
  transition: all 250ms var(--ease-out);
}

/* Compact nav for medium screens */
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-links {
    gap: 0;
  }
  .nav-links a {
    padding: var(--space-1) var(--space-2);
    font-size: 0.8125rem;
  }
  .nav-container {
    gap: var(--space-2);
  }
  .nav-actions {
    gap: var(--space-2);
    margin-left: 0;
  }
  .nav-actions .btn {
    padding: var(--space-1) var(--space-3);
    font-size: 0.8125rem;
  }
  .nav-logo img {
    height: 50px;
  }
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  background: oklch(from var(--color-primary) l c h / 0.08);
}
.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-links a.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}
.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform var(--transition-interactive), opacity 0.2s;
}
.nav-dropdown:hover .nav-dropdown-toggle svg {
  opacity: 0.8;
}
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown:focus-within .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 200ms var(--ease-out);
  z-index: 200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.nav-dropdown-menu a:hover {
  color: var(--color-text);
  background: oklch(from var(--color-primary) l c h / 0.08);
}
.nav-dropdown-menu .dropdown-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-2);
}

.mobile-signin {
  display: none;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: oklch(from var(--color-primary) l c h / 0.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 200ms var(--ease-out);
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}

/* Mobile Nav: Slide-in drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--color-bg);
  z-index: 110;
  overflow-y: auto;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  transition: right 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open {
  display: flex !important;
  right: 0;
}

/* Mobile nav header: logo + close */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mobile-nav-logo img {
  height: 54px;
  width: auto;
}
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.mobile-nav-close:hover {
  color: var(--color-text);
  background: oklch(from var(--color-primary) l c h / 0.08);
}

/* Mobile nav body: scrollable links area */
.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3) var(--space-3);
}

/* Section labels */
.mobile-nav-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  padding: var(--space-4) var(--space-3) var(--space-1);
  margin-top: var(--space-1);
}
.mobile-nav-section:first-child {
  margin-top: 0;
}

/* Nav links with icons */
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 180ms var(--ease-out);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.07);
}
.mobile-nav-link.active {
  font-weight: 600;
}

/* Nav link icons */
svg.mobile-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-text-faint);
  transition: color 180ms var(--ease-out);
}
.mobile-nav-link:hover svg.mobile-nav-icon,
.mobile-nav-link.active svg.mobile-nav-icon {
  color: var(--color-primary);
}

/* Sub-items: slightly indented */
.mobile-nav-sub {
  padding-left: calc(var(--space-3) + 18px + var(--space-3));
}
.mobile-nav-sub svg.mobile-nav-icon {
  width: 15px;
  height: 15px;
  opacity: 0.6;
}

/* External link indicator */
svg.mobile-nav-external {
  width: 11px;
  height: 11px;
  opacity: 0.4;
  margin-left: 2px;
  flex-shrink: 0;
}

/* Mobile nav investor link: gold */
.mobile-nav-investor {
  color: #C9A84C !important;
  background: rgba(201, 168, 76, 0.06) !important;
  border: 1px solid rgba(201, 168, 76, 0.18);
  margin-top: var(--space-1);
}
.mobile-nav-investor:hover {
  background: rgba(201, 168, 76, 0.12) !important;
  color: #D4AF37 !important;
}
.mobile-nav-investor svg.mobile-nav-icon {
  color: #C9A84C;
}

/* Mobile nav footer: theme toggle */
.mobile-nav-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mobile-theme-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 180ms var(--ease-out);
  font-family: var(--font-body);
}
.mobile-theme-toggle:hover {
  color: var(--color-text);
  background: oklch(from var(--color-primary) l c h / 0.07);
}
.mobile-theme-toggle svg {
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-full);
  text-decoration: none;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  transition: all 280ms var(--ease-out);
  cursor: pointer;
  border: none;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #3E91C4 0%, #176FA6 50%, #125B8B 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(23, 111, 166, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4B97C3 0%, #176FA6 50%, #0B456D 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(23, 111, 166, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #176FA6 0%, #0B456D 100%);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid oklch(from var(--color-text) l c h / 0.2);
  position: relative;
  overflow: hidden;
}
.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(23, 111, 166, 0.08), transparent);
  transition: left 0.5s ease;
}
.btn-outline:hover::before {
  left: 100%;
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(23, 111, 166, 0.12);
}
.btn-outline:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
}
.btn-ghost:hover {
  background: oklch(from var(--color-primary) l c h / 0.08);
}

.btn-white {
  background: #fff;
  color: var(--color-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
  background: #F0F2F5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* CTA section primary button shimmer */
.cta-section .btn-white {
  animation: none;
}
.cta-section .btn-white::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(23, 111, 166, 0.1), transparent);
  animation: shimmer 3s infinite;
}

/* ── Section ── */
.section {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-4);
  position: relative;
}
.section-dark {
  background: var(--color-navy);
  color: #E8EAF0;
}
.section-dark .color-muted {
  color: #8E95A8;
}
.section-gray {
  background: var(--color-surface-2);
}

.container {
  width: min(calc(100% - 40px), var(--content-wide));
  max-width: var(--content-wide);
  margin-inline: auto;
}
.container-narrow {
  width: min(calc(100% - 40px), var(--content-default));
  max-width: var(--content-default);
  margin-inline: auto;
}

/* ── Section Dividers: wave/diagonal shapes between sections ── */
.section-dark + .section,
.section-dark + .section-gray,
.section + .section-dark {
  position: relative;
}

/* ── Section Headings ── */
.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  max-width: 28ch;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-dark .section-title {
  color: #fff;
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.75;
}
.section-dark .section-subtitle {
  color: #99A2B8;
}

/* ── Cards: Glass Morphism ── */
.card {
  background: var(--card-bg);
  backdrop-filter: var(--card-backdrop);
  -webkit-backdrop-filter: var(--card-backdrop);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all 300ms var(--ease-out);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(23, 111, 166, 0.15), transparent 50%, rgba(123, 197, 174, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(23, 111, 166, 0.12), var(--shadow-md);
  transform: translateY(-3px) scale(1.01);
}
.card:hover::before {
  opacity: 1;
}

/* Icons in cards: subtle animation on hover */
.card:hover .icon-box {
  transform: scale(1.08);
}
.card:hover .icon-box svg {
  filter: drop-shadow(0 0 6px rgba(23, 111, 166, 0.4));
}

.card-dark {
  background: rgba(26, 39, 68, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 300ms var(--ease-out);
  position: relative;
}
.card-dark:hover {
  background: rgba(26, 39, 68, 0.7);
  border-color: rgba(23, 111, 166, 0.2);
  box-shadow: 0 8px 32px rgba(23, 111, 166, 0.1);
  transform: translateY(-3px) scale(1.01);
}

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-4);
}

/* ── Icon Box ── */
.icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 300ms var(--ease-out);
  position: relative;
}
.icon-box::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 111, 166, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.icon-box svg {
  width: 24px;
  height: 24px;
  transition: filter 300ms var(--ease-out);
}

/* ── Footer: Modernized ── */
.site-footer {
  background: #081827;
  color: #E8EAF0;
  padding: var(--space-16) var(--space-4) var(--space-8);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #176FA6 30%, #70A9C5 50%, #176FA6 70%, transparent 100%);
}
.footer-grid {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-8);
}
.footer-brand p {
  color: #8E95A8;
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  max-width: 32ch;
  line-height: 1.75;
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-2);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}
.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: #8E95A8;
  text-decoration: none;
  padding: var(--space-1) 0;
  transition: color 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.footer-col a:hover {
  color: var(--color-primary);
  transform: translateX(2px);
}

.footer-status {
  display: block;
  margin-top: 0.15rem;
  color: #697188;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Product portfolio map */
.portfolio-map {
  position: relative;
  padding: var(--space-5);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-primary) l c h / 0.13);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, oklch(from var(--color-primary) l c h / 0.05), transparent 55%),
    var(--color-surface-2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.portfolio-tile {
  display: flex;
  min-height: 190px;
  padding: var(--space-5);
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 12px 30px oklch(from var(--color-text) l c h / 0.04);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.portfolio-tile:hover {
  transform: translateY(-3px);
  border-color: oklch(from var(--color-primary) l c h / 0.35);
  box-shadow: 0 18px 36px oklch(from var(--color-text) l c h / 0.08);
}

.portfolio-tile--current {
  border-color: oklch(from var(--color-primary) l c h / 0.32);
  background:
    linear-gradient(145deg, oklch(from var(--color-primary) l c h / 0.08), transparent 58%),
    var(--color-surface);
}

.portfolio-tile--company {
  border-style: dashed;
  background: transparent;
}

.portfolio-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-4);
  place-items: center;
  border-radius: 14px;
  background: oklch(from var(--color-primary) l c h / 0.1);
  color: var(--color-primary);
}

.portfolio-icon svg {
  width: 25px;
  height: 25px;
}

.portfolio-status {
  display: inline-flex;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.3;
  text-transform: uppercase;
}

.portfolio-status--development {
  color: var(--color-text-muted);
}

.portfolio-tile--company .portfolio-icon {
  background: oklch(from var(--color-text-muted) l c h / 0.1);
  color: var(--color-text-muted);
}

.portfolio-tile strong {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.25;
}

.portfolio-tile small {
  margin-top: auto;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.45;
}

@media (max-width: 560px) {
  .portfolio-map {
    padding: var(--space-3);
  }

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

  .portfolio-tile {
    min-height: 0;
    padding: var(--space-5);
  }
}
.footer-bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: #6B7385;
}
.footer-bottom a {
  font-size: var(--text-xs);
  color: #6B7385;
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-bottom a:hover {
  color: var(--color-primary);
}

/* ── Hero Sections: Dramatic with gradient mesh ── */
.hero {
  background: var(--color-navy);
  color: #fff;
  padding: clamp(var(--space-20), 12vw, 10rem) var(--space-4) clamp(var(--space-16), 10vw, var(--space-32));
  position: relative;
  overflow: hidden;
}
/* Animated gradient mesh bg */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 160%;
  height: 200%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(23, 111, 166, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(123, 197, 174, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 20%, rgba(23, 111, 166, 0.06) 0%, transparent 50%);
  animation: orb-float-1 20s ease-in-out infinite;
  pointer-events: none;
}
/* Second animated orb layer */
.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80%;
  height: 140%;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(23, 111, 166, 0.1) 0%, transparent 60%);
  animation: orb-float-2 25s ease-in-out infinite;
  pointer-events: none;
}
/* Dot grid overlay */
.hero .hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  animation: dot-fade 8s ease-in-out infinite;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  max-width: 18ch;
  margin-bottom: var(--space-6);
  line-height: 1.08;
  letter-spacing: -0.03em;
  position: relative;
}
/* Glow orb behind headline */
.hero h1::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  width: 300px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(23, 111, 166, 0.15) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
  filter: blur(40px);
  z-index: -1;
}
.hero p {
  font-size: var(--text-base);
  color: #B0B8CC;
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: var(--space-4);
}
.hero .hero-highlight {
  color: var(--color-primary);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* ── Scroll Reveal Animations: with stagger ── */
.reveal-ready {
  opacity: 1;
  transform: none;
  transition: transform 0.25s var(--ease-out);
}
.reveal-ready.revealed {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.stagger-children > .reveal-ready:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .reveal-ready:nth-child(2) { transition-delay: 80ms; }
.stagger-children > .reveal-ready:nth-child(3) { transition-delay: 160ms; }
.stagger-children > .reveal-ready:nth-child(4) { transition-delay: 240ms; }
.stagger-children > .reveal-ready:nth-child(5) { transition-delay: 320ms; }
.stagger-children > .reveal-ready:nth-child(6) { transition-delay: 400ms; }

/* ── Trust Strip: Glass Cards ── */
.trust-strip {
  padding: var(--space-10) var(--space-4);
  background: var(--color-surface-2);
  position: relative;
}
.trust-items {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-4);
  text-align: left;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 250ms var(--ease-out);
}
.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
/* Separator pseudo-element between trust items on desktop */
.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(-0.5 * var(--space-4));
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-divider);
}
.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 0 6px rgba(23, 111, 166, 0.3));
}
.trust-item span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

/* ── Workflow Steps: with connecting lines and gradient numbers ── */
.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-4);
  counter-reset: step;
  position: relative;
}
.workflow-step {
  counter-increment: step;
  text-align: left;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: all 300ms var(--ease-out);
}
.workflow-step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(23, 111, 166, 0.2);
  box-shadow: 0 0 24px rgba(23, 111, 166, 0.1);
  transform: translateY(-3px);
}
/* Number circle with gradient fill */
.workflow-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #3E91C4 0%, #176FA6 50%, #125B8B 100%);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-4);
  box-shadow: 0 2px 8px rgba(23, 111, 166, 0.3);
}
/* Connecting line between steps */
.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 25px;
  right: calc(-1 * var(--space-4) / 2 - 10px);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, rgba(23, 111, 166, 0.4), rgba(23, 111, 166, 0.1));
  pointer-events: none;
}
.workflow-step h4,
.workflow-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}
.workflow-step p {
  font-size: var(--text-xs);
  color: #8E95A8;
  line-height: 1.7;
}

/* ── Page Hero (interior pages): with mesh ── */
.page-hero {
  background: var(--color-navy);
  color: #fff;
  padding: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-4) clamp(var(--space-12), 6vw, var(--space-20));
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 160%;
  height: 200%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(23, 111, 166, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(123, 197, 174, 0.06) 0%, transparent 60%);
  animation: orb-float-1 20s ease-in-out infinite;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  max-width: 22ch;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}
.page-hero p {
  font-size: var(--text-base);
  color: #B0B8CC;
  max-width: 56ch;
  line-height: 1.75;
}

/* ── Feature Cards with Icon ── */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.feature-card .icon-box {
  margin-bottom: var(--space-1);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ── CTA Section: animated gradient ── */
.cta-section {
  background: linear-gradient(135deg, #3E91C4 0%, #176FA6 25%, #125B8B 50%, #0B456D 75%, #176FA6 100%);
  background-size: 200% 200%;
  animation: cta-gradient-shift 8s ease-in-out infinite;
  color: #fff;
  padding: clamp(var(--space-16), 10vw, 8rem) var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  max-width: 30ch;
  margin-inline: auto;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.cta-section p {
  font-size: var(--text-base);
  color: oklch(1 0 0 / 0.85);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ── Form Styles ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-input,
.form-textarea {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-body);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15), 0 0 16px rgba(23, 111, 166, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Stat Cards ── */
.stat-card {
  text-align: center;
  padding: var(--space-6);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Tags / Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: oklch(from var(--color-primary) l c h / 0.12);
  color: var(--color-primary);
  animation: badge-glow 3s ease-in-out infinite;
}
.badge-coming-soon {
  background: oklch(from var(--color-mint) l c h / 0.15);
  color: var(--color-mint);
  animation: none;
}

/* ── MIXI AI Card: Animated Border Gradient ── */
.mixi-card-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1.5px;
  background: linear-gradient(135deg, #176FA6, #70A9C5, #176FA6, #125B8B);
  background-size: 300% 300%;
  animation: gradient-shift 6s ease-in-out infinite;
}
.mixi-card-wrapper > div {
  border-radius: calc(var(--radius-xl) - 1.5px);
}

/* ── Section wave divider ── */
.section-wave-divider {
  position: relative;
  margin-top: -1px;
  height: 48px;
  overflow: hidden;
  pointer-events: none;
}
.section-wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Responsive Inline Grids ── */
@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  .trust-item:not(:last-child)::after {
    display: none;
  }
  .workflow-step:not(:last-child)::after {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   PROFESSIONAL SYSTEM CONSOLIDATION
   ═══════════════════════════════════════════ */

/* Keep the brand visible without allowing it to overpower page messaging. */
.nav-logo img,
.mobile-nav-logo img {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.hero-logo-wrap {
  margin-bottom: var(--space-5);
}

.hero-logo-wrap::before {
  display: none;
}

.hero-logo-wrap img {
  width: min(250px, 70vw);
  filter: none;
  content: url("site-assets/mixi-logo-black.png");
}

/* Interior pages use a centered editorial hero instead of an empty split layout. */
.page-hero .container {
  max-width: 920px;
  text-align: center;
}

.page-hero .section-eyebrow {
  justify-content: center;
}

.page-hero h1 {
  max-width: 19ch;
  margin-inline: auto;
}

.page-hero p {
  max-width: 68ch;
  margin-inline: auto;
}

/* One product-card grammar across flagship, suite, module, and roadmap entries. */
.product-family-card,
.platform-detail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.product-family-icon {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: transparent;
}

.product-family-icon img {
  width: auto;
  max-width: 138px;
  max-height: 64px;
  object-fit: contain;
}

.product-family-card .product-family-badge {
  align-self: center;
}

.product-family-card h3 {
  margin-top: var(--space-4);
  text-align: center;
}

.product-family-card > p {
  text-align: center;
}

.product-family-card .product-card-features {
  width: 100%;
}

.product-family-card .text-link {
  margin-top: auto;
  padding-top: var(--space-5);
  align-self: flex-start;
}

.platform-detail-heading {
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.platform-detail-heading .product-family-icon {
  margin-bottom: 0;
}

.platform-detail-card > p {
  max-width: 74ch;
  margin-inline: auto;
  text-align: center;
}

.platform-detail-card .product-capability-grid {
  width: 100%;
}

.platform-detail-card > .btn,
.platform-detail-card > div:last-child {
  align-self: center;
  margin-top: auto;
}

/* Developing modules belong to the same family and no longer look like another brand. */
.platform-detail-card--dark {
  color: var(--color-text);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 92%, transparent), color-mix(in srgb, var(--color-primary-highlight) 32%, var(--color-surface)));
  border-color: color-mix(in srgb, var(--color-primary) 34%, var(--color-border));
}

.platform-detail-card--dark h2,
.platform-detail-card--dark h3,
.platform-detail-card--dark p,
.platform-detail-card--dark strong,
.platform-detail-card--dark span {
  color: inherit;
}

.platform-detail-card--dark .product-family-icon img {
  content: url("site-assets/mixi-logo-dark.png");
}

.platform-detail-card--dark .product-capability-grid > div {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

.platform-detail-card--dark .product-capability-grid span {
  color: var(--color-text-muted);
}

.platform-detail-card--dark .btn-white {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

[data-theme='dark'] .platform-detail-card--dark {
  color: var(--color-text);
  background: var(--color-surface);
}

[data-theme='dark'] .platform-detail-card--dark .product-family-icon img {
  content: url("site-assets/mixi-logo-dark.png");
}

/* Make team cards and general cards feel like one restrained system. */
.team-card,
.card {
  border-radius: var(--radius-lg);
}

.team-card {
  box-shadow: var(--shadow-sm) !important;
}

/* Ensure footer actions remain comfortably tappable without looking oversized. */
@media (max-width: 768px) {
  .nav-logo img {
    height: 46px;
  }

  .hero-logo-wrap {
    margin-bottom: var(--space-3);
  }

  .hero-logo-wrap img {
    width: min(150px, 48vw);
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.05;
  }

  .page-hero {
    padding-block: var(--space-12);
  }

  .product-family-card,
  .platform-detail-card {
    padding: var(--space-6);
  }

  .footer-col a,
  .footer-bottom a,
  .footer-col h4 {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-actions .btn {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
    gap: var(--space-1);
  }
  .mobile-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 var(--space-3);
    color: var(--color-text);
    background: oklch(from var(--color-primary) l c h / 0.08);
    border: 1px solid oklch(from var(--color-primary) l c h / 0.28);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-actions > .theme-toggle {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(1.75rem, 1rem + 3vw, 2.5rem);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════
   ENHANCED NAV DROPDOWNS (with icons + descriptions)
   ═══════════════════════════════════════════ */

/* Enhanced dropdown menu: wider, with item descriptions */
.nav-dropdown-menu.dropdown-enhanced {
  min-width: 260px;
  padding: var(--space-3);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: all 200ms var(--ease-out);
}
.dropdown-item:hover {
  background: oklch(from var(--color-primary) l c h / 0.08);
  color: var(--color-text) !important;
}
.dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: oklch(from var(--color-primary) l c h / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 1px;
}
.dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dropdown-item-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}
.dropdown-item-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}
.dropdown-item:hover .dropdown-item-title {
  color: var(--color-primary);
}
.dropdown-item-external {
  display: flex;
  align-items: center;
  gap: 3px;
}
.dropdown-item-external svg {
  opacity: 0.5;
  width: 11px;
  height: 11px;
}

/* Investor Access nav link: lock icon style */
.nav-investor-link {
  display: inline-flex !important;
  align-items: center;
  gap: var(--space-1) !important;
  padding: var(--space-2) var(--space-3) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: var(--color-primary) !important;
  border: 1px solid oklch(from var(--color-primary) l c h / 0.25) !important;
  border-radius: var(--radius-full) !important;
  background: oklch(from var(--color-primary) l c h / 0.06) !important;
  transition: all 200ms var(--ease-out) !important;
}
.nav-investor-link:hover {
  background: oklch(from var(--color-primary) l c h / 0.14) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}
.nav-investor-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.nav-signin-link {
  display: inline-flex !important;
  align-items: center;
  gap: var(--space-1) !important;
  padding: var(--space-2) var(--space-3) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  border: 1px solid color-mix(in srgb, var(--color-primary) 46%, var(--color-border)) !important;
  border-radius: var(--radius-full) !important;
  transition: all 200ms var(--ease-out) !important;
}

.nav-signin-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Mobile nav investor link: see base mobile nav styles */

/* ═══════════════════════════════════════════
   HERO LOGO BRANDING
   ═══════════════════════════════════════════ */

.hero-logo-wrap {
  display: inline-block;
  margin-bottom: var(--space-8);
  position: relative;
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -16px -24px;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(23, 111, 166, 0.22) 0%, transparent 70%);
  filter: blur(20px);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-pulse 3s ease-in-out infinite;
}
.hero-logo-wrap img {
  height: 80px;
  width: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(23, 111, 166, 0.3));
}

.privacy-note {
  max-width: 66ch;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.6;
}

.privacy-note a {
  color: var(--color-primary);
  font-weight: 700;
}

.form-status {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}

/* Official MIXI AI panther lockup */
.nav-logo img {
  height: 64px !important;
}

/* Footer logo + tagline */
.footer-brand img {
  height: 76px !important;
}
.footer-brand-tagline {
  font-size: var(--text-xs);
  color: #6B8BA4;
  letter-spacing: 0.04em;
  font-style: italic;
  margin-top: var(--space-1);
  margin-bottom: var(--space-3);
}

/* ═══════════════════════════════════════════
   TEAM HEADSHOT CARDS
   ═══════════════════════════════════════════ */

.team-card {
  background: var(--card-bg);
  backdrop-filter: var(--card-backdrop);
  -webkit-backdrop-filter: var(--card-backdrop);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: left;
  transition: all 300ms var(--ease-out);
  position: relative;
}
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(23, 111, 166, 0.2), transparent 50%, rgba(123, 197, 174, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.team-card:hover {
  box-shadow: 0 8px 32px rgba(23, 111, 166, 0.12), var(--shadow-md);
  transform: translateY(-3px);
}
.team-card:hover::before {
  opacity: 1;
}
.team-headshot-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.team-headshot-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #70A9C5 50%, var(--color-primary) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease-in-out infinite;
}
.team-headshot-wrap img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: var(--color-surface-2);
}

/* Stealth mode team member */
.stealth-headshot::before {
  background: linear-gradient(135deg, #8B95A5 0%, #A0AABB 50%, #8B95A5 100%);
  background-size: 200% 200%;
  opacity: 0.5;
}
.stealth-avatar {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-text-faint);
}
.stealth-avatar svg {
  width: 100%;
  height: 100%;
}
.stealth-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-faint);
  filter: blur(4px);
  user-select: none;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════
   MIXI MED BANNER
   ═══════════════════════════════════════════ */

.miximed-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0F2444 100%);
  border: 1px solid rgba(23, 111, 166, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 300ms var(--ease-out);
}
.miximed-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(23, 111, 166, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.miximed-banner:hover {
  border-color: rgba(23, 111, 166, 0.4);
  box-shadow: 0 8px 32px rgba(23, 111, 166, 0.12);
  transform: translateY(-2px);
}
.miximed-banner-icon {
  width: 104px;
  height: 62px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
}
.miximed-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.24));
}
.miximed-banner-content {}
.miximed-banner-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-2);
}
.miximed-banner-content p {
  font-size: var(--text-sm);
  color: #8E95A8;
  line-height: 1.7;
  max-width: 52ch;
}
.miximed-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, #3E91C4 0%, #176FA6 50%, #125B8B 100%);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(23, 111, 166, 0.3);
  transition: all 280ms var(--ease-out);
}
.miximed-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(23, 111, 166, 0.4);
}
.miximed-banner-cta svg {
  width: 14px;
  height: 14px;
}

/* ═══════════════════════════════════════════
   INVESTOR PORTAL: FINANCIAL SECTIONS
   ═══════════════════════════════════════════ */

.investor-section {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.investor-section-header {
  margin-bottom: var(--space-8);
}
.investor-section-header .section-eyebrow {
  margin-bottom: var(--space-2);
}
.investor-section-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.investor-section-header p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 64ch;
}

/* Revenue model cards */
.revenue-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.revenue-model-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all 250ms var(--ease-out);
}
.revenue-model-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.3);
  box-shadow: 0 4px 20px rgba(23, 111, 166, 0.08);
}
.revenue-model-card .rm-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: oklch(from var(--color-primary) l c h / 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.revenue-model-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.revenue-model-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Revenue bar chart */
.revenue-chart {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.revenue-chart-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}
.chart-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.chart-bar-row {
  display: grid;
  grid-template-columns: 56px 1fr 100px;
  align-items: center;
  gap: var(--space-3);
}
.chart-bar-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: right;
}
.chart-bar-track {
  height: 28px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.chart-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #176FA6 0%, #3E91C4 60%, #70A9C5 100%);
  box-shadow: 0 2px 8px rgba(23, 111, 166, 0.25);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.chart-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}
.chart-bar-value {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-display);
}

/* Profitability timeline */
.profitability-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-4);
}
.timeline-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #176FA6, #70A9C5);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.timeline-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Market opportunity */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.market-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.market-stat-card .market-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}
.market-stat-card .market-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}
.market-stat-card .market-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.market-chart-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-top: var(--space-4);
}
@media (max-width: 640px) {
  .market-grid {
    grid-template-columns: 1fr;
  }
}

/* Exit strategy + use of funds */
.exit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-4);
}
.exit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.exit-card .exit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: oklch(from var(--color-primary) l c h / 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.exit-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.exit-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Responsive fix for miximed-banner */
@media (max-width: 768px) {
  .miximed-banner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .miximed-banner-cta {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ENHANCEMENT BLOCK: v2 Major Enhancement
   Mobile, Nav, Investor Portal, Branding, Icons, Polish
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. GLOBAL POLISH ── */

html {
  scroll-behavior: smooth;
}

/* Better focus states */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Images max-width */
img {
  max-width: 100%;
  height: auto;
}

/* Hero text shadow for readability */
.hero h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ── 2. NAV: FROSTED GLASS HEADER ── */

/* Enhanced frosted glass effect */
.site-header {
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

/* Underline slide-in on nav links */
.nav-links a:not(.nav-investor-link):not(.nav-signin-link) {
  position: relative;
}
.nav-links a:not(.nav-investor-link):not(.nav-signin-link)::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
  border-radius: 1px;
}
.nav-links a:not(.nav-investor-link):not(.nav-signin-link):hover::after,
.nav-links a:not(.nav-investor-link):not(.nav-signin-link).active::after {
  transform: scaleX(1);
}
/* Remove duplicate hover background for active underline style */
.nav-links a:not(.nav-investor-link):not(.nav-signin-link):hover {
  background: oklch(from var(--color-primary) l c h / 0.06);
}

/* Dropdown: bigger icons, better slide + fade */
.nav-dropdown-menu {
  transform: translateY(-6px);
  transition: opacity 200ms var(--ease-out), visibility 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  transform: translateY(4px);
}

/* Dropdown item icons: slightly larger */
.dropdown-item-icon {
  width: 36px;
  height: 36px;
}
.dropdown-item-icon svg {
  width: 18px;
  height: 18px;
}

.dropdown-item-investor .dropdown-item-icon {
  color: #A88328;
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.25);
}

.dropdown-item-investor .dropdown-item-title {
  color: #9A7721;
}

/* Investor access: distinct without competing with the primary action */
.nav-investor-link {
  color: var(--color-navy-light) !important;
  border-color: rgba(23, 111, 166, 0.22) !important;
  background: rgba(23, 111, 166, 0.07) !important;
  box-shadow: none !important;
}
.nav-investor-link:hover {
  color: #fff !important;
  background: #125F91 !important;
  border-color: #125F91 !important;
  box-shadow: 0 8px 20px rgba(10, 58, 87, 0.16) !important;
}
.nav-investor-link svg {
  color: currentColor;
}

[data-theme='dark'] .nav-investor-link {
  color: #B7D3E3 !important;
  border-color: rgba(106, 174, 212, 0.28) !important;
  background: rgba(106, 174, 212, 0.08) !important;
}

[data-theme='dark'] .nav-investor-link:hover {
  color: #fff !important;
  background: #176FA6 !important;
  border-color: #6AAED4 !important;
}

/* Mobile nav gold investor link: see base styles above */

/* ── 3. MOBILE NAV: ENHANCED OVERLAY ── */

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 20, 0.65);
  backdrop-filter: blur(2px);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}
.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger to X transition: already handled but enhance */
.hamburger span {
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── 4. HERO LOGO: LARGER WITH GLOW ── */

.hero-logo-wrap img {
  height: 100px;
  width: auto;
}

/* ── 5. ICON BOX: GRADIENT BACKGROUND ── */

.icon-box {
  background: linear-gradient(135deg,
    oklch(from var(--color-primary) l c h / 0.12) 0%,
    oklch(from var(--color-mint) l c h / 0.08) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  width: 52px;
  height: 52px;
}
.icon-box svg {
  width: 26px;
  height: 26px;
}

/* Trust strip icons: larger */
.trust-item svg {
  width: 24px;
  height: 24px;
}

/* ── 6. CARD HOVER SHIMMER EFFECT ── */

.card,
.revenue-model-card,
.exit-card,
.timeline-item,
.portal-card {
  overflow: hidden;
}
.card::after,
.revenue-model-card::after,
.exit-card::after,
.timeline-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(23, 111, 166, 0.06), transparent);
  pointer-events: none;
  transform: skewX(-20deg);
  transition: left 0s;
}
.card:hover::after,
.revenue-model-card:hover::after,
.exit-card:hover::after,
.timeline-item:hover::after {
  left: 150%;
  transition: left 0.5s ease;
}

/* Teal section divider accent lines */
.investor-section {
  border-top: 1px solid var(--color-divider);
  position: relative;
}
.investor-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

/* ── 7. BACK TO TOP BUTTON ── */

.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(23, 111, 166, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  z-index: 80;
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  box-shadow: 0 8px 28px rgba(23, 111, 166, 0.5);
  transform: translateY(-3px);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ── 8. INVESTOR PORTAL: GOLD THEME ── */

/* Gold color variables for portal */
:root {
  --color-gold: #C9A84C;
  --color-gold-light: #D4AF37;
  --color-gold-dim: rgba(201, 168, 76, 0.15);
  --color-gold-border: rgba(201, 168, 76, 0.3);
}

/* Premium Gate Card Redesign */
.investor-gate {
  min-height: 100vh;
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

/* Animated particle/grid bg on gate */
.investor-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(23, 111, 166, 0.04) 0%, transparent 50%);
  pointer-events: none;
  animation: orb-float-1 20s ease-in-out infinite;
}
.investor-gate::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.02) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Premium gate card */
.investor-gate-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: calc(var(--radius-xl) + 4px);
  padding: var(--space-12) var(--space-10);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}

/* Gold top accent bar */
.investor-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #C9A84C 30%, #D4AF37 50%, #C9A84C 70%, transparent 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Gate badge */
.investor-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: var(--space-5);
}

/* Animated lock icon on gate */
.gate-lock-icon {
  color: #C9A84C !important;
  opacity: 1 !important;
  animation: glow-pulse-gold 3s ease-in-out infinite;
}
@keyframes glow-pulse-gold {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.6)); }
}

/* Gate card headings on dark bg */
.investor-gate-card h1 {
  color: #fff !important;
  font-size: var(--text-xl) !important;
}
.investor-gate-card .gate-sub {
  color: #8E95A8 !important;
}

/* Gate input */
.gate-input {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(201, 168, 76, 0.35) !important;
  color: #1B2432 !important;
}
.gate-input::placeholder {
  color: #8E95A8;
}
.gate-input:focus {
  border-color: #C9A84C !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15) !important;
}

/* Gate submit button: gold */
#gateSubmit {
  background: linear-gradient(135deg, #D4AF37 0%, #C9A84C 50%, #A8871D 100%) !important;
  color: #0F1729 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3) !important;
}
#gateSubmit:hover {
  background: linear-gradient(135deg, #E0BB3F 0%, #D4AF37 50%, #B8971E 100%) !important;
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.45) !important;
  transform: translateY(-2px);
}

/* Portal dashboard: gold accents */
.portal-card-icon {
  background: rgba(201, 168, 76, 0.1) !important;
  color: #C9A84C !important;
}
.portal-card:hover {
  border-color: rgba(201, 168, 76, 0.35) !important;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.12), var(--shadow-md) !important;
}
.portal-card .card-action {
  color: #C9A84C !important;
}

/* Confidential watermark badge */
.investor-confidential-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A84C;
}

/* Key metrics row */
.investor-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
@media (max-width: 1024px) {
  .investor-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .investor-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.investor-metric-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid #C9A84C;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 250ms var(--ease-out);
}
.investor-metric-card:hover {
  border-top-color: #D4AF37;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.12);
  transform: translateY(-2px);
}
.investor-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #C9A84C;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}
.investor-metric-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Portal section with gold accent divider */
.portal-section-nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.portal-section-nav a {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  transition: all 200ms var(--ease-out);
}
.portal-section-nav a:hover {
  color: #C9A84C;
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.06);
}

/* Portal welcome pill: gold */
.portal-welcome {
  background: rgba(201, 168, 76, 0.1) !important;
  color: #C9A84C !important;
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.portal-welcome svg {
  color: #C9A84C !important;
}

/* Pitch deck download button style */
.download-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, #8B6F1E 0%, #A07D24 100%);
  color: #FFFFFF !important;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 250ms var(--ease-out);
  box-shadow: 0 2px 8px rgba(139, 111, 30, 0.3);
  letter-spacing: 0.02em;
}
.download-action:hover {
  background: linear-gradient(135deg, #A07D24 0%, #B8922E 100%);
  box-shadow: 0 4px 20px rgba(139, 111, 30, 0.45);
  transform: translateY(-2px);
  gap: var(--space-3);
}

/* Portal disclaimer: bordered card */
.portal-disclaimer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid rgba(201, 168, 76, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-xs) !important;
  color: var(--color-text-muted) !important;
  text-align: left !important;
  max-width: none !important;
  margin-top: var(--space-12) !important;
}

/* Revenue bars: gold in investor context */
.investor-portal .chart-bar-fill {
  background: linear-gradient(90deg, #C9A84C 0%, #D4AF37 60%, #E0C060 100%);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}
.investor-portal .chart-bar-value {
  color: #C9A84C;
}
.investor-portal .timeline-item::before {
  background: linear-gradient(90deg, #C9A84C, #D4AF37);
}
.investor-portal .timeline-year {
  color: #C9A84C;
}
.investor-portal .market-stat-card .market-value {
  color: #C9A84C;
}
.investor-portal .revenue-model-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
}
.investor-portal .exit-card .exit-icon {
  background: rgba(201, 168, 76, 0.1);
  color: #C9A84C;
}

/* Executive summary card */
.investor-exec-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}
.investor-exec-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #C9A84C, #D4AF37, transparent);
}
.investor-exec-summary h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.investor-exec-summary p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Investor page hero: gold-accented */
.investor-portal .page-hero {
  background: linear-gradient(135deg, #0B0F1A 0%, #0F1729 50%, #0D1625 100%);
}

/* ── 9. COMPREHENSIVE MOBILE MEDIA QUERIES ── */

/* --- 768px breakpoint --- */
@media (max-width: 768px) {

  /* Inline grid overrides for 1fr 1fr layouts */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1fr auto"],
  [style*="grid-template-columns: auto 1fr auto"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero sizing */
  .hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    max-width: 100%;
  }
  .hero p {
    font-size: var(--text-sm);
    max-width: 100%;
  }
  .hero {
    padding: var(--space-16) var(--space-4) var(--space-12);
  }

  /* Hero logo */
  .hero-logo-wrap img {
    height: 72px;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    max-width: 100%;
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    max-width: 100%;
  }

  /* Grids */
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Cards full-width */
  .card, .portal-card, .revenue-model-card, .exit-card {
    padding: var(--space-5);
  }

  /* Buttons: full-width on small screens when stacked */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-6);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* Trust strip */
  .trust-items {
    grid-template-columns: 1fr 1fr;
  }
  .trust-item:not(:last-child)::after {
    display: none;
  }

  /* Workflow */
  .workflow {
    grid-template-columns: 1fr;
  }
  .workflow-step:not(:last-child)::after {
    display: none;
  }

  /* Sections */
  .section {
    padding: var(--space-12) var(--space-4);
  }

  /* MIXI card: force stacking */
  .mixi-card-wrapper > div {
    grid-template-columns: 1fr !important;
  }

  /* Portal metrics */
  .investor-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  /* Chart bar rows */
  .chart-bar-row {
    grid-template-columns: 48px 1fr 90px;
    gap: var(--space-2);
  }

  /* Market grid */
  .market-grid {
    grid-template-columns: 1fr !important;
  }

  /* Page hero */
  .page-hero {
    padding: var(--space-12) var(--space-4) var(--space-10);
  }

  /* Back to top: slightly smaller on mobile */
  .back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
  }

  /* CTA section buttons */
  .cta-section [style*="display: flex"] {
    flex-direction: column;
    align-items: center;
  }
}

/* --- 480px breakpoint --- */
@media (max-width: 480px) {

  /* Hero */
  .hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .hero-logo-wrap img {
    height: 60px;
  }

  /* Trust strip single column */
  .trust-items {
    grid-template-columns: 1fr;
  }

  /* Grid to single column */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Metrics 2-col still OK at 480 */
  .investor-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .investor-metric-value {
    font-size: var(--text-lg);
  }

  /* Chart bar labels smaller */
  .chart-bar-row {
    grid-template-columns: 44px 1fr 80px;
    font-size: var(--text-xs);
  }

  /* Gate card padding */
  .investor-gate-card {
    padding: var(--space-8) var(--space-6) !important;
  }

  /* Section padding */
  .section {
    padding: var(--space-10) var(--space-3);
  }

  /* Buttons */
  .btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  /* Footer */
  .footer-grid {
    gap: var(--space-8);
  }

  /* Nav container padding */
  .nav-container {
    padding: var(--space-3) var(--space-3);
  }
}


/* Ensure mobile nav is hidden on desktop: only show on mobile */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
  .mobile-nav-overlay {
    display: none !important;
  }
}

/* ── Fix investor contact section mobile ── */
.investor-contact-section {
  grid-template-columns: 1fr auto;
}
@media (max-width: 768px) {
  .investor-contact-section {
    grid-template-columns: 1fr !important;
  }
  .investor-contact-section > div:last-child {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ── Section teal accent divider ── */
.section + .section-gray,
.section-gray + .section {
  position: relative;
}
.section + .section-gray::before,
.section-gray + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* ── Workflow numbered step labels ── */
.workflow-step::before {
  font-size: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* ── Footer social link improvements ── */
.footer-col a {
  gap: var(--space-2);
}


/* ═══════════════════════════════════════════
   IMPROVEMENT BATCH: April 2026
   ═══════════════════════════════════════════ */

/* ── #2: Team Card Visibility Improvements ── */
.team-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .team-card {
  background: var(--color-surface-2);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── #7: Dark mode form inputs ── */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  color: var(--color-text);
}
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: var(--color-text-faint);
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  background: var(--color-surface);
  border-color: var(--color-primary);
}

/* ── #12: Enhanced scroll animations ── */
@keyframes reveal-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-slide-left {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes reveal-scale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.reveal-ready {
  opacity: 1;
  transform: none;
  transition: transform 0.25s var(--ease-out);
}
.reveal-ready.revealed {
  opacity: 1;
  transform: none;
}

/* Slide from left variant */
.reveal-slide-left.reveal-ready {
  transform: none;
}
.reveal-slide-left.reveal-ready.revealed {
  transform: translateX(0);
}

/* Scale variant */
.reveal-scale.reveal-ready {
  transform: none;
}
.reveal-scale.reveal-ready.revealed {
  transform: scale(1);
}

/* Extended stagger for 6+ children */
.stagger-children > .reveal-ready:nth-child(7) { transition-delay: 480ms; }
.stagger-children > .reveal-ready:nth-child(8) { transition-delay: 560ms; }
.stagger-children > .reveal-ready:nth-child(9) { transition-delay: 640ms; }

/* ── #13: Hero visual element ── */
@keyframes hero-node-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes hero-node-float-alt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes hero-line-draw {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}
@keyframes hero-pulse {
  0%, 100% { opacity: 0.4; r: 3; }
  50% { opacity: 1; r: 5; }
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hero-visual svg {
  width: 100%;
  max-width: 440px;
  height: auto;
}
.hero-visual .node-group {
  animation: hero-node-float 4s ease-in-out infinite;
}
.hero-visual .node-group-alt {
  animation: hero-node-float-alt 5s ease-in-out infinite;
}
.hero-visual .connect-line {
  stroke-dasharray: 200;
  animation: hero-line-draw 2s ease-out forwards;
}
.hero-visual .pulse-dot {
  animation: hero-pulse 2.5s ease-in-out infinite;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 200px;
    order: -1;
  }
}

/* ── #16: Compact mobile footer: all links remain visible ── */
@media (max-width: 768px) {
  .site-footer {
    padding: var(--space-10) var(--space-4) var(--space-6);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: var(--space-7) var(--space-5);
  }

  .footer-brand,
  .footer-grid > .footer-col:nth-child(2) {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 56ch;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-col h4 {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-col a {
    padding: 0.28rem 0;
    line-height: 1.45;
  }

  .footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-5);
  }
}

/* ── #17: Custom 404 page ── */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-4);
}
.error-page .error-code {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.error-page p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 42ch;
}
.error-page .error-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ── #1: Tighter section spacing for homepage ── */
.home-page .section,
.homepage .section {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-4);
}
.home-page .trust-strip,
.homepage .trust-strip {
  padding: var(--space-8) var(--space-4);
}

/* ── Security badge row ── */
.security-badges {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.security-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: oklch(from var(--color-primary) l c h / 0.08);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

/* ── Security card icon circle ── */
.security-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: oklch(from var(--color-primary) l c h / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.security-icon-circle svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}

/* ═══════════════════════════════════════════
   Fix #4: CSS classes replacing inline styles
   ═══════════════════════════════════════════ */

/* ── Product cards on homepage ── */
.product-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: start;
}
.product-card--centered {
  align-items: center;
}
.product-card .badge {
  margin-bottom: var(--space-3);
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.product-card--secondary h3 {
  font-size: var(--text-lg);
}
.product-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}
.product-card--secondary p {
  margin-bottom: var(--space-4);
}
.product-card-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.product-card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.product-card-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.product-card-thumb {
  width: 200px;
  height: 120px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  align-self: start;
}
.product-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

/* ── Value prop cards on homepage ── */
.value-intro {
  text-align: left;
  margin-bottom: var(--space-10);
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: var(--space-3) 0 var(--space-2);
}
.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Hero CTA ghost button ── */
.btn-hero-outline {
  border-color: oklch(1 0 0 / 0.25);
  color: #fff;
}
.btn-hero-outline:hover {
  border-color: oklch(1 0 0 / 0.5);
  background: oklch(1 0 0 / 0.08);
}

/* ── Mixi card wrapper ── */
.mixi-card-wrapper {
  margin-bottom: var(--space-6);
}

/* ── Investor portal inline-style replacements ── */
.gate-error a {
  color: var(--color-primary);
}
.investor-action-link {
  color: var(--color-primary);
}

/* ── Contact info link ── */
.contact-email-link {
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
}
.contact-email-link:hover {
  text-decoration: underline;
}

/* ── Footer investor link spacing ── */
.footer-investor-link {
  margin-top: var(--space-2);
}

/* ── Privacy/Terms email link ── */
.legal-email-link {
  color: var(--color-primary);
}

/* ── Form validation styles ── */
.field-error {
  border-color: #E53E3E !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}
.field-error-msg {
  display: block;
  font-size: 0.8rem;
  color: #E53E3E;
  margin-top: 0.25rem;
}

/* ── Product card responsive ── */
@media (max-width: 768px) {
  .product-card {
    grid-template-columns: 1fr;
  }
  .product-card-thumb {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    order: -1;
  }
}

/* ── Utility: full-width button ── */
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════
   MIXI AI PRODUCT FAMILY
   ═══════════════════════════════════════════ */
.product-family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.product-family-card,
.platform-detail-card {
  position: relative;
  padding: var(--space-7);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.48);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.product-family-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-family-card .product-family-icon {
  margin-inline: auto;
}

.product-family-badge {
  align-self: flex-start;
  margin-bottom: var(--space-4);
}

.platform-detail-heading .product-family-badge {
  display: inline-flex;
  margin-bottom: var(--space-3);
}

.product-family-card:hover {
  transform: translateY(-3px);
  border-color: oklch(from var(--color-primary) l c h / 0.35);
  box-shadow: var(--shadow-md);
}

.product-family-icon {
  display: grid;
  place-items: center;
  width: 118px;
  height: 64px;
  padding: 0;
  margin-bottom: var(--space-4);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.product-family-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-kicker {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-family-card h3,
.platform-detail-card h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-family-card h3 {
  font-size: var(--text-lg);
}

.product-family-card > p,
.platform-detail-card > p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.product-family-card > p {
  margin-bottom: var(--space-5);
}

.product-family-card .product-card-features {
  flex: 1;
}

.product-family-card .product-card-features li {
  position: relative;
  padding-left: 1.1rem;
}

.product-family-card .product-card-features li::before {
  content: "✓";
  position: absolute;
  top: 0.02em;
  left: 0;
  width: auto;
  height: auto;
  color: var(--color-primary);
  background: transparent;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.platform-detail-card {
  margin-bottom: var(--space-8);
  scroll-margin-top: 100px;
}

.platform-detail-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  text-align: center;
}

.platform-detail-heading .product-family-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.product-roadmap-card {
  margin-bottom: 0;
}

.product-roadmap-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.platform-detail-card > p {
  max-width: 78ch;
  margin-bottom: var(--space-6);
}

.product-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.product-capability-grid > div {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
}

.product-capability-grid strong {
  font-family: var(--font-display);
}

.product-capability-grid span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.platform-detail-card--dark {
  color: #fff;
  background: linear-gradient(145deg, #0B1C30, #101827);
  border-color: rgba(255, 255, 255, 0.12);
}

.platform-detail-card--dark .product-family-icon {
  padding: 5px 7px;
  background: rgba(241, 248, 255, 0.96);
  border-radius: var(--radius-md);
}

.platform-detail-card--dark > p,
.platform-detail-card--dark .product-capability-grid span {
  color: #B0B8CC;
}

.platform-detail-card--dark .product-capability-grid > div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════
   BRANDED LOGIN GATEWAY
   ═══════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 12%, oklch(from var(--color-primary) l c h / 0.08), transparent 28rem),
    var(--color-bg);
}

.login-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin-inline: auto;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.login-topbar .nav-logo img {
  height: 68px !important;
}

.login-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  max-width: 1180px;
  min-height: calc(100vh - 106px);
  margin-inline: auto;
  padding: var(--space-6);
  gap: var(--space-6);
}

.login-story,
.login-card {
  border-radius: calc(var(--radius-xl) + 4px);
}

.login-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(23, 111, 166, 0.22), transparent 32%),
    linear-gradient(145deg, #071424 0%, #10233A 100%);
}

.login-story::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(73, 205, 211, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(73, 205, 211, 0.04), 0 0 0 84px rgba(73, 205, 211, 0.025);
}

.login-story-copy,
.login-product-list {
  position: relative;
  z-index: 1;
}

.login-story .product-kicker {
  color: #6AAED4;
}

.login-story h1 {
  max-width: 12ch;
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.login-story-copy > p {
  max-width: 58ch;
  color: #B0B8CC;
  line-height: 1.75;
}

.login-product-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-10);
}

.login-product-list div {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.login-product-list span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #071424;
  background: #6AAED4;
  border-radius: 50%;
  font-weight: 800;
}

.login-card {
  align-self: center;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    linear-gradient(145deg, oklch(from var(--color-primary) l c h / 0.42), transparent 55%) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-lg);
}

.login-card-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  text-align: center;
}

.login-card-brand img {
  width: 168px;
  height: auto;
}

.login-card-brand span {
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-card h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  text-align: center;
}

.login-card > p {
  margin-bottom: var(--space-7);
  color: var(--color-text-muted);
  line-height: 1.7;
  text-align: center;
}

.login-destination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.login-destination strong {
  color: var(--color-text);
  font-weight: 700;
}

.login-card .btn-full svg {
  width: 18px;
  height: 18px;
}

.login-security-note {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0;
  padding: var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
}

.login-security-note div {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.login-security-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.login-help {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.login-help a {
  color: var(--color-primary);
  font-weight: 700;
}

.login-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.login-legal a {
  color: inherit;
}

.login-legal a:hover {
  color: var(--color-primary);
}

.team-initial {
  position: absolute;
  inset: 3px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0B1C30, var(--color-primary));
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.team-profile-status {
  display: inline-flex;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

@media (max-width: 900px) {
  .product-family-grid,
  .product-capability-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: 440px;
    order: 2;
  }

  .login-card {
    order: 1;
  }
}

@media (max-width: 560px) {
  .login-topbar,
  .login-shell {
    padding-inline: var(--space-4);
  }

  .login-topbar .nav-logo img {
    height: 56px !important;
  }

  .login-topbar .btn {
    display: inline-flex;
    min-height: 38px;
    padding: 0 var(--space-3);
    font-size: 0.76rem;
  }

  .login-story {
    min-height: auto;
    padding: var(--space-7) var(--space-5);
  }

  .login-story h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 11vw, 2.6rem);
    line-height: 1.02;
  }

  .login-card {
    padding: var(--space-7) var(--space-5);
  }

  .login-story .product-kicker,
  .login-card .product-kicker {
    display: block;
    max-width: 100%;
    line-height: 1.45;
  }

  .login-product-list div {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .hero-logo-wrap {
    margin-bottom: var(--space-5);
  }

  .hero-logo-wrap img {
    height: 58px;
  }

  .login-shell {
    padding-inline: var(--space-3);
  }

  .login-story,
  .login-card {
    padding-inline: var(--space-4);
  }

  .section .container > *,
  .page-hero .container > *,
  .grid-2 > *,
  .grid-3 > * {
    min-width: 0;
  }
}

/* ═══════════════════════════════════════════
   MODERN ENTERPRISE VISUAL SYSTEM
   ═══════════════════════════════════════════ */

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(23, 111, 166, 0.05), transparent 28rem),
    var(--color-bg);
}

.site-header {
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
  box-shadow: none;
}

.site-header--scrolled {
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  box-shadow: 0 8px 30px rgba(7, 24, 39, 0.06);
}

.nav-links > li > a,
.nav-actions a {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-signin-link,
.mobile-signin {
  color: var(--color-text) !important;
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--color-primary) 46%, var(--color-border)) !important;
  box-shadow: none !important;
}

.nav-signin-link:hover,
.mobile-signin:hover {
  color: var(--color-primary-active) !important;
  background: color-mix(in srgb, var(--color-primary-highlight) 62%, transparent) !important;
  border-color: var(--color-primary) !important;
}

.btn {
  min-height: 44px;
  padding-inline: var(--space-6);
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.btn-primary,
.miximed-banner-cta {
  background: var(--color-primary);
  box-shadow: 0 8px 22px rgba(23, 111, 166, 0.18);
}

.btn-primary:hover,
.miximed-banner-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(23, 111, 166, 0.22);
}

.btn-outline {
  border-width: 1px;
  border-color: color-mix(in srgb, var(--color-border) 82%, var(--color-text));
}

.btn-outline::before,
.cta-section .btn-white::after {
  display: none;
}

.section {
  padding-block: clamp(var(--space-16), 7vw, var(--space-24));
}

.home-page .section,
.homepage .section {
  padding-block: clamp(var(--space-14, 3.5rem), 6vw, var(--space-20));
}

.section-gray,
.trust-strip {
  background:
    linear-gradient(180deg, rgba(23, 111, 166, 0.025), transparent 48%),
    var(--color-surface-2);
}

.section-eyebrow {
  gap: var(--space-2);
  letter-spacing: 0.13em;
}

.section-eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.section-title {
  max-width: 24ch;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.section-subtitle {
  max-width: 62ch;
  line-height: 1.65;
}

.card,
.team-card,
.product-card,
.product-family-card,
.platform-detail-card,
.stat-card,
.revenue-model-card,
.revenue-chart,
.timeline-item,
.market-stat-card,
.exit-card {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 86%, transparent), color-mix(in srgb, var(--color-surface-2) 52%, transparent));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card::before,
.team-card::before {
  display: none;
}

.card:hover,
.team-card:hover,
.product-family-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-primary) 42%, var(--color-border));
  box-shadow: var(--shadow-md);
}

.card:hover .icon-box,
.card-dark:hover {
  transform: none;
}

.icon-box,
.security-icon-circle,
.revenue-model-card .rm-icon,
.exit-card .exit-icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--color-primary-active);
  background: color-mix(in srgb, var(--color-primary-highlight) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
  border-radius: 12px;
}

.icon-box::after {
  display: none;
}

.hero,
.page-hero {
  background:
    radial-gradient(circle at 78% 24%, rgba(111, 176, 207, 0.14), transparent 24rem),
    linear-gradient(135deg, #0A2946 0%, #123F63 56%, #185B78 100%);
}

.hero::before,
.page-hero::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(5, 16, 27, 0.24), transparent 48%),
    radial-gradient(circle at 15% 18%, rgba(106, 174, 212, 0.1), transparent 22rem);
  animation: none;
}

.hero::after,
.page-hero::after,
.hero .hero-grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: none;
}

.hero h1,
.page-hero h1 {
  font-weight: 750;
  letter-spacing: -0.045em;
  text-shadow: none;
}

.hero h1::before {
  display: none;
}

.hero p,
.page-hero p {
  color: #B7C4D0;
  line-height: 1.65;
}

.hero .hero-highlight {
  color: #86BEDD;
}

.trust-items {
  gap: 0;
}

.trust-item {
  min-height: 100%;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--color-divider);
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.trust-item:first-child {
  border-left: 0;
}

.trust-item:hover {
  transform: none;
  box-shadow: none;
}

.trust-item:not(:last-child)::after {
  display: none;
}

.feature-card,
.value-card {
  border-top: 2px solid color-mix(in srgb, var(--color-primary) 62%, transparent);
}

.product-card,
.product-family-card,
.platform-detail-card {
  border-color: color-mix(in srgb, var(--color-primary) 34%, var(--color-border));
}

.product-family-card,
.platform-detail-card {
  overflow: hidden;
}

.product-family-card::after,
.platform-detail-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(23, 111, 166, 0.08), transparent 70%);
  pointer-events: none;
}

.product-family-badge,
.badge {
  padding: 0.4rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  background: color-mix(in srgb, var(--color-primary-highlight) 72%, transparent);
  color: var(--color-primary-active);
  font-weight: 750;
  letter-spacing: 0.08em;
}

.product-family-icon {
  height: 72px;
  margin-bottom: var(--space-5);
}

.product-family-card h3,
.platform-detail-card h2 {
  letter-spacing: -0.035em;
}

.product-capability-grid > div {
  background: color-mix(in srgb, var(--color-surface-2) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
}

.platform-detail-card--dark,
.miximed-banner {
  background:
    radial-gradient(circle at 90% 10%, rgba(106, 174, 212, 0.12), transparent 18rem),
    linear-gradient(145deg, #091F34, #123A57);
  border-color: rgba(106, 174, 212, 0.22);
}

.platform-detail-card--dark .product-family-icon {
  background: transparent;
}

.platform-detail-card--dark .product-family-icon img {
  content: url("site-assets/mixi-logo-dark.png");
}

[data-theme='dark'] .product-family-icon img,
[data-theme='dark'] .product-card-thumb img {
  content: url("site-assets/mixi-logo-dark.png");
}

.workflow-step,
.card-dark {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: none;
}

.workflow-step::before {
  background: #6AAED4;
  color: #071522;
  box-shadow: none;
}

.workflow-step:hover,
.card-dark:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(106, 174, 212, 0.28);
  box-shadow: none;
  transform: translateY(-2px);
}

.cta-section {
  background:
    radial-gradient(circle at 20% 0%, rgba(106, 174, 212, 0.14), transparent 24rem),
    linear-gradient(135deg, #091F34, #123A57);
  animation: none;
}

.cta-section::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-section .btn-white {
  color: #091F34;
  background: #F7FAFC;
}

.form-input,
.form-select,
.form-textarea,
.login-destination,
.login-security-note {
  background: color-mix(in srgb, var(--color-surface) 76%, transparent);
  border-color: var(--color-border);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(23, 111, 166, 0.12);
}

.product-audience,
.page-context-note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0 0 var(--space-5);
}

.page-context-note {
  max-width: 70ch;
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.solution-benefit {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.deployment-review-note {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}

.deployment-review-note span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.team-headshot-wrap::before {
  background: var(--color-primary);
  animation: none;
}

.site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(106, 174, 212, 0.08), transparent 22rem),
    #050E18;
}

.site-footer::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(106, 174, 212, 0.65), transparent);
}

.login-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(23, 111, 166, 0.08), transparent 28rem),
    var(--color-bg);
}

.login-story {
  background:
    radial-gradient(circle at 78% 22%, rgba(106, 174, 212, 0.16), transparent 24rem),
    linear-gradient(145deg, #061420, #10283B);
}

.login-card {
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
  box-shadow: var(--shadow-lg);
}

/* Investor access: private, restrained extension of the MIXI palette */
.investor-access-page {
  --investor-accent: #2581BB;
  --investor-accent-soft: #8FCDE8;
  --investor-ink: #082238;
  background: #F5F8FA;
}

.investor-access-page .login-topbar {
  border-bottom-color: rgba(8, 34, 56, 0.1);
  background: rgba(245, 248, 250, 0.9);
  backdrop-filter: blur(18px);
}

.investor-access-page .login-story {
  background:
    radial-gradient(circle at 88% 12%, rgba(105, 194, 226, 0.18), transparent 24rem),
    linear-gradient(145deg, #061724 0%, #0A2D46 56%, #10536B 100%);
  box-shadow: 0 28px 70px rgba(7, 32, 50, 0.2);
}

.investor-access-page .login-story::after {
  border-color: rgba(143, 205, 232, 0.22);
  box-shadow:
    0 0 0 42px rgba(143, 205, 232, 0.035),
    0 0 0 84px rgba(72, 146, 188, 0.04);
}

.investor-access-page .login-story .product-kicker {
  color: var(--investor-accent-soft);
}

.investor-access-page .login-story-copy > p {
  color: rgba(238, 246, 250, 0.76);
  max-width: 38rem;
}

.investor-access-principles {
  display: grid;
  gap: 10px;
}

.investor-access-principles > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(143, 205, 232, 0.2);
  border-radius: 14px;
  background: rgba(3, 21, 34, 0.25);
}

.investor-access-principles svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 11px;
  color: var(--investor-accent-soft);
  background: rgba(143, 205, 232, 0.1);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.investor-access-principles span {
  color: rgba(244, 249, 252, 0.68);
  font-size: 0.79rem;
  line-height: 1.4;
}

.investor-access-principles strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
}

.investor-access-page .login-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(8, 34, 56, 0.1);
  box-shadow: 0 28px 70px rgba(8, 34, 56, 0.12);
}

.investor-form-heading {
  margin-bottom: 1.25rem;
}

.investor-form-heading .product-kicker {
  color: var(--investor-accent);
}

.investor-access-page .login-card .btn-primary {
  background: linear-gradient(135deg, #0D4F78 0%, #176FA6 58%, #2581BB 100%);
  box-shadow:
    0 12px 28px rgba(23, 111, 166, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.16);
}

.investor-access-page .login-card .btn-primary:hover {
  background: linear-gradient(135deg, #0B456D 0%, #125F91 58%, #25759F 100%);
  box-shadow: 0 16px 34px rgba(23, 111, 166, 0.28);
}

.investor-access-page .login-security-note {
  background: linear-gradient(145deg, #EEF5F9, #F6F8F5);
  border: 1px solid rgba(23, 111, 166, 0.12);
}

.investor-access-page .login-security-note svg {
  color: var(--investor-accent);
}

.investor-access-page .login-help a,
.investor-access-page .login-legal a:hover {
  color: #125F91;
}

[data-theme='dark'] .investor-access-page {
  background: #071522;
}

[data-theme='dark'] .investor-access-page .login-card {
  background: rgba(13, 32, 48, 0.96);
  border-color: rgba(143, 205, 232, 0.18);
}

[data-theme='dark'] .investor-access-page .investor-form-heading .product-kicker {
  color: var(--investor-accent-soft);
}

[data-theme='dark'] .investor-access-page .login-security-note {
  background: linear-gradient(145deg, rgba(24, 51, 70, 0.92), rgba(18, 41, 58, 0.92));
  border-color: rgba(106, 174, 212, 0.16);
}

[data-theme='dark'] .investor-access-page .login-security-note svg {
  color: var(--investor-accent-soft);
}

[data-theme='dark'] .investor-access-page .login-help a,
[data-theme='dark'] .investor-access-page .login-legal a:hover {
  color: #82BCD9;
}

@media (max-width: 900px) {
  .investor-access-page .login-story {
    order: 1;
  }

  .investor-access-page .login-card {
    order: 2;
  }
}

/* Approved meeting-plan additions: story, investor request, and insights */
.about-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: start;
  max-width: var(--content-wide);
}

.about-overview > div > p:not(.section-eyebrow),
.about-story-card > p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.about-story-card {
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--color-border));
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 8%, rgba(106, 174, 212, 0.16), transparent 12rem),
    var(--color-surface);
  box-shadow: var(--shadow-md);
}

.about-story-card h2 {
  font-size: var(--text-lg);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--color-primary-dark);
}

.story-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-16), 9vw, var(--space-24)) var(--space-4);
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(106, 174, 212, 0.24), transparent 28rem),
    linear-gradient(145deg, #061724 0%, #0A2D46 55%, #125B78 100%);
}

.story-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(var(--space-8), 7vw, var(--space-20));
}

.story-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: var(--space-6);
}

.story-hero-copy > p:not(.section-eyebrow):not(.story-pronunciation) {
  max-width: 62ch;
  color: rgba(238, 246, 250, 0.8);
  line-height: 1.75;
}

.story-pronunciation {
  display: inline-flex;
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #D8EEF8;
  background: rgba(255, 255, 255, 0.07);
  font-size: var(--text-sm);
  font-weight: 700;
}

.story-mark {
  display: grid;
  place-items: center;
  min-height: 310px;
  padding: var(--space-10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  background: rgba(3, 20, 33, 0.28);
  box-shadow: 0 30px 70px rgba(2, 14, 24, 0.24);
}

.story-mark img {
  width: min(100%, 340px);
  height: auto;
}

.story-mark span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.story-prose {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(var(--space-8), 7vw, var(--space-20));
  max-width: var(--content-wide);
}

.story-copy {
  display: grid;
  gap: var(--space-5);
}

.story-copy > p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.story-review-note {
  padding: var(--space-5);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: color-mix(in srgb, var(--color-primary) 7%, var(--color-surface));
  font-size: var(--text-sm);
}

.story-section-heading {
  max-width: 720px;
  margin-bottom: var(--space-10);
}

.story-attribute-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.story-attribute-grid > div {
  min-height: 230px;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.story-attribute-grid dt {
  margin-bottom: var(--space-4);
  color: var(--color-text);
  font-size: var(--text-md);
  font-weight: 800;
}

.story-attribute-grid dd {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.story-close {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-4);
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #092E57, #0B527F 56%, #117792);
}

.story-close h2 {
  max-width: 21ch;
  margin: 0 auto var(--space-5);
  font-size: var(--text-xl);
}

.story-close > .container > p:not(.section-eyebrow) {
  max-width: 62ch;
  margin: 0 auto var(--space-8);
  color: rgba(255, 255, 255, 0.8);
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.investor-request-form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.investor-access-page .login-card {
  max-width: 620px;
}

.investor-access-page .form-label {
  color: var(--color-text);
}

.investor-form-success {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid color-mix(in srgb, var(--color-primary) 26%, var(--color-border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-primary) 7%, var(--color-surface));
  color: var(--color-text);
  line-height: 1.6;
}

.article-meta,
.article-byline {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.resource-read-link {
  margin-top: var(--space-4);
}

.insight-article-header {
  padding: clamp(var(--space-14), 8vw, var(--space-24)) var(--space-4);
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(106, 174, 212, 0.22), transparent 26rem),
    linear-gradient(145deg, #071A2A 0%, #0A3551 58%, #115E79 100%);
}

.insight-article-header .container {
  max-width: 980px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  color: rgba(255, 255, 255, 0.64);
  font-size: var(--text-xs);
}

.breadcrumb a {
  color: #CBE6F4;
}

.insight-article-header h1 {
  max-width: 18ch;
  margin-bottom: var(--space-5);
  font-size: clamp(2.3rem, 5.4vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.insight-deck {
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-md);
  line-height: 1.65;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
  color: rgba(255, 255, 255, 0.62);
}

.article-byline > * + *::before {
  content: '•';
  margin-right: var(--space-3);
}

.insight-article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  gap: clamp(var(--space-8), 7vw, var(--space-20));
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
}

.article-rail {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: var(--space-3);
  padding-left: var(--space-4);
  border-left: 1px solid var(--color-divider);
}

.article-rail p,
.article-related p {
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-rail a,
.article-related a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.article-body {
  min-width: 0;
}

.article-body > p,
.article-body > ul {
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.85;
}

.article-body > h2 {
  margin: var(--space-12) 0 var(--space-4);
  font-size: var(--text-xl);
  line-height: 1.15;
}

.article-body ul {
  padding-left: var(--space-6);
}

.article-lede {
  color: var(--color-text) !important;
  font-size: var(--text-md) !important;
}

.article-callout {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-8) 0;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(135deg, #0A355F, #0D6586);
}

.article-disclaimer {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm) !important;
}

.article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding: var(--space-7);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, var(--color-border));
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));
}

.article-cta h2 {
  margin: 0;
  font-size: var(--text-lg);
}

.article-related {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

@media (max-width: 960px) {
  .story-attribute-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .about-overview,
  .story-hero-grid,
  .story-prose,
  .insight-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-mark {
    min-height: 220px;
    padding: var(--space-7);
  }

  .story-attribute-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-attribute-grid > div {
    min-height: 0;
  }

  .article-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--space-4);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
  }

  .article-rail p {
    grid-column: 1 / -1;
  }

  .article-cta {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .section,
  .home-page .section,
  .homepage .section {
    padding-block: var(--space-16);
  }

  .trust-items {
    gap: var(--space-2);
  }

  .trust-item,
  .trust-item:first-child {
    padding: var(--space-4);
    border-left: 0;
    border-bottom: 1px solid var(--color-divider);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .card,
  .team-card,
  .product-card,
  .product-family-card,
  .platform-detail-card {
    border-radius: var(--radius-lg);
  }
}

/* Final logo restraint: the header carries the brand, so the homepage hero
   avoids a second oversized mark and keeps attention on the message. */
.hero-logo-wrap {
  display: none;
}

.hero-logo-wrap::before {
  display: none !important;
  animation: none !important;
}

.platform-detail-card .product-family-icon img {
  content: url("site-assets/mixi-logo-black.png");
}

[data-theme='dark'] .platform-detail-card .product-family-icon img {
  content: url("site-assets/mixi-logo-dark.png");
}

/* Use the official inverted brand artwork on every dark product surface. */
[data-theme='dark'] .platform-detail-card .product-family-icon img,
[data-theme='dark'] .product-card-thumb img,
.platform-detail-card--dark .product-family-icon img,
.miximed-banner-icon img {
  content: url("site-assets/mixi-logo-dark.png");
  filter: none;
}

/* The black-and-blue logo remains on light UI; the official blue-and-white
   inverted logo is used for all navigation and portal marks in dark mode. */
.footer-brand img,
[data-theme='dark'] .nav-logo img,
[data-theme='dark'] .mobile-nav-logo img,
[data-theme='dark'] .login-hero img,
[data-theme='dark'] .login-card-brand img,
[data-theme='dark'] .gate-logo {
  content: url("site-assets/mixi-logo-dark.png");
  filter: none;
}

.mixi-brand-panel::before {
  display: none;
}

.hero .mixi-brand-panel .brand-parent {
  color: #8AC4E2;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
}

.hero-visual-decor {
  display: none !important;
}

.hero-workflow-summary {
  width: min(100%, 470px);
  justify-self: end;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(97, 215, 220, 0.24);
  border-radius: var(--radius-xl);
  background: rgba(5, 21, 34, 0.58);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.hero-workflow-kicker {
  margin-bottom: var(--space-5) !important;
  color: #8AC4E2 !important;
  font-size: var(--text-xs) !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-workflow-summary ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-workflow-summary li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-workflow-summary li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-workflow-summary li:last-child {
  padding-bottom: 0;
}

.hero-workflow-summary li > span {
  color: #8AC4E2;
  font-size: var(--text-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-workflow-summary strong,
.hero-workflow-summary small {
  display: block;
}

.hero-workflow-summary strong {
  margin-bottom: var(--space-1);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-base);
}

.hero-workflow-summary small {
  color: #A9BACB;
  font-size: var(--text-sm);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .hero-workflow-summary {
    display: none;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  max-width: 1040px;
  margin-inline: auto;
}

.team-grid .team-card {
  display: flex;
  min-width: 0;
  padding: var(--space-7);
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.08);
}

.team-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.team-card-identity {
  min-width: 0;
  padding-top: var(--space-2);
}

.team-card-identity h3 {
  margin-bottom: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.team-card-identity p {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.45;
}

.team-card-bio {
  margin-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

.team-profile-link {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding: var(--space-2) var(--space-3);
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-full);
  background: oklch(from var(--color-primary) l c h / 0.08);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background 250ms var(--ease-out);
}

.team-profile-link:hover {
  background: oklch(from var(--color-primary) l c h / 0.15);
}

.team-card--solo {
  grid-column: 1 / -1;
  width: min(100%, 510px);
  justify-self: center;
}

@media (max-width: 720px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-grid .team-card {
    padding: var(--space-5);
  }

  .team-card--solo {
    grid-column: auto;
    width: 100%;
  }

  .team-card-header {
    align-items: center;
  }

  .team-headshot-wrap {
    width: 78px;
    height: 78px;
  }

  .team-card-identity {
    padding-top: 0;
  }
}

/* Laboratory-first homepage refresh */
.home-refresh {
  --home-ink: #102235;
  --home-muted: #526578;
  --home-line: #d7e2ea;
  --home-teal: #176fa6;
  --home-teal-dark: #0e5787;
  color: var(--home-ink);
  background: #fbfcfd;
}
.home-refresh .container { width: min(1180px, calc(100% - 48px)); }
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7vw, 100px) 0 clamp(64px, 7vw, 96px);
  background: linear-gradient(120deg, rgba(23,111,166,.075), transparent 44%), #f5f8fa;
  border-bottom: 1px solid var(--home-line);
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(16,24,40,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(16,24,40,.032) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}
.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.03fr) minmax(420px,.97fr);
  gap: clamp(48px,7vw,90px);
  align-items: center;
}
.home-eyebrow,
.home-refresh .section-label {
  margin: 0 0 20px;
  color: var(--home-teal);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.home-eyebrow span { color: #6b7280; font-weight: 600; }
.home-hero h1 {
  max-width: 940px;
  margin: 0;
  color: var(--home-ink);
  font-family: var(--font-display);
  font-size: clamp(48px,5vw,68px);
  font-weight: 800;
  letter-spacing: -.052em;
  line-height: .98;
  text-wrap: balance;
}
.home-hero-summary {
  margin: 30px 0 0;
  max-width: 590px;
  color: #2f3948;
  font-size: clamp(18px,1.7vw,21px);
  font-weight: 600;
  line-height: 1.55;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-refresh .btn-primary { background: var(--home-teal); border-color: var(--home-teal); }
.home-refresh .btn-primary:hover { background: var(--home-teal-dark); border-color: var(--home-teal-dark); }
.home-refresh .btn-outline { color: var(--home-ink); border-color: #aeb7c2; background: rgba(255,255,255,.62); }
.home-hero-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 690px;
  margin-top: 22px;
}
.home-hero-pills details {
  min-width: 0;
  border: 1px solid rgba(16,24,40,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.home-hero-pills details[open] {
  grid-column: span 3;
  border-radius: 14px;
  border-color: rgba(23,111,166,.3);
  background: rgba(255,255,255,.86);
}
.home-hero-pills summary {
  position: relative;
  padding: 11px 34px 11px 14px;
  overflow: hidden;
  color: var(--home-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.home-hero-pills summary::-webkit-details-marker { display: none; }
.home-hero-pills summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--home-teal);
  font-size: 17px;
  font-weight: 500;
  transform: translateY(-52%);
}
.home-hero-pills details[open] summary::after { content: '×'; }
.home-hero-pills details p {
  margin: -1px 14px 13px;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.55;
}

.product-view {
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(16,24,40,.15);
  border-radius: 20px;
  background: rgba(255,255,255,.65);
  box-shadow: 0 28px 80px rgba(16,24,40,.14);
  backdrop-filter: blur(14px);
}
.product-view figcaption {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 2px 6px 12px;
  color: #697281;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.product-view .product-view-placeholder {
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
  padding: 12px 13px;
  border: 1px dashed #c27718;
  border-radius: 10px;
  color: #70420d;
  background: #fff6e7;
  letter-spacing: 0;
  text-transform: none;
}
.product-view-placeholder-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #a85d0b;
  font-size: 18px;
  line-height: 1;
}
.product-view-placeholder strong,
.product-view-placeholder small {
  display: block;
}
.product-view-placeholder strong {
  color: #70420d;
  font-size: 12px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.product-view-placeholder small {
  margin-top: 3px;
  color: #76592f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.product-view-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--home-teal); box-shadow: 0 0 0 4px rgba(23,111,166,.12); }
.product-view-window { overflow: hidden; border: 1px solid #d4dbe1; border-radius: 12px; background: #fff; }
.product-view-topbar,
.product-view-status,
.product-view-row,
.product-view-footer { display: flex; align-items: center; }
.product-view-topbar { justify-content: space-between; padding: 15px 18px; color: #fff; background: #121c2e; font-size: 13px; font-weight: 700; }
.product-view-case { color: #a8b3c7; font-size: 11px; font-weight: 600; }
.product-view-status { justify-content: space-between; gap: 16px; padding: 20px 18px; background: #edf4f8; border-bottom: 1px solid #d7e4ec; }
.product-view-status div { display: grid; gap: 4px; }
.product-view-status small,
.product-view-row small { display: block; color: #687282; font-size: 11px; line-height: 1.45; }
.product-view-status strong { color: #152334; font-size: 17px; }
.product-view-status > span { padding: 6px 9px; border-radius: 999px; color: #7e4b10; background: #fff3da; font-size: 10px; font-weight: 800; white-space: nowrap; }
.product-view-row { gap: 12px; padding: 16px 18px; border-bottom: 1px solid #e8ecf0; }
.product-view-row > div { min-width: 0; flex: 1; }
.product-view-row strong { display: block; margin-bottom: 3px; color: #243041; font-size: 13px; }
.product-view-icon { display: grid; width: 30px; height: 30px; place-items: center; flex: 0 0 auto; border-radius: 8px; color: var(--home-teal-dark); background: #e4f0f7; font-size: 10px; font-weight: 800; }
.product-view-icon--alert { color: #99520b; background: #fff1da; }
.product-view-icon--ready { color: #176447; background: #e5f3ec; font-size: 14px; }
.product-view-label { color: #6a7280; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.product-view-label--ready { color: #17725d; }
.product-view-footer { justify-content: space-between; gap: 12px; padding: 14px 18px; color: #717986; background: #f8fafb; font-size: 10px; }
.product-view-button { padding: 8px 10px; border-radius: 7px; color: #fff; background: #9da5b0; font-weight: 700; white-space: nowrap; }

.home-proof { border-bottom: 1px solid var(--home-line); background: #fff; }
.home-proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.home-proof-grid > div { display: grid; gap: 6px; padding: 25px 24px; border-left: 1px solid var(--home-line); }
.home-proof-grid > div:last-child { border-right: 1px solid var(--home-line); }
.home-proof strong { color: var(--home-ink); font-family: var(--font-display); font-size: 14px; }
.home-proof span { color: var(--home-muted); font-size: 12px; line-height: 1.5; }

.home-section { padding: clamp(76px,9vw,124px) 0; }
.home-section-intro { max-width: 770px; }
.home-section-intro h2,
.home-closing h2 {
  margin: 0;
  color: var(--home-ink);
  font-family: var(--font-display);
  font-size: clamp(36px,4.3vw,58px);
  font-weight: 800;
  letter-spacing: -.042em;
  line-height: 1.06;
  text-wrap: balance;
}
.home-section-intro > p:last-child,
.home-closing > .container > p { margin: 22px 0 0; color: var(--home-muted); font-size: 17px; line-height: 1.75; }
.home-value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 56px; }
.home-value-grid article {
  position: relative;
  padding: 32px 30px 34px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f5f9fc);
  box-shadow: 0 16px 42px rgba(15, 45, 70, .07);
}
.home-value-grid article::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #176fa6, #65a8cf);
}
.home-value-grid h3 { margin: 0 0 13px; color: var(--home-ink); font-family: var(--font-display); font-size: 23px; line-height: 1.18; }
.home-value-grid p { margin: 0; color: var(--home-muted); font-size: 15px; line-height: 1.7; }

.home-workflow,
.home-assurance {
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(111, 176, 207, .14), transparent 34%),
    linear-gradient(135deg, #0A2946 0%, #123F63 58%, #185B78 100%);
}
.home-section-intro--light h2 { color: #fff; }
.home-section-intro--light > p:last-child { color: rgba(255,255,255,.82); }
.home-workflow .section-label { color: #c8e2f2; }
.home-workflow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}
.home-workflow-list li {
  position: relative;
  min-width: 0;
  padding: 20px 18px 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.07));
  box-shadow: 0 18px 42px rgba(4,47,91,.18);
  backdrop-filter: blur(10px);
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.home-workflow-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.42);
  background:
    linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.1));
}
.home-workflow-list li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 10px;
  color: #0a568f;
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 18px rgba(4,47,91,.18);
  font-size: var(--text-brand-caption);
  font-weight: 800;
}
.home-workflow-list div { display: grid; gap: 9px; margin-top: 26px; }
.home-workflow-list strong { color: #fff; font-family: var(--font-display); font-size: 17px; line-height: 1.25; }
.home-workflow-list small { color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.6; }

.home-labs-grid { display: grid; grid-template-columns: minmax(0,.86fr) minmax(460px,1.14fr); gap: clamp(54px,8vw,110px); align-items: start; }
.home-labs .text-link { display: inline-flex; margin-top: 27px; }
.home-lab-types { border-top: 1px solid var(--home-line); }
.home-lab-types details { border-bottom: 1px solid var(--home-line); }
.home-lab-types summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 2px; color: var(--home-ink); font-family: var(--font-display); font-size: 21px; font-weight: 700; cursor: pointer; list-style: none; }
.home-lab-types summary::-webkit-details-marker { display: none; }
.home-lab-types summary::after {
  content: "+";
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  color: var(--home-teal);
  font-size: 18px;
  font-weight: 500;
}
.home-lab-types details[open] summary::after { content: "×"; }
.home-lab-types details p { margin: -6px 0 24px; max-width: 600px; color: var(--home-muted); font-size: 15px; line-height: 1.7; }

.home-assurance {
  background:
    radial-gradient(circle at 84% 18%, rgba(111, 176, 207, .14), transparent 34%),
    linear-gradient(135deg, #0A2946 0%, #123F63 58%, #185B78 100%);
}

/* Compact, information-bearing visual for the planned Resources feature. */
.resource-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding: var(--space-8);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.resource-feature-visual {
  display: grid;
  align-content: space-between;
  min-height: 168px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(117, 183, 214, .18), transparent 32%),
    linear-gradient(135deg, #0B2D4B 0%, #154B70 58%, #1B6684 100%);
  box-shadow: 0 18px 42px rgba(9, 47, 77, .18);
}

.resource-feature-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.resource-feature-heading > span:last-child {
  display: grid;
  gap: 2px;
}

.resource-feature-heading small {
  color: rgba(255, 255, 255, .74);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.resource-feature-heading strong {
  max-width: 25ch;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}

.resource-feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 13px;
  background: rgba(255, 255, 255, .14);
}

.resource-feature-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.resource-feature-steps span {
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  color: rgba(255, 255, 255, .92);
  background: rgba(5, 49, 94, .22);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

/* GitHub-backed Insights library cards */
.cms-insights-list {
  margin-bottom: var(--space-10);
}

.resource-article-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  cursor: default;
}

.resource-article-card h3 {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
}

.resource-article-card > p:not(.resource-card-category, .article-meta) {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.resource-card-category {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
}

.resource-article-card .resource-read-link {
  margin-top: auto;
}

.cms-insights-empty {
  padding: var(--space-8);
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .resource-feature {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-6);
  }

  .resource-feature-visual {
    min-height: 148px;
    padding: 18px;
  }
}
.home-assurance-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 52px 0 34px; }
.home-assurance-grid > div { display: grid; gap: 10px; padding: 25px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: rgba(255,255,255,.09); }
.home-assurance-grid strong { color: #fff; font-family: var(--font-display); font-size: 17px; }
.home-assurance-grid span { color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.6; }

.home-closing { padding: clamp(78px,9vw,124px) 0; text-align: center; background: #eef5f5; }
.home-closing .container { max-width: 840px; }
.home-closing .section-label { margin-bottom: 18px; }
.home-closing .home-hero-actions { justify-content: center; }

[data-theme='dark'] .home-refresh { --home-ink: #f2f4f7; --home-muted: #aeb8c9; --home-line: #344054; background: #0c1320; }
[data-theme='dark'] .home-hero,
[data-theme='dark'] .home-proof,
[data-theme='dark'] .home-value,
[data-theme='dark'] .home-labs { background-color: #0c1320; }
[data-theme='dark'] .home-hero-summary,
[data-theme='dark'] .home-value-grid h3,
[data-theme='dark'] .home-proof strong,
[data-theme='dark'] .home-lab-types summary { color: #f2f4f7; }
[data-theme='dark'] .home-hero-pills details {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
[data-theme='dark'] .home-hero-pills details[open] {
  border-color: rgba(57,193,200,.3);
  background: rgba(255,255,255,.09);
}
[data-theme='dark'] .home-refresh .btn-outline { color: #f2f4f7; border-color: #667085; background: transparent; }

@media (max-width: 980px) {
  .home-hero-grid,
  .home-labs-grid { grid-template-columns: 1fr; }
  .product-view { width: min(100%,650px); }
  .home-proof-grid { grid-template-columns: repeat(2,1fr); }
  .home-proof-grid > div:nth-child(2) { border-right: 1px solid var(--home-line); }
  .home-proof-grid > div:nth-child(n+3) { border-top: 1px solid var(--home-line); }
  .home-value-grid,
  .home-assurance-grid { grid-template-columns: 1fr; }
  .home-value-grid article { border-right: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
  .home-value-grid article:last-child { border-bottom: 0; }
  .home-workflow-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-workflow-list li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px;
  }
  .home-workflow-list div { margin-top: 0; }
}

@media (max-width: 600px) {
  .home-refresh .container { width: min(100% - 32px,1180px); }
  .home-hero { padding: var(--space-12) 0 var(--space-16); }
  .home-hero h1 { font-size: clamp(40px,12vw,54px); }
  .home-hero-summary { font-size: 17px; }
  .home-hero-actions { align-items: stretch; flex-direction: column; }
  .home-hero-actions .btn { width: 100%; justify-content: center; }
  .home-hero-pills {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
  .home-hero-pills details[open] { grid-column: auto; }
  .product-view { padding: 8px; border-radius: 15px; }
  .product-view-status { align-items: flex-start; flex-direction: column; }
  .product-view-row { display: grid; grid-template-columns: 30px minmax(0,1fr); }
  .product-view-label { grid-column: 2; }
  .product-view-footer { align-items: stretch; flex-direction: column; }
  .product-view-button { text-align: center; }
  .home-proof-grid { grid-template-columns: 1fr; }
  .home-proof-grid > div,
  .home-proof-grid > div:nth-child(2),
  .home-proof-grid > div:last-child { border-right: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
  .home-proof-grid > div:last-child { border-bottom: 0; }
  .home-value-grid { margin-top: 42px; }
  .home-value-grid article { padding: 28px 24px 30px; }
  .home-workflow-list { margin-top: 42px; }
  .home-assurance-grid { margin-top: 40px; }
}
/* Contact layout: semantic responsive replacement for brittle inline-grid selectors. */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
}

.contact-layout > *,
.contact-name-grid > * {
  min-width: 0;
}

.contact-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.consent-group {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  text-align: left;
  color: #dce3f2;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.consent-group input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.footer-heading {
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-4);
}

.nav-links > li > a,
.mobile-signin,
.footer-col a {
  min-height: 44px;
}

.footer-col a {
  display: flex;
  align-items: center;
}

.back-to-top {
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 767px) {
  .contact-layout,
  .contact-name-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-heading {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Unified footer: compact, legible, and consistent across every page */
.site-footer {
  padding: 3.5rem var(--space-4) 1.5rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(53, 130, 174, 0.13), transparent 25rem),
    linear-gradient(145deg, #06131F, #081B2B 62%, #0A2234);
}

.site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(106, 174, 212, 0.72), transparent);
}

.footer-grid {
  grid-template-columns: minmax(220px, 1.35fr) minmax(220px, 1.25fr) minmax(140px, 0.72fr) minmax(170px, 0.85fr);
  gap: clamp(1.75rem, 4vw, 4rem);
}

.footer-brand img {
  height: 58px;
  margin-bottom: var(--space-3);
}

.footer-brand .footer-brand-tagline {
  margin: 0 0 var(--space-2);
  color: #EAF3F8;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-brand p:not(.footer-brand-tagline):not(.brand-slogan) {
  margin-top: 0;
  color: #9BAEBD;
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer-heading {
  margin-bottom: var(--space-3);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #F4F8FA;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col a:visited {
  min-height: 38px;
  padding: 0.4rem 0;
  overflow-wrap: anywhere;
  color: #A7B6C3;
  font-size: 0.88rem;
  line-height: 1.35;
}

.footer-col a:hover {
  color: #7BB6D5;
}

.footer-status {
  margin: 0.12rem 0 0;
  color: #a7b6c3;
  font-size: var(--text-brand-caption);
  letter-spacing: 0.02em;
}

.footer-grid > .footer-col:nth-child(2) a {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.12rem;
}

.footer-investor-link,
.footer-investor-link:visited {
  width: fit-content;
  margin-top: 0;
  padding: 0.4rem 0 !important;
  border: 0;
  border-radius: 0;
  color: #A7B6C3 !important;
  background: transparent;
  font-weight: 500;
}

.footer-investor-link:hover {
  color: #7BB6D5 !important;
  background: transparent;
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2.5rem 1rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem 1.5rem;
  }

  .footer-brand,
  .footer-grid > .footer-col:nth-child(2) {
    grid-column: 1 / -1;
  }

  .footer-brand img {
    height: 52px;
  }

  .footer-brand p:not(.footer-brand-tagline) {
    max-width: 42ch;
  }

  .footer-grid > .footer-col:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
  }

  .footer-grid > .footer-col:nth-child(2) .footer-heading {
    grid-column: 1 / -1;
  }

  .footer-col a,
  .footer-col a:visited {
    min-height: 40px;
  }

  .footer-status {
    display: block;
    margin-left: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 2rem;
  }
}


/* Compact mobile navigation */
@media (max-width: 768px) {
  .mobile-nav {
    width: min(420px, 100vw);
    height: 100dvh;
    background:
      radial-gradient(circle at 88% 3%, rgba(105, 176, 214, 0.16), transparent 34%),
      linear-gradient(180deg, #f6fafc 0%, #edf5f9 100%),
      var(--color-bg);
  }

  [data-theme="dark"] .mobile-nav {
    background:
      radial-gradient(circle at 88% 3%, rgba(76, 147, 181, 0.16), transparent 34%),
      linear-gradient(180deg, #0b2639 0%, #071b2a 100%),
      var(--color-bg);
  }

  .mobile-nav-header {
    min-height: 72px;
    padding: 8px var(--space-4);
    border-bottom-color: rgba(19, 67, 99, 0.12);
    background: rgba(250, 253, 255, 0.86);
    backdrop-filter: blur(20px);
  }

  [data-theme="dark"] .mobile-nav-header {
    border-bottom-color: rgba(180, 211, 228, 0.13);
    background: rgba(7, 27, 42, 0.88);
  }

  .mobile-nav-logo img {
    height: 44px;
  }

  .mobile-nav-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 8px 20px rgba(21, 61, 85, 0.08);
  }

  [data-theme="dark"] .mobile-nav-close {
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-nav-body {
    overscroll-behavior: contain;
    padding: 14px var(--space-4) 24px;
  }

  .mobile-nav-shortcuts {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  .mobile-nav-shortcuts .mobile-nav-link,
  .mobile-nav-demo {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(18, 92, 137, 0.13);
    border-radius: 14px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(20, 73, 104, 0.06);
  }

  .mobile-nav-shortcuts .mobile-nav-link.active {
    color: #0b6397;
    border-color: rgba(18, 111, 166, 0.24);
    background: rgba(224, 241, 250, 0.94);
  }

  .mobile-nav-demo {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0b608f, #147f92);
    box-shadow: 0 10px 24px rgba(7, 68, 105, 0.18);
  }

  .mobile-nav-demo svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  [data-theme="dark"] .mobile-nav-shortcuts .mobile-nav-link {
    border-color: rgba(190, 218, 231, 0.13);
    background: rgba(255, 255, 255, 0.055);
  }

  .mobile-nav-group {
    margin-bottom: 8px;
    overflow: clip;
    border: 1px solid rgba(18, 92, 137, 0.12);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 8px 22px rgba(20, 73, 104, 0.045);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  .mobile-nav-group:last-child {
    border-bottom: 1px solid rgba(18, 92, 137, 0.12);
  }

  .mobile-nav-group[open] {
    border-color: rgba(18, 111, 166, 0.28);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(20, 73, 104, 0.08);
  }

  [data-theme="dark"] .mobile-nav-group,
  [data-theme="dark"] .mobile-nav-group:last-child {
    border-color: rgba(190, 218, 231, 0.12);
    background: rgba(255, 255, 255, 0.045);
  }

  [data-theme="dark"] .mobile-nav-group[open] {
    border-color: rgba(99, 175, 207, 0.34);
    background: rgba(255, 255, 255, 0.075);
  }

  .mobile-nav-group summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px 0 15px;
    color: var(--color-text);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    list-style: none;
    text-transform: none;
  }

  .mobile-nav-group summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-group summary::after {
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    color: var(--color-primary);
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform 180ms ease;
  }

  .mobile-nav-group[open] summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .mobile-nav-group-links {
    display: grid;
    gap: 3px;
    padding: 7px;
    border-top: 1px solid rgba(18, 92, 137, 0.09);
  }

  .mobile-nav-group-links .mobile-nav-link,
  .mobile-nav-group-links .mobile-nav-sub {
    min-height: 43px;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 11px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .mobile-nav-group-links .mobile-nav-link:hover {
    color: var(--color-text);
    background: rgba(222, 239, 248, 0.68);
  }

  [data-theme="dark"] .mobile-nav-group-links {
    border-top-color: rgba(190, 218, 231, 0.09);
  }

  [data-theme="dark"] .mobile-nav-group-links .mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-nav-group-links svg.mobile-nav-icon {
    width: 15px;
    height: 15px;
    color: #4f819d;
    opacity: 0.82;
  }

  .mobile-nav-group-links .mobile-nav-link.active {
    color: #0b6397;
    background: rgba(222, 239, 248, 0.86);
    box-shadow: none;
  }

  [data-theme="dark"] .mobile-nav-group-links .mobile-nav-link.active {
    color: #8ec7e2;
    background: rgba(80, 151, 183, 0.14);
  }

  .mobile-nav-link-copy {
    min-width: 0;
    flex: 1;
  }

  .mobile-nav-status {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: var(--radius-full);
    color: #517286;
    background: rgba(76, 129, 158, 0.1);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
  }

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

  .mobile-nav-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--space-2);
    padding: 12px var(--space-4) max(14px, env(safe-area-inset-bottom));
    border-top-color: rgba(19, 67, 99, 0.11);
    background: rgba(248, 252, 254, 0.92);
    box-shadow: 0 -14px 32px rgba(19, 67, 99, 0.07);
    backdrop-filter: blur(20px);
  }

  [data-theme="dark"] .mobile-nav-footer {
    border-top-color: rgba(180, 211, 228, 0.12);
    background: rgba(7, 27, 42, 0.93);
  }

  .mobile-nav-primary,
  .mobile-theme-toggle {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav-primary {
    color: #fff;
    background: linear-gradient(135deg, #0b608f, #147f92);
    box-shadow: 0 10px 24px rgba(7, 68, 105, 0.18);
  }

  .mobile-theme-toggle {
    width: auto;
    padding: 0 var(--space-3);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: oklch(from var(--color-surface) l c h / 0.7);
  }
}

/* Homepage product gallery and workflow visuals */
.home-tagline {
  margin: calc(-1 * var(--space-2)) 0 var(--space-4);
  color: var(--home-muted);
  font-size: var(--text-brand-support);
  font-weight: 500;
  letter-spacing: 0;
}

.product-gallery {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(16, 34, 53, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 80px rgba(16, 34, 53, 0.14);
  backdrop-filter: blur(14px);
}

.product-gallery-heading,
.product-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-gallery-heading {
  padding: 4px 5px 11px;
  color: var(--home-muted);
  font-size: var(--text-brand-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-gallery-count {
  color: var(--home-muted);
  font-variant-numeric: tabular-nums;
}

.product-gallery-count strong {
  color: var(--home-teal);
}

.product-gallery-viewport {
  overflow: hidden;
  border: 1px solid #d5e0e8;
  border-radius: 14px;
  background: #f4f7fa;
}

.product-gallery-slide {
  display: none;
  margin: 0;
}

.product-gallery-slide.is-active {
  display: grid;
  animation: product-gallery-reveal 240ms var(--ease-out);
}

.product-gallery-image {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #e9eff4;
}

.product-gallery-image img,
.workflow-visual-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-slide figcaption {
  display: grid;
  min-height: 82px;
  gap: 4px;
  align-content: center;
  padding: 16px 18px;
  background: #fff;
}

.product-gallery-slide figcaption strong {
  color: var(--home-ink);
  font-size: 14px;
}

.product-gallery-slide figcaption span {
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-gallery-controls {
  gap: 14px;
  padding: 11px 3px 1px;
}

.product-gallery-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #c8d5df;
  border-radius: 50%;
  color: var(--home-ink);
  background: #fff;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}

.product-gallery-arrow:hover,
.product-gallery-arrow:focus-visible {
  border-color: var(--home-teal);
  color: #fff;
  background: var(--home-teal);
}

.product-gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.product-gallery-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b8c6d1;
  cursor: pointer;
  transition: width 180ms var(--ease-out), background 180ms var(--ease-out);
}

.product-gallery-dots button.is-active {
  width: 28px;
  background: var(--home-teal);
}

.product-gallery-dots button:focus-visible {
  outline: 3px solid rgba(23, 111, 166, 0.28);
  outline-offset: 3px;
}

@keyframes product-gallery-reveal {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.home-workflow-interactive {
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) minmax(0, 1.42fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: 52px;
}

.home-workflow .home-workflow-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.home-workflow .home-workflow-list li {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

.home-workflow .home-workflow-list li:hover,
.home-workflow .home-workflow-list li.is-active {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
  transform: none;
}

.home-workflow-list [data-workflow-step] {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 17px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-workflow-list [data-workflow-step] > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 10px;
  color: #0a568f;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 18px rgba(4, 47, 91, 0.18);
  font-size: var(--text-brand-caption);
  font-weight: 800;
}

.home-workflow-list [data-workflow-step] > span:last-child {
  display: grid;
  gap: 5px;
}

.home-workflow-list [data-workflow-step] strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
}

.home-workflow-list [data-workflow-step] small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.5;
}

.home-workflow-list [data-workflow-step]:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
  border-radius: 12px;
}

.workflow-visual-stage {
  position: sticky;
  top: 108px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  background: rgba(4, 22, 39, 0.36);
  box-shadow: 0 26px 62px rgba(3, 22, 40, 0.28);
}

.workflow-visual-panel {
  display: none;
  margin: 0;
}

.workflow-visual-panel.is-active {
  display: grid;
  animation: product-gallery-reveal 220ms var(--ease-out);
}

.workflow-visual-panel img {
  aspect-ratio: 2 / 1;
  background: #edf2f5;
}

.workflow-visual-panel figcaption {
  display: grid;
  min-height: 86px;
  gap: 4px;
  align-content: center;
  padding: 17px 20px;
  background: rgba(5, 25, 43, 0.92);
}

.workflow-visual-panel figcaption strong {
  color: #fff;
  font-size: 15px;
}

.workflow-visual-panel figcaption span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.5;
}

[data-theme='dark'] .home-tagline {
  color: #d9e4ec;
}

[data-theme='dark'] .product-gallery {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(10, 23, 37, 0.82);
}

[data-theme='dark'] .product-gallery-viewport {
  border-color: #34465a;
}

[data-theme='dark'] .product-gallery-slide figcaption,
[data-theme='dark'] .product-gallery-arrow {
  background: #111e2d;
}

[data-theme='dark'] .product-gallery-slide figcaption strong,
[data-theme='dark'] .product-gallery-arrow {
  color: #f2f4f7;
}

@media (max-width: 980px) {
  .product-gallery {
    width: min(100%, 720px);
  }

  .home-workflow-interactive {
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .home-workflow-interactive {
    display: block;
    margin-top: 40px;
  }

  .workflow-visual-stage {
    position: relative;
    top: auto;
    margin: 10px 12px 14px;
    border-radius: 14px;
  }

  .workflow-visual-panel figcaption {
    min-height: 76px;
    padding: 14px 16px;
  }
}

@media (max-width: 600px) {
  .home-tagline {
    margin-bottom: var(--space-4);
    font-size: var(--text-brand-support);
  }

  .product-gallery {
    padding: 8px;
    border-radius: 16px;
  }

  .product-gallery-slide figcaption {
    min-height: 94px;
    padding: 14px;
  }

  .product-gallery-heading {
    padding: 5px 4px 10px;
  }

  .home-workflow-list [data-workflow-step] {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-slide.is-active,
  .workflow-visual-panel.is-active {
    animation: none;
  }
}

/* Larger, lossless product views */
.home-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(42px, 5vw, 64px);
}

.home-hero-copy {
  max-width: 940px;
}

.product-gallery {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding: 16px;
  border-radius: 26px;
  box-shadow: 0 32px 90px rgba(16, 34, 53, 0.17);
}

.product-gallery-heading {
  padding: 4px 8px 14px;
}

.product-gallery-slide.is-active {
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
  align-items: stretch;
  justify-content: center;
}

.product-gallery-image {
  position: relative;
  aspect-ratio: 2 / 1;
  border-right: 1px solid #d5e0e8;
}

.product-image-button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: #eef3f6;
  cursor: zoom-in;
}

.product-image-button img,
.product-gallery-image img,
.workflow-visual-panel .product-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.product-image-button > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 32, 51, 0.88);
  box-shadow: 0 8px 24px rgba(5, 22, 36, 0.24);
  backdrop-filter: blur(10px);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.01em;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}

.product-image-button:hover > span,
.product-image-button:focus-visible > span {
  background: var(--home-teal);
  transform: translateY(-2px);
}

.product-image-button:focus-visible {
  outline: 3px solid var(--home-teal);
  outline-offset: -3px;
}

.product-gallery-slide figcaption {
  min-height: 0;
  align-content: center;
  padding: clamp(26px, 4vw, 46px);
}

.product-gallery-slide figcaption strong {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.18;
}

.product-gallery-slide figcaption span {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
}

.product-gallery-controls {
  padding: 14px 4px 1px;
}

.product-gallery-dots {
  gap: 6px;
}

.product-gallery-dots button {
  width: auto;
  min-height: 44px;
  height: auto;
  padding: 0 13px;
  border: 1px solid transparent;
  color: #66788a;
  background: transparent;
  font: 600 var(--text-brand-caption)/1.3 var(--font-body);
}

.product-gallery-dots button.is-active {
  width: auto;
  border-color: rgba(23, 111, 166, 0.2);
  color: var(--home-teal-dark);
  background: rgba(23, 111, 166, 0.1);
}

.workflow-visual-panel .product-image-button {
  aspect-ratio: 2 / 1;
}

.product-image-dialog {
  width: min(940px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  color: #eff6fa;
  background: #071b2b;
  box-shadow: 0 40px 120px rgba(1, 12, 21, 0.55);
}

.product-image-dialog::backdrop {
  background: rgba(2, 12, 21, 0.78);
  backdrop-filter: blur(8px);
}

.product-image-dialog-bar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.product-image-dialog-bar > div {
  display: grid;
  gap: 3px;
}

.product-image-dialog-bar .product-image-dialog-actions {
  display: flex;
  grid-auto-flow: column;
  gap: 8px;
}

.product-image-dialog-bar span {
  color: #8fb8ce;
  font-size: var(--text-brand-caption);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-image-dialog-bar strong {
  color: #fff;
  font-size: 16px;
}

.product-image-dialog-bar button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: 700 12px/1 var(--font-body);
  cursor: pointer;
}

.product-image-dialog-bar button:hover,
.product-image-dialog-bar button:focus-visible {
  border-color: #6bb8dc;
  background: rgba(77, 163, 203, 0.2);
}

.product-image-dialog-canvas {
  max-height: calc(100dvh - 154px);
  padding: 24px;
  overflow: auto;
  background: #dfe8ed;
  overscroll-behavior: contain;
}

.product-image-dialog-canvas img {
  display: block;
  width: min(100%, 885px);
  min-width: 0;
  max-width: 885px;
  height: auto;
  margin: auto;
  box-shadow: 0 14px 38px rgba(6, 24, 37, 0.24);
}

.product-image-dialog-canvas.is-zoomed img {
  width: auto;
  min-width: 885px;
  max-width: none;
  margin-left: 0;
}

.product-image-dialog-actions [data-image-dialog-zoom] {
  border-color: #4aa5d2;
  color: #fff;
  background: #126f9f;
}

.product-image-dialog > p {
  margin: 0;
  padding: 10px 22px 13px;
  color: #a7becb;
  font-size: var(--text-brand-caption);
  line-height: 1.45;
}

@media (max-width: 760px) {
  .product-gallery {
    padding: 10px;
    border-radius: 18px;
  }

  .product-gallery-slide.is-active {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-gallery-image {
    border-right: 0;
    border-bottom: 1px solid #d5e0e8;
  }

  .product-gallery-slide figcaption {
    min-height: 116px;
    padding: 20px;
  }

  .product-gallery-slide figcaption strong {
    font-size: 18px;
  }

  .product-gallery-dots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1;
    min-width: 0;
    max-width: none;
    gap: var(--space-1);
    overflow: visible;
  }

  .product-gallery-dots button {
    min-width: 0;
    padding-inline: var(--space-2);
  }

  .product-image-button > span {
    right: 9px;
    bottom: 9px;
    min-height: 34px;
    padding: 7px 11px;
    font-size: var(--text-brand-caption);
  }

  .product-image-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .product-image-dialog-canvas {
    max-height: calc(100dvh - 160px);
    padding: 12px;
  }

  .product-image-dialog-bar {
    flex-wrap: wrap;
    min-height: 76px;
    gap: 12px;
    padding: 12px;
  }

  .product-image-dialog-bar > div:first-child {
    min-width: 0;
  }

  .product-image-dialog-bar strong {
    display: block;
    font-size: 14px;
    white-space: normal;
  }

  .product-image-dialog-bar button {
    min-height: 44px;
    padding: 7px 11px;
  }

  .product-image-dialog > p {
    padding: 10px 13px 12px;
  }
}

/* Approved MiXi artwork; the supporting slogan remains accessible HTML text. */
.nav-logo img {
  height: 52px !important;
  width: auto;
  object-fit: contain;
  content: url("site-assets/mixi-logo-black.png");
  filter: none;
  image-rendering: auto;
}

.mobile-nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  content: url("site-assets/mixi-logo-black.png");
  filter: none;
  image-rendering: auto;
}

.footer-brand img {
  height: 72px;
  width: auto;
  object-fit: contain;
  content: url("site-assets/mixi-logo-dark.png");
  filter: none;
  image-rendering: auto;
}

.nav-logo,
.mobile-nav-logo {
  align-items: flex-start;
}

[data-theme="dark"] .nav-logo img,
[data-theme="dark"] .mobile-nav-logo img {
  content: url("site-assets/mixi-logo-dark.png");
}

.product-card-thumb img,
.product-family-icon img,
.miximed-banner-icon img,
.login-hero img,
.login-card-brand img,
.gate-logo {
  object-fit: contain;
  filter: none;
}

@media (max-width: 768px) {
  .nav-logo img {
    height: 48px !important;
  }

  .mobile-nav-logo img {
    height: 48px;
  }

  .footer-brand img {
    height: 68px;
  }
}

.footer-brand .brand-slogan {
  margin: 0 0 var(--space-3);
  color: #d8e6ef;
  font-family: var(--font-body), sans-serif;
  font-size: var(--text-brand-caption);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Visual audit: readable labels and controls on their actual surfaces. */
.section-dark .section-eyebrow,
.section-dark .privacy-note a,
.home-refresh .home-workflow .section-label,
.home-refresh .home-assurance .section-label {
  color: #c8e2f2;
}

.resource-feature-steps span,
.resource-feature-heading small,
.product-kicker,
.login-story .product-kicker,
.login-card-brand span {
  font-size: var(--text-brand-caption);
}

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

.product-gallery-arrow {
  width: 44px;
  height: 44px;
}

[data-theme='dark'] .btn-primary {
  color: #fff;
  background: #176fa6;
  border-color: #176fa6;
}

[data-theme='dark'] .btn-primary:hover,
[data-theme='dark'] .btn-primary:focus-visible {
  background: #0e5787;
  border-color: #0e5787;
}

[data-theme='dark'] .badge {
  color: #a4d4ef;
}

[data-theme='dark'] .home-eyebrow,
[data-theme='dark'] .home-refresh .section-label,
[data-theme='dark'] .product-gallery-count strong,
[data-theme='dark'] .home-hero-pills summary::after {
  color: #91c9e8;
}

[data-theme='dark'] .home-eyebrow span,
[data-theme='dark'] .home-tagline,
[data-theme='dark'] .product-gallery-count,
[data-theme='dark'] .product-gallery-dots button {
  color: #b6c8d6;
}

[data-theme='dark'] .product-gallery-dots button.is-active {
  color: #d8edfa;
  background: #174261;
  border-color: #5685a3;
}

[data-theme='dark'] .home-closing {
  background: #0c1d2c;
}
